Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
CParameterUser Class Reference

It contains user and password It only valid in plugin. More...

#include <ParameterUser.h>

Inheritance diagram for CParameterUser:
CParameterConnecter CParameter

Public Types

enum class  TYPE {
  None , OnlyPassword , UserPassword , PublicKey ,
  OnlyPasswordX509None , OnlyPasswordX509 , UserPasswordX509None , UserPasswordX509
}
 

Public Member Functions

 CParameterUser (CParameterConnecter *parent, const QString &szPrefix=QString())
 
QList< TYPEGetType () 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 CParameterClient]
 
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 Member Functions inherited from CParameterConnecter
 CParameterConnecter (QObject *parent=nullptr, const QString &szPrefix=QString())
 
CParameterClientGetParameterClient ()
 Get CParameterClient.
 
int SetParameterClient (CParameterClient *p)
 
- Public Member Functions inherited from 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 storage.
 
virtual int Save (QSettings &set, bool bForce=true)
 Save to storage.
 
virtual bool CheckValidity ()
 Check whether the parameter is valid to decide whether to use or save the parameter.
 

Protected Slots

virtual void slotSetParameterClient () override
 [Initialize parameter after set CParameterClient]
 
- Protected Slots inherited from CParameterConnecter
virtual void slotSetParameterClient ()
 Call after set CParameterClient.
 

Protected Member Functions

virtual int OnLoad (QSettings &set) override
 
virtual int OnSave (QSettings &set) override
 
- Protected Member Functions inherited from CParameterConnecter
QByteArray PasswordSum (const std::string &password, const std::string &key)
 
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)
 
- Protected Member Functions inherited from CParameter
virtual bool OnCheckValidity ()
 Check validity.
 
int SetModified (bool bModified=true)
 When setting parameters, if there is a modification, it is called.
 
bool GetModified ()
 Whether the parameters have been modified.
 

Private Attributes

QList< TYPEm_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
 

Additional Inherited Members

- Signals inherited from CParameterConnecter
void sigSetParameterClient ()
 
- Signals inherited from CParameter
void sigChanged ()
 emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.
 
- Properties inherited from CParameter
bool Modified
 

Detailed Description

It contains user and password It only valid in plugin.

It's UI is CParameterUserUI.

Note
  • The interface only is implemented and used by plugin.
See also
CParameterConnecter CParameterUserUI

Definition at line 21 of file ParameterUser.h.

Member Enumeration Documentation

◆ TYPE

enum class CParameterUser::TYPE
strong
Enumerator
OnlyPasswordX509None 

Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile.

See also

Definition at line 29 of file ParameterUser.h.

Member Function Documentation

◆ ConvertTypeToName()

QString CParameterUser::ConvertTypeToName ( TYPE  t)

Definition at line 302 of file ParameterUser.cpp.

◆ GetCAFile()

QString CParameterUser::GetCAFile ( ) const

Definition at line 274 of file ParameterUser.cpp.

◆ GetCRLFile()

QString CParameterUser::GetCRLFile ( ) const

Definition at line 288 of file ParameterUser.cpp.

◆ GetPassphrase()

QString CParameterUser::GetPassphrase ( ) const

Definition at line 218 of file ParameterUser.cpp.

◆ GetPassword()

const QString CParameterUser::GetPassword ( ) const

Definition at line 155 of file ParameterUser.cpp.

◆ GetPrivateKeyFile()

QString CParameterUser::GetPrivateKeyFile ( ) const

Definition at line 260 of file ParameterUser.cpp.

◆ GetPublicKeyFile()

QString CParameterUser::GetPublicKeyFile ( ) const

Definition at line 246 of file ParameterUser.cpp.

◆ GetSavePassphrase()

bool CParameterUser::GetSavePassphrase ( ) const

Definition at line 232 of file ParameterUser.cpp.

◆ GetSavePassword()

const bool CParameterUser::GetSavePassword ( ) const

Definition at line 168 of file ParameterUser.cpp.

◆ GetType()

QList< CParameterUser::TYPE > CParameterUser::GetType ( ) const

Definition at line 114 of file ParameterUser.cpp.

◆ GetUsedType()

CParameterUser::TYPE CParameterUser::GetUsedType ( ) const

Definition at line 128 of file ParameterUser.cpp.

◆ GetUser()

const QString CParameterUser::GetUser ( ) const

Definition at line 142 of file ParameterUser.cpp.

◆ GetUseSystemFile()

bool CParameterUser::GetUseSystemFile ( ) const

[Initialize parameter after set CParameterClient]

Get use system file

Definition at line 204 of file ParameterUser.cpp.

◆ OnLoad()

int CParameterUser::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 26 of file ParameterUser.cpp.

◆ OnSave()

int CParameterUser::OnSave ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 79 of file ParameterUser.cpp.

◆ SetCAFile()

int CParameterUser::SetCAFile ( const QString &  ca)

Definition at line 279 of file ParameterUser.cpp.

◆ SetCRLFile()

int CParameterUser::SetCRLFile ( const QString &  crl)

Definition at line 293 of file ParameterUser.cpp.

◆ SetPassphrase()

int CParameterUser::SetPassphrase ( const QString  passphrase)

Definition at line 223 of file ParameterUser.cpp.

◆ SetPassword()

void CParameterUser::SetPassword ( const QString &  szPassword)

Definition at line 160 of file ParameterUser.cpp.

◆ SetPrivateKeyFile()

int CParameterUser::SetPrivateKeyFile ( const QString  szFile)

Definition at line 265 of file ParameterUser.cpp.

◆ SetPublicKeyFile()

int CParameterUser::SetPublicKeyFile ( const QString  szFile)

Definition at line 251 of file ParameterUser.cpp.

◆ SetSavePassphrase()

int CParameterUser::SetSavePassphrase ( bool  bSave)

Definition at line 237 of file ParameterUser.cpp.

◆ SetSavePassword()

void CParameterUser::SetSavePassword ( bool  save)

Set save password.

Parameters
save

Definition at line 173 of file ParameterUser.cpp.

◆ SetType()

int CParameterUser::SetType ( QList< TYPE type)

Definition at line 119 of file ParameterUser.cpp.

◆ SetTypeName()

int CParameterUser::SetTypeName ( TYPE  t,
const QString &  szName 
)

Definition at line 307 of file ParameterUser.cpp.

◆ SetUsedType()

int CParameterUser::SetUsedType ( TYPE  type)

Definition at line 133 of file ParameterUser.cpp.

◆ SetUser()

void CParameterUser::SetUser ( const QString &  szUser)

Definition at line 147 of file ParameterUser.cpp.

◆ SetUseSystemFile()

int CParameterUser::SetUseSystemFile ( bool  use)

Definition at line 209 of file ParameterUser.cpp.

◆ slotSetParameterClient

void CParameterUser::slotSetParameterClient ( )
overrideprotectedvirtualslot

[Initialize parameter after set CParameterClient]

Definition at line 182 of file ParameterUser.cpp.

Member Data Documentation

◆ m_bSavePassphrase

bool CParameterUser::m_bSavePassphrase
private

Definition at line 113 of file ParameterUser.h.

◆ m_bSavePassword

bool CParameterUser::m_bSavePassword
private

Definition at line 106 of file ParameterUser.h.

◆ m_bUseSystemFile

bool CParameterUser::m_bUseSystemFile
private

Definition at line 109 of file ParameterUser.h.

◆ m_szCAFile

QString CParameterUser::m_szCAFile
private

Definition at line 115 of file ParameterUser.h.

◆ m_szCRLFile

QString CParameterUser::m_szCRLFile
private

Definition at line 116 of file ParameterUser.h.

◆ m_szPassphrase

QString CParameterUser::m_szPassphrase
private

Definition at line 112 of file ParameterUser.h.

◆ m_szPassword

QString CParameterUser::m_szPassword
private

Definition at line 105 of file ParameterUser.h.

◆ m_szPrivateKeyFile

QString CParameterUser::m_szPrivateKeyFile
private

Definition at line 111 of file ParameterUser.h.

◆ m_szPublicKeyFile

QString CParameterUser::m_szPublicKeyFile
private

Definition at line 110 of file ParameterUser.h.

◆ m_szUser

QString CParameterUser::m_szUser
private

Definition at line 102 of file ParameterUser.h.

◆ m_Type

QList<TYPE> CParameterUser::m_Type
private

Definition at line 99 of file ParameterUser.h.

◆ m_TypeName

QMap<TYPE, QString> CParameterUser::m_TypeName
private

Definition at line 118 of file ParameterUser.h.

◆ m_UsedType

TYPE CParameterUser::m_UsedType
private

Definition at line 100 of file ParameterUser.h.


The documentation for this class was generated from the following files: