|
玉兔远程控制 0.1.0-bate10
|
The server base parameters 更多...
#include <ParameterServer.h>


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()) | |
| CParameterPlugin * | GetPluginParameters () |
| 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.h 第 11 行定义.
|
explicit |
在文件 ParameterServer.cpp 第 5 行定义.
| bool CParameterServer::GetAnonymousLogin | ( | ) | const |
在文件 ParameterServer.cpp 第 50 行定义.
| int CParameterServer::GetAuthenticateAttempts | ( | ) | const |
| qint64 CParameterServer::GetAuthenticateTime | ( | ) | const |
Get authenticate time out
在文件 ParameterServer.cpp 第 102 行定义.
| int CParameterServer::GetConnectCount | ( | ) | const |
| QString CParameterServer::GetHostKeyFile | ( | ) | const |
在文件 ParameterServer.cpp 第 89 行定义.
| QStringList CParameterServer::GetListen | ( | ) | const |
在文件 ParameterServer.cpp 第 154 行定义.
| bool CParameterServer::GetListenAll | ( | ) | const |
在文件 ParameterServer.cpp 第 141 行定义.
| bool CParameterServer::GetReadOnly | ( | ) | const |
在文件 ParameterServer.cpp 第 63 行定义.
| QString CParameterServer::GetRoot | ( | ) | const |
在文件 ParameterServer.cpp 第 76 行定义.
|
overrideprotectedvirtual |
重载 CParameterOperate .
在文件 ParameterServer.cpp 第 20 行定义.
|
overrideprotectedvirtual |
重载 CParameterOperate .
在文件 ParameterServer.cpp 第 35 行定义.
| void CParameterServer::SetAnonymousLogin | ( | bool | newAnonymousLogin | ) |
在文件 ParameterServer.cpp 第 55 行定义.
| void CParameterServer::SetAuthenticateAttempts | ( | int | attempts | ) |
| void CParameterServer::SetAuthenticateTime | ( | qint64 | tm | ) |
Set authenticate time out
| tm | Authenticate time out(Unit: milliseconds) |
在文件 ParameterServer.cpp 第 107 行定义.
| void CParameterServer::SetConnectCount | ( | int | newConnectCount | ) |
在文件 ParameterServer.cpp 第 133 行定义.
| void CParameterServer::SetHostKeyFile | ( | const QString & | key | ) |
在文件 ParameterServer.cpp 第 94 行定义.
| void CParameterServer::SetListen | ( | const QStringList & | newListen | ) |
在文件 ParameterServer.cpp 第 159 行定义.
| void CParameterServer::SetListenAll | ( | bool | newListenAll | ) |
在文件 ParameterServer.cpp 第 146 行定义.
| void CParameterServer::SetReadOnly | ( | bool | newReadOnly | ) |
在文件 ParameterServer.cpp 第 68 行定义.
| void CParameterServer::SetRoot | ( | const QString & | newRoot | ) |
在文件 ParameterServer.cpp 第 81 行定义.
|
overrideprotectedvirtualslot |
在文件 ParameterServer.cpp 第 167 行定义.
|
private |
在文件 ParameterServer.h 第 89 行定义.
|
private |
在文件 ParameterServer.h 第 28 行定义.
| CParameterFilter CParameterServer::m_BlackFilter |
在文件 ParameterServer.h 第 22 行定义.
|
private |
在文件 ParameterServer.h 第 53 行定义.
|
private |
在文件 ParameterServer.h 第 33 行定义.
|
private |
在文件 ParameterServer.h 第 48 行定义.
|
private |
在文件 ParameterServer.h 第 58 行定义.
| CParameterNet CParameterServer::m_Net |
在文件 ParameterServer.h 第 20 行定义.
|
private |
在文件 ParameterServer.h 第 63 行定义.
|
private |
在文件 ParameterServer.h 第 38 行定义.
|
private |
在文件 ParameterServer.h 第 76 行定义.
| CParameterFilter CParameterServer::m_WhiteFilter |
在文件 ParameterServer.h 第 21 行定义.