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
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
6
#
include
"qplatformsessionmanager.h"
7
8
#
include
"qguiapplication_p.h"
9
10
#
ifndef
QT_NO_SESSIONMANAGER
11
12
QT_BEGIN_NAMESPACE
13
14
QPlatformSessionManager::QPlatformSessionManager(
const
QString &id,
const
QString &key)
15
: m_sessionId(id),
16
m_sessionKey(key),
17
m_restartHint(QSessionManager::RestartIfRunning)
18
{
19
}
20
21
QPlatformSessionManager::~QPlatformSessionManager()
22
{
23
}
24
25
QString QPlatformSessionManager::sessionId()
const
26
{
27
return
m_sessionId;
28
}
29
30
QString QPlatformSessionManager::sessionKey()
const
31
{
32
return
m_sessionKey;
33
}
34
35
bool
QPlatformSessionManager::allowsInteraction()
36
{
37
return
false
;
38
}
39
40
bool
QPlatformSessionManager::allowsErrorInteraction()
41
{
42
return
false
;
43
}
44
45
void
QPlatformSessionManager::release()
46
{
47
}
48
49
void
QPlatformSessionManager::cancel()
50
{
51
}
52
53
void
QPlatformSessionManager::setRestartHint(QSessionManager::RestartHint restartHint)
54
{
55
m_restartHint = restartHint;
56
}
57
58
QSessionManager::RestartHint QPlatformSessionManager::restartHint()
const
59
{
60
return
m_restartHint;
61
}
62
63
void
QPlatformSessionManager::setRestartCommand(
const
QStringList &command)
64
{
65
m_restartCommand = command;
66
}
67
68
QStringList QPlatformSessionManager::restartCommand()
const
69
{
70
return
m_restartCommand;
71
}
72
73
void
QPlatformSessionManager::setDiscardCommand(
const
QStringList &command)
74
{
75
m_discardCommand = command;
76
}
77
78
QStringList QPlatformSessionManager::discardCommand()
const
79
{
80
return
m_discardCommand;
81
}
82
83
void
QPlatformSessionManager::setManagerProperty(
const
QString &name,
const
QString &value)
84
{
85
Q_UNUSED(name);
86
Q_UNUSED(value);
87
}
88
89
void
QPlatformSessionManager::setManagerProperty(
const
QString &name,
const
QStringList &value)
90
{
91
Q_UNUSED(name);
92
Q_UNUSED(value);
93
}
94
95
bool
QPlatformSessionManager::isPhase2()
const
96
{
97
return
false
;
98
}
99
100
void
QPlatformSessionManager::requestPhase2()
101
{
102
}
103
104
void
QPlatformSessionManager::appCommitData()
105
{
106
qGuiApp->d_func()->commitData();
107
}
108
109
void
QPlatformSessionManager::appSaveState()
110
{
111
qGuiApp->d_func()->saveState();
112
}
113
114
QT_END_NAMESPACE
115
116
#
endif
// QT_NO_SESSIONMANAGER
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qtbase
src
gui
kernel
qplatformsessionmanager.cpp
Generated on Mon Mar 10 2025 00:41:55 for Qt by
1.13.2