ManaPlus
Public Member Functions | Data Fields
OpenUrlListener Struct Reference

#include <openurllistener.h>

Inheritance diagram for OpenUrlListener:
ActionListener

Public Member Functions

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

Data Fields

std::string url
 

Additional Inherited Members

- Protected Member Functions inherited from ActionListener
 ActionListener ()
 

Detailed Description

Definition at line 33 of file openurllistener.h.

Constructor & Destructor Documentation

◆ OpenUrlListener()

OpenUrlListener::OpenUrlListener ( )
inline

Definition at line 35 of file openurllistener.h.

35  :
37  url()
38  {
39  }
std::string url

Member Function Documentation

◆ action()

void OpenUrlListener::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 44 of file openurllistener.h.

45  {
46  if (event.getId() == "yes")
48  }
bool openBrowser(std::string url)
Definition: process.cpp:310

References openBrowser(), and url.

Field Documentation

◆ url

std::string OpenUrlListener::url

Definition at line 50 of file openurllistener.h.

Referenced by LoginDialog::action(), action(), and ItemLinkHandler::handleHttpLink().


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