MythTV  master
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
MythEvent Class Reference

This class is used as a container for messages. More...

#include <mythevent.h>

Inheritance diagram for MythEvent:
Inheritance graph
[legend]
Collaboration diagram for MythEvent:
Collaboration graph
[legend]

Public Member Functions

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

Static Public Attributes

static Type MythEventMessage
 
static Type MythUserMessage
 
static Type kUpdateTvProgressEventType
 
static Type kExitToMainMenuEventType
 
static Type kMythPostShowEventType
 
static Type kPushDisableDrawingEventType
 
static Type kPopDisableDrawingEventType
 
static Type kLockInputDevicesEventType
 
static Type kUnlockInputDevicesEventType
 
static Type kUpdateBrowseInfoEventType
 
static Type kDisableUDPListenerEventType
 
static Type kEnableUDPListenerEventType
 

Protected Attributes

QString m_message
 
QStringList m_extradata
 

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 16 of file mythevent.h.

Constructor & Destructor Documentation

◆ MythEvent() [1/6]

MythEvent::MythEvent ( int  type)
inlineexplicit

Definition at line 19 of file mythevent.h.

◆ MythEvent() [2/6]

MythEvent::MythEvent ( int  type,
QString  lmessage 
)
inline

Definition at line 23 of file mythevent.h.

◆ MythEvent() [3/6]

MythEvent::MythEvent ( int  type,
QString  lmessage,
const QStringList &  lextradata 
)
inline

Definition at line 29 of file mythevent.h.

◆ MythEvent() [4/6]

MythEvent::MythEvent ( QString  lmessage)
inlineexplicit

Definition at line 36 of file mythevent.h.

◆ MythEvent() [5/6]

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

Definition at line 42 of file mythevent.h.

◆ MythEvent() [6/6]

MythEvent::MythEvent ( QString  lmessage,
const QString  lextradata 
)
inline

Definition at line 49 of file mythevent.h.

◆ ~MythEvent()

virtual MythEvent::~MythEvent ( )
virtualdefault

Member Function Documentation

◆ Message()

const QString& MythEvent::Message ( ) const
inline

◆ ExtraData()

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

Definition at line 59 of file mythevent.h.

Referenced by MainServer::HandleSlaveDisconnectedEvent().

◆ ExtraDataList()

const QStringList& MythEvent::ExtraDataList ( ) const
inline

Definition at line 60 of file mythevent.h.

Referenced by MainServer::customEvent().

◆ ExtraDataCount()

int MythEvent::ExtraDataCount ( ) const
inline

Definition at line 61 of file mythevent.h.

Referenced by MainServer::HandleSlaveDisconnectedEvent().

◆ clone()

virtual MythEvent* MythEvent::clone ( void  ) const
inlinevirtual

Member Data Documentation

◆ MythEventMessage

QEvent::Type MythEvent::MythEventMessage
static

◆ MythUserMessage

QEvent::Type MythEvent::MythUserMessage
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 67 of file mythevent.h.

Referenced by MythMainWindow::customEvent(), TV::customEvent(), TV::eventFilter(), MythUDPListener::Process(), NetworkControl::processMessage(), and Frontend::SendMessage().

◆ kUpdateTvProgressEventType

QEvent::Type MythEvent::kUpdateTvProgressEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 68 of file mythevent.h.

Referenced by TV::customEvent(), TV::eventFilter(), and BDRingBuffer::ProgressUpdate().

◆ kExitToMainMenuEventType

QEvent::Type MythEvent::kExitToMainMenuEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 69 of file mythevent.h.

Referenced by MythMainWindow::customEvent(), MythMainWindow::ExitToMainMenu(), MythMainWindow::JumpTo(), MythScreenStack::PopScreen(), and MythMainWindow::TranslateKeyPress().

◆ kMythPostShowEventType

QEvent::Type MythEvent::kMythPostShowEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 70 of file mythevent.h.

Referenced by MythMainWindow::event().

◆ kPushDisableDrawingEventType

QEvent::Type MythEvent::kPushDisableDrawingEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 71 of file mythevent.h.

Referenced by MythMainWindow::customEvent(), and MythSystemLegacy::HandlePreRun().

◆ kPopDisableDrawingEventType

QEvent::Type MythEvent::kPopDisableDrawingEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 72 of file mythevent.h.

Referenced by MythMainWindow::customEvent(), and MythSystemLegacy::HandlePostRun().

◆ kLockInputDevicesEventType

QEvent::Type MythEvent::kLockInputDevicesEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 73 of file mythevent.h.

Referenced by MythMainWindow::customEvent(), and MythSystemLegacy::HandlePreRun().

◆ kUnlockInputDevicesEventType

QEvent::Type MythEvent::kUnlockInputDevicesEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 74 of file mythevent.h.

Referenced by MythMainWindow::customEvent(), and MythSystemLegacy::HandlePostRun().

◆ kUpdateBrowseInfoEventType

QEvent::Type MythEvent::kUpdateBrowseInfoEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 75 of file mythevent.h.

Referenced by TV::customEvent().

◆ kDisableUDPListenerEventType

QEvent::Type MythEvent::kDisableUDPListenerEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 76 of file mythevent.h.

Referenced by MythMainWindow::customEvent(), and MythSystemLegacy::HandlePreRun().

◆ kEnableUDPListenerEventType

QEvent::Type MythEvent::kEnableUDPListenerEventType
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 77 of file mythevent.h.

Referenced by MythMainWindow::customEvent(), and MythSystemLegacy::HandlePostRun().

◆ m_message

QString MythEvent::m_message
protected

Definition at line 80 of file mythevent.h.

◆ m_extradata

QStringList MythEvent::m_extradata
protected

Definition at line 81 of file mythevent.h.

Referenced by MythNotification::FromStringList(), and MythNotification::ToStringList().


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