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

Public Member Functions | |
| BuffDownloader () | |
| virtual | ~BuffDownloader () |
| virtual void | addBuffDownloadListener (BuffDownloadListener *bdl) |
| virtual int | beginDownloading (const char *url) |
| 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 char * | getData () |
| void | fireFinishedDownloading (char *data) |
| void | fireError (int code) |
| void | connRecvFinished (Connection *conn, int result) |
| virtual void | httpFinished (HttpConnection *http, int result) |
Protected Attributes | |
| HttpConnection * | mConn |
| bool | mDownloading |
| char * | mData |
| int | mDataOffset |
| int | mContentLength |
| Vector< BuffDownloadListener * > | mBuffDownloadListeners |
|
|
The constructor. |
|
|
The destructor. |
|
|
Registers a BuffDownloadListener, to which all events for this BuffDownloader is distributed.
|
|
|
Begins downloading a file.
|
|
|
Cancels the current download. |
|
|
Indicates whether the BuffDownloader is currently downloading something.
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Called when a recv operation finishes.
Reimplemented from MAUtil::ConnectionListener. |
|
||||||||||||
|
Called when a finish operation is done.
Implements MAUtil::HttpConnectionListener. |
|
||||||||||||
|
Called when a connect operation finishes.
|
|
||||||||||||
|
Called when a write operation finishes. |
|
||||||||||||
|
Called when a read operation finishes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6-NO