玉兔远程控制 0.1.0-bate11
载入中...
搜索中...
未找到
CParameterServer类 参考

The server base parameters 更多...

#include <ParameterServer.h>

类 CParameterServer 继承关系图:
CParameterServer 的协作图:

Public 成员函数

 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 成员函数 继承自 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 成员函数 继承自 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 ()
 检查参数是否有效,以决定是否使用或者保存参数。 派生类一般只要重载 OnCheckValidity() ,用于检查参数。

Public 属性

CParameterNet m_Net
CParameterFilter m_WhiteFilter
CParameterFilter m_BlackFilter

Protected 槽

virtual void slotSetPluginParameters () override
Protected 槽 继承自 CParameterOperate
virtual void slotSetPluginParameters ()
 设置 CParameterPlugin 后调用,用于初始化与 CParameterPlugin 有关的操作。

Protected 成员函数

virtual int OnLoad (QSettings &set) override
virtual int OnSave (QSettings &set) override
Protected 成员函数 继承自 CParameterOperate
QByteArray PasswordSum (const std::string &password, const std::string &key)
Protected 成员函数 继承自 CParameter
virtual bool OnCheckValidity ()
 检查参数是否有效
int SetModified (bool bModified=true)
 在设置参数时,如果有修改,则调用。
bool GetModified ()
 参数是否有修改

Private 属性

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

额外继承的成员函数

信号 继承自 CParameterOperate
void sigSetPluginParameters ()
 仅由此类使用
void sigNameChanged (const QString &name=QString())
信号 继承自 CParameter
void sigChanged ()
 当参数改变时,触发 通常如果需要,则相应的参数会对应一个改变事件。
属性 继承自 CParameter
bool Modified

详细描述

The server base parameters

在文件 ParameterServer.h11 行定义.

构造及析构函数说明

◆ CParameterServer()

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

在文件 ParameterServer.cpp5 行定义.

成员函数说明

◆ GetAnonymousLogin()

bool CParameterServer::GetAnonymousLogin ( ) const

在文件 ParameterServer.cpp50 行定义.

◆ GetAuthenticateAttempts()

int CParameterServer::GetAuthenticateAttempts ( ) const

Get authenticate attempts

返回
Attempts

在文件 ParameterServer.cpp115 行定义.

◆ GetAuthenticateTime()

qint64 CParameterServer::GetAuthenticateTime ( ) const

Get authenticate time out

返回
Authenticate time out(Unit: milliseconds)

在文件 ParameterServer.cpp102 行定义.

◆ GetConnectCount()

int CParameterServer::GetConnectCount ( ) const

Connect count.

返回
Connect count. -1: enable all connect

在文件 ParameterServer.cpp128 行定义.

◆ GetHostKeyFile()

QString CParameterServer::GetHostKeyFile ( ) const

在文件 ParameterServer.cpp89 行定义.

◆ GetListen()

QStringList CParameterServer::GetListen ( ) const

在文件 ParameterServer.cpp154 行定义.

◆ GetListenAll()

bool CParameterServer::GetListenAll ( ) const

在文件 ParameterServer.cpp141 行定义.

◆ GetReadOnly()

bool CParameterServer::GetReadOnly ( ) const

在文件 ParameterServer.cpp63 行定义.

◆ GetRoot()

QString CParameterServer::GetRoot ( ) const

在文件 ParameterServer.cpp76 行定义.

◆ OnLoad()

int CParameterServer::OnLoad ( QSettings & set)
overrideprotectedvirtual

重载 CParameterOperate .

在文件 ParameterServer.cpp20 行定义.

◆ OnSave()

int CParameterServer::OnSave ( QSettings & set)
overrideprotectedvirtual

重载 CParameterOperate .

在文件 ParameterServer.cpp35 行定义.

◆ SetAnonymousLogin()

void CParameterServer::SetAnonymousLogin ( bool newAnonymousLogin)

在文件 ParameterServer.cpp55 行定义.

◆ SetAuthenticateAttempts()

void CParameterServer::SetAuthenticateAttempts ( int attempts)

Set authenticate attempts

参数
attempts

在文件 ParameterServer.cpp120 行定义.

◆ SetAuthenticateTime()

void CParameterServer::SetAuthenticateTime ( qint64 tm)

Set authenticate time out

参数
tmAuthenticate time out(Unit: milliseconds)

在文件 ParameterServer.cpp107 行定义.

◆ SetConnectCount()

void CParameterServer::SetConnectCount ( int newConnectCount)

在文件 ParameterServer.cpp133 行定义.

◆ SetHostKeyFile()

void CParameterServer::SetHostKeyFile ( const QString & key)

在文件 ParameterServer.cpp94 行定义.

◆ SetListen()

void CParameterServer::SetListen ( const QStringList & newListen)

在文件 ParameterServer.cpp159 行定义.

◆ SetListenAll()

void CParameterServer::SetListenAll ( bool newListenAll)

在文件 ParameterServer.cpp146 行定义.

◆ SetReadOnly()

void CParameterServer::SetReadOnly ( bool newReadOnly)

在文件 ParameterServer.cpp68 行定义.

◆ SetRoot()

void CParameterServer::SetRoot ( const QString & newRoot)

在文件 ParameterServer.cpp81 行定义.

◆ slotSetPluginParameters

void CParameterServer::slotSetPluginParameters ( )
overrideprotectedvirtualslot

在文件 ParameterServer.cpp167 行定义.

类成员变量说明

◆ m_AuthAttempts

int CParameterServer::m_AuthAttempts
private

在文件 ParameterServer.h89 行定义.

◆ m_bAnonymousLogin

bool CParameterServer::m_bAnonymousLogin
private

在文件 ParameterServer.h28 行定义.

◆ m_BlackFilter

CParameterFilter CParameterServer::m_BlackFilter

在文件 ParameterServer.h22 行定义.

◆ m_bListenAll

bool CParameterServer::m_bListenAll
private

在文件 ParameterServer.h53 行定义.

◆ m_bReadOnly

bool CParameterServer::m_bReadOnly
private

在文件 ParameterServer.h33 行定义.

◆ m_ConnectCount

int CParameterServer::m_ConnectCount
private

在文件 ParameterServer.h48 行定义.

◆ m_Listen

QStringList CParameterServer::m_Listen
private

在文件 ParameterServer.h58 行定义.

◆ m_Net

CParameterNet CParameterServer::m_Net

在文件 ParameterServer.h20 行定义.

◆ m_szHostKeyFile

QString CParameterServer::m_szHostKeyFile
private

在文件 ParameterServer.h63 行定义.

◆ m_szRoot

QString CParameterServer::m_szRoot
private

在文件 ParameterServer.h38 行定义.

◆ m_tmAuthenticate

qint64 CParameterServer::m_tmAuthenticate
private

在文件 ParameterServer.h76 行定义.

◆ m_WhiteFilter

CParameterFilter CParameterServer::m_WhiteFilter

在文件 ParameterServer.h21 行定义.


该类的文档由以下文件生成: