| DtkSystemSettings
                             dtk library for systemsettings. | 
用户属性相关信息的封装类 更多...
#include <daccountsuser.h>


| Public 槽 | |
| DExpected< void > | setAutomaticLogin (const bool enabled) | 
| 设置当前用户是否使用自动登录 | |
| DExpected< void > | setFullName (const QString &newfullname) | 
| 设置DAccountsUser指向的用户的全名 | |
| DExpected< void > | setGroups (const QStringList &newgroups) | 
| 设置DAccountsUser指向的用户所属的组 | |
| DExpected< void > | setLayoutList (const QList< QByteArray > &newlayouts) | 
| 设置DAccountsUser指向的用户的布局列表 | |
| DExpected< void > | setHomeDir (const QString &newhomedir) | 
| 设置DAccountsUser指向的用户的家目录 | |
| DExpected< void > | setIconFile (const QUrl &newiconURL) | 
| 设置DAccountsUser指向的用户的图标 | |
| DExpected< void > | setLayout (const QByteArray &newlayout) | 
| 设置DAccountsUser指向的用户的布局信息 | |
| DExpected< void > | setLocale (const QByteArray &newlocale) | 
| 设置DAccountsUser指向的用户的本地化信息 | |
| DExpected< void > | setLocked (const bool locked) | 
| 设置是否锁定当前用户 | |
| DExpected< void > | setMaxPasswordAge (const int newndays) | 
| 设置DAccountsUser指向的用户的最大密码过期时间 | |
| DExpected< void > | setPassword (const QByteArray &newpassword) | 
| 设置DAccountsUser指向的用户的密码 | |
| DExpected< void > | setPasswordHint (const QString &newpasswordhint) | 
| 设置DAccountsUser指向的用户的密码提示 | |
| DExpected< void > | setShell (const QString &newshellpath) | 
| 设置DAccountsUser指向的用户的shell | |
| DExpected< void > | setNopasswdLogin (const bool enabled) | 
| 设置DAccountsUser指向的用户是否能无密码登录 | |
| DExpected< void > | addGroup (const QString &group) | 
| 把DAccountsUser指向的用户加入某个用户组 | |
| DExpected< void > | deleteGroup (const QString &group) | 
| 把DAccountsUser指向的用户从某个用户组中移除 | |
| DExpected< void > | deleteIconFile (const QUrl &iconURL) | 
| 将DAccountsUser指向的用户的某个图标删除 | |
| DExpected< bool > | isPasswordExpired () const | 
| 判断DAccountsUser指向的用户的密码是否过期 | |
| DExpected< AccountsReminderInfo > | getReminderInfo () const | 
| 获取DAccountsUser指向的用户的一些信息 | |
| DExpected< AccountsPasswdExpirInfo > | passwordExpirationInfo (qint64 &dayLeft) const | 
| 获取DAccountsUser指向的用户的密码过期信息 | |
| 信号 | |
| void | automaticLoginChanged (const bool enabled) | 
| 属性automaticLogin发生变化时触发该信号 | |
| void | groupsChanged (const QStringList &list) | 
| 属性groups发生变化时触发该信号 | |
| void | layoutListChanged (const QList< QByteArray > &list) | 
| 属性layoutList发生变化时触发该信号 | |
| void | iconFileListChanged (const QList< QByteArray > &list) | 
| 属性iconFileList发生变化时触发该信号 | |
| void | iconFileChanged (const QUrl &url) | 
| 属性iconFile发生变化时触发该信号 | |
| void | layoutChanged (const QByteArray &layout) | 
| 属性layout发生变化时触发该信号 | |
| void | localeChanged (const QByteArray &locale) | 
| 属性locale发生变化时触发该信号 | |
| void | lockedChanged (const bool locked) | 
| 属性locked发生变化时触发该信号 | |
| void | maxPasswordAgeChanged (const qint32 age) | 
| 属性maxPasswordAge发生变化时触发该信号 | |
| void | passwordHintChanged (const QString &hint) | 
| 属性passwordHint发生变化时触发该信号 | |
| void | noPasswdLoginChanged (const bool enabled) | 
| 属性noPasswdLogin发生变化时触发该信号 | |
| void | userDataChanged () | 
| Public 成员函数 | |
| AccountTypes | accountType () const | 
| 获取当前用户的用户类型 | |
| bool | automaticLogin () const | 
| 判断当前用户是否启用了自动登录 | |
| QString | fullName () const | 
| 获取当前用户的全名 | |
| quint64 | GID () const | 
| 获取DAccountsUser指向用户的组id | |
| quint64 | UID () const | 
| 获取DAccountsUser指向用户的用户id | |
| QStringList | groups () const | 
| 获取DAccountsUser指向用户所在的组 | |
| QList< QByteArray > | layoutList () const | 
| 获取DAccountsUser指向用户的用户布局信息 | |
| QString | homeDir () const | 
| 获取DAccountsUser指向用户的家目录 | |
| QList< QByteArray > | iconFileList () const | 
| 获取DAccountsUser指向用户的图标列表 | |
| QByteArray | iconFile () const | 
| 获取DAccountsUser指向用户的当前的图标 | |
| QByteArray | layout () const | 
| 获取DAccountsUser指向用户的当前布局 | |
| QByteArray | locale () const | 
| 获取DAccountsUser指向用户的本地化信息 | |
| bool | locked () const | 
| 判断当前用户账户是否锁定 | |
| qint32 | maxPasswordAge () const | 
| 获取DAccountsUser指向用户的最大密码过期时间 | |
| QString | passwordHint () const | 
| 获取DAccountsUser指向用户的密码提示 | |
| QDateTime | passwordLastChange () const | 
| 获取DAccountsUser指向用户的最后一次更改密码的时间 | |
| PasswdStatus | passwordStatus () const | 
| 获取DAccountsUser指向用户的密码状态 | |
| QString | shell () const | 
| 获取DAccountsUser指向用户的shell | |
| QByteArray | UUID () const | 
| 获取DAccountsUser指向用户的UUID | |
| QByteArray | userName () const | 
| 获取DAccountsUser指向用户的用户名 | |
| bool | noPasswdLogin () const | 
| 获取DAccountsUser指向用户是否设置了无密码登录 | |
| QDateTime | loginTime () const | 
| 最近一次的登录时间 | |
| QDateTime | createdTime () const | 
| ~/.bash_logout或配置文件的ctime | |
| 属性 | |
| AccountTypes | accountType | 
| 用户类型 | |
| bool | automaticLogin | 
| 是否可以自动登录 | |
| QString | fullName | 
| 用户的全名 | |
| quint64 | GID | 
| 用户的组id | |
| quint64 | UID | 
| 用户的用户id | |
| QStringList | groups | 
| 用户所在的组 | |
| QList< QByteArray > | layoutList | 
| 用户的键盘布局列表 | |
| QString | homeDir | 
| 用户的家目录 | |
| QList< QByteArray > | iconFileList | 
| 用户的图标文件路径的列表 | |
| QUrl | iconFile | 
| 用户当前的图标的路径 | |
| QByteArray | layout | 
| 用户的当前的键盘布局 | |
| QByteArray | locale | 
| 用户当前的本地化选项 | |
| bool | locked | 
| 是否锁定用户 | |
| qint32 | maxPasswordAge | 
| 密码最大的过期时间时间 | |
| QString | passwordHint | 
| 密码提示 | |
| QDateTime | passwordLastChange | 
| 密码最后一次更改的时间 | |
| PasswdStatus | passwordStatus | 
| 密码的状态 | |
| QString | shell | 
| 用户的shell路径 | |
| QByteArray | UUID | 
| 用户唯一的UUID | |
| QByteArray | userName | 
| 用户名 | |
| bool | noPasswdLogin | 
| 是否可以无密码登录 | |
| QDateTime | loginTime | 
| 用户的登录时间 | |
| QDateTime | createdTime | 
| 用户的~/.bash_logout或配置文件的ctime | |
| 友元 | |
| class | DAccountsManager | 
用户属性相关信息的封装类
| AccountType DAccountsUser::accountType | ( | ) | const | 
获取当前用户的用户类型
| 
 | slot | 
把DAccountsUser指向的用户加入某个用户组
| [in] | group | 用户组的组名 | 
| bool DAccountsUser::automaticLogin | ( | ) | const | 
判断当前用户是否启用了自动登录
| true | 已激活 | 
| false | 没有激活 | 
| 
 | signal | 
属性automaticLogin发生变化时触发该信号
| [in] | enabled | 是否启用 | 
| QDateTime DAccountsUser::createdTime | ( | ) | const | 
~/.bash_logout或配置文件的ctime
| 
 | slot | 
把DAccountsUser指向的用户从某个用户组中移除
| [in] | group | 用户组的组名 | 
| 
 | slot | 
将DAccountsUser指向的用户的某个图标删除
| [in] | iconURL | 代表待删除图标路径的QUrl对象 | 
| QString DAccountsUser::fullName | ( | ) | const | 
获取当前用户的全名
| 
 | slot | 
获取DAccountsUser指向的用户的一些信息
| quint64 DAccountsUser::GID | ( | ) | const | 
获取DAccountsUser指向用户的组id
| QStringList DAccountsUser::groups | ( | ) | const | 
获取DAccountsUser指向用户所在的组
| 
 | signal | 
属性groups发生变化时触发该信号
| [in] | list | 变更的列表 | 
| QString DAccountsUser::homeDir | ( | ) | const | 
获取DAccountsUser指向用户的家目录
| QString DAccountsUser::iconFile | ( | ) | const | 
获取DAccountsUser指向用户的当前的图标
| 
 | signal | 
属性iconFile发生变化时触发该信号
| [in] | url | 变更的路径 | 
| QList< QByteArray > DAccountsUser::iconFileList | ( | ) | const | 
获取DAccountsUser指向用户的图标列表
| 
 | signal | 
属性iconFileList发生变化时触发该信号
| [in] | list | 变更的列表 | 
| 
 | slot | 
判断DAccountsUser指向的用户的密码是否过期
| true | 密码已过期 | 
| false | 密码没有过期 | 
| QByteArray DAccountsUser::layout | ( | ) | const | 
获取DAccountsUser指向用户的当前布局
| 
 | signal | 
属性layout发生变化时触发该信号
| [in] | layout | 变更的布局 | 
| QList< QByteArray > DAccountsUser::layoutList | ( | ) | const | 
获取DAccountsUser指向用户的用户布局信息
| 
 | signal | 
属性layoutList发生变化时触发该信号
| [in] | list | 变更的列表 | 
| QByteArray DAccountsUser::locale | ( | ) | const | 
获取DAccountsUser指向用户的本地化信息
| 
 | signal | 
属性locale发生变化时触发该信号
| [in] | locale | 变更的本地化 | 
| bool DAccountsUser::locked | ( | ) | const | 
判断当前用户账户是否锁定
| true | 已被锁定 | 
| false | 没有被锁定 | 
| 
 | signal | 
属性locked发生变化时触发该信号
| [in] | locked | 是否锁定 | 
| QDateTime DAccountsUser::loginTime | ( | ) | const | 
最近一次的登录时间
| qint32 DAccountsUser::maxPasswordAge | ( | ) | const | 
获取DAccountsUser指向用户的最大密码过期时间
| 
 | signal | 
属性maxPasswordAge发生变化时触发该信号
| [in] | age | 变更的密码最大过期时间 | 
| bool DAccountsUser::noPasswdLogin | ( | ) | const | 
获取DAccountsUser指向用户是否设置了无密码登录
| true | 可以无密码登录 | 
| false | 不能无密码登录 | 
| 
 | signal | 
属性noPasswdLogin发生变化时触发该信号
| [in] | enabled | 是否启用 | 
| 
 | slot | 
获取DAccountsUser指向的用户的密码过期信息
| [out] | dayLeft | 还剩多少天密码过期 | 
| QString DAccountsUser::passwordHint | ( | ) | const | 
获取DAccountsUser指向用户的密码提示
| 
 | signal | 
属性passwordHint发生变化时触发该信号
| [in] | hint | 变更的密码提示 | 
| QDateTime DAccountsUser::passwordLastChange | ( | ) | const | 
获取DAccountsUser指向用户的最后一次更改密码的时间
| PasswdStatus DAccountsUser::passwordStatus | ( | ) | const | 
获取DAccountsUser指向用户的密码状态
| 
 | slot | 
设置当前用户是否使用自动登录
| [in] | enabled | 代表是否开启自动登录的布尔值 | 
| 
 | slot | 
设置DAccountsUser指向的用户的全名
| [in] | newfullname | 表示用户全名的字符串 | 
| 
 | slot | 
设置DAccountsUser指向的用户所属的组
| [in] | newgroups | 由用户组组名组成的列表 | 
| 
 | slot | 
设置DAccountsUser指向的用户的家目录
| [in] | newhomedir | 代表家目录路径的字符串 | 
| 
 | slot | 
设置DAccountsUser指向的用户的图标
| [in] | newiconURL | 代表用户想要当做图标的png文件的QUrl对象 | 
| 
 | slot | 
设置DAccountsUser指向的用户的布局信息
| [in] | newlayout | 代表新的布局信息的字符串 | 
| 
 | slot | 
设置DAccountsUser指向的用户的布局列表
| [in] | newlayouts | 由布局信息组成的列表 | 
| 
 | slot | 
设置DAccountsUser指向的用户的本地化信息
| [in] | newlocale | 代表新的本地化信息的字符串 | 
| 
 | slot | 
设置是否锁定当前用户
| [in] | locked | 代表是否锁定用户的布尔值 | 
| 
 | slot | 
设置DAccountsUser指向的用户的最大密码过期时间
| [in] | newndays | 代表新的最大过期时间 | 
| 
 | slot | 
设置DAccountsUser指向的用户是否能无密码登录
| [in] | enabled | 代表是否激活的布尔值 | 
| 
 | slot | 
设置DAccountsUser指向的用户的密码
| [in] | newpassword | 代表用户新密码的字符串 | 
| 
 | slot | 
设置DAccountsUser指向的用户的密码提示
| [in] | newpasswordhint | 代表密码提示的字符串 | 
| 
 | slot | 
设置DAccountsUser指向的用户的shell
| [in] | newshellpath | 代表shell路径的字符串 | 
| QString DAccountsUser::shell | ( | ) | const | 
获取DAccountsUser指向用户的shell
| quint64 DAccountsUser::UID | ( | ) | const | 
获取DAccountsUser指向用户的用户id
| QByteArray DAccountsUser::userName | ( | ) | const | 
获取DAccountsUser指向用户的用户名
| QByteArray DAccountsUser::UUID | ( | ) | const | 
获取DAccountsUser指向用户的UUID