CPPMyth
Library to interoperate with MythTV server
Myth::BasicEventHandler Class Reference
Inheritance diagram for Myth::BasicEventHandler:
Collaboration diagram for Myth::BasicEventHandler:

Public Member Functions

 BasicEventHandler (const std::string &server, unsigned port)
 
virtual bool Start ()
 
virtual void Stop ()
 
virtual void Reset ()
 
virtual bool IsRunning ()
 
virtual bool IsConnected ()
 
virtual unsigned CreateSubscription (EventSubscriber *sub)
 
virtual bool SubscribeForEvent (unsigned subid, EVENT_t event)
 
virtual void RevokeSubscription (unsigned subid)
 
virtual void RevokeAllSubscriptions (EventSubscriber *sub)
 
- Public Member Functions inherited from Myth::EventHandler::EventHandlerThread
 EventHandlerThread (const std::string &server, unsigned port)
 
virtual std::string GetServer () const
 
virtual unsigned GetPort () const
 

Private Types

typedef std::map< EVENT_t, std::list< unsigned > > subscriptionsByEvent_t
 
typedef std::map< unsigned, SubscriptionHandlerThread * > subscriptions_t
 

Private Member Functions

void DispatchEvent (const EventMessagePtr &msg)
 
virtual void * Process (void)
 
void AnnounceStatus (const char *status)
 
void AnnounceTimer ()
 
void RetryConnect ()
 

Private Attributes

OS::CMutex m_mutex
 
ProtoEventm_event
 
bool m_reset
 
subscriptionsByEvent_t m_subscriptionsByEvent
 
subscriptions_t m_subscriptions
 

Additional Inherited Members

- Protected Attributes inherited from Myth::EventHandler::EventHandlerThread
std::string m_server
 
unsigned m_port
 

Detailed Description

Definition at line 156 of file mytheventhandler.cpp.


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