Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxbuttoneventnotifier.h
Go to the documentation of this file.
1
// Copyright (C) 2012 Research In Motion
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQNXBUTTONSEVENTNOTIFIER_H
6
#
define
QQNXBUTTONSEVENTNOTIFIER_H
7
8
#
include
<
QObject
>
9
#
include
<
QtCore
/
QLoggingCategory
>
10
11
QT_BEGIN_NAMESPACE
12
13
Q_DECLARE_LOGGING_CATEGORY
(
lcQpaInputHwButton
);
14
15
class
QSocketNotifier;
16
17
class
QQnxButtonEventNotifier
:
public
QObject
18
{
19
Q_OBJECT
20
public
:
21
enum
ButtonId
{
22
bid_minus
= 0,
23
bid_playpause
,
24
bid_plus
,
25
bid_power
,
26
ButtonCount
27
};
28
Q_ENUM(ButtonId)
29
30
enum
ButtonState
{
31
ButtonUp
,
32
ButtonDown
33
};
34
35
explicit
QQnxButtonEventNotifier
(QObject *parent =
nullptr
);
36
~
QQnxButtonEventNotifier
();
37
38
public
Q_SLOTS
:
39
void
start
();
40
41
private
Q_SLOTS
:
42
void
updateButtonStates
();
43
44
private
:
45
void
close();
46
bool
parsePPS(
const
QByteArray &ppsData, QHash<QByteArray, QByteArray> *messageFields)
const
;
47
48
int
m_fd;
49
QSocketNotifier *m_readNotifier;
50
ButtonState m_state[
ButtonCount
];
51
QList<QByteArray> m_buttonKeys;
52
53
static
const
char
*ppsPath;
54
static
const
size_t ppsBufferSize;
55
};
56
57
QT_END_NAMESPACE
58
59
#
endif
// QQNXBUTTONSEVENTNOTIFIER_H
QQnxButtonEventNotifier
Definition
qqnxbuttoneventnotifier.h:18
QQnxButtonEventNotifier::QQnxButtonEventNotifier
QQnxButtonEventNotifier(QObject *parent=nullptr)
Definition
qqnxbuttoneventnotifier.cpp:24
QQnxButtonEventNotifier::~QQnxButtonEventNotifier
~QQnxButtonEventNotifier()
Definition
qqnxbuttoneventnotifier.cpp:40
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
qtbase
src
plugins
platforms
qnx
qqnxbuttoneventnotifier.h
Generated on
for Qt by
1.16.1