MythEvent Class Reference

#include <mythevent.h>

Inheritance diagram for MythEvent:

DecoderEvent OutputEvent

List of all members.


Detailed Description

This class is used as a container for messages.

Any subclass of this that adds data to the event should override the clone method. As example, see OutputEvent in output.h.

Definition at line 15 of file mythevent.h.


Public Types

enum  Type { MythEventMessage = (User + 1000) }

Public Member Functions

 MythEvent (int t)
 MythEvent (const QString lmessage)
 MythEvent (const QString lmessage, const QStringList &lextradata)
virtual ~MythEvent ()
const QString & Message () const
const QString & ExtraData (int idx=0) const
const QStringList & ExtraDataList () const
int ExtraDataCount () const
virtual MythEventclone ()

Private Attributes

QString message
QStringList extradata

Member Enumeration Documentation

Enumerator:
MythEventMessage 

Reimplemented in OutputEvent, and DecoderEvent.

Definition at line 18 of file mythevent.h.


Constructor & Destructor Documentation

MythEvent::MythEvent ( int  t  )  [inline]

Definition at line 20 of file mythevent.h.

MythEvent::MythEvent ( const QString  lmessage  )  [inline]

Definition at line 23 of file mythevent.h.

MythEvent::MythEvent ( const QString  lmessage,
const QStringList &  lextradata 
) [inline]

Definition at line 29 of file mythevent.h.

virtual MythEvent::~MythEvent (  )  [inline, virtual]

Definition at line 36 of file mythevent.h.


Member Function Documentation

const QString& MythEvent::Message (  )  const [inline]

const QString& MythEvent::ExtraData ( int  idx = 0  )  const [inline]

Definition at line 39 of file mythevent.h.

Referenced by MainServer::customEvent(), and BackendSelect::customEvent().

const QStringList& MythEvent::ExtraDataList (  )  const [inline]

Definition at line 40 of file mythevent.h.

Referenced by TV::customEvent(), and MainServer::customEvent().

int MythEvent::ExtraDataCount (  )  const [inline]

Definition at line 41 of file mythevent.h.

virtual MythEvent* MythEvent::clone (  )  [inline, virtual]

Reimplemented in OutputEvent, and DecoderEvent.

Definition at line 43 of file mythevent.h.

Referenced by MythObservable::dispatch(), and MythObservable::dispatchNow().


Member Data Documentation

QString MythEvent::message [private]

Definition at line 46 of file mythevent.h.

QStringList MythEvent::extradata [private]

Definition at line 47 of file mythevent.h.


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

Generated on Sat Dec 18 05:16:07 2010 for MythTV by  doxygen 1.5.5