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
qwaylandsessionmanager_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 David Edmundson <davidedmundson@kde.org>
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 QWAYLANDSESSIONMANAGER_H
6#define QWAYLANDSESSIONMANAGER_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 <QtGui/qtgui-config.h>
20
21#ifndef QT_NO_SESSIONMANAGER
22
23#include <QtGui/qpa/qplatformsessionmanager.h>
24#include <QtWaylandClient/qtwaylandclientglobal.h>
25#include <QtWaylandClient/private/qwayland-xx-session-management-v1.h>
26
27#include <memory>
28
30
31namespace QtWaylandClient {
32
33class QWaylandDisplay;
34class QWaylandWindow;
35class QWaylandSession;
36class QWaylandSessionManager;
37
38
39class Q_WAYLANDCLIENT_EXPORT QWaylandSession : public QObject, public QtWayland::xx_session_v1
40{
42public:
45
46protected:
50private:
52};
53
54class Q_WAYLANDCLIENT_EXPORT QWaylandSessionManager : public QObject, public QPlatformSessionManager
55{
57public:
60
61 QWaylandSession* session() const;
62private:
63 void setSessionId(const QString &id);
64 void startSession();
65
66 QWaylandDisplay *mDisplay = nullptr;
68 friend class QWaylandSession;
69};
70
71}
72
73QT_END_NAMESPACE
74
75#endif
76#endif
void setIcon(const QIcon &icon, ::xdg_toplevel *window)
QWaylandXdgToplevelIconManagerV1(QWaylandDisplay *display, wl_registry *registry, uint32_t id, int version)
Combined button and popup list for selecting options.
static QtWayland::xdg_positioner::anchor anchorFromEdge(Qt::Edges edges)
static QtWayland::xdg_positioner::gravity gravityFromEdge(Qt::Edges edges)