cocos2d-x  3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LuaMinXmlHttpRequest Class Reference

#include <lua_xml_http_request.h>

Inheritance diagram for LuaMinXmlHttpRequest:
Ref

Public Types

enum  ResponseType {
  STRING, ARRAY_BUFFER, BLOB, DOCUMENT,
  JSON
}
 

Public Member Functions

 LuaMinXmlHttpRequest ()
 ~LuaMinXmlHttpRequest ()
void setResponseType (ResponseType type)
ResponseType getResponseType ()
void setWithCredentialsValue (bool value)
local setWithCredentialsValue ( local value)
bool getWithCredentialsValue ()
var getWithCredentialsValue ()
local getWithCredentialsValue ()
void setTimeout (unsigned timeOut)
unsigned getTimeout ()
void setReadyState (int readyState)
int getReadyState ()
cocos2d::network::HttpRequest * getHttpRequest ()
local getHttpRequest ()
std::string getStatusText ()
var getStatusText ()
local getStatusText ()
void setStatus (int status)
int getStatus ()
std::string getUrl ()
void setUrl (std::string url)
std::string getMethod ()
void setMethod (std::string meth)
void setAsync (bool isAsync)
void setIsNetWork (bool isNetWork)
void _setHttpRequestHeader ()
void _sendRequest ()
void setRequestHeader (const char *field, const char *value)
var setRequestHeader ( var field, var value)
local setRequestHeader ( local field, local value)
std::map< std::string,
std::string > 
getHttpHeader ()
local getHttpHeader ()
void getByteData (unsigned char *byteData)
std::string getDataStr ()
size_t getDataSize ()
void setErrorFlag (bool errorFlag)
bool getErrorFlag ()
void setAborted (bool isAborted)
bool getAborted ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Ref * autorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Attributes

static const unsigned short UNSENT = 0
static const unsigned short OPENED = 1
static const unsigned short HEADERS_RECEIVED = 2
var HEADERS_RECEIVED = 2
local HEADERS_RECEIVED = 2
static const unsigned short LOADING = 3
var LOADING = 3
local LOADING = 3
static const unsigned short DONE = 4

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
var _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Member Enumeration Documentation

enum ResponseType
strong
Enumerator
STRING 
ARRAY_BUFFER 
BLOB 
DOCUMENT 
JSON 
var ResponseType
strong
Enumerator
STRING 
ARRAY_BUFFER 
BLOB 
DOCUMENT 
JSON 
local ResponseType
strong
Enumerator
STRING 
ARRAY_BUFFER 
BLOB 
DOCUMENT 
JSON 

Constructor & Destructor Documentation

Member Function Documentation

void _sendRequest ( )
var _sendRequest ( )
local _sendRequest ( )
void _setHttpRequestHeader ( )
var _setHttpRequestHeader ( )
local _setHttpRequestHeader ( )
bool getAborted ( )
inline
var getAborted ( )
inline
local getAborted ( )
inline
void getByteData ( unsigned char *  byteData)
var getByteData ( var  byteData)
local getByteData ( local  byteData)
size_t getDataSize ( )
inline
var getDataSize ( )
inline
local getDataSize ( )
inline
std::string getDataStr ( )
inline
var getDataStr ( )
inline
local getDataStr ( )
inline
bool getErrorFlag ( )
inline
var getErrorFlag ( )
inline
local getErrorFlag ( )
inline
std::map<std::string,
std::string> getHttpHeader
( )
inline
var getHttpHeader ( )
inline
local getHttpHeader ( )
inline
cocos2d::network::HttpRequest*
getHttpRequest
( )
inline
var getHttpRequest ( )
inline
local getHttpRequest ( )
inline
std::string getMethod ( )
inline
var getMethod ( )
inline
local getMethod ( )
inline
int getReadyState ( )
inline
var getReadyState ( )
inline
local getReadyState ( )
inline
ResponseType getResponseType ( )
inline
var getResponseType ( )
inline
local getResponseType ( )
inline
int getStatus ( )
inline
var getStatus ( )
inline
local getStatus ( )
inline
std::string getStatusText ( )
inline
var getStatusText ( )
inline
local getStatusText ( )
inline
unsigned getTimeout ( )
inline
var getTimeout ( )
inline
local getTimeout ( )
inline
std::string getUrl ( )
inline
var getUrl ( )
inline
local getUrl ( )
inline
bool getWithCredentialsValue ( )
inline
var getWithCredentialsValue ( )
inline
local getWithCredentialsValue ( )
inline
void setAborted ( bool  isAborted)
inline
var setAborted ( var  isAborted)
inline
local setAborted ( local  isAborted)
inline
void setAsync ( bool  isAsync)
inline
var setAsync ( var  isAsync)
inline
local setAsync ( local  isAsync)
inline
void setErrorFlag ( bool  errorFlag)
inline
var setErrorFlag ( var  errorFlag)
inline
local setErrorFlag ( local  errorFlag)
inline
void setIsNetWork ( bool  isNetWork)
inline
var setIsNetWork ( var  isNetWork)
inline
local setIsNetWork ( local  isNetWork)
inline
void setMethod ( std::string  meth)
inline
var setMethod ( var  meth)
inline
local setMethod ( local  meth)
inline
void setReadyState ( int  readyState)
inline
var setReadyState ( var  readyState)
inline
local setReadyState ( local  readyState)
inline
void setRequestHeader ( const char *  field,
const char *  value 
)
var setRequestHeader ( var  field,
var  value 
)
local setRequestHeader ( local  field,
local  value 
)
void setResponseType ( ResponseType  type)
inline
var setResponseType ( var  type)
inline
local setResponseType ( local  type)
inline
void setStatus ( int  status)
inline
var setStatus ( var  status)
inline
local setStatus ( local  status)
inline
void setTimeout ( unsigned  timeOut)
inline
var setTimeout ( var  timeOut)
inline
local setTimeout ( local  timeOut)
inline
void setUrl ( std::string  url)
inline
var setUrl ( var  url)
inline
local setUrl ( local  url)
inline
void setWithCredentialsValue ( bool  value)
inline
var setWithCredentialsValue ( var  value)
inline
local setWithCredentialsValue ( local  value)
inline

Member Data Documentation

const unsigned short DONE = 4
static
var DONE = 4
static
local DONE = 4
static
const unsigned short
HEADERS_RECEIVED = 2
static
var HEADERS_RECEIVED = 2
static
local HEADERS_RECEIVED = 2
static
const unsigned short LOADING = 3
static
var LOADING = 3
static
local LOADING = 3
static
const unsigned short OPENED = 1
static
var OPENED = 1
static
local OPENED = 1
static
const unsigned short UNSENT = 0
static
var UNSENT = 0
static
local UNSENT = 0
static

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