Rabbit Remote Control 0.1.0-de
|
Public Types | |
enum class | Protocol { FTP , SFTP } |
Public Member Functions | |
CParameterFileTransfer (QObject *parent=nullptr, const QString &szPrefix=QString()) | |
Protocol | GetProtocol () const |
void | SetProtocol (Protocol newType) |
![]() | |
CParameterOperate (QObject *parent=nullptr, const QString &szPrefix=QString()) | |
CParameterPlugin * | GetGlobalParameters () |
Get CParameterPlugin. | |
int | SetGlobalParameters (CParameterPlugin *p) |
const QString | GetName () const |
void | SetName (const QString &szName) |
![]() | |
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 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 |
CParameterSSH | m_SSH |
Protected Member Functions | |
virtual int | OnLoad (QSettings &set) override |
virtual int | OnSave (QSettings &set) override |
![]() | |
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) |
![]() | |
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 | |
Protocol | m_Protocol |
Additional Inherited Members | |
![]() | |
void | sigSetGlobalParameters () |
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. | |
![]() | |
virtual void | slotSetGlobalParameters () |
Call after set CParameterPlugin. | |
![]() | |
bool | Modified |
Definition at line 8 of file ParameterFileTransfer.h.
|
strong |
Definition at line 20 of file ParameterFileTransfer.h.
|
explicit |
Definition at line 6 of file ParameterFileTransfer.cpp.
CParameterFileTransfer::Protocol CParameterFileTransfer::GetProtocol | ( | ) | const |
Definition at line 15 of file ParameterFileTransfer.cpp.
|
overrideprotectedvirtual |
Reimplemented from CParameterOperate.
Definition at line 28 of file ParameterFileTransfer.cpp.
|
overrideprotectedvirtual |
Reimplemented from CParameterOperate.
Definition at line 35 of file ParameterFileTransfer.cpp.
void CParameterFileTransfer::SetProtocol | ( | Protocol | newType | ) |
Definition at line 20 of file ParameterFileTransfer.cpp.
CParameterNet CParameterFileTransfer::m_Net |
Definition at line 16 of file ParameterFileTransfer.h.
|
private |
Definition at line 29 of file ParameterFileTransfer.h.
CParameterSSH CParameterFileTransfer::m_SSH |
Definition at line 17 of file ParameterFileTransfer.h.