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
4#ifndef QWAYLANDSESSIONMANAGER_H
5#define QWAYLANDSESSIONMANAGER_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#ifndef QT_NO_SESSIONMANAGER
19
20#include <QtGui/qpa/qplatformsessionmanager.h>
21#include <QtWaylandClient/qtwaylandclientglobal.h>
22#include <QtWaylandClient/private/qwayland-xx-session-management-v1.h>
23
25
26namespace QtWaylandClient {
27
28class QWaylandDisplay;
29class QWaylandWindow;
30class QWaylandSession;
31class QWaylandSessionManager;
32
33
34class Q_WAYLANDCLIENT_EXPORT QWaylandSession : public QObject, public QtWayland::xx_session_v1
35{
37public:
40
41protected:
45private:
47};
48
49class Q_WAYLANDCLIENT_EXPORT QWaylandSessionManager : public QObject, public QPlatformSessionManager
50{
52public:
55
56 QWaylandSession* session() const;
57private:
58 void setSessionId(const QString &id);
59 void startSession();
60
61 QWaylandDisplay *mDisplay = nullptr;
63 friend class QWaylandSession;
64};
65
66}
67
68QT_END_NAMESPACE
69
70#endif
71#endif
void setIcon(const QIcon &icon, ::xdg_toplevel *window)
QWaylandXdgToplevelIconManagerV1(QWaylandDisplay *display, wl_registry *registry, uint32_t id, int version)