TransferCompleted Event
This event is fired when a customized upload or download operation completes.
Syntax
class FTPServerTransferCompletedEventParams { public: qint64 ConnectionID(); int OperationStatus(); void SetOperationStatus(int iOperationStatus); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void TransferCompleted(FTPServerTransferCompletedEventParams *e);
// Or, subclass FTPServer and override this emitter function. virtual int FireTransferCompleted(FTPServerTransferCompletedEventParams *e) {...}
Remarks
This event is fired when a customized transfer operation completes. This event is only fired for operations handled by the user code, i.e. those intercepted with BeforeUploadFile or BeforeDownloadFile event, and with Action parameter set to fraCustom.
The ConnectionID parameter specifies the session to which the event belongs, and OperationStatus reports the outcome of the transfer operation.
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |