Debian Codegraph @

xcb/libqt5xcbqpa-dev/5.5.0/qxcbsessionmanager.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 //
3 // SPDX-License-Identifier: 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 QT_BEGIN_NAMESPACE
20
21 class QEventLoop;
22
23 class QXcbSessionManager : public QPlatformSessionManager
24 {
25 public:
26 QXcbSessionManager(const QString &id, const QString &key);
27 virtual ~QXcbSessionManager();
28
29 void *handle() const;
30
31 void setSessionId(const QString &id) { m_sessionId = id; }
32 void setSessionKey(const QString &key) { m_sessionKey = key; }
33
34 bool allowsInteraction() Q_DECL_OVERRIDE;
35 bool allowsErrorInteraction() Q_DECL_OVERRIDE;
36 void release() Q_DECL_OVERRIDE;
37
38 void cancel() Q_DECL_OVERRIDE;
39
40 void setManagerProperty(const QString &name, const QString &value) Q_DECL_OVERRIDE;
41 void setManagerProperty(const QString &name, const QStringList &value) Q_DECL_OVERRIDE;
42
43 bool isPhase2() const Q_DECL_OVERRIDE;
44 void requestPhase2() Q_DECL_OVERRIDE;
45
46 void exitEventLoop();
47
48 private:
49 QEventLoop *m_eventLoop;
50
51 Q_DISABLE_COPY(QXcbSessionManager)
52 };
53
54 QT_END_NAMESPACE
55
56 #endif //QXCBSESSIONMANAGER_H