Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
5
6
#
ifndef
QWINDOWSSESSIONMANAGER_H
7
#
define
QWINDOWSSESSIONMANAGER_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is part of the QPA API and is not meant to be used
14
// in applications. Usage of this API may make your code
15
// source and binary incompatible with future versions of Qt.
16
//
17
18
#
include
<
qpa
/
qplatformsessionmanager
.
h
>
19
20
QT_BEGIN_NAMESPACE
21
22
class
QWindowsSessionManager :
public
QPlatformSessionManager
23
{
24
public
:
25
explicit
QWindowsSessionManager(
const
QString &id,
const
QString &key);
26
27
bool
allowsInteraction() override;
28
bool
allowsErrorInteraction() override;
29
30
void
blocksInteraction() { m_blockUserInput =
true
; }
31
bool
isInteractionBlocked()
const
{
return
m_blockUserInput; }
32
33
void
release() override;
34
35
void
cancel() override;
36
void
clearCancellation() { m_canceled =
false
; }
37
bool
wasCanceled()
const
{
return
m_canceled; }
38
39
void
setActive(
bool
active) { m_isActive = active; }
40
bool
isActive()
const
{
return
m_isActive;}
41
42
private
:
43
bool
m_isActive =
false
;
44
bool
m_blockUserInput =
false
;
45
bool
m_canceled =
false
;
46
47
Q_DISABLE_COPY_MOVE(QWindowsSessionManager)
48
};
49
50
QT_END_NAMESPACE
51
52
#
endif
// QWINDOWSSESSIONMANAGER_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
platforms
windows
qwindowssessionmanager.h
Generated on
for Qt by
1.18.0