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
qoutputmapping_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 QOUTPUTMAPPING_P_H
5#define QOUTPUTMAPPING_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 <QString>
19#include <QHash>
20#include <private/qglobal_p.h>
21
23
24class QWindow;
25
27{
28public:
29 virtual ~QOutputMapping() {}
30
31 static QOutputMapping *get();
32 virtual bool load();
33 virtual QString screenNameForDeviceNode(const QString &deviceNode);
34
35#ifdef Q_OS_WEBOS
37 static void set(QOutputMapping *mapping);
38#endif
39};
40
42{
43public:
44 bool load() override;
45 QString screenNameForDeviceNode(const QString &deviceNode) override;
46
47private:
48 QHash<QString, QString> m_screenTable;
49};
50
51QT_END_NAMESPACE
52
53#endif // QOUTPUTMAPPING_P_H
QString screenNameForDeviceNode(const QString &deviceNode) override
QEvdevKeyboardHandler(const QString &device, QFdContainer &fd, bool disableZap, bool enableCompose, const QString &keymapFile)
QKeycodeAction processKeycode(quint16 keycode, bool pressed, bool autorepeat)
static std::unique_ptr< QEvdevKeyboardHandler > create(const QString &device, const QString &specification, const QString &defaultKeymapFile=QString())
bool loadKeymap(const QString &file)
virtual ~QOutputMapping()
static QOutputMapping * get()
virtual QString screenNameForDeviceNode(const QString &deviceNode)
virtual bool load()
Definition qcompare.h:76
@ Key_Tab
Definition qnamespace.h:681
@ Key_Right
Definition qnamespace.h:696
@ Key_PageUp
Definition qnamespace.h:698
@ Key_Backtab
Definition qnamespace.h:682
@ Key_Insert
Definition qnamespace.h:686
@ Key_Left
Definition qnamespace.h:694
@ Key_Up
Definition qnamespace.h:695
@ Key_Down
Definition qnamespace.h:697
@ Key_Delete
Definition qnamespace.h:687
@ Key_Multi_key
Definition qnamespace.h:757
@ Key_ScrollLock
Definition qnamespace.h:706
@ Key_PageDown
Definition qnamespace.h:699
@ Key_Home
Definition qnamespace.h:692
@ Key_Clear
Definition qnamespace.h:691
@ Key_CapsLock
Definition qnamespace.h:704
@ Key_unknown
@ Key_End
Definition qnamespace.h:693
@ ShiftModifier
@ ControlModifier
@ MetaModifier
@ KeypadModifier
@ AltModifier
#define input_event_usec
#define input_event_sec
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
#define EV_KEY