22class QWindowsSessionManager :
public QPlatformSessionManager
25 explicit QWindowsSessionManager(
const QString &id,
const QString &key);
27 bool allowsInteraction() override;
28 bool allowsErrorInteraction() override;
30 void blocksInteraction() { m_blockUserInput =
true; }
31 bool isInteractionBlocked()
const {
return m_blockUserInput; }
33 void release() override;
35 void cancel() override;
36 void clearCancellation() { m_canceled =
false; }
37 bool wasCanceled()
const {
return m_canceled; }
39 void setActive(
bool active) { m_isActive = active; }
40 bool isActive()
const {
return m_isActive;}
43 bool m_isActive =
false;
44 bool m_blockUserInput =
false;
45 bool m_canceled =
false;
47 Q_DISABLE_COPY_MOVE(QWindowsSessionManager)