|
Rabbit Remote Control 0.0.36
|
the parameters of connecter interface. More...
#include <ParameterConnecter.h>
Signals | |
| 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 | |
| CParameterConnecter (QObject *parent=nullptr, const QString &szPrefix=QString()) | |
| CParameterClient * | GetParameterClient () |
| 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. | |
Protected Slots | |
| virtual void | slotSetParameterClient () |
| Call after set CParameterClient. | |
Protected Member Functions | |
| 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 int | OnLoad (QSettings &set)=0 |
| virtual int | OnSave (QSettings &set)=0 |
| 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 | |
| CParameterConnecter * | m_Parent |
| CParameterClient * | m_pParameterClient |
Additional Inherited Members | |
Properties inherited from CParameter | |
| bool | Modified |
the parameters of connecter interface.
It only valid in plugin.
Because there may be many parameters, it is necessary to classify them by parameter category. Each category can derive a separate class from this class. Each category is then used as a member variable in the derived classes of this class.
For example:
Connection parameters include the following categories:
CParameterBase, CParameterUser need CFrmParameterClient, so that it must derived from CParameterConnecter. other is derived from CParameter.
Then the connection parameters can be a combination of the above categories:
Definition at line 255 of file ParameterConnecter.h.
| CParameterClient * CParameterConnecter::GetParameterClient | ( | ) |
Get CParameterClient.
Definition at line 32 of file ParameterConnecter.cpp.
|
protected |
Definition at line 73 of file ParameterConnecter.cpp.
|
protected |
Definition at line 51 of file ParameterConnecter.cpp.
|
protected |
Definition at line 110 of file ParameterConnecter.cpp.
| int CParameterConnecter::SetParameterClient | ( | CParameterClient * | p | ) |
Definition at line 38 of file ParameterConnecter.cpp.
|
protectedvirtualslot |
Call after set CParameterClient.
Used to initialize operations related to CParameterClient.
Use CParameterClient in CParameterConnecter
Reimplemented in CParameterBase.
Definition at line 46 of file ParameterConnecter.cpp.
|
private |
Definition at line 291 of file ParameterConnecter.h.
|
private |
Definition at line 295 of file ParameterConnecter.h.