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
qxcbsessionmanager.h
Go to the documentation of this file.
1// Copyright (C) 2013 Teo Mrnjavac <teo@kde.org>
2// Copyright (C) 2016 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QXCBSESSIONMANAGER_H
6#define QXCBSESSIONMANAGER_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is part of the QPA API and is not meant to be used
13// in applications. Usage of this API may make your code
14// source and binary incompatible with future versions of Qt.
15//
16
17#include <qpa/qplatformsessionmanager.h>
18
19#ifndef QT_NO_SESSIONMANAGER
20
22
23class QEventLoop;
24
26{
27public:
28 QXcbSessionManager(const QString &id, const QString &key);
29 virtual ~QXcbSessionManager();
30
31 void *handle() const;
32
33 void setSessionId(const QString &id) { m_sessionId = id; }
35
36 bool allowsInteraction() override;
37 bool allowsErrorInteraction() override;
38 void release() override;
39
40 void cancel() override;
41
42 void setManagerProperty(const QString &name, const QString &value) override;
43 void setManagerProperty(const QString &name, const QStringList &value) override;
44
45 bool isPhase2() const override;
46 void requestPhase2() override;
47
48 void exitEventLoop();
49
50private:
51 QEventLoop *m_eventLoop;
52};
53
55
56#endif //QT_NO_SESSIONMANAGER
57
58#endif //QXCBSESSIONMANAGER_H
\inmodule QtCore
Definition qeventloop.h:16
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
void setSessionKey(const QString &key)
QXcbSessionManager(const QString &id, const QString &key)
void requestPhase2() override
bool isPhase2() const override
void setManagerProperty(const QString &name, const QString &value) override
bool allowsInteraction() override
bool allowsErrorInteraction() override
void setSessionId(const QString &id)
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint64 key
GLenum GLuint id
[7]
GLuint name