FileOperationResult Event
Reports the result of a file transfer operation.
Syntax
ANSI (Cross Platform) virtual int FireFileOperationResult(FTPClientFileOperationResultEventParams *e);
typedef struct {
int Operation;
const char *RemotePath;
const char *LocalPath;
int ErrorCode;
const char *Comment;
int Cancel; int reserved; } FTPClientFileOperationResultEventParams; Unicode (Windows) virtual INT FireFileOperationResult(FTPClientFileOperationResultEventParams *e);
typedef struct {
INT Operation;
LPCWSTR RemotePath;
LPCWSTR LocalPath;
INT ErrorCode;
LPCWSTR Comment;
BOOL Cancel; INT reserved; } FTPClientFileOperationResultEventParams;
- (void)onFileOperationResult:(int)operation :(NSString*)remotePath :(NSString*)localPath :(int)errorCode :(NSString*)comment :(int*)cancel;
#define EID_FTPCLIENT_FILEOPERATIONRESULT 7 virtual INT SECUREBLACKBOXLITE_CALL FireFileOperationResult(INT &iOperation, LPSTR &lpszRemotePath, LPSTR &lpszLocalPath, INT &iErrorCode, LPSTR &lpszComment, BOOL &bCancel);
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 |