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
detail::CSubscription< Event, Owner > Class Template Reference

#include <EventStreamDetail.h>

Inheritance diagram for detail::CSubscription< Event, Owner >:
detail::ISubscription< Event >

Public Types

using EventHandler = std::function<void(const Event&)>
 

Public Member Functions

 CSubscription (Owner *owner, const EventHandler &eventHandler)
 
void HandleEvent (const Event &event) override
 
void Cancel () override
 
bool IsOwnedBy (void *obj) override
 
- Public Member Functions inherited from detail::ISubscription< Event >
virtual ~ISubscription ()=default
 

Member Typedef Documentation

◆ EventHandler

template<typename Event, typename Owner>
using detail::CSubscription< Event, Owner >::EventHandler = std::function<void(const Event&)>

Constructor & Destructor Documentation

◆ CSubscription()

template<typename Event, typename Owner>
detail::CSubscription< Event, Owner >::CSubscription ( Owner * owner,
const EventHandler & eventHandler )

Member Function Documentation

◆ Cancel()

template<typename Event, typename Owner>
void detail::CSubscription< Event, Owner >::Cancel ( )
overridevirtual

◆ HandleEvent()

template<typename Event, typename Owner>
void detail::CSubscription< Event, Owner >::HandleEvent ( const Event & event)
overridevirtual

◆ IsOwnedBy()

template<typename Event, typename Owner>
bool detail::CSubscription< Event, Owner >::IsOwnedBy ( void * obj)
overridevirtual

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