FragmentComplete Event

Fires after each fragment of a resumable upload is completed.

Syntax

class OneDriveFragmentCompleteEventParams {
public:
  int FragmentNumber();
  int FragmentCount();
  bool Interrupt();
  void SetInterrupt(bool bInterrupt);
  int EventRetVal();
  void SetEventRetVal(int iRetVal);
};
// To handle, connect one or more slots to this signal. void FragmentComplete(OneDriveFragmentCompleteEventParams *e);
// Or, subclass OneDrive and override this emitter function. virtual int FireFragmentComplete(OneDriveFragmentCompleteEventParams *e) {...}

Remarks

When UseResumableUpload is true and UploadFile is called, this event will fire after each fragment is uploaded, providing an indication of overall upload progress.

FragmentNumber is the number of the current fragment that has completed. This value starts at 1.

FragmentCount is the total number of fragments that will be uploaded.

Interrupt can be set to true to interrupt the upload. The upload may be resumed later.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Qt Edition - Version 20.0 [Build 8265]