FileOperationResult Event
Reports the result of a file transfer operation.
Syntax
class FTPClientFileOperationResultEventParams { public: int Operation(); const QString &RemotePath(); const QString &LocalPath(); int ErrorCode(); const QString &Comment(); bool Cancel(); void SetCancel(bool bCancel); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void FileOperationResult(FTPClientFileOperationResultEventParams *e);
// Or, subclass FTPClient and override this emitter function. virtual int FireFileOperationResult(FTPClientFileOperationResultEventParams *e) {...}
Remarks
The class fires this event from DownloadFiles and UploadFiles to notify the application of the completion of a file operation.
ErrorCode and Comment provide the details of the operation. Use the Cancel parameter to terminate the whole multi-file operation if needed.
Operations:
cffoDownloadFile | 0 | Download file |
cffoUploadFile | 1 | Upload file |
cffoDeleteFile | 2 | Delete file |
cffoMakeDir | 3 | Make directory |