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 <QEvent>
7 #include <QString>
8 
9 class LircKeycodeEvent : public QEvent
10 {
11  public:
12  LircKeycodeEvent(Type keytype, int key, Qt::KeyboardModifiers mod,
13  const QString &text, const QString &lirc_text) :
14  QEvent(kEventType),
16  m_text(text), m_lirctext(lirc_text) {}
17 
18  Type keytype(void) const { return m_keytype; }
19  int key(void) const { return m_key; }
20  Qt::KeyboardModifiers modifiers(void) const { return m_modifiers; }
21  QString text(void) const { return m_text; }
22  QString lirctext(void) const { return m_lirctext; }
23 
24  static Type kEventType;
25 
26  static const unsigned kLIRCInvalidKeyCombo = 0xFFFFFFFF;
27 
28  private:
29  Type m_keytype;
30  int m_key;
31  Qt::KeyboardModifiers m_modifiers;
32  QString m_text;
33  QString m_lirctext;
34 };
35 
36 #endif
QString lirctext(void) const
Definition: lircevent.h:22
static const unsigned kLIRCInvalidKeyCombo
Definition: lircevent.h:26
QString m_text
Definition: lircevent.h:32
static Type kEventType
Definition: lircevent.h:24
Qt::KeyboardModifiers modifiers(void) const
Definition: lircevent.h:20
Type keytype(void) const
Definition: lircevent.h:18
int key(void) const
Definition: lircevent.h:19
QString text(void) const
Definition: lircevent.h:21
Qt::KeyboardModifiers m_modifiers
Definition: lircevent.h:31
LircKeycodeEvent(Type keytype, int key, Qt::KeyboardModifiers mod, const QString &text, const QString &lirc_text)
Definition: lircevent.h:12
QString m_lirctext
Definition: lircevent.h:33