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.h
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 QCOCOASESSIONMANAGER_H
5#define QCOCOASESSIONMANAGER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is part of the QPA API and is not meant to be used
12// in applications. Usage of this API may make your code
13// source and binary incompatible with future versions of Qt.
14//
15
16#ifndef QT_NO_SESSIONMANAGER
17
18#include <qpa/qplatformsessionmanager.h>
19
21
23{
24public:
25 QCocoaSessionManager(const QString &id, const QString &key);
26 virtual ~QCocoaSessionManager();
27
28 bool allowsInteraction() override;
29 void cancel() override;
30 void resetCancellation();
31 bool wasCanceled() const;
32
34
35private:
36 bool m_canceled;
37
38 Q_DISABLE_COPY(QCocoaSessionManager)
39};
40
42
43#endif // QT_NO_SESSIONMANAGER
44
45#endif // QCOCOASESSIONMANAGER_H
static QCocoaSessionManager * instance()
QCocoaSessionManager(const QString &id, const QString &key)
bool allowsInteraction() override
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint64 key