|
玉兔远程控制 0.1.0-bate4
|
用户名与验证方式。此类仅在插件内有效。它的界面是 CParameterUserUI 更多...
#include <ParameterUser.h>


Public 类型 | |
| enum class | TYPE { None , OnlyPassword , UserPassword , PublicKey , OnlyPasswordX509None , OnlyPasswordX509 , UserPasswordX509None , UserPasswordX509 } |
Public 成员函数 | |
| CParameterUser (CParameterOperate *parent, const QString &szPrefix=QString()) | |
| QList< TYPE > | GetType () const |
| int | SetType (QList< TYPE > type) |
| TYPE | GetUsedType () const |
| int | SetUsedType (TYPE type) |
| const QString | GetUser () const |
| void | SetUser (const QString &szUser) |
| const QString | GetPassword () const |
| void | SetPassword (const QString &szPassword) |
| const bool | GetSavePassword () const |
| void | SetSavePassword (bool save) |
| Set save password | |
| bool | GetUseSystemFile () const |
| [Initialize parameter after set CParameterPlugin] | |
| int | SetUseSystemFile (bool use) |
| QString | GetPublicKeyFile () const |
| int | SetPublicKeyFile (const QString szFile) |
| QString | GetPrivateKeyFile () const |
| int | SetPrivateKeyFile (const QString szFile) |
| QString | GetPassphrase () const |
| int | SetPassphrase (const QString passphrase) |
| bool | GetSavePassphrase () const |
| int | SetSavePassphrase (bool bSave) |
| QString | GetCAFile () const |
| int | SetCAFile (const QString &ca) |
| QString | GetCRLFile () const |
| int | SetCRLFile (const QString &crl) |
| int | SetTypeName (TYPE t, const QString &szName) |
| QString | ConvertTypeToName (TYPE t) |
Public 成员函数 继承自 CParameterOperate | |
| CParameterOperate (QObject *parent=nullptr, const QString &szPrefix=QString()) | |
| CParameterPlugin * | GetGlobalParameters () |
| Get CParameterPlugin | |
| int | SetGlobalParameters (CParameterPlugin *p) |
| const QString | GetName () const |
| void | SetName (const QString &szName) |
| int | LoadPassword (const QString &szTitle, const QString &szKey, QString &password, QSettings &set) |
| int | SavePassword (const QString &szKey, const QString &password, QSettings &set, bool bSave=false) |
Public 成员函数 继承自 CParameter | |
| CParameter (QObject *parent=nullptr, const QString &szPrefix=QString()) | |
| virtual int | Load (QString szFile=QString()) |
| Load from file | |
| virtual int | Save (QString szFile=QString(), bool bForce=true) |
| Save to file | |
| virtual int | Load (QSettings &set) |
| Load from QSettings | |
| virtual int | Save (QSettings &set, bool bForce=true) |
| Save to QSettings | |
| virtual bool | CheckValidity () |
| 检查参数是否有效,以决定是否使用或者保存参数。 派生类一般只要重载 OnCheckValidity() ,用于检查参数。 | |
Protected 槽 | |
| virtual void | slotSetGlobalParameters () override |
| Initialize this parameter based on the global parameter | |
Protected 槽 继承自 CParameterOperate | |
| virtual void | slotSetGlobalParameters () |
| 设置 CParameterPlugin 后调用,用于初始化与 CParameterPlugin 有关的操作。 | |
Protected 成员函数 | |
| virtual int | OnLoad (QSettings &set) override |
| virtual int | OnSave (QSettings &set) override |
Protected 成员函数 继承自 CParameterOperate | |
| QByteArray | PasswordSum (const std::string &password, const std::string &key) |
Protected 成员函数 继承自 CParameter | |
| virtual bool | OnCheckValidity () |
| 检查参数是否有效 | |
| int | SetModified (bool bModified=true) |
| 在设置参数时,如果有修改,则调用。 | |
| bool | GetModified () |
| 参数是否有修改 | |
Private 槽 | |
| void | slotLoadPassword () |
| void | slotLoadPassPhrase () |
Private 属性 | |
| QList< TYPE > | m_Type |
| TYPE | m_UsedType |
| QString | m_szUser |
| QString | m_szPassword |
| bool | m_bSavePassword |
| bool | m_bUseSystemFile |
| QString | m_szPublicKeyFile |
| QString | m_szPrivateKeyFile |
| QString | m_szPassphrase |
| bool | m_bSavePassphrase |
| QString | m_szCAFile |
| QString | m_szCRLFile |
| QMap< TYPE, QString > | m_TypeName |
额外继承的成员函数 | |
信号 继承自 CParameterOperate | |
| void | sigSetGlobalParameters () |
| 仅由此类使用 | |
| void | sigNameChanged (const QString &name=QString()) |
信号 继承自 CParameter | |
| void | sigChanged () |
| 当参数改变时,触发 通常如果需要,则相应的参数会对应一个改变事件。 | |
属性 继承自 CParameter | |
| bool | Modified |
用户名与验证方式。此类仅在插件内有效。它的界面是 CParameterUserUI
在文件 ParameterUser.h 第 22 行定义.
|
strong |
| 枚举值 | |
|---|---|
| OnlyPasswordX509None | Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile |
在文件 ParameterUser.h 第 30 行定义.
|
explicit |
在文件 ParameterUser.cpp 第 19 行定义.
| QString CParameterUser::ConvertTypeToName | ( | TYPE | t | ) |
在文件 ParameterUser.cpp 第 396 行定义.
| QString CParameterUser::GetCAFile | ( | ) | const |
在文件 ParameterUser.cpp 第 368 行定义.
| QString CParameterUser::GetCRLFile | ( | ) | const |
在文件 ParameterUser.cpp 第 382 行定义.
| QString CParameterUser::GetPassphrase | ( | ) | const |
在文件 ParameterUser.cpp 第 312 行定义.
| const QString CParameterUser::GetPassword | ( | ) | const |
在文件 ParameterUser.cpp 第 249 行定义.
| QString CParameterUser::GetPrivateKeyFile | ( | ) | const |
在文件 ParameterUser.cpp 第 354 行定义.
| QString CParameterUser::GetPublicKeyFile | ( | ) | const |
在文件 ParameterUser.cpp 第 340 行定义.
| bool CParameterUser::GetSavePassphrase | ( | ) | const |
在文件 ParameterUser.cpp 第 326 行定义.
| const bool CParameterUser::GetSavePassword | ( | ) | const |
在文件 ParameterUser.cpp 第 262 行定义.
| QList< CParameterUser::TYPE > CParameterUser::GetType | ( | ) | const |
在文件 ParameterUser.cpp 第 208 行定义.
| CParameterUser::TYPE CParameterUser::GetUsedType | ( | ) | const |
在文件 ParameterUser.cpp 第 222 行定义.
| const QString CParameterUser::GetUser | ( | ) | const |
在文件 ParameterUser.cpp 第 236 行定义.
| bool CParameterUser::GetUseSystemFile | ( | ) | const |
[Initialize parameter after set CParameterPlugin]
Get use system file
在文件 ParameterUser.cpp 第 298 行定义.
|
overrideprotectedvirtual |
重载 CParameterOperate .
在文件 ParameterUser.cpp 第 38 行定义.
|
overrideprotectedvirtual |
重载 CParameterOperate .
在文件 ParameterUser.cpp 第 123 行定义.
| int CParameterUser::SetCAFile | ( | const QString & | ca | ) |
在文件 ParameterUser.cpp 第 373 行定义.
| int CParameterUser::SetCRLFile | ( | const QString & | crl | ) |
在文件 ParameterUser.cpp 第 387 行定义.
| int CParameterUser::SetPassphrase | ( | const QString | passphrase | ) |
在文件 ParameterUser.cpp 第 317 行定义.
| void CParameterUser::SetPassword | ( | const QString & | szPassword | ) |
在文件 ParameterUser.cpp 第 254 行定义.
| int CParameterUser::SetPrivateKeyFile | ( | const QString | szFile | ) |
在文件 ParameterUser.cpp 第 359 行定义.
| int CParameterUser::SetPublicKeyFile | ( | const QString | szFile | ) |
在文件 ParameterUser.cpp 第 345 行定义.
| int CParameterUser::SetSavePassphrase | ( | bool | bSave | ) |
在文件 ParameterUser.cpp 第 331 行定义.
| void CParameterUser::SetSavePassword | ( | bool | save | ) |
| int CParameterUser::SetType | ( | QList< TYPE > | type | ) |
在文件 ParameterUser.cpp 第 213 行定义.
| int CParameterUser::SetTypeName | ( | TYPE | t, |
| const QString & | szName | ||
| ) |
在文件 ParameterUser.cpp 第 401 行定义.
| int CParameterUser::SetUsedType | ( | TYPE | type | ) |
在文件 ParameterUser.cpp 第 227 行定义.
| void CParameterUser::SetUser | ( | const QString & | szUser | ) |
在文件 ParameterUser.cpp 第 241 行定义.
| int CParameterUser::SetUseSystemFile | ( | bool | use | ) |
在文件 ParameterUser.cpp 第 303 行定义.
|
privateslot |
在文件 ParameterUser.cpp 第 423 行定义.
|
privateslot |
在文件 ParameterUser.cpp 第 407 行定义.
|
overrideprotectedvirtualslot |
Initialize this parameter based on the global parameter
[Initialize parameter after set CParameterPlugin]
在文件 ParameterUser.cpp 第 276 行定义.
|
private |
在文件 ParameterUser.h 第 118 行定义.
|
private |
在文件 ParameterUser.h 第 111 行定义.
|
private |
在文件 ParameterUser.h 第 114 行定义.
|
private |
在文件 ParameterUser.h 第 120 行定义.
|
private |
在文件 ParameterUser.h 第 121 行定义.
|
private |
在文件 ParameterUser.h 第 117 行定义.
|
private |
在文件 ParameterUser.h 第 110 行定义.
|
private |
在文件 ParameterUser.h 第 116 行定义.
|
private |
在文件 ParameterUser.h 第 115 行定义.
|
private |
在文件 ParameterUser.h 第 107 行定义.
|
private |
在文件 ParameterUser.h 第 104 行定义.
|
private |
在文件 ParameterUser.h 第 123 行定义.
|
private |
在文件 ParameterUser.h 第 105 行定义.