C++  1.4.6
CloudBackend Software Development Kit - SDK API for C++
Public Member Functions | List of all members
CBE::TransferDownloadEventProtocol Class Reference

#include <TransferEventProtocol.h>

Inheritance diagram for CBE::TransferDownloadEventProtocol:
Inheritance graph
[legend]

Public Member Functions

virtual void onChunkReceived (CBE::ObjectPtr object, size_t received, size_t total)
 
virtual void onObjectDownloaded (CBE::ObjectPtr object, CBE::user_id_t user_id, std::string path)
 
virtual void onObjectDownloaded (CBE::ObjectPtr object, CBE::user_id_t user_id, char *data)
 
virtual void onObjectDownloadFailed (CBE::ObjectPtr object, CBE::failed_status_t status)
 

Detailed Description

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

Member Function Documentation

◆ onChunkReceived()

virtual void CBE::TransferDownloadEventProtocol::onChunkReceived ( CBE::ObjectPtr  object,
size_t  received,
size_t  total 
)
inlinevirtual

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

◆ onObjectDownloaded() [1/2]

virtual void CBE::TransferDownloadEventProtocol::onObjectDownloaded ( CBE::ObjectPtr  object,
CBE::user_id_t  user_id,
std::string  path 
)
inlinevirtual

Gets called when a download has completed.

◆ onObjectDownloaded() [2/2]

virtual void CBE::TransferDownloadEventProtocol::onObjectDownloaded ( CBE::ObjectPtr  object,
CBE::user_id_t  user_id,
char *  data 
)
inlinevirtual

Gets called when a download has completed. 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.

◆ onObjectDownloadFailed()

virtual void CBE::TransferDownloadEventProtocol::onObjectDownloadFailed ( CBE::ObjectPtr  object,
CBE::failed_status_t  status 
)
inlinevirtual

Gets called when a error has occured in the download stream


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