Rabbit Remote Control 0.0.37
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
COperateFileTransfer Class Reference

File transfer operate interface. More...

#include <OperateFileTransfer.h>

Inheritance diagram for COperateFileTransfer:
Inheritance graph
[legend]
Collaboration diagram for COperateFileTransfer:
Collaboration graph
[legend]

Public Member Functions

 COperateFileTransfer (CPlugin *plugin)
 
virtual Q_INVOKABLE CBackendInstanceBackend ()
 New CBackend.
 
virtual const QString Id () override
 Identity.
 
virtual const QString Name () override
 Name.
 
virtual const QString Description () override
 Description.
 
virtual const QString Protocol () const override
 Protocol.
 
virtual const qint16 Version () const override
 Version.
 
virtual QWidget * GetViewer () override
 Get Viewer.
 
virtual int Start () override
 Start.
 
virtual int Stop () override
 Stop.
 
CParameterFileTransferGetParameter ()
 
- 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 SecurityLevel GetSecurityLevel ()
 
virtual QString GetSecurityLevelString ()
 
virtual QColor GetSecurityLevelColor ()
 
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 Load (QSettings &set) override
 Load parameters.
 
virtual int Save (QSettings &set) override
 Save parameters.
 
virtual int Initial () override
 Initial parameters and resource.
 
virtual int Clean () override
 Clean parameters and resource.
 
- 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 slotCopyUrlToClipboard (const QString &szPath)
 

Private Member Functions

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

Private Attributes

CFrmFileTransferm_frmFileTransfer
 
CParameterFileTransfer m_Parameter
 
CBackendThreadm_pThread
 

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 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)
 
- 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

File transfer operate interface.

Definition at line 13 of file OperateFileTransfer.h.

Constructor & Destructor Documentation

◆ ~COperateFileTransfer()

COperateFileTransfer::~COperateFileTransfer ( )
virtual

Definition at line 30 of file OperateFileTransfer.cpp.

Member Function Documentation

◆ Clean()

int COperateFileTransfer::Clean ( )
overrideprotectedvirtual

Clean parameters and resource.

See also
CManager::DeleteOperate

Reimplemented from COperate.

Definition at line 77 of file OperateFileTransfer.cpp.

◆ Description()

const QString COperateFileTransfer::Description ( )
overridevirtual

Description.

Reimplemented from COperate.

Definition at line 161 of file OperateFileTransfer.cpp.

◆ GetParameter()

CParameterFileTransfer * COperateFileTransfer::GetParameter ( )

Definition at line 40 of file OperateFileTransfer.cpp.

◆ GetViewer()

QWidget * COperateFileTransfer::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 50 of file OperateFileTransfer.cpp.

◆ Id()

const QString COperateFileTransfer::Id ( )
overridevirtual

Identity.

Reimplemented from COperate.

Definition at line 204 of file OperateFileTransfer.cpp.

◆ Initial()

int COperateFileTransfer::Initial ( )
overrideprotectedvirtual

Initial parameters and resource.

See also
CManager::CreateOperate

Reimplemented from COperate.

Definition at line 55 of file OperateFileTransfer.cpp.

◆ InstanceBackend()

CBackend * COperateFileTransfer::InstanceBackend ( )
virtual

New CBackend.

the ownership is caller. if don't use, the caller must delete it.

Definition at line 35 of file OperateFileTransfer.cpp.

◆ Load()

int COperateFileTransfer::Load ( QSettings &  set)
overrideprotectedvirtual

Load parameters.

Reimplemented from COperate.

Definition at line 123 of file OperateFileTransfer.cpp.

◆ Name()

const QString COperateFileTransfer::Name ( )
overridevirtual

Name.

Reimplemented from COperate.

Definition at line 137 of file OperateFileTransfer.cpp.

◆ OnOpenDialogSettings()

QDialog * COperateFileTransfer::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 118 of file OperateFileTransfer.cpp.

◆ Protocol()

const QString COperateFileTransfer::Protocol ( ) const
overridevirtual

Protocol.

Reimplemented from COperate.

Definition at line 193 of file OperateFileTransfer.cpp.

◆ Save()

int COperateFileTransfer::Save ( QSettings &  set)
overrideprotectedvirtual

Save parameters.

Reimplemented from COperate.

Definition at line 130 of file OperateFileTransfer.cpp.

◆ SetGlobalParameters()

int COperateFileTransfer::SetGlobalParameters ( CParameterPlugin pPara)
overrideprotectedvirtual

Apply the global parameters of the plug-in.

Note
If you don't need the global parameters of the plugin, override it in the derived class and ignore.
See also
CManager::CreateOperate CParameterPlugin

Implements COperate.

Definition at line 112 of file OperateFileTransfer.cpp.

◆ slotCopyUrlToClipboard

void COperateFileTransfer::slotCopyUrlToClipboard ( const QString &  szPath)
privateslot

Definition at line 227 of file OperateFileTransfer.cpp.

◆ Start()

int COperateFileTransfer::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 88 of file OperateFileTransfer.cpp.

◆ Stop()

int COperateFileTransfer::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 100 of file OperateFileTransfer.cpp.

◆ Version()

const qint16 COperateFileTransfer::Version ( ) const
overridevirtual

Version.

Implements COperate.

Definition at line 45 of file OperateFileTransfer.cpp.

Member Data Documentation

◆ m_frmFileTransfer

CFrmFileTransfer* COperateFileTransfer::m_frmFileTransfer
private

Definition at line 52 of file OperateFileTransfer.h.

◆ m_Parameter

CParameterFileTransfer COperateFileTransfer::m_Parameter
private

Definition at line 53 of file OperateFileTransfer.h.

◆ m_pThread

CBackendThread* COperateFileTransfer::m_pThread
private

Definition at line 54 of file OperateFileTransfer.h.


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