7#include "dtklogin_global.h"
25 HandlePowerKey = 1 << 3,
26 HandleSuspendKey = 1 << 4,
27 HandleHibernateKey = 1 << 5,
28 HandleLidSwitch = 1 << 6
62 friend QDebug operator<<(QDebug debug,
const Inhibitor &inhibitor);
96QDebug operator<<(QDebug debug,
const ShutdownType &type);
97QDebug operator<<(QDebug debug,
const ScheduledShutdownValue &scheduledShutdown);
98QDebug operator<<(QDebug debug,
const PowerAction &action);
99QDebug operator<<(QDebug debug,
const ExecuteStatus &status);
100QDebug operator<<(QDebug debug,
const SessionRole &role);
101QDebug operator<<(QDebug debug,
const InhibitMode &mode);
102QDebug operator<<(QDebug debug,
const SessionState &state);
103QDebug operator<<(QDebug debug,
const SessionType &type);
104QDebug operator<<(QDebug debug,
const SessionClass &sessionClass);
105QDebug operator<<(QDebug debug,
const UserState &userState);
109Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::ShutdownType)
110Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::ScheduledShutdownValue)
111Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::PowerAction)
112Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::ExecuteStatus)
113Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::SessionRole)
114Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::InhibitMode)
115Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::SessionState)
116Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::SessionType)
117Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::SessionClass)
118Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::UserState)
119Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::Inhibitor)
ExecuteStatus
是否可以执行当前动作
Definition: dlogintypes.h:46
PowerAction
定义关机键的动作
Definition: dlogintypes.h:31
ShutdownType
定义关机类型
Definition: dlogintypes.h:14
SessionClass
会话类别
Definition: dlogintypes.h:51
InhibitMode
抑制锁的类型
Definition: dlogintypes.h:48
InhibitBehavior
定义抑制锁行为
Definition: dlogintypes.h:21
UserState
用户状态
Definition: dlogintypes.h:52
SessionType
会话类型
Definition: dlogintypes.h:50
SessionRole
指定进程对象
Definition: dlogintypes.h:47
SessionState
会话状态
Definition: dlogintypes.h:49
一个结构数组
Definition: dlogintypes.h:55
QString who
Definition: dlogintypes.h:57
InhibitMode mode
Definition: dlogintypes.h:59
int what
Definition: dlogintypes.h:56
quint32 UID
Definition: dlogintypes.h:60
quint32 PID
Definition: dlogintypes.h:61
QString why
Definition: dlogintypes.h:58
定义定时关机所用数据结构
Definition: dlogintypes.h:16
QDateTime time
Definition: dlogintypes.h:18
ShutdownType type
Definition: dlogintypes.h:17