DtkSystemSettings  1.0.3
dtk library for systemsettings.
dlogintypes.h 文件参考
#include "dtklogin_global.h"
#include <qobject.h>
#include <qvariant.h>
#include <qdatetime.h>
dlogintypes.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

struct  Dtk::Login::ScheduledShutdownValue
 定义定时关机所用数据结构 更多...
 
struct  Dtk::Login::Inhibitor
 一个结构数组 更多...
 

枚举

enum class  Dtk::Login::ShutdownType {
  PowerOff , DryPowerOff , Reboot , DryReboot ,
  Halt , DryHalt , Unknown
}
 定义关机类型 更多...
 
enum  Dtk::Login::InhibitBehavior {
  Shutdown = 1 << 0 , Sleep = 1 << 1 , Idle = 1 << 2 , HandlePowerKey = 1 << 3 ,
  HandleSuspendKey = 1 << 4 , HandleHibernateKey = 1 << 5 , HandleLidSwitch = 1 << 6
}
 定义抑制锁行为
 
enum class  Dtk::Login::PowerAction {
  PowerOff , Reboot , Halt , KExec ,
  Suspend , Hibernate , HybridSleep , SuspendThenHibernate ,
  Lock , FactoryReset , Ignore , Unknown
}
 定义关机键的动作 更多...
 
enum class  Dtk::Login::ExecuteStatus {
  Yes , No , Challenge , Na ,
  Unknown
}
 是否可以执行当前动作 更多...
 
enum class  Dtk::Login::SessionRole { Leader , All , Unknown }
 指定进程对象 更多...
 
enum class  Dtk::Login::InhibitMode { Block , Delay , Unknown }
 抑制锁的类型 更多...
 
enum class  Dtk::Login::SessionState { Online , Active , Closing , Unknown }
 会话状态 更多...
 
enum class  Dtk::Login::SessionType {
  TTY , X11 , Mir , Wayland ,
  Unspecified
}
 会话类型 更多...
 
enum class  Dtk::Login::SessionClass { User , Greeter , LockScreen , Unknown }
 会话类别 更多...
 
enum class  Dtk::Login::UserState {
  Offline , Lingering , Online , Active ,
  Closing , Unknown
}
 用户状态 更多...
 
enum  DLoginErrorCode {
  NoError = 0 , Other = 1 , Failed , NoMemory ,
  ServiceUnknown , NoReply , BadAddress , NotSupported ,
  LimitsExceeded , AccessDenied , NoServer , Timeout ,
  NoNetwork , AddressInUse , Disconnected , InvalidArgs ,
  UnknownMethod , TimedOut , InvalidSignature , UnknownInterface ,
  UnknownObject , UnknownProperty , PropertyReadOnly , InternalError ,
  InvalidService , InvalidObjectPath , InvalidInterface , InvalidMember
}
 

函数

QDebug Dtk::Login::operator<< (QDebug debug, const ShutdownType &type)
 
QDebug Dtk::Login::operator<< (QDebug debug, const ScheduledShutdownValue &scheduledShutdown)
 
QDebug Dtk::Login::operator<< (QDebug debug, const PowerAction &action)
 
QDebug Dtk::Login::operator<< (QDebug debug, const ExecuteStatus &status)
 
QDebug Dtk::Login::operator<< (QDebug debug, const SessionRole &role)
 
QDebug Dtk::Login::operator<< (QDebug debug, const InhibitMode &mode)
 
QDebug Dtk::Login::operator<< (QDebug debug, const SessionState &state)
 
QDebug Dtk::Login::operator<< (QDebug debug, const SessionType &type)
 
QDebug Dtk::Login::operator<< (QDebug debug, const SessionClass &sessionClass)
 
QDebug Dtk::Login::operator<< (QDebug debug, const UserState &userState)
 

详细描述

dlogintypes.h 中定义了login组件需要使用到的一些自定义数据结构。

枚举类型说明

◆ ExecuteStatus

enum class Dtk::Login::ExecuteStatus
strong

是否可以执行当前动作

枚举值
Yes 

可以

No 

硬件支持但用户不可以

Challenge 

鉴权后可以

Na 

硬件不支持

Unknown 

未知

◆ InhibitMode

enum class Dtk::Login::InhibitMode
strong

抑制锁的类型

枚举值
Block 

完全禁止操作,直到锁被释放。

Delay 

只是暂时禁止操作, 直到锁被释放或达到一定的时间。DLoginManager::inhibitDelayMaxUSec获取超时时间。这旨在提供需要在系统挂起之前以同步方式执行操作但不允许无限期阻止挂起的应用程序使用。此模式仅适用于睡眠和关机的锁定。

参见
DLoginManager::inhibitDelayMaxUSec
Unknown 

未知

◆ PowerAction

enum class Dtk::Login::PowerAction
strong

定义关机键的动作

枚举值
PowerOff 

关机

Reboot 

重启

Halt 

关机不关闭电源

KExec 

加载新内核

Suspend 

待机

Hibernate 

休眠

HybridSleep 

混合睡眠

SuspendThenHibernate 

先待机后休眠

Lock 

锁屏

FactoryReset 

还原设置

Ignore 

忽略

Unknown 

未知

◆ SessionClass

enum class Dtk::Login::SessionClass
strong

会话类别

枚举值
User 

由用户创建

Greeter 

由登录界面创建

LockScreen 

由锁屏程序创建

Unknown 

未知

◆ SessionRole

enum class Dtk::Login::SessionRole
strong

指定进程对象

枚举值
Leader 

父进程

All 

所有进程

Unknown 

未知

◆ SessionState

enum class Dtk::Login::SessionState
strong

会话状态

枚举值
Online 

在线

Active 

已激活

Closing 

关闭中

Unknown 

未知

◆ SessionType

enum class Dtk::Login::SessionType
strong

会话类型

枚举值
TTY 

TTY环境

X11 

X11环境

Mir 

Mir环境

Wayland 

Wayland环境

Unspecified 

未知的环境

◆ ShutdownType

enum class Dtk::Login::ShutdownType
strong

定义关机类型

dlogintypes.h

枚举值
PowerOff 

关机

DryPowerOff 

实际并不执行关机

Reboot 

重启

DryReboot 

实际并不执行重启

Halt 

关机不关闭电源

DryHalt 

实际并不执行关机

Unknown 

未知操作

◆ UserState

enum class Dtk::Login::UserState
strong

用户状态

枚举值
Offline 

离线

Lingering 

滞留中

Online 

在线

Active 

已激活

Closing 

关闭中

Unknown 

未知