玉兔远程控制 0.1.0-alpha.2
|
Public 类型 | |
enum class | Protocol { FTP , SFTP } |
Public 成员函数 | |
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 () |
检查参数是否有效,以决定是否使用或者保存参数。 派生类一般只要重载 OnCheckValidity() ,用于检查参数。 | |
Public 属性 | |
CParameterNet | m_Net |
CParameterSSH | m_SSH |
Protected 成员函数 | |
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 () |
检查参数是否有效 | |
int | SetModified (bool bModified=true) |
在设置参数时,如果有修改,则调用。 | |
bool | GetModified () |
参数是否有修改 | |
Private 属性 | |
Protocol | m_Protocol |
额外继承的成员函数 | |
![]() | |
void | sigSetGlobalParameters () |
仅由此类使用 | |
void | sigNameChanged (const QString &name=QString()) |
![]() | |
void | sigChanged () |
当参数改变时,触发 通常如果需要,则相应的参数会对应一个改变事件。 | |
![]() | |
virtual void | slotSetGlobalParameters () |
设置 CParameterPlugin 后调用,用于初始化与 CParameterPlugin 有关的操作。 | |
![]() | |
bool | Modified |
在文件 ParameterFileTransfer.h 第 8 行定义.
|
strong |
在文件 ParameterFileTransfer.h 第 20 行定义.
|
explicit |
在文件 ParameterFileTransfer.cpp 第 6 行定义.
CParameterFileTransfer::Protocol CParameterFileTransfer::GetProtocol | ( | ) | const |
在文件 ParameterFileTransfer.cpp 第 15 行定义.
|
overrideprotectedvirtual |
重载 CParameterOperate .
在文件 ParameterFileTransfer.cpp 第 28 行定义.
|
overrideprotectedvirtual |
重载 CParameterOperate .
在文件 ParameterFileTransfer.cpp 第 35 行定义.
void CParameterFileTransfer::SetProtocol | ( | Protocol | newType | ) |
在文件 ParameterFileTransfer.cpp 第 20 行定义.
CParameterNet CParameterFileTransfer::m_Net |
在文件 ParameterFileTransfer.h 第 16 行定义.
|
private |
在文件 ParameterFileTransfer.h 第 29 行定义.
CParameterSSH CParameterFileTransfer::m_SSH |
在文件 ParameterFileTransfer.h 第 17 行定义.