Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class handling application support for action listeners. More...
#include <ApplicationActionListeners.h>
Public Member Functions | |
CApplicationActionListeners (CCriticalSection §) | |
void | RegisterActionListener (KODI::ACTION::IActionListener *listener) |
Register an action listener. | |
void | UnregisterActionListener (KODI::ACTION::IActionListener *listener) |
Unregister an action listener. | |
Public Member Functions inherited from IApplicationComponent | |
virtual | ~IApplicationComponent ()=default |
Protected Member Functions | |
bool | NotifyActionListeners (const CAction &action) const |
Delegates the action to all registered action handlers. | |
Protected Attributes | |
std::vector< KODI::ACTION::IActionListener * > | m_actionListeners |
CCriticalSection & | m_critSection |
Friends | |
class | CApplication |
Class handling application support for action listeners.
CApplicationActionListeners::CApplicationActionListeners | ( | CCriticalSection & | sect | ) |
Delegates the action to all registered action handlers.
action | The action |
void CApplicationActionListeners::RegisterActionListener | ( | KODI::ACTION::IActionListener * | listener | ) |
Register an action listener.
listener | The listener to register |
void CApplicationActionListeners::UnregisterActionListener | ( | KODI::ACTION::IActionListener * | listener | ) |
Unregister an action listener.
listener | The listener to unregister |
|
friend |
|
protected |
|
protected |