StartTransfer Event
Fired when a document starts transferring.
Syntax
class OFTPClientStartTransferEventParams { public: int Direction(); const QString &LocalFile(); void SetLocalFile(const QString &qsLocalFile); const QString &VirtualFileName(); const QString &VirtualFileDate(); const QString &Destination(); const QString &Originator(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void StartTransfer(OFTPClientStartTransferEventParams *e);
// Or, subclass OFTPClient and override this emitter function. virtual int FireStartTransfer(OFTPClientStartTransferEventParams *e) {...}
Remarks
This event fires when a file transfer begins.
Direction specifies if the client or server sent the file.
0 (Client) | The file originated from the client. |
1 (Server) | The file originated from the server. |
VirtualFileName holds the filename.
VirtualFileDate holds the date associated with the file in the format "MM/dd/yyyy HH:mm:ss".
Originator identifies the sender (SFID) code in the send file request.
Destination identifies the receiver (SFID) code in the send file request.
LocalFile holds the full path to the file that will be written.