Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant reason:default
5
6#pragma once
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; }
34 void setSessionKey(const QString &key) { m_sessionKey = key; }
35
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;
47
48 void exitEventLoop();
49
50private:
51 QEventLoop *m_eventLoop;
52};
53
54QT_END_NAMESPACE
55
56#endif //QT_NO_SESSIONMANAGER
@ Atom_KDE_NET_WM_APPMENU_SERVICE_NAME
Definition qxcbatom.h:216
@ Atom_KDE_NET_WM_APPMENU_OBJECT_PATH
Definition qxcbatom.h:217
xcb_connection_t * xcb_connection() const
Definition qxcbobject.h:20
xcb_atom_t atom(QXcbAtom::Atom atom) const
Definition qxcbobject.h:19
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)
QString portalWindowIdentifier(QWindow *window) override
void unregisterDBusMenuForWindow(QWindow *window) override
void registerDBusMenuForWindow(QWindow *window, const QString &service, const QString &path) override
static const auto xsNetDoubleClickDistance
static QString argv0BaseName()
static const auto xsNetCursorBlink
static const auto xsNetDoubleClickTime
static bool runningUnderDebugger()
static const auto xsNetDndDragThreshold
static const auto xsNetCursorBlinkTime
#define RETURN_VALID_XSETTINGS(key)
static const char resourceNameVar[]