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 const 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::key
int key(void) const
Definition: lircevent.h:22
LircKeycodeEvent::text
QString text(void) const
Definition: lircevent.h:24
LircKeycodeEvent::kEventType
static const Type kEventType
Definition: lircevent.h:27
LircKeycodeEvent::m_modifiers
Qt::KeyboardModifiers m_modifiers
Definition: lircevent.h:34
LircKeycodeEvent::LircKeycodeEvent
LircKeycodeEvent(Type keytype, int key, Qt::KeyboardModifiers mod, QString text, QString lirc_text)
Definition: lircevent.h:15
LircKeycodeEvent::m_key
int m_key
Definition: lircevent.h:33
LircKeycodeEvent::m_keytype
Type m_keytype
Definition: lircevent.h:32
LircKeycodeEvent::kLIRCInvalidKeyCombo
static const unsigned kLIRCInvalidKeyCombo
Definition: lircevent.h:29
LircKeycodeEvent::m_lirctext
QString m_lirctext
Definition: lircevent.h:36
LircKeycodeEvent
Definition: lircevent.h:12
LircKeycodeEvent::lirctext
QString lirctext(void) const
Definition: lircevent.h:25
LircKeycodeEvent::m_text
QString m_text
Definition: lircevent.h:35
LircKeycodeEvent::keytype
Type keytype(void) const
Definition: lircevent.h:21
LircKeycodeEvent::modifiers
Qt::KeyboardModifiers modifiers(void) const
Definition: lircevent.h:23