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
qqnxnavigatoreventnotifier.h
Go to the documentation of this file.
1// Copyright (C) 2011 - 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 QQNXNAVIGATOREVENTNOTIFIER_H
5#define QQNXNAVIGATOREVENTNOTIFIER_H
6
7#include <QObject>
8
10
12class QSocketNotifier;
13
15{
17public:
18 explicit QQnxNavigatorEventNotifier(QQnxNavigatorEventHandler *eventHandler, QObject *parent = nullptr);
20
21public Q_SLOTS:
22 void start();
23
24private Q_SLOTS:
25 void readData();
26
27private:
28 void parsePPS(const QByteArray &ppsData, QByteArray &msg, QByteArray &dat, QByteArray &id);
29 void replyPPS(const QByteArray &res, const QByteArray &id, const QByteArray &dat);
30 void handleMessage(const QByteArray &msg, const QByteArray &dat, const QByteArray &id);
31
32 int m_fd;
33 QSocketNotifier *m_readNotifier;
34 QQnxNavigatorEventHandler *m_eventHandler;
35
36 static const char *navigatorControlPath;
37 static const size_t ppsBufferSize;
38};
39
41
42#endif // QQNXNAVIGATOREVENTNOTIFIER_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
QQnxNavigatorEventNotifier(QQnxNavigatorEventHandler *eventHandler, QObject *parent=nullptr)
\inmodule QtCore
Combined button and popup list for selecting options.
GLuint res
#define Q_OBJECT
#define Q_SLOTS