MythTV  master
Public Member Functions | Static Public Attributes | Protected Member Functions | 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, QStringList lextradata)
 
 MythEvent (QString lmessage)
 
 MythEvent (QString lmessage, QStringList lextradata)
 
 MythEvent (QString lmessage, const QString &lextradata)
 
 ~MythEvent () override
 
const QString & Message () const
 
const QString & ExtraData (int idx=0) const
 
const QStringList & ExtraDataList () const
 
int ExtraDataCount () const
 
void log (const QString &prefix)
 
MythEventclone () const override
 
 MythEvent (MythEvent &&)=delete
 
MythEventoperator= (MythEvent &&)=delete
 

Static Public Attributes

static const Type kMythEventMessage
 
static const Type kMythUserMessage
 
static const Type kUpdateTvProgressEventType
 
static const Type kExitToMainMenuEventType
 
static const Type kMythPostShowEventType
 
static const Type kPushDisableDrawingEventType
 
static const Type kPopDisableDrawingEventType
 
static const Type kLockInputDevicesEventType
 
static const Type kUnlockInputDevicesEventType
 
static const Type kUpdateBrowseInfoEventType
 
static const Type kDisableUDPListenerEventType
 
static const Type kEnableUDPListenerEventType
 

Protected Member Functions

 MythEvent (const MythEvent &other)=default
 
MythEventoperator= (const MythEvent &other)=default
 

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/8]

MythEvent::MythEvent ( int  type)
inlineexplicit

Definition at line 19 of file mythevent.h.

◆ MythEvent() [2/8]

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

Definition at line 23 of file mythevent.h.

◆ MythEvent() [3/8]

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

Definition at line 31 of file mythevent.h.

◆ MythEvent() [4/8]

MythEvent::MythEvent ( QString  lmessage)
inlineexplicit

Definition at line 39 of file mythevent.h.

◆ MythEvent() [5/8]

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

Definition at line 47 of file mythevent.h.

◆ MythEvent() [6/8]

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

Definition at line 55 of file mythevent.h.

◆ ~MythEvent()

MythEvent::~MythEvent ( )
override

Definition at line 33 of file mythevent.cpp.

◆ MythEvent() [7/8]

MythEvent::MythEvent ( const MythEvent other)
protecteddefault

◆ MythEvent() [8/8]

MythEvent::MythEvent ( MythEvent &&  )
delete

Member Function Documentation

◆ Message()

const QString& MythEvent::Message ( ) const
inline

◆ ExtraData()

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

Definition at line 66 of file mythevent.h.

Referenced by MainServer::HandleSlaveDisconnectedEvent().

◆ ExtraDataList()

const QStringList& MythEvent::ExtraDataList ( ) const
inline

Definition at line 67 of file mythevent.h.

Referenced by MythCoreContext::SendEvent().

◆ ExtraDataCount()

int MythEvent::ExtraDataCount ( ) const
inline

Definition at line 68 of file mythevent.h.

Referenced by MainServer::HandleSlaveDisconnectedEvent().

◆ log()

void MythEvent::log ( const QString &  prefix)

Definition at line 37 of file mythevent.cpp.

◆ clone()

MythEvent* MythEvent::clone ( ) const
inlineoverride

Definition at line 75 of file mythevent.h.

Referenced by MythObservable::dispatch().

◆ operator=() [1/2]

MythEvent& MythEvent::operator= ( const MythEvent other)
protecteddefault

◆ operator=() [2/2]

MythEvent& MythEvent::operator= ( MythEvent &&  )
delete

Member Data Documentation

◆ kMythEventMessage

const QEvent::Type MythEvent::kMythEventMessage
static

◆ kMythUserMessage

const QEvent::Type MythEvent::kMythUserMessage
static

◆ kUpdateTvProgressEventType

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

Definition at line 81 of file mythevent.h.

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

◆ kExitToMainMenuEventType

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

Definition at line 82 of file mythevent.h.

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

◆ kMythPostShowEventType

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

Definition at line 83 of file mythevent.h.

Referenced by MythMainWindow::event().

◆ kPushDisableDrawingEventType

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

Definition at line 84 of file mythevent.h.

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

◆ kPopDisableDrawingEventType

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

Definition at line 85 of file mythevent.h.

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

◆ kLockInputDevicesEventType

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

Definition at line 86 of file mythevent.h.

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

◆ kUnlockInputDevicesEventType

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

Definition at line 87 of file mythevent.h.

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

◆ kUpdateBrowseInfoEventType

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

Definition at line 88 of file mythevent.h.

Referenced by TV::customEvent().

◆ kDisableUDPListenerEventType

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

Definition at line 89 of file mythevent.h.

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

◆ kEnableUDPListenerEventType

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

Definition at line 90 of file mythevent.h.

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

◆ m_message

QString MythEvent::m_message
protected

Definition at line 101 of file mythevent.h.

Referenced by log().

◆ m_extradata

QStringList MythEvent::m_extradata
protected

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