ManaPlus
Public Member Functions
ErrorListener Class Reference

#include <errorlistener.h>

Inheritance diagram for ErrorListener:
ActionListener

Public Member Functions

 ErrorListener ()
 
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 errorlistener.h.

Constructor & Destructor Documentation

◆ ErrorListener()

ErrorListener::ErrorListener ( )
inline

Definition at line 34 of file errorlistener.h.

34  :
36  { }

Member Function Documentation

◆ action()

void ErrorListener::action ( const ActionEvent actionEvent)
virtual

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 35 of file errorlistener.cpp.

36 {
37  if (event.getId() == "yes")
40 }
void setState(const StateT state)
Definition: client.h:66
std::string supportUrl
Definition: settings.h:121
Client * client
Definition: client.cpp:118
@ CHOOSE_SERVER
Definition: state.h:37
bool openBrowser(std::string url)
Definition: process.cpp:310
Settings settings
Definition: settings.cpp:32

References State::CHOOSE_SERVER, client, ActionEvent::getId(), openBrowser(), Client::setState(), settings, and Settings::supportUrl.


The documentation for this class was generated from the following files: