TransferEventProtocol.h

Includes:
"CBE/Types.h"
<memory>

Introduction

Use the links in the table of contents to the left to access the documentation.



Classes

TransferDownloadEventProtocol
TransferEventProtocol


Functions

onChunkSent
onObjectUploaded
onObjectUploadFailed

onChunkSent


virtual void onChunkSent(
    cbe::Object&& object, 
    std::uint64_t sent, 
    std::uint64_t total);  
Discussion

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


onObjectUploaded


virtual void onObjectUploaded(
    cbe::Object&& object);  
Discussion

Gets called when a upload has been completed.


onObjectUploadFailed


virtual void onObjectUploadFailed(
    std::string name, 
    cbe::ObjectId objectId, 
    cbe::ContainerId parentId, 
    cbe::failed_status_t status);  
Discussion

Gets called when a error has occured in the upload stream.


Globals

cbe

cbe


enum FailedStatus : cbe::failed_status_t { 
    FileNotFound = 1, 
    NotEnoughSpace = 2, 
    Aborted = 3, 
    Unknown = 4 
};  // enum FailedStatus 
Discussion

Enum class for the different transfer failures that can occur.