MythTV
master
mythtv
libs
libmythui
devices
jsmenuevent.h
Go to the documentation of this file.
1
// -*- Mode: c++ -*-
2
/*----------------------------------------------------------------------------
3
** jsmenuevent.h
4
** GPL license; Original copyright 2004 Jeremy White <jwhite@whitesen.org>
5
** although this is largely a derivative of lircevent.h
6
**--------------------------------------------------------------------------*/
7
#ifndef JSMENUEVENT_H_
8
#define JSMENUEVENT_H_
9
10
#include <utility>
11
12
// Qt headers
13
#include <QEvent>
14
#include <QString>
15
16
class
JoystickKeycodeEvent
:
public
QEvent
17
{
18
public
:
19
JoystickKeycodeEvent
(
20
QString jsmenuevent_text,
int
key_code,
21
Qt::KeyboardModifiers key_modifiers, QEvent::Type key_action) :
22
QEvent(
kEventType
),
m_jsmenueventtext
(std::move(jsmenuevent_text)),
23
m_key
(key_code),
m_keyModifiers
(key_modifiers),
m_keyAction
(key_action)
24
{
25
}
26
27
QString
getJoystickMenuText
()
const
{
return
m_jsmenueventtext
; }
28
int
key
()
const
{
return
m_key
; }
29
Qt::KeyboardModifiers
keyModifiers
()
const
{
return
m_keyModifiers
; }
30
QEvent::Type
keyAction
()
const
{
return
m_keyAction
; }
31
32
static
const
Type
kEventType
;
33
34
private
:
35
QString
m_jsmenueventtext
;
36
int
m_key
;
37
Qt::KeyboardModifiers
m_keyModifiers
;
38
QEvent::Type
m_keyAction
;
39
};
40
41
#endif
JoystickKeycodeEvent::m_key
int m_key
Definition:
jsmenuevent.h:36
JoystickKeycodeEvent::keyModifiers
Qt::KeyboardModifiers keyModifiers() const
Definition:
jsmenuevent.h:29
JoystickKeycodeEvent
Definition:
jsmenuevent.h:16
JoystickKeycodeEvent::key
int key() const
Definition:
jsmenuevent.h:28
JoystickKeycodeEvent::JoystickKeycodeEvent
JoystickKeycodeEvent(QString jsmenuevent_text, int key_code, Qt::KeyboardModifiers key_modifiers, QEvent::Type key_action)
Definition:
jsmenuevent.h:19
JoystickKeycodeEvent::kEventType
static const Type kEventType
Definition:
jsmenuevent.h:32
JoystickKeycodeEvent::m_keyAction
QEvent::Type m_keyAction
Definition:
jsmenuevent.h:38
JoystickKeycodeEvent::keyAction
QEvent::Type keyAction() const
Definition:
jsmenuevent.h:30
JoystickKeycodeEvent::m_jsmenueventtext
QString m_jsmenueventtext
Definition:
jsmenuevent.h:35
JoystickKeycodeEvent::getJoystickMenuText
QString getJoystickMenuText() const
Definition:
jsmenuevent.h:27
JoystickKeycodeEvent::m_keyModifiers
Qt::KeyboardModifiers m_keyModifiers
Definition:
jsmenuevent.h:37
Generated on Mon Jan 6 2025 03:16:52 for MythTV by
1.8.17