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.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
6
#ifndef QPLATFORMSESSIONMANAGER_H
7
#define QPLATFORMSESSIONMANAGER_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is part of the QPA API and is not meant to be used
14
// in applications. Usage of this API may make your code
15
// source and binary incompatible with future versions of Qt.
16
//
17
18
#include <QtGui/qtguiglobal.h>
19
#include <QtCore/qmetatype.h>
20
#include <QtCore/qnamespace.h>
21
22
#include <QtGui/qsessionmanager.h>
23
24
#ifndef QT_NO_SESSIONMANAGER
25
26
QT_BEGIN_NAMESPACE
27
28
class
Q_GUI_EXPORT
QPlatformSessionManager
29
{
30
public
:
31
Q_DISABLE_COPY_MOVE(
QPlatformSessionManager
)
32
33
explicit
QPlatformSessionManager
(
const
QString
&
id
,
const
QString
&
key
);
34
virtual
~QPlatformSessionManager
();
35
36
virtual
QString
sessionId()
const
;
37
virtual
QString
sessionKey()
const
;
38
39
virtual
bool
allowsInteraction();
40
virtual
bool
allowsErrorInteraction();
41
virtual
void
release
();
42
43
virtual
void
cancel
();
44
45
virtual
void
setRestartHint(
QSessionManager::RestartHint
restartHint);
46
virtual
QSessionManager::RestartHint
restartHint()
const
;
47
48
virtual
void
setRestartCommand(
const
QStringList
&command);
49
virtual
QStringList
restartCommand()
const
;
50
virtual
void
setDiscardCommand(
const
QStringList
&command);
51
virtual
QStringList
discardCommand()
const
;
52
53
virtual
void
setManagerProperty(
const
QString
&
name
,
const
QString
&
value
);
54
virtual
void
setManagerProperty(
const
QString
&
name
,
const
QStringList
&
value
);
55
56
virtual
bool
isPhase2()
const
;
57
virtual
void
requestPhase2();
58
59
void
appCommitData();
60
void
appSaveState();
61
62
protected
:
63
QString
m_sessionId
;
64
QString
m_sessionKey
;
65
66
private
:
67
QStringList
m_restartCommand;
68
QStringList
m_discardCommand;
69
QSessionManager::RestartHint
m_restartHint;
70
};
71
72
QT_END_NAMESPACE
73
74
#endif
// QT_NO_SESSIONMANAGER
75
76
#endif
// QPLATFORMSESSIONMANAGER_H
QPlatformSessionManager
Definition
qplatformsessionmanager.h:29
QPlatformSessionManager::m_sessionKey
QString m_sessionKey
Definition
qplatformsessionmanager.h:64
QPlatformSessionManager::m_sessionId
QString m_sessionId
Definition
qplatformsessionmanager.h:63
QSessionManager::RestartHint
RestartHint
This enum type defines the circumstances under which this application wants to be restarted by the se...
Definition
qsessionmanager.h:38
QStringList
\inmodule QtCore
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
value
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition
qeglstreamconvenience_p.h:46
key
GLuint64 key
Definition
qopengles2ext.h:2268
name
GLuint name
Definition
qopengles2ext.h:156
cancel
future cancel()
release
sem release()
qtbase
src
gui
kernel
qplatformsessionmanager.h
Generated by
1.10.0