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
qwindowssessionmanager.h
Go to the documentation of this file.
1// Copyright (C) 2013 Samuel Gaist <samuel.gaist@edeltech.ch>
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 QWINDOWSSESSIONMANAGER_H
6#define QWINDOWSSESSIONMANAGER_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
20
22{
23public:
24 explicit QWindowsSessionManager(const QString &id, const QString &key);
25
26 bool allowsInteraction() override;
27 bool allowsErrorInteraction() override;
28
29 void blocksInteraction() { m_blockUserInput = true; }
30 bool isInteractionBlocked() const { return m_blockUserInput; }
31
32 void release() override;
33
34 void cancel() override;
35 void clearCancellation() { m_canceled = false; }
36 bool wasCanceled() const { return m_canceled; }
37
38 void setActive(bool active) { m_isActive = active; }
39 bool isActive() const { return m_isActive;}
40
41private:
42 bool m_isActive = false;
43 bool m_blockUserInput = false;
44 bool m_canceled = false;
45
46 Q_DISABLE_COPY_MOVE(QWindowsSessionManager)
47};
48
50
51#endif // QWINDOWSSESSIONMANAGER_H
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QWindowsSessionManager(const QString &id, const QString &key)
Combined button and popup list for selecting options.
GLuint64 key