ManaPlus
Public Member Functions | Data Fields
InsertCardListener Struct Reference

#include <insertcardlistener.h>

Inheritance diagram for InsertCardListener:
ActionListener

Public Member Functions

 InsertCardListener ()
 
void action (const ActionEvent &event)
 
- Public Member Functions inherited from ActionListener
virtual ~ActionListener ()
 

Data Fields

int cardIndex
 
int itemIndex
 

Additional Inherited Members

- Protected Member Functions inherited from ActionListener
 ActionListener ()
 

Detailed Description

Definition at line 33 of file insertcardlistener.h.

Constructor & Destructor Documentation

◆ InsertCardListener()

InsertCardListener::InsertCardListener ( )
inline

Definition at line 35 of file insertcardlistener.h.

35  :
37  cardIndex(0),
38  itemIndex(0)
39  {
40  }

Member Function Documentation

◆ action()

void InsertCardListener::action ( const ActionEvent actionEvent)
inlinevirtual

Called when an action is recieved from a widget. It is used to be able to recieve a notification that an action has occured.

Parameters
actionEventThe event of the action.

Implements ActionListener.

Definition at line 45 of file insertcardlistener.h.

46  {
47  if (event.getId() == "yes" && (inventoryHandler != nullptr))
49  }
virtual void insertCard(const int cardIndex, const int itemIndex) const =0
Net::InventoryHandler * inventoryHandler
Definition: net.cpp:89

References cardIndex, Net::InventoryHandler::insertCard(), inventoryHandler, and itemIndex.

Field Documentation

◆ cardIndex

int InsertCardListener::cardIndex

Definition at line 51 of file insertcardlistener.h.

Referenced by action(), and InventoryWindow::combineItems().

◆ itemIndex

int InsertCardListener::itemIndex

Definition at line 52 of file insertcardlistener.h.

Referenced by action(), and InventoryWindow::combineItems().


The documentation for this struct was generated from the following file: