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
qevdevtablethandler_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
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 QEVDEVTABLETHANDLER_P_H
5#define QEVDEVTABLETHANDLER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QObject>
19#include <QString>
20#include <QThread>
21#include <QtCore/private/qthread_p.h>
22
24
25class QSocketNotifier;
27
29{
30public:
31 explicit QEvdevTabletHandler(const QString &device, const QString &spec = QString(), QObject *parent = nullptr);
33
34 qint64 deviceId() const;
35
36 void readData();
37
38private:
39 bool queryLimits();
40
41 int m_fd;
42 QString m_device;
43 QSocketNotifier *m_notifier;
45};
46
47class QEvdevTabletHandlerThread : public QDaemonThread
48{
49public:
50 explicit QEvdevTabletHandlerThread(const QString &device, const QString &spec, QObject *parent = nullptr);
52 void run() override;
53 QEvdevTabletHandler *handler() { return m_handler; }
54
55private:
56 QString m_device;
57 QString m_spec;
58 QEvdevTabletHandler *m_handler;
59};
60
62
63#endif // QEVDEVTABLETHANDLER_P_H
IOBluetoothDevice * device
QEvdevTabletHandler * handler()
QEvdevTabletHandlerThread(const QString &device, const QString &spec, QObject *parent=nullptr)
QEvdevTabletHandler(const QString &device, const QString &spec=QString(), QObject *parent=nullptr)
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
long long qint64
Definition qtypes.h:60