Oxygine  1
2g game engine
Public Member Functions | Protected Member Functions | List of all members
oxygine::HttpRequestCocoaTask Class Reference
Inheritance diagram for oxygine::HttpRequestCocoaTask:
oxygine::HttpRequestTask oxygine::AsyncTask oxygine::EventDispatcher oxygine::Object oxygine::ref_counter oxygine::ObjectBase oxygine::PoolObject

Public Member Functions

void complete_ (NSData *data, bool error)
 
void progress_ (int loaded, int total)
 
- Public Member Functions inherited from oxygine::HttpRequestTask
const std::vector< unsigned char > & getResponse () const
 
const std::vector< unsigned char > & getPostData () const
 
const std::string & getFileName () const
 
void getResponseSwap (std::vector< unsigned char > &)
 
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)
 
void setCacheEnabled (bool enabled)
 
- Public Member Functions inherited from oxygine::AsyncTask
status getStatus () const
 
void setStatus (status s)
 
void run ()
 
- Public Member Functions inherited from oxygine::EventDispatcher
 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
 
- Public Member Functions inherited from oxygine::Object
 Object (const Object &src)
 
 Object (bool assignUniqueID=true)
 
- Public Member Functions inherited from oxygine::ref_counter
void addRef ()
 
void releaseRef ()
 
- Public Member Functions inherited from oxygine::ObjectBase
 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 ()
 

Protected Member Functions

void _run ()
 
- Protected Member Functions inherited from oxygine::HttpRequestTask
void _prerun ()
 
void _onError () OVERRIDE
 
void _onComplete () OVERRIDE
 
void progress (int loaded, int total)
 
void _onCustom (const ThreadDispatcher::message &msg)
 
void dispatchProgress (int loaded, int total)
 
virtual void _setFileName (const std::string &name)
 
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)
 
- Protected Member Functions inherited from oxygine::AsyncTask
void onError ()
 
void onComplete ()
 
virtual void _onFinal (bool error)
 
virtual void _finalize (bool error)
 
bool syncEvent (int msgid, void *arg1=0, void *arg2=0)
 
- Protected Member Functions inherited from oxygine::Object
void __doCheck ()
 
- Protected Member Functions inherited from oxygine::ObjectBase
void __generateID ()
 
std::string * __getName () const
 
void __freeName () const
 

Additional Inherited Members

- Public Types inherited from oxygine::HttpRequestTask
enum  { ERROR = AsyncTask::ERROR, PROGRESS = AsyncTask::PROGRESS, COMPLETE = AsyncTask::COMPLETE }
 
typedef HttpRequestTask *(* createHttpRequestCallback) ()
 
- Public Types inherited from oxygine::AsyncTask
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 }
 
- Public Types inherited from oxygine::ObjectBase
typedef std::vector< ObjectBase * > __createdObjects
 
- Static Public Member Functions inherited from oxygine::HttpRequestTask
static spHttpRequestTask create ()
 
static void setCustomRequests (createHttpRequestCallback)
 
static void init ()
 
static void release ()
 
- Static Public Member Functions inherited from oxygine::ObjectBase
static void dumpCreatedObjects ()
 
static void showAssertInCtor (int id)
 
static void showAssertInDtor (int id)
 
static __createdObjects & __getCreatedObjects ()
 
static void __startTracingLeaks ()
 
static void __stopTracingLeaks ()
 
- Public Attributes inherited from oxygine::ref_counter
int _ref_counter
 
- Protected Types inherited from oxygine::AsyncTask
enum  { customID = sysEventID('s', 'c', 's') }
 
- Protected Types inherited from oxygine::EventDispatcher
typedef std::vector< listenerlisteners
 
- Static Protected Member Functions inherited from oxygine::ObjectBase
static void __addToDebugList (ObjectBase *base)
 
static void __removeFromDebugList (ObjectBase *base)
 
- Protected Attributes inherited from oxygine::HttpRequestTask
int _loaded
 
std::string _url
 
std::string _fname
 
bool _cacheEnabled
 
std::vector< unsigned char > _response
 
std::vector< unsigned char > _postData
 
- Protected Attributes inherited from oxygine::AsyncTask
status _status
 
bool _mainThreadSync
 
bool _uiThreadSync
 
- Protected Attributes inherited from oxygine::EventDispatcher
int _lastID
 
listeners * _listeners
 
- Protected Attributes inherited from oxygine::ObjectBase
std::string __name
 
int __id
 
const void * __userData
 
- Static Protected Attributes inherited from oxygine::ObjectBase
static int _lastID
 
static int _assertCtorID
 
static int _assertDtorID
 

The documentation for this class was generated from the following files: