Progress Event
Fires periodically during the data transfer.
Syntax
class RESTClientProgressEventParams { public: qint64 Total(); qint64 Current(); bool Cancel(); void SetCancel(bool bCancel); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void Progress(RESTClientProgressEventParams *e);
// Or, subclass RESTClient and override this emitter function. virtual int FireProgress(RESTClientProgressEventParams *e) {...}
Remarks
Use this event to check the progress of an upload or download operation. Total indicates the total number of bytes to be transferred; Current specifies how much data has been transferred so far, and Cancel gives you a chance to cancel the operation.