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.cpp
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
5
6#ifndef QT_NO_SESSIONMANAGER
7
10
11#include <private/qsessionmanager_p.h>
12#include <private/qguiapplication_p.h>
13
14#include <QtCore/QDebug>
15
17
18namespace QtWaylandClient {
19
21 : QObject(nullptr)
24{
26 return;
27
28 // The protocol also exposes a way of supporting crash handling to expose later
30}
31
36
43
45{
47}
48
50{
52 if (!sessionId().isEmpty()) {
54 }
58}
59
64
66 // There's also remove which is another dtor
67 // depending on whether we're meant to clean up server side or not
68 // we might need to expose that later
69 destroy();
70}
71
76
78 qCDebug(lcQpaWayland) << "Session restored";
79 // session Id won't have change, do nothing
80}
81
86
87}
88
89QT_END_NAMESPACE
90
91#endif