kodi
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
CApplicationActionListeners Class Reference

Class handling application support for action listeners. More...

#include <ApplicationActionListeners.h>

Inheritance diagram for CApplicationActionListeners:
Inheritance graph
[legend]
Collaboration diagram for CApplicationActionListeners:
Collaboration graph
[legend]

Public Member Functions

 CApplicationActionListeners (CCriticalSection &sect)
 
void RegisterActionListener (KODI::ACTION::IActionListener *listener)
 Register an action listener. More...
 
void UnregisterActionListener (KODI::ACTION::IActionListener *listener)
 Unregister an action listener. More...
 

Protected Member Functions

bool NotifyActionListeners (const CAction &action) const
 Delegates the action to all registered action handlers. More...
 

Protected Attributes

std::vector< KODI::ACTION::IActionListener * > m_actionListeners
 
CCriticalSection & m_critSection
 

Friends

class CApplication
 

Detailed Description

Class handling application support for action listeners.

Member Function Documentation

◆ NotifyActionListeners()

bool CApplicationActionListeners::NotifyActionListeners ( const CAction action) const
protected

Delegates the action to all registered action handlers.

Parameters
actionThe action
Returns
true, if the action was taken by one of the action listener.

◆ RegisterActionListener()

void CApplicationActionListeners::RegisterActionListener ( KODI::ACTION::IActionListener listener)

Register an action listener.

Parameters
listenerThe listener to register

◆ UnregisterActionListener()

void CApplicationActionListeners::UnregisterActionListener ( KODI::ACTION::IActionListener listener)

Unregister an action listener.

Parameters
listenerThe listener to unregister

The documentation for this class was generated from the following files: