|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <GUIAction.h>
Public Member Functions | |
| CExecutableAction (const std::string &action) | |
| CExecutableAction (const std::string &condition, const std::string &action) | |
| const std::string & | GetCondition () const |
| bool | HasCondition () const |
| const std::string & | GetAction () const |
| void | SetAction (const std::string &action) |
| bool | operator== (const CExecutableAction &right) const |
Class which defines an executable action
|
explicit |
Executable action constructor (without conditional execution)
| action | - The action to be executed |
| CGUIAction::CExecutableAction::CExecutableAction | ( | const std::string & | condition, |
| const std::string & | action ) |
Executable action constructor (providing the condition and the action)
| condition | - The condition that dictates the action execution |
| action | - The actual action |
|
inline |
Get the action string of this executable action
|
inline |
Get the condition of this executable action (may be empty)
| bool CGUIAction::CExecutableAction::HasCondition | ( | ) | const |
Checks if the executable action has any condition
|
inline |
| void CGUIAction::CExecutableAction::SetAction | ( | const std::string & | action | ) |
Sets/Replaces the action string of this executable action
| action | - The action string |