Rabbit Remote Control 0.1.0-bate10
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Private Attributes | List of all members
CParameterServer Class Reference

The server base parameters. More...

#include <ParameterServer.h>

Inheritance diagram for CParameterServer:
Inheritance graph
[legend]
Collaboration diagram for CParameterServer:
Collaboration graph
[legend]

Public Member Functions

 CParameterServer (QObject *parent=nullptr, const QString &szPrefix=QString())
 
bool GetAnonymousLogin () const
 
void SetAnonymousLogin (bool newAnonymousLogin)
 
bool GetReadOnly () const
 
void SetReadOnly (bool newReadOnly)
 
QString GetRoot () const
 
void SetRoot (const QString &newRoot)
 
int GetConnectCount () const
 Connect count.
 
void SetConnectCount (int newConnectCount)
 
bool GetListenAll () const
 
void SetListenAll (bool newListenAll)
 
QStringList GetListen () const
 
void SetListen (const QStringList &newListen)
 
QString GetHostKeyFile () const
 
void SetHostKeyFile (const QString &key)
 
qint64 GetAuthenticateTime () const
 Get authenticate time out.
 
void SetAuthenticateTime (qint64 tm)
 Set authenticate time out.
 
int GetAuthenticateAttempts () const
 Get authenticate attempts.
 
void SetAuthenticateAttempts (int attempts)
 Set authenticate attempts.
 
- 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.
 

Public Attributes

CParameterNet m_Net
 
CParameterFilter m_WhiteFilter
 
CParameterFilter m_BlackFilter
 

Protected Slots

virtual void slotSetPluginParameters () override
 
- Protected Slots inherited from CParameterOperate
virtual void slotSetPluginParameters ()
 Call after set CParameterPlugin.
 

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

bool m_bAnonymousLogin
 
bool m_bReadOnly
 
QString m_szRoot
 
int m_ConnectCount
 
bool m_bListenAll
 
QStringList m_Listen
 
QString m_szHostKeyFile
 
qint64 m_tmAuthenticate
 
int m_AuthAttempts
 

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.
 
- Properties inherited from CParameter
bool Modified
 

Detailed Description

The server base parameters.

Definition at line 11 of file ParameterServer.h.

Constructor & Destructor Documentation

◆ CParameterServer()

CParameterServer::CParameterServer ( QObject *  parent = nullptr,
const QString &  szPrefix = QString() 
)
explicit

Definition at line 5 of file ParameterServer.cpp.

Member Function Documentation

◆ GetAnonymousLogin()

bool CParameterServer::GetAnonymousLogin ( ) const

Definition at line 50 of file ParameterServer.cpp.

◆ GetAuthenticateAttempts()

int CParameterServer::GetAuthenticateAttempts ( ) const

Get authenticate attempts.

Returns
Attempts

Definition at line 115 of file ParameterServer.cpp.

◆ GetAuthenticateTime()

qint64 CParameterServer::GetAuthenticateTime ( ) const

Get authenticate time out.

Returns
Authenticate time out(Unit: milliseconds)

Definition at line 102 of file ParameterServer.cpp.

◆ GetConnectCount()

int CParameterServer::GetConnectCount ( ) const

Connect count.

Returns
Connect count. -1: enable all connect

Definition at line 128 of file ParameterServer.cpp.

◆ GetHostKeyFile()

QString CParameterServer::GetHostKeyFile ( ) const

Definition at line 89 of file ParameterServer.cpp.

◆ GetListen()

QStringList CParameterServer::GetListen ( ) const

Definition at line 154 of file ParameterServer.cpp.

◆ GetListenAll()

bool CParameterServer::GetListenAll ( ) const

Definition at line 141 of file ParameterServer.cpp.

◆ GetReadOnly()

bool CParameterServer::GetReadOnly ( ) const

Definition at line 63 of file ParameterServer.cpp.

◆ GetRoot()

QString CParameterServer::GetRoot ( ) const

Definition at line 76 of file ParameterServer.cpp.

◆ OnLoad()

int CParameterServer::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Reimplemented from CParameterOperate.

Definition at line 20 of file ParameterServer.cpp.

◆ OnSave()

int CParameterServer::OnSave ( QSettings &  set)
overrideprotectedvirtual

Reimplemented from CParameterOperate.

Definition at line 35 of file ParameterServer.cpp.

◆ SetAnonymousLogin()

void CParameterServer::SetAnonymousLogin ( bool  newAnonymousLogin)

Definition at line 55 of file ParameterServer.cpp.

◆ SetAuthenticateAttempts()

void CParameterServer::SetAuthenticateAttempts ( int  attempts)

Set authenticate attempts.

Parameters
attempts

Definition at line 120 of file ParameterServer.cpp.

◆ SetAuthenticateTime()

void CParameterServer::SetAuthenticateTime ( qint64  tm)

Set authenticate time out.

Parameters
tmAuthenticate time out(Unit: milliseconds)

Definition at line 107 of file ParameterServer.cpp.

◆ SetConnectCount()

void CParameterServer::SetConnectCount ( int  newConnectCount)

Definition at line 133 of file ParameterServer.cpp.

◆ SetHostKeyFile()

void CParameterServer::SetHostKeyFile ( const QString &  key)

Definition at line 94 of file ParameterServer.cpp.

◆ SetListen()

void CParameterServer::SetListen ( const QStringList &  newListen)

Definition at line 159 of file ParameterServer.cpp.

◆ SetListenAll()

void CParameterServer::SetListenAll ( bool  newListenAll)

Definition at line 146 of file ParameterServer.cpp.

◆ SetReadOnly()

void CParameterServer::SetReadOnly ( bool  newReadOnly)

Definition at line 68 of file ParameterServer.cpp.

◆ SetRoot()

void CParameterServer::SetRoot ( const QString &  newRoot)

Definition at line 81 of file ParameterServer.cpp.

◆ slotSetPluginParameters

void CParameterServer::slotSetPluginParameters ( )
overrideprotectedvirtualslot

Definition at line 167 of file ParameterServer.cpp.

Member Data Documentation

◆ m_AuthAttempts

int CParameterServer::m_AuthAttempts
private

Definition at line 89 of file ParameterServer.h.

◆ m_bAnonymousLogin

bool CParameterServer::m_bAnonymousLogin
private

Definition at line 28 of file ParameterServer.h.

◆ m_BlackFilter

CParameterFilter CParameterServer::m_BlackFilter

Definition at line 22 of file ParameterServer.h.

◆ m_bListenAll

bool CParameterServer::m_bListenAll
private

Definition at line 53 of file ParameterServer.h.

◆ m_bReadOnly

bool CParameterServer::m_bReadOnly
private

Definition at line 33 of file ParameterServer.h.

◆ m_ConnectCount

int CParameterServer::m_ConnectCount
private

Definition at line 48 of file ParameterServer.h.

◆ m_Listen

QStringList CParameterServer::m_Listen
private

Definition at line 58 of file ParameterServer.h.

◆ m_Net

CParameterNet CParameterServer::m_Net

Definition at line 20 of file ParameterServer.h.

◆ m_szHostKeyFile

QString CParameterServer::m_szHostKeyFile
private

Definition at line 63 of file ParameterServer.h.

◆ m_szRoot

QString CParameterServer::m_szRoot
private

Definition at line 38 of file ParameterServer.h.

◆ m_tmAuthenticate

qint64 CParameterServer::m_tmAuthenticate
private

Definition at line 76 of file ParameterServer.h.

◆ m_WhiteFilter

CParameterFilter CParameterServer::m_WhiteFilter

Definition at line 21 of file ParameterServer.h.


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