Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CEventSource< Event > Class Template Reference

#include <EventStream.h>

Inheritance diagram for CEventSource< Event >:
CEventStream< Event >

Public Member Functions

 CEventSource ()
 
template<typename A>
void Publish (const A &event)
 
- Public Member Functions inherited from CEventStream< Event >
template<typename A>
void Subscribe (A *owner, const EventHandler &eventHandler)
 
template<typename A>
void Unsubscribe (A *obj)
 

Additional Inherited Members

- Public Types inherited from CEventStream< Event >
using EventHandler = std::function<void(const Event&)>
 
- Protected Attributes inherited from CEventStream< Event >
std::vector< std::shared_ptr< detail::ISubscription< Event > > > m_subscriptions
 
CCriticalSection m_criticalSection
 

Constructor & Destructor Documentation

◆ CEventSource()

template<typename Event>
CEventSource< Event >::CEventSource ( )
inlineexplicit

Member Function Documentation

◆ Publish()

template<typename Event>
template<typename A>
void CEventSource< Event >::Publish ( const A & event)
inline

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