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
qwaylandintegration_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 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// Qt-Security score:significant reason:default
4
5#ifndef QPLATFORMINTEGRATION_WAYLAND_H
6#define QPLATFORMINTEGRATION_WAYLAND_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtWaylandClient/qtwaylandclientglobal.h>
20#include <qpa/qplatformintegration.h>
21#include <qpa/qplatformopenglcontext.h>
22#include <QtCore/QMutex>
23#include <QtCore/private/qglobal_p.h>
24
25#include <memory>
26
28
29namespace QtWaylandClient {
30
31class QWaylandBuffer;
32class QWaylandDisplay;
33class QWaylandClientBufferIntegration;
34class QWaylandServerBufferIntegration;
35class QWaylandShellIntegration;
36class QWaylandInputDeviceIntegration;
37class QWaylandInputDevice;
38class QWaylandScreen;
39class QWaylandCursor;
40class QWaylandPlatformServices;
41class QWaylandSessionManager;
42
43class Q_WAYLANDCLIENT_EXPORT QWaylandIntegration : public QPlatformIntegration
44#if QT_CONFIG(opengl)
46#endif
47{
48public:
51
53
54 bool init();
55
58#if QT_CONFIG(opengl)
62#endif
64
66 void initialize() override;
67
69
71#if QT_CONFIG(clipboard)
73#endif
74#if QT_CONFIG(draganddrop)
76#endif
78
80
81#if QT_CONFIG(accessibility)
83#endif
84
86
87 QWaylandDisplay *display() const;
88
90
91 QList<int> possibleKeys(const QKeyEvent *event) const override;
92
94
96
97#if QT_CONFIG(vulkan)
99#endif
100
102 void beep() const override;
103
107
111
113
114protected:
115 // NOTE: mDisplay *must* be destructed after mDrag and mClientBufferIntegration
116 // and mShellIntegration.
117 // Do not move this definition into the private section at the bottom.
119
120protected:
121 void reset();
123
128
130
131private:
132 void initializePlatform();
138#ifndef QT_NO_SESSIONMANAGER
140#endif
141
144#if QT_CONFIG(clipboard)
146#endif
147#if QT_CONFIG(draganddrop)
149#endif
151#if QT_CONFIG(accessibility)
153#endif
158 bool mShellIntegrationInitialized = false;
159
161
162 friend class QWaylandDisplay;
163};
164
165}
166
167QT_END_NAMESPACE
168
169#endif
Combined button and popup list for selecting options.
Q_LOGGING_CATEGORY(lcQpaWayland, "qt.qpa.wayland")