TransferDownloadEventProtocol

Introduction

Protocol for implement a TransferDownloadEvent delegate. Abstract base class which is used for getting notified on downloading progress.



Member Functions

onChunkReceived
onObjectDownloaded
onObjectDownloaded(cbe :: Object & &, std :: string)
onObjectDownloaded(cbe :: Object & &, std :: unique_ptr)
onObjectDownloadFailed

onChunkReceived


public

virtual void onChunkReceived( cbe::Object&& object, std::uint64_t received, std::uint64_t total);
Discussion

Gets called when a chunk of data has successfully been recieved.


onObjectDownloaded


public

virtual void onObjectDownloaded( cbe::Object&& object, std::unique_ptr<char[]> data);
Discussion

IMPORTANT!! This data is on the heap and you are responsible for calling delete on it. We may change data to a shared pointer in the future.


onObjectDownloaded(cbe :: Object & &, std :: string)


public

virtual void onObjectDownloaded( cbe::Object&& object, std::string path);
Discussion

Gets called when a download has completed.


onObjectDownloaded(cbe :: Object & &, std :: unique_ptr)


public

virtual void onObjectDownloaded( cbe::Object&& object, std::unique_ptr<char[]> data);
Discussion

Gets called when a download has completed.


onObjectDownloadFailed


public

virtual void onObjectDownloadFailed( cbe::Object&& object, cbe::failed_status_t status);
Discussion

Gets called when a error has occured in the download stream