MythTV  master
lircevent.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 
3 #ifndef LIRCEVENT_H_
4 #define LIRCEVENT_H_
5 
6 #include <utility>
7 
8 // Qt headers
9 #include <QEvent>
10 #include <QString>
11 
12 class LircKeycodeEvent : public QEvent
13 {
14  public:
15  LircKeycodeEvent(Type keytype, int key, Qt::KeyboardModifiers mod,
16  QString text, QString lirc_text) :
17  QEvent(kEventType),
19  m_text(std::move(text)), m_lirctext(std::move(lirc_text)) {}
20 
21  Type keytype(void) const { return m_keytype; }
22  int key(void) const { return m_key; }
23  Qt::KeyboardModifiers modifiers(void) const { return m_modifiers; }
24  QString text(void) const { return m_text; }
25  QString lirctext(void) const { return m_lirctext; }
26 
27  static Type kEventType;
28 
29  static const unsigned kLIRCInvalidKeyCombo = 0xFFFFFFFF;
30 
31  private:
32  Type m_keytype;
33  int m_key;
34  Qt::KeyboardModifiers m_modifiers;
35  QString m_text;
36  QString m_lirctext;
37 };
38 
39 #endif
LircKeycodeEvent(Type keytype, int key, Qt::KeyboardModifiers mod, QString text, QString lirc_text)
Definition: lircevent.h:15
QString lirctext(void) const
Definition: lircevent.h:25
static const unsigned kLIRCInvalidKeyCombo
Definition: lircevent.h:29
QString m_text
Definition: lircevent.h:35
static Type kEventType
Definition: lircevent.h:27
Qt::KeyboardModifiers modifiers(void) const
Definition: lircevent.h:23
Type keytype(void) const
Definition: lircevent.h:21
int key(void) const
Definition: lircevent.h:22
QString text(void) const
Definition: lircevent.h:24
Qt::KeyboardModifiers m_modifiers
Definition: lircevent.h:34
QString m_lirctext
Definition: lircevent.h:36