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
qcocoasessionmanager.cpp
Go to the documentation of this file.
1// Copyright (C) 2019 Samuel Gaist <samuel.gaist@idiap.ch>
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 QT_NO_SESSIONMANAGER
5#include <private/qsessionmanager_p.h>
6#include <private/qguiapplication_p.h>
7
9#include <qstring.h>
10
12
18
22
24{
25 return false;
26}
27
29{
30 m_canceled = false;
31}
32
34{
35 m_canceled = true;
36}
37
39{
40 return m_canceled;
41}
42
44{
45 auto *qGuiAppPriv = QGuiApplicationPrivate::instance();
46 auto *managerPrivate = static_cast<QSessionManagerPrivate*>(QObjectPrivate::get(qGuiAppPriv->session_manager));
47 return static_cast<QCocoaSessionManager *>(managerPrivate->platformSessionManager);
48}
49
51
52#endif // QT_NO_SESSIONMANAGER
static QCocoaSessionManager * instance()
QCocoaSessionManager(const QString &id, const QString &key)
bool allowsInteraction() override
static QGuiApplicationPrivate * instance()
static QObjectPrivate * get(QObject *o)
Definition qobject_p.h:150
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint64 key
GLenum GLuint id
[7]