Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qplatformsessionmanager.cpp
Go to the documentation of this file.
1// Copyright (C) 2013 Samuel Gaist <samuel.gaist@edeltech.ch>
2// Copyright (C) 2013 Teo Mrnjavac <teo@kde.org>
3// Copyright (C) 2016 The Qt Company Ltd.
4// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
5
7
8#include "qguiapplication_p.h"
9
10#ifndef QT_NO_SESSIONMANAGER
11
13
15 : m_sessionId(id),
16 m_sessionKey(key),
17 m_restartHint(QSessionManager::RestartIfRunning)
18{
19}
20
24
29
34
36{
37 return false;
38}
39
44
48
52
57
62
64{
65 m_restartCommand = command;
66}
67
69{
70 return m_restartCommand;
71}
72
74{
75 m_discardCommand = command;
76}
77
79{
80 return m_discardCommand;
81}
82
88
94
96{
97 return false;
98}
99
103
105{
106 qGuiApp->d_func()->commitData();
107}
108
110{
111 qGuiApp->d_func()->saveState();
112}
113
115
116#endif // QT_NO_SESSIONMANAGER
virtual QString sessionId() const
virtual void setManagerProperty(const QString &name, const QString &value)
virtual void setDiscardCommand(const QStringList &command)
virtual QSessionManager::RestartHint restartHint() const
virtual void setRestartCommand(const QStringList &command)
virtual QString sessionKey() const
virtual QStringList discardCommand() const
QPlatformSessionManager(const QString &id, const QString &key)
virtual void setRestartHint(QSessionManager::RestartHint restartHint)
virtual QStringList restartCommand() const
The QSessionManager class provides access to the session manager.
RestartHint
This enum type defines the circumstances under which this application wants to be restarted by the se...
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define qGuiApp
GLuint64 key
GLenum GLuint id
[7]
GLuint name
#define Q_UNUSED(x)