16 class CGUIListItem;
typedef std::shared_ptr<CGUIListItem> CGUIListItemPtr;
64 void SetAction(
const std::string& action);
72 std::string m_condition;
86 bool ExecuteActions(
int controlID,
int parentID,
const CGUIListItemPtr& item =
nullptr)
const;
117 std::vector<CExecutableAction> m_actions;
118 bool m_sendThreadMessages =
false;
bool HasActionsMeetingCondition() const
Check if there is any action that meet its condition.
Definition: GUIAction.cpp:124
Definition: GUIListItem.h:30
Class which defines an executable action.
Definition: GUIAction.h:27
bool HasAnyActions() const
Check if there is any action.
Definition: GUIAction.cpp:135
Base class for controls.
Definition: GUIControl.h:75
int GetNavigation() const
Get navigation route that meet its conditions first.
Definition: GUIAction.cpp:93
void SetNavigation(int id)
Set navigation route.
Definition: GUIAction.cpp:107
void Reset()
Prune any executable actions stored in the CGUIAction.
Definition: GUIAction.cpp:150
bool HasCondition() const
Checks if the executable action has any condition.
Definition: GUIAction.cpp:42
void EnableSendThreadMessageMode()
Configure CGUIAction to send threaded messages.
Definition: GUIAction.cpp:145
bool ExecuteActions() const
Execute actions without specifying any target control or parent control.
Definition: GUIAction.cpp:57
std::string GetCondition() const
Get the condition of this executable action (may be empty)
Definition: GUIAction.cpp:32
std::string GetAction() const
Get the action string of this executable action.
Definition: GUIAction.cpp:37
void SetAction(const std::string &action)
Sets/Replaces the action string of this executable action.
Definition: GUIAction.cpp:47
void Append(const CExecutableAction &action)
Add an executable action to the CGUIAction container.
Definition: GUIAction.cpp:140
Class containing vector of condition->(action/navigation route) and handling its execution.
Definition: GUIAction.h:21