玉兔远程控制 0.1.0-alpha.2
载入中...
搜索中...
未找到
信号 | Public 成员函数 | Protected 成员函数 | Private 槽 | Private 成员函数 | Private 属性 | 所有成员列表
CBackendFileTransfer类 参考
类 CBackendFileTransfer 继承关系图:
Inheritance graph
[图例]
CBackendFileTransfer 的协作图:
Collaboration graph
[图例]

信号

void sigGetDir (CRemoteFileSystem *, QVector< QSharedPointer< CRemoteFileSystem > > contents, bool bEnd)
 
void sigFileTransferUpdate (QSharedPointer< CFileTransfer > f)
 
- 信号 继承自 CBackend
void sigRunning ()
 当插件开始成功后触发。仅由插件触发
 
void sigStop ()
 需要通知用户停止时触发。仅由插件触发。 当从插件中需要停止时触发。例如:对端断开连接、重置连接或者连接出错。
 
void sigFinished ()
 停止成功信号。仅由插件触发
 
void sigError (const int nError, const QString &szError=QString())
 当有错误产生时触发
 
void sigInformation (const QString &szInfo)
 从后台线程中触发在主线程中显示信息,不阻塞后台线程
 
void sigShowMessageBox (const QString &szTitle, const QString &szMessage, const QMessageBox::Icon &icon=QMessageBox::Information)
 从后台线程中触发在主线程中显示消息对话框(QMessageBox),不阻塞后台线程
 
void sigBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString())
 阻塞后台线程,并在前台线程中显示消息对话框(QMessageBox)
 
void sigBlockInputDialog (const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText)
 阻塞后台线程,并在前台线程中显示输入对话框 (QInputDialog)
 
void sigBlockShowWidget (const QString &className, int &nRet, void *pContext)
 阻塞后台线程,并在前台线程中显示窗口。
 

Public 成员函数

 CBackendFileTransfer (COperateFileTransfer *pOperate)
 
virtual bool event (QEvent *event) override
 
- Public 成员函数 继承自 CBackend
 CBackend (COperate *pOperate=nullptr)
 
virtual int Start ()
 开始。根据 OnInit() 返回值来决定是否开始定时器来支持非 qt 事件
 
virtual int Stop ()
 停止
 
virtual int WakeUp ()
 Wake up.
 

Protected 成员函数

virtual OnInitReturnValue OnInit () override
 初始化
 
virtual int OnClean () override
 清理
 
virtual int OnProcess () override
 具体操作处理
 

Private 槽

void slotMakeDir (const QString &szDir)
 
void slotRemoveDir (const QString &szDir)
 
void slotGetDir (CRemoteFileSystem *)
 
void slotRemoveFile (const QString &szFile)
 
void slotRename (const QString &oldName, const QString &newName)
 
void slotStartFileTransfer (QSharedPointer< CFileTransfer > f)
 
void slotStopFileTransfer (QSharedPointer< CFileTransfer > f)
 

Private 成员函数

int SetConnect (COperateFileTransfer *pOperate)
 
OnInitReturnValue InitSFTP ()
 

Private 属性

COperateFileTransferm_pOperate
 
CParameterFileTransferm_pPara
 

额外继承的成员函数

- Protected 类型 继承自 CBackend
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
 
- Protected 槽 继承自 CBackend
virtual void slotTimeOut ()
 一个非 Qt 事件处理,它调用 OnProcess(),并根据其返回值开始新的定时器。 如果是不是一个非 Qt 事件循环(就是普通的循环处理), 可以重载它,或者 OnInit() 返回值大于 0
 

详细描述

在文件 BackendFileTransfer.h14 行定义.

构造及析构函数说明

◆ CBackendFileTransfer()

CBackendFileTransfer::CBackendFileTransfer ( COperateFileTransfer pOperate)

在文件 BackendFileTransfer.cpp44 行定义.

◆ ~CBackendFileTransfer()

CBackendFileTransfer::~CBackendFileTransfer ( )
virtual

在文件 BackendFileTransfer.cpp58 行定义.

成员函数说明

◆ event()

bool CBackendFileTransfer::event ( QEvent *  event)
overridevirtual

在文件 BackendFileTransfer.cpp63 行定义.

◆ InitSFTP()

CBackendFileTransfer::OnInitReturnValue CBackendFileTransfer::InitSFTP ( )
private

在文件 BackendFileTransfer.cpp189 行定义.

◆ OnClean()

int CBackendFileTransfer::OnClean ( )
overrideprotectedvirtual

清理

参见
Stop()

实现了 CBackend.

在文件 BackendFileTransfer.cpp129 行定义.

◆ OnInit()

CBackend::OnInitReturnValue CBackendFileTransfer::OnInit ( )
overrideprotectedvirtual

初始化

返回
参见
Start()

实现了 CBackend.

在文件 BackendFileTransfer.cpp121 行定义.

◆ OnProcess()

int CBackendFileTransfer::OnProcess ( )
overrideprotectedvirtual

具体操作处理

返回
  • >= 0: 继续。再次调用间隔时间,单位毫秒
  • = -1: 停止
  • < -1: 错误
参见
Start() slotTimeOut()

重载 CBackend .

在文件 BackendFileTransfer.cpp142 行定义.

◆ SetConnect()

int CBackendFileTransfer::SetConnect ( COperateFileTransfer pOperate)
private

在文件 BackendFileTransfer.cpp152 行定义.

◆ slotGetDir

void CBackendFileTransfer::slotGetDir ( CRemoteFileSystem p)
privateslot

在文件 BackendFileTransfer.cpp241 行定义.

◆ slotMakeDir

void CBackendFileTransfer::slotMakeDir ( const QString &  szDir)
privateslot

在文件 BackendFileTransfer.cpp205 行定义.

◆ slotRemoveDir

void CBackendFileTransfer::slotRemoveDir ( const QString &  szDir)
privateslot

在文件 BackendFileTransfer.cpp214 行定义.

◆ slotRemoveFile

void CBackendFileTransfer::slotRemoveFile ( const QString &  szFile)
privateslot

在文件 BackendFileTransfer.cpp223 行定义.

◆ slotRename

void CBackendFileTransfer::slotRename ( const QString &  oldName,
const QString &  newName 
)
privateslot

在文件 BackendFileTransfer.cpp232 行定义.

◆ slotStartFileTransfer

void CBackendFileTransfer::slotStartFileTransfer ( QSharedPointer< CFileTransfer f)
privateslot

在文件 BackendFileTransfer.cpp253 行定义.

◆ slotStopFileTransfer

void CBackendFileTransfer::slotStopFileTransfer ( QSharedPointer< CFileTransfer f)
privateslot

在文件 BackendFileTransfer.cpp263 行定义.

类成员变量说明

◆ m_pOperate

COperateFileTransfer* CBackendFileTransfer::m_pOperate
private

在文件 BackendFileTransfer.h48 行定义.

◆ m_pPara

CParameterFileTransfer* CBackendFileTransfer::m_pPara
private

在文件 BackendFileTransfer.h52 行定义.


该类的文档由以下文件生成: