#include <TransferEventProtocol.h>
Protocol for implement a TransferDownloadEvent delegate. Abstract base class which is used for getting notified on downloading progress.
◆ 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: