SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
cbe::delegate::DownloadDelegate Class Referenceabstract

#include <DownloadDelegate.h>

Classes

struct  ErrorInfo
 

Public Types

using Success = DownloadSuccess
 
using Error = cbe::delegate::TransferError
 

Public Member Functions

virtual void onDownloadSuccess (cbe::Object &&object, std::string path)=0
 
virtual void onDownloadError (cbe::delegate::TransferError &&transferError, cbe::util::Context &&context)=0
 
virtual void onChunkReceived (cbe::Object &&object, std::uint64_t received, std::uint64_t total)
 

Detailed Description

Member Function Documentation

◆ onChunkReceived()

virtual void cbe::delegate::DownloadDelegate::onChunkReceived ( cbe::Object &&  object,
std::uint64_t  received,
std::uint64_t  total 
)
virtual

Called when a chunk of data has been received.

Parameters
objectObject associated with current download.
receivedSize, in number of bytes, of the received chunk.
totalTotal number of bytes received so far.

◆ onDownloadError()

virtual void cbe::delegate::DownloadDelegate::onDownloadError ( cbe::delegate::TransferError &&  transferError,
cbe::util::Context &&  context 
)
pure virtual

Called if an error is encountered.

◆ onDownloadSuccess()

virtual void cbe::delegate::DownloadDelegate::onDownloadSuccess ( cbe::Object &&  object,
std::string  path 
)
pure virtual

Called upon successful Download.

Parameters
objectInstance of object that is being Downloaded.
pathPath of object to be downloaded.

The documentation for this class was generated from the following file: