CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
Myth::EventHandler Class Reference

Data Structures

class  EventHandlerThread

Public Types

typedef MYTH_SHARED_PTR< EventHandlerThreadEventHandlerThreadPtr

Public Member Functions

 EventHandler (const std::string &server, unsigned port)
bool Start ()
void Stop ()
void Reset ()
std::string GetServer () const
unsigned GetPort () const
bool IsRunning ()
bool IsConnected ()
unsigned CreateSubscription (EventSubscriber *sub)
bool SubscribeForEvent (unsigned subid, EVENT_t event)
void RevokeSubscription (unsigned subid)
void RevokeAllSubscriptions (EventSubscriber *sub)

Private Attributes

EventHandlerThreadPtr m_imp

Detailed Description

Definition at line 45 of file mytheventhandler.h.

Member Typedef Documentation

◆ EventHandlerThreadPtr

typedef MYTH_SHARED_PTR<EventHandlerThread> Myth::EventHandler::EventHandlerThreadPtr

Definition at line 86 of file mytheventhandler.h.

Constructor & Destructor Documentation

◆ EventHandler()

EventHandler::EventHandler ( const std::string & server,
unsigned port )

Definition at line 408 of file mytheventhandler.cpp.

Member Function Documentation

◆ CreateSubscription()

unsigned Myth::EventHandler::CreateSubscription ( EventSubscriber * sub)
inline

Definition at line 58 of file mytheventhandler.h.

◆ GetPort()

unsigned Myth::EventHandler::GetPort ( ) const
inline

Definition at line 54 of file mytheventhandler.h.

◆ GetServer()

std::string Myth::EventHandler::GetServer ( ) const
inline

Definition at line 53 of file mytheventhandler.h.

◆ IsConnected()

bool Myth::EventHandler::IsConnected ( )
inline

Definition at line 56 of file mytheventhandler.h.

◆ IsRunning()

bool Myth::EventHandler::IsRunning ( )
inline

Definition at line 55 of file mytheventhandler.h.

◆ Reset()

void Myth::EventHandler::Reset ( )
inline

Definition at line 52 of file mytheventhandler.h.

◆ RevokeAllSubscriptions()

void Myth::EventHandler::RevokeAllSubscriptions ( EventSubscriber * sub)
inline

Definition at line 61 of file mytheventhandler.h.

◆ RevokeSubscription()

void Myth::EventHandler::RevokeSubscription ( unsigned subid)
inline

Definition at line 60 of file mytheventhandler.h.

◆ Start()

bool Myth::EventHandler::Start ( )
inline

Definition at line 50 of file mytheventhandler.h.

◆ Stop()

void Myth::EventHandler::Stop ( )
inline

Definition at line 51 of file mytheventhandler.h.

◆ SubscribeForEvent()

bool Myth::EventHandler::SubscribeForEvent ( unsigned subid,
EVENT_t event )
inline

Definition at line 59 of file mytheventhandler.h.

Field Documentation

◆ m_imp

EventHandlerThreadPtr Myth::EventHandler::m_imp
private

Definition at line 89 of file mytheventhandler.h.


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