MythTV  master
mythevent.cpp
Go to the documentation of this file.
1 #include "mythevent.h"
2 #include "mythlogging.h"
3 
4 QEvent::Type MythEvent::MythEventMessage =
5  (QEvent::Type) QEvent::registerEventType();
6 QEvent::Type MythEvent::MythUserMessage =
7  (QEvent::Type) QEvent::registerEventType();
9  (QEvent::Type) QEvent::registerEventType();
11  (QEvent::Type) QEvent::registerEventType();
13  (QEvent::Type) QEvent::registerEventType();
15  (QEvent::Type) QEvent::registerEventType();
17  (QEvent::Type) QEvent::registerEventType();
19  (QEvent::Type) QEvent::registerEventType();
21  (QEvent::Type) QEvent::registerEventType();
23  (QEvent::Type) QEvent::registerEventType();
25  (QEvent::Type) QEvent::registerEventType();
27  (QEvent::Type) QEvent::registerEventType();
29  (QEvent::Type) QEvent::registerEventType();
30 
31 // Force this class to have a vtable so that dynamic_cast works.
32 // NOLINTNEXTLINE(modernize-use-equals-default)
34 {
35 }
36 
37 void MythEvent::log(const QString& prefix)
38 {
39  LOG(VB_GENERAL, LOG_INFO, QString("%1: %2").arg(prefix, m_message));
40  if (m_extradata.isEmpty())
41  return;
42  if ((m_extradata.count() == 1) && (m_extradata[0] == "empty"))
43  return;
44  QStringList tmp = m_extradata;
45  if ((m_message.startsWith("GENERATED_PIXMAP")) && (tmp[0] == "OK"))
46  tmp[6]="Encoded pixmap";
47  LOG(VB_GENERAL, LOG_INFO, QString("Extra data: %1").arg(tmp.join('|')));
48 }
mythevent.h
MythEvent::kLockInputDevicesEventType
static Type kLockInputDevicesEventType
Definition: mythevent.h:86
MythEvent::MythEventMessage
static Type MythEventMessage
Definition: mythevent.h:79
MythEvent::kPushDisableDrawingEventType
static Type kPushDisableDrawingEventType
Definition: mythevent.h:84
MythEvent::kPopDisableDrawingEventType
static Type kPopDisableDrawingEventType
Definition: mythevent.h:85
MythEvent::m_extradata
QStringList m_extradata
Definition: mythevent.h:102
MythEvent::log
void log(const QString &prefix)
Definition: mythevent.cpp:37
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39
hardwareprofile.distros.mythtv_data.data_mythtv.prefix
string prefix
Definition: data_mythtv.py:40
MythEvent::MythUserMessage
static Type MythUserMessage
Definition: mythevent.h:80
tmp
static guint32 * tmp
Definition: goom_core.cpp:26
MythEvent::kExitToMainMenuEventType
static Type kExitToMainMenuEventType
Definition: mythevent.h:82
MythEvent::kUpdateBrowseInfoEventType
static Type kUpdateBrowseInfoEventType
Definition: mythevent.h:88
mythlogging.h
MythEvent::kUpdateTvProgressEventType
static Type kUpdateTvProgressEventType
Definition: mythevent.h:81
MythEvent::kDisableUDPListenerEventType
static Type kDisableUDPListenerEventType
Definition: mythevent.h:89
MythEvent::kUnlockInputDevicesEventType
static Type kUnlockInputDevicesEventType
Definition: mythevent.h:87
MythEvent::kMythPostShowEventType
static Type kMythPostShowEventType
Definition: mythevent.h:83
ExternalKeycodeEvent::kEventType
static Type kEventType
Definition: mythevent.h:113
MythEvent::m_message
QString m_message
Definition: mythevent.h:101
MythEvent::~MythEvent
~MythEvent() override
Definition: mythevent.cpp:33
MythEvent::kEnableUDPListenerEventType
static Type kEnableUDPListenerEventType
Definition: mythevent.h:90