blob: 487ebeba65128bf221fea1c942a7d43f9e0d59a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2013 Samuel Gaist <samuel.gaist@edeltech.ch>
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qwindowssessionmanager.h"
QT_BEGIN_NAMESPACE
QWindowsSessionManager::QWindowsSessionManager(const QString &id, const QString &key)
: QPlatformSessionManager(id, key)
{
}
bool QWindowsSessionManager::allowsInteraction()
{
m_blockUserInput = false;
return true;
}
bool QWindowsSessionManager::allowsErrorInteraction()
{
m_blockUserInput = false;
return true;
}
void QWindowsSessionManager::release()
{
if (m_isActive)
m_blockUserInput = true;
}
void QWindowsSessionManager::cancel()
{
m_canceled = true;
}
QT_END_NAMESPACE
|