21class QWindowsSessionManager :
public QPlatformSessionManager
24 explicit QWindowsSessionManager(
const QString &id,
const QString &key);
26 bool allowsInteraction() override;
27 bool allowsErrorInteraction() override;
29 void blocksInteraction() { m_blockUserInput =
true; }
30 bool isInteractionBlocked()
const {
return m_blockUserInput; }
32 void release() override;
34 void cancel() override;
35 void clearCancellation() { m_canceled =
false; }
36 bool wasCanceled()
const {
return m_canceled; }
38 void setActive(
bool active) { m_isActive = active; }
39 bool isActive()
const {
return m_isActive;}
42 bool m_isActive =
false;
43 bool m_blockUserInput =
false;
44 bool m_canceled =
false;
46 Q_DISABLE_COPY_MOVE(QWindowsSessionManager)