#include <MAUtil/Downloader.h>
Inheritance diagram for MAUtil::AudioDownloader:

Public Member Functions | |
| int | beginDownloading (const char *url, MAHandle placeholder=0, const char *mimeType=0, bool forceMyMime=false) |
| virtual int | beginDownloading (const char *url, MAHandle placeholder) |
| void | addDownloadListener (DownloadListener *dl) |
| void | removeDownloadListener (DownloadListener *dl) |
| virtual void | cancelDownloading () |
| bool | isDownloading () const |
| virtual void | connectFinished (Connection *conn, int result) __attribute__((noreturn)) |
| virtual void | connWriteFinished (Connection *conn, int result) __attribute__((noreturn)) |
| virtual void | connReadFinished (Connection *conn, int result) __attribute__((noreturn)) |
Protected Member Functions | |
| virtual void | httpFinished (HttpConnection *http, int result) |
| virtual MAHandle | getHandle () |
| void | fireFinishedDownloading (MAHandle data) |
| void | fireError (int code) |
| void | connRecvFinished (Connection *conn, int result) |
Protected Attributes | |
| String | mMimeType |
| bool | mForce |
| HttpConnection * | mConn |
| bool | mIsDownloading |
| bool | mUserData |
| MAHandle | mData |
| int | mDataOffset |
| int | mContentLength |
| Vector< DownloadListener * > | mDownloadListeners |
|
||||||||||||||||||||
|
Same as Downloader::beginDownloading() with an additional optional parameter to specify mime type of the downloaded file. If neither the server or you provide a mime type, CONNERR_NOHEADER will be thrown. If both the server and you provide a mime type, by default the server's will be picked, but you can force use of your mime type. |
|
||||||||||||
|
Function to begin downloading a file.
Reimplemented from MAUtil::Downloader. |
|
||||||||||||
|
Called when a finish operation is done.
Reimplemented from MAUtil::Downloader. |
|
|
Function to register a DownloadListener, to which all events for this Downloader is distributed.
|
|
|
|
|
|
Function to cancel the current download. Reimplemented in MAUtil::ImageDownloader. |
|
|
Function to retrieve if the Downloader is currently downloading something.
|
|
|
Reimplemented in MAUtil::ImageDownloader. |
|
|
|
|
|
|
|
||||||||||||
|
Called when a recv operation finishes.
Reimplemented from MAUtil::ConnectionListener. |
|
||||||||||||
|
Called when a connect operation finishes.
|
|
||||||||||||
|
Called when a write operation finishes. |
|
||||||||||||
|
Called when a read operation finishes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6-NO