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