The server base parameters.
More...
#include <ParameterServer.h>
|
| | 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.
|
| |
| | 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) |
| |
| | 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.
|
| |
|
| virtual int | OnLoad (QSettings &set) override |
| |
| virtual int | OnSave (QSettings &set) override |
| |
| QByteArray | PasswordSum (const std::string &password, const std::string &key) |
| |
| 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.
|
| |
|
| void | sigSetPluginParameters () |
| | Only used by this class.
|
| |
|
void | sigNameChanged (const QString &name=QString()) |
| |
|
void | sigChanged () |
| | emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.
|
| |
| bool | Modified |
| |
The server base parameters.
Definition at line 11 of file ParameterServer.h.
◆ CParameterServer()
| CParameterServer::CParameterServer |
( |
QObject * |
parent = nullptr, |
|
|
const QString & |
szPrefix = QString() |
|
) |
| |
|
explicit |
◆ GetAnonymousLogin()
| bool CParameterServer::GetAnonymousLogin |
( |
| ) |
const |
◆ GetAuthenticateAttempts()
| int CParameterServer::GetAuthenticateAttempts |
( |
| ) |
const |
◆ 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 |
◆ GetListen()
| QStringList CParameterServer::GetListen |
( |
| ) |
const |
◆ GetListenAll()
| bool CParameterServer::GetListenAll |
( |
| ) |
const |
◆ GetReadOnly()
| bool CParameterServer::GetReadOnly |
( |
| ) |
const |
◆ GetRoot()
| QString CParameterServer::GetRoot |
( |
| ) |
const |
◆ OnLoad()
| int CParameterServer::OnLoad |
( |
QSettings & |
set | ) |
|
|
overrideprotectedvirtual |
◆ OnSave()
| int CParameterServer::OnSave |
( |
QSettings & |
set | ) |
|
|
overrideprotectedvirtual |
◆ SetAnonymousLogin()
| void CParameterServer::SetAnonymousLogin |
( |
bool |
newAnonymousLogin | ) |
|
◆ SetAuthenticateAttempts()
| void CParameterServer::SetAuthenticateAttempts |
( |
int |
attempts | ) |
|
◆ SetAuthenticateTime()
| void CParameterServer::SetAuthenticateTime |
( |
qint64 |
tm | ) |
|
Set authenticate time out.
- Parameters
-
| tm | Authenticate time out(Unit: milliseconds) |
Definition at line 107 of file ParameterServer.cpp.
◆ SetConnectCount()
| void CParameterServer::SetConnectCount |
( |
int |
newConnectCount | ) |
|
◆ SetHostKeyFile()
| void CParameterServer::SetHostKeyFile |
( |
const QString & |
key | ) |
|
◆ SetListen()
| void CParameterServer::SetListen |
( |
const QStringList & |
newListen | ) |
|
◆ SetListenAll()
| void CParameterServer::SetListenAll |
( |
bool |
newListenAll | ) |
|
◆ SetReadOnly()
| void CParameterServer::SetReadOnly |
( |
bool |
newReadOnly | ) |
|
◆ SetRoot()
| void CParameterServer::SetRoot |
( |
const QString & |
newRoot | ) |
|
◆ slotSetPluginParameters
| void CParameterServer::slotSetPluginParameters |
( |
| ) |
|
|
overrideprotectedvirtualslot |
◆ m_AuthAttempts
| int CParameterServer::m_AuthAttempts |
|
private |
◆ m_bAnonymousLogin
| bool CParameterServer::m_bAnonymousLogin |
|
private |
◆ m_BlackFilter
◆ m_bListenAll
| bool CParameterServer::m_bListenAll |
|
private |
◆ m_bReadOnly
| bool CParameterServer::m_bReadOnly |
|
private |
◆ m_ConnectCount
| int CParameterServer::m_ConnectCount |
|
private |
◆ m_Listen
| QStringList CParameterServer::m_Listen |
|
private |
◆ m_Net
◆ m_szHostKeyFile
| QString CParameterServer::m_szHostKeyFile |
|
private |
◆ m_szRoot
| QString CParameterServer::m_szRoot |
|
private |
◆ m_tmAuthenticate
| qint64 CParameterServer::m_tmAuthenticate |
|
private |
◆ m_WhiteFilter
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/ParameterCompone/ParameterServer.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/ParameterCompone/ParameterServer.cpp