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// Qt-Security score:significant reason:default
4
6
7#ifndef QT_NO_SESSIONMANAGER
8
11
12#include <private/qsessionmanager_p.h>
13#include <private/qguiapplication_p.h>
14
15#include <QtCore/QDebug>
16
18
19namespace QtWaylandClient {
20
22 : QObject(nullptr)
25{
27 return;
28
29 // The protocol also exposes a way of supporting crash handling to expose later
31}
32
37
44
46{
48}
49
51{
53 if (!sessionId().isEmpty()) {
55 }
59}
60
65
67 // There's also remove which is another dtor
68 // depending on whether we're meant to clean up server side or not
69 // we might need to expose that later
70 destroy();
71}
72
77
79 qCDebug(lcQpaWayland) << "Session restored";
80 // session Id won't have change, do nothing
81}
82
87
88}
89
90QT_END_NAMESPACE
91
92#endif
Combined button and popup list for selecting options.