Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qlibinputhandler_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
QLIBINPUTHANDLER_P_H
5
#
define
QLIBINPUTHANDLER_P_H
6
7
#
include
<
QtCore
/
QObject
>
8
#
include
<
QtCore
/
QScopedPointer
>
9
#
include
<
QtCore
/
QMap
>
10
#
include
<
QtCore
/
QLoggingCategory
>
11
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
12
13
//
14
// W A R N I N G
15
// -------------
16
//
17
// This file is not part of the Qt API. It exists purely as an
18
// implementation detail. This header file may change from version to
19
// version without notice, or even be removed.
20
//
21
// We mean it.
22
//
23
24
struct
udev;
25
struct
libinput;
26
struct
libinput_event;
27
28
QT_BEGIN_NAMESPACE
29
30
Q_DECLARE_LOGGING_CATEGORY
(
qLcLibInput
)
31
32
class
QSocketNotifier;
33
class
QLibInputPointer;
34
class
QLibInputKeyboard;
35
class
QLibInputTouch
;
36
37
class
QLibInputHandler
:
public
QObject
38
{
39
public
:
40
QLibInputHandler
(
const
QString &key,
const
QString &spec);
41
~
QLibInputHandler
();
42
43
void
onReadyRead
();
44
45
private
:
46
void
processEvent(libinput_event *ev);
47
48
udev *m_udev;
49
libinput *m_li;
50
int
m_liFd;
51
QScopedPointer<QSocketNotifier> m_notifier;
52
QScopedPointer<QLibInputPointer> m_pointer;
53
QScopedPointer<QLibInputKeyboard> m_keyboard;
54
QScopedPointer<QLibInputTouch> m_touch;
55
QMap<
int
,
int
> m_devCount;
56
};
57
58
QT_END_NAMESPACE
59
60
#
endif
QLibInputHandler
Definition
qlibinputhandler_p.h:38
QLibInputHandler::onReadyRead
void onReadyRead()
Definition
qlibinputhandler.cpp:102
QLibInputHandler::~QLibInputHandler
~QLibInputHandler()
Definition
qlibinputhandler.cpp:93
QLibInputHandler::QLibInputHandler
QLibInputHandler(const QString &key, const QString &spec)
Definition
qlibinputhandler.cpp:55
QLibInputTouch
Definition
qlibinputtouch_p.h:31
Q_LOGGING_CATEGORY
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
liClose
static void liClose(int fd, void *user_data)
Definition
qlibinputhandler.cpp:27
liOpen
static QT_BEGIN_NAMESPACE int liOpen(const char *path, int flags, void *user_data)
Definition
qlibinputhandler.cpp:21
liInterface
static const struct libinput_interface liInterface
Definition
qlibinputhandler.cpp:33
liLogHandler
static void liLogHandler(libinput *libinput, libinput_log_priority priority, const char *format, va_list args)
Definition
qlibinputhandler.cpp:38
qtbase
src
platformsupport
input
libinput
qlibinputhandler_p.h
Generated on
for Qt by
1.18.0