Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qplatformsessionmanager.h
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
#
ifndef
QPLATFORMSESSIONMANAGER_H
8
#
define
QPLATFORMSESSIONMANAGER_H
9
10
//
11
// W A R N I N G
12
// -------------
13
//
14
// This file is part of the QPA API and is not meant to be used
15
// in applications. Usage of this API may make your code
16
// source and binary incompatible with future versions of Qt.
17
//
18
19
#
include
<
QtGui
/
qtguiglobal
.
h
>
20
#
include
<
QtCore
/
qmetatype
.
h
>
21
#
include
<
QtCore
/
qnamespace
.
h
>
22
23
#
include
<
QtGui
/
qsessionmanager
.
h
>
24
25
#
ifndef
QT_NO_SESSIONMANAGER
26
27
QT_BEGIN_NAMESPACE
28
29
class
Q_GUI_EXPORT
QPlatformSessionManager
30
{
31
public
:
32
Q_DISABLE_COPY_MOVE(QPlatformSessionManager)
33
34
explicit
QPlatformSessionManager(
const
QString &id,
const
QString &key);
35
virtual
~QPlatformSessionManager();
36
37
virtual
QString sessionId()
const
;
38
virtual
QString sessionKey()
const
;
39
40
virtual
bool
allowsInteraction();
41
virtual
bool
allowsErrorInteraction();
42
virtual
void
release();
43
44
virtual
void
cancel();
45
46
virtual
void
setRestartHint(QSessionManager::RestartHint restartHint);
47
virtual
QSessionManager::RestartHint restartHint()
const
;
48
49
virtual
void
setRestartCommand(
const
QStringList &command);
50
virtual
QStringList restartCommand()
const
;
51
virtual
void
setDiscardCommand(
const
QStringList &command);
52
virtual
QStringList discardCommand()
const
;
53
54
virtual
void
setManagerProperty(
const
QString &name,
const
QString &value);
55
virtual
void
setManagerProperty(
const
QString &name,
const
QStringList &value);
56
57
virtual
bool
isPhase2()
const
;
58
virtual
void
requestPhase2();
59
60
void
appCommitData();
61
void
appSaveState();
62
63
protected
:
64
QString m_sessionId;
65
QString m_sessionKey;
66
67
private
:
68
QStringList m_restartCommand;
69
QStringList m_discardCommand;
70
QSessionManager::RestartHint m_restartHint;
71
};
72
73
QT_END_NAMESPACE
74
75
#
endif
// QT_NO_SESSIONMANAGER
76
77
#
endif
// QPLATFORMSESSIONMANAGER_H
QPlatformSessionManager
Definition
qplatformsessionmanager.h:30
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
gui
kernel
qplatformsessionmanager.h
Generated on
for Qt by
1.18.0