MoSync 3.3
MAUtil::BuffDownloadListener Class Reference

Listener for events from the BuffDownloader class. More...

#include <MAUtil/BuffDownloader.h>

List of all members.

Public Member Functions

virtual void notifyProgress (BuffDownloader *downloader, int downloadedBytes, int totalBytes)
virtual void finishedDownloading (BuffDownloader *downloader, char *data)=0
virtual void downloadCancelled (BuffDownloader *downloader)=0
virtual void error (BuffDownloader *downloader, int code)=0

Detailed Description

Listener for events from the BuffDownloader class.


Member Function Documentation

virtual void MAUtil::BuffDownloadListener::notifyProgress ( BuffDownloader downloader,
int  downloadedBytes,
int  totalBytes 
) [virtual]

Called when some data has been downloaded to notify about the progress of the download.

Parameters:
downloaderA pointer to the downloader sending this event.
downloadedBytesThe amount of bytes downloaded.
totalBytesThe amount of bytes to be downloaded.
virtual void MAUtil::BuffDownloadListener::finishedDownloading ( BuffDownloader downloader,
char *  data 
) [pure virtual]

Called when all data has been downloaded.

Parameters:
downloaderA pointer to the downloader sending this event.
dataC string containing the downloaded data.
virtual void MAUtil::BuffDownloadListener::downloadCancelled ( BuffDownloader downloader) [pure virtual]

Called if the download has been cancelled.

Parameters:
downloaderA pointer to the downloader sending this event.
virtual void MAUtil::BuffDownloadListener::error ( BuffDownloader downloader,
int  code 
) [pure virtual]

Called if an error occured.

Parameters:
downloaderA pointer to the downloader sending this event.
codeThe error code describing the error. See CONNERR .
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines