Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QQNXBUTTONSEVENTNOTIFIER_H
5#define QQNXBUTTONSEVENTNOTIFIER_H
6
7#include <QObject>
8#include <QtCore/QLoggingCategory>
9
11
12Q_DECLARE_LOGGING_CATEGORY(lcQpaInputHwButton);
13
14class QSocketNotifier;
15
17{
20public:
28
33
34 explicit QQnxButtonEventNotifier(QObject *parent = nullptr);
36
37public Q_SLOTS:
38 void start();
39
40private Q_SLOTS:
41 void updateButtonStates();
42
43private:
44 void close();
45 bool parsePPS(const QByteArray &ppsData, QHash<QByteArray, QByteArray> *messageFields) const;
46
47 int m_fd;
48 QSocketNotifier *m_readNotifier;
49 ButtonState m_state[ButtonCount];
50 QList<QByteArray> m_buttonKeys;
51
52 static const char *ppsPath;
53 static const size_t ppsBufferSize;
54};
55
57
58#endif // QQNXBUTTONSEVENTNOTIFIER_H
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
QQnxButtonEventNotifier(QObject *parent=nullptr)
\inmodule QtCore
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
#define Q_OBJECT
#define Q_SLOTS
#define Q_ENUMS(x)