ManaPlus
Public Member Functions
RequestAdoptChildListener Struct Reference

#include <requestadoptchildlistener.h>

Inheritance diagram for RequestAdoptChildListener:
ActionListener

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from ActionListener
 ActionListener ()
 

Detailed Description

Definition at line 31 of file requestadoptchildlistener.h.

Constructor & Destructor Documentation

◆ RequestAdoptChildListener()

RequestAdoptChildListener::RequestAdoptChildListener ( )
inline

Definition at line 34 of file requestadoptchildlistener.h.

34  :
36  { }

Member Function Documentation

◆ action()

void RequestAdoptChildListener::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 40 of file requestadoptchildlistener.h.

41  {
42  const std::string &eventId = event.getId();
43  familyHandler->askForChildReply(eventId == "yes");
44  }
virtual void askForChildReply(const bool accept) const =0
Net::FamilyHandler * familyHandler
Definition: net.cpp:110

References Net::FamilyHandler::askForChildReply(), and familyHandler.


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