4#ifndef QSESSIONMANAGER_H
5#define QSESSIONMANAGER_H
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>
13#ifndef QT_NO_SESSIONMANAGER
20class QSessionManagerPrivate;
25 Q_DECLARE_PRIVATE(QSessionManager)
26 QSessionManager(QGuiApplication *app, QString &id, QString &key);
29 QString sessionId()
const;
30 QString sessionKey()
const;
32 bool allowsInteraction();
33 bool allowsErrorInteraction();
44 void setRestartHint(RestartHint);
45 RestartHint restartHint()
const;
47 void setRestartCommand(
const QStringList&);
48 QStringList restartCommand()
const;
49 void setDiscardCommand(
const QStringList&);
50 QStringList discardCommand()
const;
52 void setManagerProperty(
const QString& name,
const QString& value);
53 void setManagerProperty(
const QString& name,
const QStringList& value);
55 bool isPhase2()
const;
59 friend class QGuiApplication;
60 friend class QGuiApplicationPrivate;
The QClipboard class provides access to the window system clipboard.
\inmodule QtCore\reentrant
The QIcon class provides scalable icons in different modes and states.
The QPalette class contains color groups for each widget state.
QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus,...
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
The QSessionManager class provides access to the session manager.
The QStyleHints class contains platform specific hints and settings. \inmodule QtGui.
Q_STATIC_LOGGING_CATEGORY(lcAccessibilityCore, "qt.accessibility.core")
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
static bool needsWindowBlockedEvent(const QWindow *w)
Q_CORE_EXPORT void qt_call_post_routines()
static void init_plugins(const QList< QByteArray > &pluginList)
static void initFontUnlocked()
static void clearFontUnlocked()
void qRegisterGuiVariant()
static Q_CONSTINIT unsigned applicationResourceFlags
static Q_CONSTINIT int touchDoubleTapDistance
static QWindowGeometrySpecification windowGeometrySpecification
static bool qt_detectRTLLanguage()
static bool checkNeedPortalSupport()
Q_CONSTINIT Q_GUI_EXPORT bool qt_is_tty_app
static Q_CONSTINIT bool force_reverse
static Q_CONSTINIT int mouseDoubleClickDistance
#define Q_WINDOW_GEOMETRY_SPECIFICATION_INITIALIZER
static void init_platform(const QString &pluginNamesWithArguments, const QString &platformPluginPath, const QString &platformThemeName, int &argc, char **argv)
static void initThemeHints()
static int nextGeometryToken(const QByteArray &a, int &pos, char *op)
#define CHECK_QAPP_INSTANCE(...)
@ ApplicationFontExplicitlySet
static void updateBlockedStatusRecursion(QWindow *window, bool shouldBeBlocked)
QDebug Q_GUI_EXPORT & operator<<(QDebug &s, const QVectorPath &path)
void applyTo(QWindow *window) const
static QWindowGeometrySpecification fromArgument(const QByteArray &a)