BeforeSendReply Event
Notifies the application of a command reply being sent.
Syntax
class FTPServerBeforeSendReplyEventParams { public: qint64 ConnectionID(); int Code(); void SetCode(int iCode); const QString &Reply(); void SetReply(const QString &qsReply); const QString &Command(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void BeforeSendReply(FTPServerBeforeSendReplyEventParams *e);
// Or, subclass FTPServer and override this emitter function. virtual int FireBeforeSendReply(FTPServerBeforeSendReplyEventParams *e) {...}
Remarks
The class fires this event to tell the application that a command reply is about to be sent. The Command parameter indicates the command that induced the reply, and Code and Reply indicate the pre-generated response.
You can alter the response parameters in your code to send bespoke replies.