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
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 <QLoggingCategory>
22#include <QtCore/private/qthread_p.h>
23
25
27
28class QSocketNotifier;
30
32{
33public:
34 explicit QEvdevTabletHandler(const QString &device, const QString &spec = QString(), QObject *parent = nullptr);
36
37 qint64 deviceId() const;
38
39 void readData();
40
41private:
42 bool queryLimits();
43
44 int m_fd;
45 QString m_device;
46 QSocketNotifier *m_notifier;
48};
49
51{
52public:
53 explicit QEvdevTabletHandlerThread(const QString &device, const QString &spec, QObject *parent = nullptr);
55 void run() override;
56 QEvdevTabletHandler *handler() { return m_handler; }
57
58private:
59 QString m_device;
60 QString m_spec;
61 QEvdevTabletHandler *m_handler;
62};
63
64QT_END_NAMESPACE
65
66#endif // QEVDEVTABLETHANDLER_P_H
QEvdevTabletHandler * q
void processInputEvent(input_event *ev)
QEvdevTabletData(QEvdevTabletHandler *q_ptr)
QEvdevTabletHandler * handler()
QEvdevTabletHandlerThread(const QString &device, const QString &spec, QObject *parent=nullptr)
QEvdevTabletHandler(const QString &device, const QString &spec=QString(), QObject *parent=nullptr)
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)
#define SYN_REPORT
#define BTN_TOUCH
#define EV_ABS
#define ABS_Y
#define EV_KEY
#define ABS_X
#define EV_SYN