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

Basic network parameters. More...

#include <ParameterNet.h>

Inheritance diagram for CParameterNet:
CParameterConnecter CParameter

Signals

void sigHostChanged (const QString &szHost)
 
- 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.
 

Public Member Functions

 CParameterNet (CParameterConnecter *parent, const QString &szPrefix=QString())
 [Constructor]
 
virtual const QString GetHost () const
 
virtual void SetHost (const QString &szHost)
 
virtual const quint16 GetPort () const
 
virtual void SetPort (quint16 port)
 
int SetPrompt (const QString szPrompt)
 
QString GetPrompt ()
 
- 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

CParameterUser m_User
 [Instance user]
 

Protected Member Functions

virtual int OnLoad (QSettings &set) override
 [Instance user]
 
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

QString m_szHost
 
quint16 m_nPort
 
QString m_szPrompt
 

Additional Inherited Members

- Protected Slots inherited from CParameterConnecter
virtual void slotSetParameterClient ()
 Call after set CParameterClient.
 
- Properties inherited from CParameter
bool Modified
 

Detailed Description

Basic network parameters.

It only valid in plugin. It's UI is CParameterNetUI

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

Definition at line 25 of file ParameterNet.h.

Constructor & Destructor Documentation

◆ CParameterNet()

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

[Constructor]

Definition at line 5 of file ParameterNet.cpp.

Member Function Documentation

◆ GetHost()

const QString CParameterNet::GetHost ( ) const
virtual

Definition at line 31 of file ParameterNet.cpp.

◆ GetPort()

const quint16 CParameterNet::GetPort ( ) const
virtual

Definition at line 45 of file ParameterNet.cpp.

◆ GetPrompt()

QString CParameterNet::GetPrompt ( )

Definition at line 64 of file ParameterNet.cpp.

◆ OnLoad()

int CParameterNet::OnLoad ( QSettings &  set)
overrideprotectedvirtual

[Instance user]

[Constructor]

Implements CParameter.

Definition at line 13 of file ParameterNet.cpp.

◆ OnSave()

int CParameterNet::OnSave ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 22 of file ParameterNet.cpp.

◆ SetHost()

void CParameterNet::SetHost ( const QString &  szHost)
virtual

Definition at line 36 of file ParameterNet.cpp.

◆ SetPort()

void CParameterNet::SetPort ( quint16  port)
virtual

Definition at line 50 of file ParameterNet.cpp.

◆ SetPrompt()

int CParameterNet::SetPrompt ( const QString  szPrompt)

Definition at line 58 of file ParameterNet.cpp.

Member Data Documentation

◆ m_nPort

quint16 CParameterNet::m_nPort
private

Definition at line 53 of file ParameterNet.h.

◆ m_szHost

QString CParameterNet::m_szHost
private

Definition at line 52 of file ParameterNet.h.

◆ m_szPrompt

QString CParameterNet::m_szPrompt
private

Definition at line 59 of file ParameterNet.h.

◆ m_User

CParameterUser CParameterNet::m_User

[Instance user]

Definition at line 44 of file ParameterNet.h.


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