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
4#ifndef QPLATFORMINTEGRATION_WAYLAND_H
5#define QPLATFORMINTEGRATION_WAYLAND_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 <QtWaylandClient/qtwaylandclientglobal.h>
19#include <qpa/qplatformintegration.h>
20#include <qpa/qplatformopenglcontext.h>
21#include <QtCore/QScopedPointer>
22#include <QtCore/QMutex>
23#include <QtCore/private/qglobal_p.h>
24
26
27namespace QtWaylandClient {
28
29class QWaylandBuffer;
30class QWaylandDisplay;
31class QWaylandClientBufferIntegration;
32class QWaylandServerBufferIntegration;
33class QWaylandShellIntegration;
34class QWaylandInputDeviceIntegration;
35class QWaylandInputDevice;
36class QWaylandScreen;
37class QWaylandCursor;
38class QWaylandPlatformServices;
39class QWaylandSessionManager;
40
41class Q_WAYLANDCLIENT_EXPORT QWaylandIntegration : public QPlatformIntegration
42#if QT_CONFIG(opengl)
44#endif
45{
46public:
49
51
52 bool init();
53
56#if QT_CONFIG(opengl)
60#endif
62
64 void initialize() override;
65
67
69#if QT_CONFIG(clipboard)
71#endif
72#if QT_CONFIG(draganddrop)
74#endif
76
78
79#if QT_CONFIG(accessibility)
81#endif
82
84
85 QWaylandDisplay *display() const;
86
88
89 QList<int> possibleKeys(const QKeyEvent *event) const override;
90
92
94
95#if QT_CONFIG(vulkan)
97#endif
98
100 void beep() const override;
101
105
109
111
112protected:
113 // NOTE: mDisplay *must* be destructed after mDrag and mClientBufferIntegration
114 // and mShellIntegration.
115 // Do not move this definition into the private section at the bottom.
117
118protected:
119 void reset();
121
126
128
129private:
130 void initializePlatform();
136#ifndef QT_NO_SESSIONMANAGER
138#endif
139
142#if QT_CONFIG(clipboard)
144#endif
145#if QT_CONFIG(draganddrop)
147#endif
149#if QT_CONFIG(accessibility)
151#endif
156 bool mShellIntegrationInitialized = false;
157
159
160 friend class QWaylandDisplay;
161};
162
163}
164
165QT_END_NAMESPACE
166
167#endif
Q_LOGGING_CATEGORY(lcQpaWayland, "qt.qpa.wayland")