7#include "dtklogin_global.h"
27 HandlePowerKey = 1 << 3,
28 HandleSuspendKey = 1 << 4,
29 HandleHibernateKey = 1 << 5,
30 HandleLidSwitch = 1 << 6
64 friend QDebug operator<<(QDebug debug,
const Inhibitor &inhibitor);
101QDebug operator<<(QDebug debug,
const ShutdownType &type);
102QDebug operator<<(QDebug debug,
const ScheduledShutdownValue &scheduledShutdown);
103QDebug operator<<(QDebug debug,
const PowerAction &action);
104QDebug operator<<(QDebug debug,
const ExecuteStatus &status);
105QDebug operator<<(QDebug debug,
const SessionRole &role);
106QDebug operator<<(QDebug debug,
const InhibitMode &mode);
107QDebug operator<<(QDebug debug,
const SessionState &state);
108QDebug operator<<(QDebug debug,
const SessionType &type);
109QDebug operator<<(QDebug debug,
const SessionClass &sessionClass);
110QDebug operator<<(QDebug debug,
const UserState &userState);
114Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::ShutdownType)
115Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::ScheduledShutdownValue)
116Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::PowerAction)
117Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::ExecuteStatus)
118Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::SessionRole)
119Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::InhibitMode)
120Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::SessionState)
121Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::SessionType)
122Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::SessionClass)
123Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::UserState)
124Q_DECLARE_METATYPE(DTK_LOGIN_NAMESPACE::Inhibitor)
ExecuteStatus
是否可以执行当前动作
Definition dlogintypes.h:48
PowerAction
定义关机键的动作
Definition dlogintypes.h:33
ShutdownType
定义关机类型
Definition dlogintypes.h:15
SessionClass
会话类别
Definition dlogintypes.h:53
InhibitMode
抑制锁的类型
Definition dlogintypes.h:50
InhibitBehavior
定义抑制锁行为
Definition dlogintypes.h:23
UserState
用户状态
Definition dlogintypes.h:54
SessionType
会话类型
Definition dlogintypes.h:52
SessionRole
指定进程对象
Definition dlogintypes.h:49
SessionState
会话状态
Definition dlogintypes.h:51
一个结构数组
Definition dlogintypes.h:57
QString who
Definition dlogintypes.h:59
InhibitMode mode
Definition dlogintypes.h:61
int what
Definition dlogintypes.h:58
quint32 UID
Definition dlogintypes.h:62
quint32 PID
Definition dlogintypes.h:63
QString why
Definition dlogintypes.h:60
定义定时关机所用数据结构
Definition dlogintypes.h:18
QDateTime time
Definition dlogintypes.h:20
ShutdownType type
Definition dlogintypes.h:19