|
void | setPostData (const std::vector< char > &data) |
|
const std::vector< unsigned char > & | getResponse () const |
|
const std::vector< unsigned char > & | getPostData () const |
|
const std::string & | getFileName () const |
|
const std::string & | getUrl () const |
|
size_t | getReceivedSize () const |
|
size_t | getExpectedSize () const |
|
void | getResponseSwap (std::vector< unsigned char > &) |
|
int | getResponseCode () const |
|
const responseCodeChecker & | getResponseCodeChecker () const |
|
void | addHeader (const std::string &key, const std::string &value) |
|
void | setPostData (const std::vector< unsigned char > &data) |
|
void | setUrl (const std::string &url) |
|
void | setFileName (const std::string &name, bool continueDownload=false) |
|
void | setCacheEnabled (bool enabled) |
|
void | setResponseCodeChecker (const responseCodeChecker &f) |
|
void | setSuccessOnAnyResponseCode (bool en) |
|
void | setExpectedSize (size_t size) |
|
status | getStatus () const |
|
void | setStatus (status s) |
|
void | run () |
|
| EventDispatcher (const EventDispatcher &ed) |
|
int | addEventListener (eventType, const EventCallback &) |
|
void | removeEventListener (eventType, const EventCallback &) |
|
void | removeEventListener (int id) |
|
bool | hasEventListeners (void *CallbackThis) |
|
bool | hasEventListeners (eventType, const EventCallback &) |
|
void | removeEventListeners (void *CallbackThis) |
|
void | removeAllEventListeners () |
|
virtual void | dispatchEvent (Event *event) |
|
int | getListenersCount () const |
|
int | getLastListenerID () const |
|
const EventCallback & | getListenerByIndex (int index) const |
|
| Object (const Object &src) |
|
| Object (bool assignUniqueID=true) |
|
void | addRef () |
|
void | releaseRef () |
|
| ObjectBase (const ObjectBase &src) |
|
| ObjectBase (bool assignID=true) |
|
const std::string & | getName () const |
|
const void * | getUserData () const |
|
int | getObjectID () const |
|
bool | isName (const std::string &name) const |
|
bool | isName (const char *name) const |
|
void | setName (const std::string &name) |
|
void | setUserData (const void *data) |
|
void | dumpObject () const |
|
void | __removeFromDebugList () |
|
|
void | _setFileName (const std::string &name) |
|
size_t | _cbWriteFunction (char *d, size_t n, size_t l) |
|
size_t | _cbHeaderFunction (char *d, size_t n, size_t l) |
|
void | _run () |
|
bool | _prerun () override |
|
void | _onError () override |
|
void | _onComplete () override |
|
void | _dispatchComplete () override |
|
void | _finalize (bool error) override |
|
std::string | _getRunInfo () const override |
|
void | gotHeaders () |
|
void | write (const void *data, size_t size) |
|
void | asyncProgress (size_t delta, size_t loaded, size_t total) |
|
void | dispatchProgress (size_t delta, size_t loaded, size_t total) |
|
virtual void | _setUrl (const std::string &url) |
|
virtual void | _setPostData (const std::vector< unsigned char > &data) |
|
virtual void | _setCacheEnabled (bool enabled) |
|
virtual void | _addHeader (const std::string &key, const std::string &value) |
|
void | onError () |
|
void | onComplete () |
|
virtual void | _onFinal (bool error) |
|
template<class F > |
void | sync (const F &f, bool addref=true) |
|
void | _complete () |
|
void | _error () |
|
void | __doCheck () |
|
void | __generateID () |
|
std::string * | __getName () const |
|
void | __freeName () const |
|
|
enum | { ERROR = AsyncTask::ERROR,
PROGRESS = AsyncTask::PROGRESS,
COMPLETE = AsyncTask::COMPLETE
} |
|
typedef HttpRequestTask *(* | createHttpRequestCallback) () |
|
typedef std::function< bool(int) > | responseCodeChecker |
|
enum | { ERROR = sysEventID('A', 'T', 'E'),
PROGRESS = sysEventID('A', 'T', 'P'),
COMPLETE = Event::COMPLETE
} |
|
enum | status { status_not_started,
status_inprogress,
status_completed,
status_failed
} |
|
typedef std::vector< ObjectBase * > | __createdObjects |
|
static spHttpRequestTask | create () |
|
static void | setCustomRequests (createHttpRequestCallback) |
|
static void | init () |
|
static void | release () |
|
static void | dumpCreatedObjects () |
|
static void | showAssertInCtor (int id) |
|
static void | showAssertInDtor (int id) |
|
static __createdObjects & | __getCreatedObjects () |
|
static void | __startTracingLeaks () |
|
static void | __stopTracingLeaks () |
|
int | _ref_counter |
|
typedef std::vector< std::pair< std::string, std::string > > | headers |
|
typedef std::vector< listener > | listeners |
|
static int | _lastID |
|
static int | _assertCtorID |
|
static int | _assertDtorID |
|