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

The proxy parameters. More...

#include <ParameterProxy.h>

Inheritance diagram for CParameterProxy:
CParameterConnecter CParameter

Public Types

enum class  TYPE { None = 0 , Default , SockesV5 , SSHTunnel }
 

Public Member Functions

 CParameterProxy (CParameterConnecter *parent=nullptr, const QString &szPrefix=QString())
 
QList< TYPE > GetType () const
 
int SetType (QList< TYPE > type)
 
TYPE GetUsedType () const
 
int SetUsedType (TYPE type)
 
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.
 

Public Attributes

CParameterNet m_SockesV5
 
CParameterNet m_SSH
 

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< TYPE > m_Type
 
TYPE m_UsedType
 
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.
 
- Protected Slots inherited from CParameterConnecter
virtual void slotSetParameterClient ()
 Call after set CParameterClient.
 
- Properties inherited from CParameter
bool Modified
 

Detailed Description

The proxy parameters.

Its UI is CParameterProxyUI

See also
CParameterProxyUI

Definition at line 13 of file ParameterProxy.h.

Member Enumeration Documentation

◆ TYPE

enum class CParameterProxy::TYPE
strong

Definition at line 20 of file ParameterProxy.h.

Constructor & Destructor Documentation

◆ CParameterProxy()

CParameterProxy::CParameterProxy ( CParameterConnecter parent = nullptr,
const QString &  szPrefix = QString() 
)
explicit

Definition at line 3 of file ParameterProxy.cpp.

Member Function Documentation

◆ ConvertTypeToName()

QString CParameterProxy::ConvertTypeToName ( TYPE  t)

Definition at line 92 of file ParameterProxy.cpp.

◆ GetType()

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

Definition at line 64 of file ParameterProxy.cpp.

◆ GetUsedType()

CParameterProxy::TYPE CParameterProxy::GetUsedType ( ) const

Definition at line 78 of file ParameterProxy.cpp.

◆ OnLoad()

int CParameterProxy::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 31 of file ParameterProxy.cpp.

◆ OnSave()

int CParameterProxy::OnSave ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 51 of file ParameterProxy.cpp.

◆ SetType()

int CParameterProxy::SetType ( QList< TYPE >  type)

Definition at line 69 of file ParameterProxy.cpp.

◆ SetTypeName()

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

Definition at line 97 of file ParameterProxy.cpp.

◆ SetUsedType()

int CParameterProxy::SetUsedType ( TYPE  type)

Definition at line 83 of file ParameterProxy.cpp.

Member Data Documentation

◆ m_SockesV5

CParameterNet CParameterProxy::m_SockesV5

Definition at line 32 of file ParameterProxy.h.

◆ m_SSH

CParameterNet CParameterProxy::m_SSH

Definition at line 33 of file ParameterProxy.h.

◆ m_Type

QList<TYPE> CParameterProxy::m_Type
private

Definition at line 44 of file ParameterProxy.h.

◆ m_TypeName

QMap<TYPE, QString> CParameterProxy::m_TypeName
private

Definition at line 47 of file ParameterProxy.h.

◆ m_UsedType

TYPE CParameterProxy::m_UsedType
private

Definition at line 45 of file ParameterProxy.h.


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