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#ifndef QT_NO_SESSIONMANAGER
20
21#include <QtGui/qpa/qplatformsessionmanager.h>
22#include <QtWaylandClient/qtwaylandclientglobal.h>
23#include <QtWaylandClient/private/qwayland-xx-session-management-v1.h>
24
26
27namespace QtWaylandClient {
28
29class QWaylandDisplay;
30class QWaylandWindow;
31class QWaylandSession;
32class QWaylandSessionManager;
33
34
35class Q_WAYLANDCLIENT_EXPORT QWaylandSession : public QObject, public QtWayland::xx_session_v1
36{
38public:
41
42protected:
46private:
48};
49
50class Q_WAYLANDCLIENT_EXPORT QWaylandSessionManager : public QObject, public QPlatformSessionManager
51{
53public:
56
57 QWaylandSession* session() const;
58private:
59 void setSessionId(const QString &id);
60 void startSession();
61
62 QWaylandDisplay *mDisplay = nullptr;
64 friend class QWaylandSession;
65};
66
67}
68
69QT_END_NAMESPACE
70
71#endif
72#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)