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
qsessionmanager.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSESSIONMANAGER_H
5#define QSESSIONMANAGER_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qobject.h>
9#include <QtGui/qwindowdefs.h>
10#include <QtCore/qstring.h>
11#include <QtCore/qstringlist.h>
12
13#ifndef QT_NO_SESSIONMANAGER
14
16
17
18class QGuiApplication;
19
21
22class Q_GUI_EXPORT QSessionManager : public QObject
23{
25 Q_DECLARE_PRIVATE(QSessionManager)
28public:
29 QString sessionId() const;
30 QString sessionKey() const;
31
32 bool allowsInteraction();
33 bool allowsErrorInteraction();
34 void release();
35
36 void cancel();
37
44 void setRestartHint(RestartHint);
45 RestartHint restartHint() const;
46
47 void setRestartCommand(const QStringList&);
48 QStringList restartCommand() const;
49 void setDiscardCommand(const QStringList&);
50 QStringList discardCommand() const;
51
52 void setManagerProperty(const QString& name, const QString& value);
53 void setManagerProperty(const QString& name, const QStringList& value);
54
55 bool isPhase2() const;
56 void requestPhase2();
57
58private:
59 friend class QGuiApplication;
61};
62
64
65#endif // QT_NO_SESSIONMANAGER
66
67#endif // QSESSIONMANAGER_H
\macro qGuiApp
\inmodule QtCore
Definition qobject.h:103
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]
GLuint64 key
GLuint name
#define Q_OBJECT
future cancel()
sem release()
QApplication app(argc, argv)
[0]