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
12
14
15class QSocketNotifier;
16
18{
20public:
28 Q_ENUM(ButtonId)
29
34
35 explicit QQnxButtonEventNotifier(QObject *parent = nullptr);
37
38public Q_SLOTS:
39 void start();
40
41private Q_SLOTS:
42 void updateButtonStates();
43
44private:
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
57QT_END_NAMESPACE
58
59#endif // QQNXBUTTONSEVENTNOTIFIER_H
QQnxButtonEventNotifier(QObject *parent=nullptr)
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)