iberbox
2.1.2
|
The Action Listener class. More...
Public Member Functions | |
ActionListener () | |
Constructs a new Action Listener object. More... | |
ActionListener (std::function< void(Action)> finishCallback) | |
Constructs a new Action Listener object. More... | |
ActionListener (std::function< void(Action)> progressCallback, std::function< void(Action)> finishCallback) | |
ActionListener (std::function< void(Action)> errorCallback, std::function< void(Action)> progressCallback, std::function< void(Action)> finishCallback) | |
ActionListener (std::function< void(Action)> startCallback, std::function< void(Action)> errorCallback, std::function< void(Action)> progressCallback, std::function< void(Action)> finishCallback) | |
virtual void | onActionError (Action action) |
The method that will be executed when an error occurs within the action. More... | |
virtual void | onActionFinish (Action action) |
The method that will be executed when the action finishes. More... | |
virtual void | onActionProcessed (Action action) |
The method that will be executed when the action has been processed. More... | |
virtual void | onActionProgress (Action action) |
The method that will be executed when the action's progress changes. More... | |
virtual void | onActionStart (Action action) |
The method that will be executed when the action starts. More... | |
void | setErrorCallback (std::function< void(Action)> errorCallback) |
void | setFinishCallback (std::function< void(Action)> finishCallback) |
void | setProgressCallback (std::function< void(Action)> progressCallback) |
void | setStartCallback (std::function< void(Action)> startCallback) |
virtual | ~ActionListener () |
The Action Listener class.
iberbox::ActionListener::ActionListener | ( | ) |
Constructs a new Action Listener object.
iberbox::ActionListener::ActionListener | ( | std::function< void(Action)> | finishCallback | ) |
Constructs a new Action Listener object.
finishCallback | The default function to be executed when the action finishes. |
iberbox::ActionListener::ActionListener | ( | std::function< void(Action)> | progressCallback, |
std::function< void(Action)> | finishCallback | ||
) |
iberbox::ActionListener::ActionListener | ( | std::function< void(Action)> | errorCallback, |
std::function< void(Action)> | progressCallback, | ||
std::function< void(Action)> | finishCallback | ||
) |
iberbox::ActionListener::ActionListener | ( | std::function< void(Action)> | startCallback, |
std::function< void(Action)> | errorCallback, | ||
std::function< void(Action)> | progressCallback, | ||
std::function< void(Action)> | finishCallback | ||
) |
|
virtual |
|
virtual |
The method that will be executed when an error occurs within the action.
action | The action in which an error has ocurred. |
|
virtual |
The method that will be executed when the action finishes.
action | The finished action. |
Reimplemented in iberbox::Iberbox, and iberbox::BlockingActionListener.
|
virtual |
The method that will be executed when the action has been processed.
action | The processed action. |
|
virtual |
The method that will be executed when the action's progress changes.
action | The action whose progress has changed. |
Reimplemented in iberbox::BlockingActionListener.
|
virtual |
The method that will be executed when the action starts.
action | The started action. |
void iberbox::ActionListener::setErrorCallback | ( | std::function< void(Action)> | errorCallback | ) |
void iberbox::ActionListener::setFinishCallback | ( | std::function< void(Action)> | finishCallback | ) |
void iberbox::ActionListener::setProgressCallback | ( | std::function< void(Action)> | progressCallback | ) |
void iberbox::ActionListener::setStartCallback | ( | std::function< void(Action)> | startCallback | ) |