Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <GUIAction.h>
Classes | |
class | CExecutableAction |
Public Member Functions | |
CGUIAction ()=default | |
CGUIAction (int controlID) | |
bool | ExecuteActions () const |
bool | ExecuteActions (int controlID, int parentID, const std::shared_ptr< CGUIListItem > &item=nullptr) const |
bool | HasConditionalActions () const |
bool | HasActionsMeetingCondition () const |
bool | HasAnyActions () const |
size_t | GetActionCount () const |
int | GetNavigation () const |
void | SetNavigation (int id) |
void | EnableSendThreadMessageMode () |
void | Append (const CExecutableAction &action) |
void | Reset () |
bool | operator== (const CGUIAction &rhs) const |
Class containing vector of condition->(action/navigation route) and handling its execution.
|
default |
|
explicit |
void CGUIAction::Append | ( | const CExecutableAction & | action | ) |
Add an executable action to the CGUIAction container
void CGUIAction::EnableSendThreadMessageMode | ( | ) |
Configure CGUIAction to send threaded messages
bool CGUIAction::ExecuteActions | ( | ) | const |
Execute actions without specifying any target control or parent control. Action will use the default focused control.
bool CGUIAction::ExecuteActions | ( | int | controlID, |
int | parentID, | ||
const std::shared_ptr< CGUIListItem > & | item = nullptr ) const |
Execute actions (no navigation paths); if action is paired with condition - evaluate condition first
size_t CGUIAction::GetActionCount | ( | ) | const |
Get the total number of actions
int CGUIAction::GetNavigation | ( | ) | const |
Get navigation route that meet its conditions first
bool CGUIAction::HasActionsMeetingCondition | ( | ) | const |
Check if there is any action that meet its condition
bool CGUIAction::HasAnyActions | ( | ) | const |
Check if there is any action
bool CGUIAction::HasConditionalActions | ( | ) | const |
Check if there are any conditional actions
|
inline |
void CGUIAction::Reset | ( | ) |
Prune any executable actions stored in the CGUIAction