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

the parameters of connecter interface. More...

#include <ParameterConnecter.h>

Inheritance diagram for CParameterConnecter:
CParameter CParameterBase CParameterNet CParameterProxy CParameterTerminal CParameterUser CParameterWakeOnLan CParameterFreeRDP CParameterLibVNCServer CParameterPlayer CParameterScreenCapture CParameterVnc CParameterSSH CParameterTelnet

Signals

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

Public Member Functions

 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 ()
 Call after set CParameterClient.
 

Protected Member Functions

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 int OnLoad (QSettings &set)=0
 
virtual int OnSave (QSettings &set)=0
 
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

CParameterConnecterm_Parent
 
CParameterClientm_pParameterClient
 

Additional Inherited Members

- Properties inherited from CParameter
bool Modified
 

Detailed Description

the parameters of connecter interface.

It only valid in plugin.

Note

Use CParameterClient

Set CParameterClient for CParameterConnecter

Use CParameterClient in CParameterConnecter

CParameterConnecter category

Because there may be many parameters, it is necessary to classify them by parameter category. Each category can derive a separate class from this class. Each category is then used as a member variable in the derived classes of this class.

For example:
Connection parameters include the following categories:

CParameterBase, CParameterUser need CFrmParameterClient, so that it must derived from CParameterConnecter. other is derived from CParameter.

Then the connection parameters can be a combination of the above categories:

class CParameterConnect : public CParameterBase
{
public:
explicit CParameterConnect(CParameterConnecter *parent = nullptr);
CParameterVideo m_Video;
CParameterAudio m_Audio;
};
CParameterConnect::CParameterConnect(CParameterConnecter *parent = nullptr)
: CParameterBase(parent),
m_User(this, "Host"),
m_Video(this),
m_Audio(this)
{}
Note
See also
CParameterBase CClient::CreateConnecter CConnecter::CConnecter CConnecter::SetParameterClient CConnecter::SetParameter CParameterClient CParameterConnecter::GetParameterClient

Definition at line 255 of file ParameterConnecter.h.

Member Function Documentation

◆ GetParameterClient()

CParameterClient * CParameterConnecter::GetParameterClient ( )

Get CParameterClient.

Definition at line 32 of file ParameterConnecter.cpp.

◆ LoadPassword()

int CParameterConnecter::LoadPassword ( const QString &  szTitle,
const QString &  szKey,
QString &  password,
QSettings &  set 
)
protected

Definition at line 64 of file ParameterConnecter.cpp.

◆ PasswordSum()

QByteArray CParameterConnecter::PasswordSum ( const std::string &  password,
const std::string &  key 
)
protected

Definition at line 51 of file ParameterConnecter.cpp.

◆ SavePassword()

int CParameterConnecter::SavePassword ( const QString &  szKey,
const QString &  password,
QSettings &  set,
bool  bSave = false 
)
protected

Definition at line 101 of file ParameterConnecter.cpp.

◆ SetParameterClient()

int CParameterConnecter::SetParameterClient ( CParameterClient p)

Definition at line 38 of file ParameterConnecter.cpp.

◆ slotSetParameterClient

void CParameterConnecter::slotSetParameterClient ( )
protectedvirtualslot

Call after set CParameterClient.

Used to initialize operations related to CParameterClient.

Use CParameterClient in CParameterConnecter

Reimplemented in CParameterBase.

Definition at line 46 of file ParameterConnecter.cpp.

Member Data Documentation

◆ m_Parent

CParameterConnecter* CParameterConnecter::m_Parent
private

Definition at line 291 of file ParameterConnecter.h.

◆ m_pParameterClient

CParameterClient* CParameterConnecter::m_pParameterClient
private

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