Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CParameterSftpServer Class Reference
Inheritance diagram for CParameterSftpServer:
Collaboration diagram for CParameterSftpServer:

Public Member Functions

 CParameterSftpServer (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)
Public Member Functions inherited from CParameterServer
 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 Member Functions inherited from CParameterOperate
 CParameterOperate (QObject *parent, const QString &szPrefix=QString())
CParameterPluginGetPluginParameters ()
 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 Member Functions inherited from 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 ()
 Check whether the parameter is valid to decide whether to use or save the parameter.

Protected Member Functions

virtual int OnLoad (QSettings &set) override
virtual int OnSave (QSettings &set) override
Protected Member Functions inherited from CParameterOperate
QByteArray PasswordSum (const std::string &password, const std::string &key)
Protected Member Functions inherited from CParameter
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

bool m_bAnonymousLogin
bool m_bReadOnly
QString m_szRoot

Additional Inherited Members

Signals inherited from CParameterOperate
void sigSetPluginParameters ()
 Only used by this class.
void sigNameChanged (const QString &name=QString())
Signals inherited from CParameter
void sigChanged ()
 emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.
Public Attributes inherited from CParameterServer
CParameterNet m_Net
CParameterFilter m_WhiteFilter
CParameterFilter m_BlackFilter
Protected Slots inherited from CParameterServer
virtual void slotSetPluginParameters () override
Protected Slots inherited from CParameterOperate
virtual void slotSetPluginParameters ()
 Call after set CParameterPlugin.
Properties inherited from CParameter
bool Modified

Detailed Description

Definition at line 7 of file ParameterSftpServer.h.

Constructor & Destructor Documentation

◆ CParameterSftpServer()

CParameterSftpServer::CParameterSftpServer ( QObject * parent = nullptr,
const QString & szPrefix = QString() )
explicit

Definition at line 5 of file ParameterSftpServer.cpp.

Member Function Documentation

◆ GetAnonymousLogin()

bool CParameterSftpServer::GetAnonymousLogin ( ) const

Definition at line 44 of file ParameterSftpServer.cpp.

◆ GetReadOnly()

bool CParameterSftpServer::GetReadOnly ( ) const

Definition at line 57 of file ParameterSftpServer.cpp.

◆ GetRoot()

QString CParameterSftpServer::GetRoot ( ) const

Definition at line 70 of file ParameterSftpServer.cpp.

◆ OnLoad()

int CParameterSftpServer::OnLoad ( QSettings & set)
overrideprotectedvirtual

Reimplemented from CParameterServer.

Definition at line 22 of file ParameterSftpServer.cpp.

◆ OnSave()

int CParameterSftpServer::OnSave ( QSettings & set)
overrideprotectedvirtual

Reimplemented from CParameterServer.

Definition at line 33 of file ParameterSftpServer.cpp.

◆ SetAnonymousLogin()

void CParameterSftpServer::SetAnonymousLogin ( bool newAnonymousLogin)

Definition at line 49 of file ParameterSftpServer.cpp.

◆ SetReadOnly()

void CParameterSftpServer::SetReadOnly ( bool newReadOnly)

Definition at line 62 of file ParameterSftpServer.cpp.

◆ SetRoot()

void CParameterSftpServer::SetRoot ( const QString & newRoot)

Definition at line 75 of file ParameterSftpServer.cpp.

Member Data Documentation

◆ m_bAnonymousLogin

bool CParameterSftpServer::m_bAnonymousLogin
private

Definition at line 19 of file ParameterSftpServer.h.

◆ m_bReadOnly

bool CParameterSftpServer::m_bReadOnly
private

Definition at line 24 of file ParameterSftpServer.h.

◆ m_szRoot

QString CParameterSftpServer::m_szRoot
private

Definition at line 29 of file ParameterSftpServer.h.


The documentation for this class was generated from the following files: