Rabbit Remote Control 0.1.0-bate6
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
COperateFtpServer Class Reference
Inheritance diagram for COperateFtpServer:
Inheritance graph
[legend]
Collaboration diagram for COperateFtpServer:
Collaboration graph
[legend]

Public Member Functions

 COperateFtpServer (CPlugin *plugin)
 
virtual const qint16 Version () const override
 Version.
 
virtual QWidget * GetViewer () override
 Get Viewer.
 
virtual int Start () override
 Start.
 
virtual int Stop () override
 Stop.
 
virtual Q_INVOKABLE CBackendInstanceBackend ()
 
QSharedPointer< CParameterFtpServerGetParameter ()
 
- Public Member Functions inherited from COperate
 COperate (CPlugin *plugin)
 
virtual int OpenDialogSettings (QWidget *parent=nullptr)
 Open settings dialog.
 
virtual QMenu * GetMenu (QWidget *parent=nullptr)
 Get menu.
 
virtual CStatsGetStats ()
 
virtual SecurityLevel GetSecurityLevel ()
 
virtual QString GetSecurityLevelString ()
 
virtual QColor GetSecurityLevelColor ()
 
virtual const QString Id ()
 Identity.
 
virtual const QString Name ()
 Name.
 
virtual const QString Description ()
 Description.
 
virtual const QString Protocol () const
 Protocol.
 
virtual const QIcon Icon () const
 Icon.
 
virtual const QString GetTypeName () const
 Get type name.
 
virtual QString GetSettingsFile ()
 
virtual int SetSettingsFile (const QString &szFile)
 

Protected Member Functions

virtual int SetGlobalParameters (CParameterPlugin *pPara) override
 Apply the global parameters of the plug-in.
 
virtual int Initial () override
 Initial parameters and resource.
 
virtual int Clean () override
 Clean parameters and resource.
 
virtual int Load (QSettings &set) override
 Load parameters.
 
virtual int Save (QSettings &set) override
 Save parameters.
 
- Protected Member Functions inherited from COperate
Q_INVOKABLE CPluginGetPlugin () const
 Get plugin.
 
virtual Q_INVOKABLE int Load (QString szFile=QString())
 Load parameters from file.
 
virtual Q_INVOKABLE int Save (QString szFile=QString())
 Save parameters to file.
 

Private Slots

void slotStart (bool checked)
 

Private Member Functions

virtual QDialog * OnOpenDialogSettings (QWidget *parent) override
 Open settgins dialog.
 

Private Attributes

CBackendThreadm_pThread
 
QSharedPointer< CParameterFtpServerm_Para
 
CFrmMainm_pView
 
QAction * m_pStart
 

Friends

class CFrmMain
 

Additional Inherited Members

- Public Types inherited from COperate
enum class  SecurityLevel {
  No , Secure , NonSecureAuthentication , SecureChannel ,
  Normal = SecureChannel , SecureAuthentication , Risky
}
 
- Signals inherited from COperate
void sigRunning ()
 Start success signal.
 
void sigStop ()
 Notify the user to stop.
 
void sigFinished ()
 Successful disconnection signal.
 
void sigViewerFocusIn (QWidget *pView)
 The view is focus.
 
void sigFullScreen (bool bFullScreen)
 Full screen.
 
void sigUpdateName (const QString &szName)
 
void sigUpdateParameters (COperate *pOperate)
 Update parameters, notify application to save or show parameters.
 
void sigError (const int nError, const QString &szError)
 Triggered when an error is generated.
 
void sigInformation (const QString &szInfo)
 Show information in main windows.
 
void sigShowMessageBox (const QString &title, const QString &message, const QMessageBox::Icon &icon=QMessageBox::Information)
 Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread without blocking the background thread.
 
void sigClipBoardChanged ()
 
- Static Public Member Functions inherited from COperate
static QString GetSecurityLevelString (SecurityLevel level)
 
static QColor GetSecurityLevelColor (SecurityLevel level)
 
- Protected Slots inherited from COperate
void slotUpdateName ()
 
- Static Protected Member Functions inherited from COperate
static QObject * createObject (const QString &className, QObject *parent=NULL)
 
- Protected Attributes inherited from COperate
QMenu m_Menu
 
QAction * m_pActionSettings
 

Detailed Description

Definition at line 10 of file OperateFtpServer.h.

Constructor & Destructor Documentation

◆ ~COperateFtpServer()

COperateFtpServer::~COperateFtpServer ( )

Definition at line 19 of file OperateFtpServer.cpp.

Member Function Documentation

◆ Clean()

int COperateFtpServer::Clean ( )
overrideprotectedvirtual

Clean parameters and resource.

See also
CManager::DeleteOperate

Reimplemented from COperate.

Definition at line 128 of file OperateFtpServer.cpp.

◆ GetParameter()

QSharedPointer< CParameterFtpServer > COperateFtpServer::GetParameter ( )

Definition at line 136 of file OperateFtpServer.cpp.

◆ GetViewer()

QWidget * COperateFtpServer::GetViewer ( )
overridevirtual

Get Viewer.

Returns
QWidget*: the ownership is a instance of this class or its derivative class
Note
If you implement the view yourself, you need to disable the view at the beginning and allow the view after sigRun.
See also
sigRunning CFrmViewer::CFrmViewer

Implements COperate.

Definition at line 29 of file OperateFtpServer.cpp.

◆ Initial()

int COperateFtpServer::Initial ( )
overrideprotectedvirtual

Initial parameters and resource.

Note
Call before Load()
See also
CManager::CreateOperate Load

Reimplemented from COperate.

Definition at line 94 of file OperateFtpServer.cpp.

◆ InstanceBackend()

CBackend * COperateFtpServer::InstanceBackend ( )
virtual

Definition at line 50 of file OperateFtpServer.cpp.

◆ Load()

int COperateFtpServer::Load ( QSettings &  set)
overrideprotectedvirtual

Load parameters.

Implements COperate.

Definition at line 80 of file OperateFtpServer.cpp.

◆ OnOpenDialogSettings()

QDialog * COperateFtpServer::OnOpenDialogSettings ( QWidget *  parent)
overrideprivatevirtual

Open settgins dialog.

Parameters
parentthe parent windows of the dialog of return
Returns
QDialog*: then QDialog must be allocated in heap memory, the ownership is caller.
See also
OpenDialogSettings

Implements COperate.

Definition at line 74 of file OperateFtpServer.cpp.

◆ Save()

int COperateFtpServer::Save ( QSettings &  set)
overrideprotectedvirtual

Save parameters.

Implements COperate.

Definition at line 87 of file OperateFtpServer.cpp.

◆ SetGlobalParameters()

int COperateFtpServer::SetGlobalParameters ( CParameterPlugin pPara)
overrideprotectedvirtual

Apply the global parameters of the plug-in.

Note
Call CParameterOperate::SetGlobalParameters to set the global parameters for the operation parameters, and connect the signals related to the global parameters.
See also
CManager::CreateOperate CParameterPlugin

Implements COperate.

Definition at line 68 of file OperateFtpServer.cpp.

◆ slotStart

void COperateFtpServer::slotStart ( bool  checked)
privateslot

Definition at line 141 of file OperateFtpServer.cpp.

◆ Start()

int COperateFtpServer::Start ( )
overridevirtual

Start.

Note
Only call by user, The plugin don't call it. When plugin is started, it emit sigRunning()
See also
sigRunning()

Implements COperate.

Definition at line 34 of file OperateFtpServer.cpp.

◆ Stop()

int COperateFtpServer::Stop ( )
overridevirtual

Stop.

Note
Only call by user, The plugin don't call it. When plugin is stopped, it emit sigFinished(). The caller receive the signal, then delete the object.
See also
sigFinished()

Implements COperate.

Definition at line 41 of file OperateFtpServer.cpp.

◆ Version()

const qint16 COperateFtpServer::Version ( ) const
overridevirtual

Version.

Implements COperate.

Definition at line 24 of file OperateFtpServer.cpp.

Friends And Related Symbol Documentation

◆ CFrmMain

friend class CFrmMain
friend

Definition at line 45 of file OperateFtpServer.h.

Member Data Documentation

◆ m_Para

QSharedPointer<CParameterFtpServer> COperateFtpServer::m_Para
private

Definition at line 41 of file OperateFtpServer.h.

◆ m_pStart

QAction* COperateFtpServer::m_pStart
private

Definition at line 43 of file OperateFtpServer.h.

◆ m_pThread

CBackendThread* COperateFtpServer::m_pThread
private

Definition at line 40 of file OperateFtpServer.h.

◆ m_pView

CFrmMain* COperateFtpServer::m_pView
private

Definition at line 42 of file OperateFtpServer.h.


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