CloseFile Event
This event instructs the application to close an opened file.
Syntax
class SFTPServerCloseFileEventParams { public: qint64 ConnectionID(); const QString &Handle(); int OperationStatus(); void SetOperationStatus(int iOperationStatus); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void CloseFile(SFTPServerCloseFileEventParams *e);
// Or, subclass SFTPServer and override this emitter function. virtual int FireCloseFile(SFTPServerCloseFileEventParams *e) {...}
Remarks
This event is fired upon receipt of a close-file packet from a client. Servers implementing virtualized transfers must close the previously opened local file referenced by Handle in this event handler. No further operations are allowed with the closed file.
Set OperationStatus to one of the following values to report the result of this operation to the client:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |