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) | |
std::string | GetCondition () const |
bool | HasCondition () 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 |
std::string CGUIAction::CExecutableAction::GetAction | ( | ) | const |
Get the action string of this executable action
std::string CGUIAction::CExecutableAction::GetCondition | ( | ) | const |
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 |