Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CParameterSSHTunnel Class Reference
Inheritance diagram for CParameterSSHTunnel:
Collaboration diagram for CParameterSSHTunnel:

Public Member Functions

 CParameterSSHTunnel (CParameterOperate *parent=nullptr, const QString &szPrefix=QString())
QString GetSourceHost () const
int SetSourceHost (const QString szHost)
quint16 GetSourcePort () const
int SetSourcePort (const quint16 nPort)
Public Member Functions inherited from CParameterSSH
 CParameterSSH (CParameterOperate *parent=nullptr, const QString &szPrefix=QString())
QString GetPcapFile () const
int SetPcapFile (const QString &szFile)
Public Member Functions inherited from CParameterOperate
 CParameterOperate (QObject *parent, const QString &szPrefix=QString())
CParameterPluginGetPluginParameters ()
 Get CParameterPlugin.
int SetPluginParameters (CParameterPlugin *p)
const QString GetName () const
void SetName (const QString &szName)
int LoadPassword (const QString &szTitle, const QString &szKey, QString &password, QSettings &set)
 Restore password.
int SavePassword (const QString &szKey, const QString &password, QSettings &set, bool bSave=false)
Public Member Functions inherited from CParameter
 CParameter (QObject *parent, 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 ()
 Check whether the parameter is valid to decide whether to use or save the parameter.

Protected Member Functions

virtual int OnLoad (QSettings &set) override
virtual int OnSave (QSettings &set) override
Protected Member Functions inherited from CParameterOperate
QByteArray PasswordSum (const std::string &password, const std::string &key)
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

QString m_szSourceHost
quint16 m_nSourcePort

Additional Inherited Members

Signals inherited from CParameterOperate
void sigSetPluginParameters ()
 Only used by this class.
void sigNameChanged (const QString &name=QString())
Signals inherited from CParameter
void sigChanged ()
 emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.
Public Attributes inherited from CParameterSSH
CParameterNet m_Net
Protected Slots inherited from CParameterOperate
virtual void slotSetPluginParameters ()
 Call after set CParameterPlugin.
Properties inherited from CParameter
bool Modified

Detailed Description

Definition at line 27 of file ParameterSSH.h.

Constructor & Destructor Documentation

◆ CParameterSSHTunnel()

CParameterSSHTunnel::CParameterSSHTunnel ( CParameterOperate * parent = nullptr,
const QString & szPrefix = QString() )
explicit

Definition at line 40 of file ParameterSSH.cpp.

Member Function Documentation

◆ GetSourceHost()

QString CParameterSSHTunnel::GetSourceHost ( ) const

Definition at line 46 of file ParameterSSH.cpp.

◆ GetSourcePort()

quint16 CParameterSSHTunnel::GetSourcePort ( ) const

Definition at line 57 of file ParameterSSH.cpp.

◆ OnLoad()

int CParameterSSHTunnel::OnLoad ( QSettings & set)
overrideprotectedvirtual

Reimplemented from CParameterSSH.

Definition at line 68 of file ParameterSSH.cpp.

◆ OnSave()

int CParameterSSHTunnel::OnSave ( QSettings & set)
overrideprotectedvirtual

Reimplemented from CParameterSSH.

Definition at line 75 of file ParameterSSH.cpp.

◆ SetSourceHost()

int CParameterSSHTunnel::SetSourceHost ( const QString szHost)

Definition at line 51 of file ParameterSSH.cpp.

◆ SetSourcePort()

int CParameterSSHTunnel::SetSourcePort ( const quint16 nPort)

Definition at line 62 of file ParameterSSH.cpp.

Member Data Documentation

◆ m_nSourcePort

quint16 CParameterSSHTunnel::m_nSourcePort
private

Definition at line 43 of file ParameterSSH.h.

◆ m_szSourceHost

QString CParameterSSHTunnel::m_szSourceHost
private

Definition at line 42 of file ParameterSSH.h.


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