cocos2d-x  3.0-beta2
 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:
Object

Public Types

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

Public Member Functions

 LuaMinXmlHttpRequest ()
 ~LuaMinXmlHttpRequest ()
void handle_requestResponse (cocos2d::network::HttpClient *sender, cocos2d::network::HttpResponse *response)
void setResponseType (ResponseType type)
ResponseType getResponseType ()
void setWithCredentialsValue (bool value)
local setWithCredentialsValue ( local value)
bool getWithCredentialsValue ()
void setTimeout (unsigned timeOut)
unsigned getTimeout ()
void setReadyState (int readyState)
int getReadyState ()
cocos2d::network::HttpRequestgetHttpRequest ()
local getHttpRequest ()
int getStatus ()
std::string getStatusText ()
local getStatusText ()
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 ()
void getByteData (unsigned char *byteData)
std::string getDataStr ()
var getDataStr ()
local getDataStr ()
size_t getDataSize ()
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
unsigned int getReferenceCount () const
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void acceptVisitor (DataVisitor &visitor)
virtual void update (float dt)

Static Public Attributes

static const unsigned short UNSENT = 0
var UNSENT = 0
local UNSENT = 0
static const unsigned short OPENED = 1
var OPENED = 1
local 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
var DONE = 4
local DONE = 4

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 
- Protected Attributes inherited from Object
unsigned int _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 ( )
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
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 handle_requestResponse ( cocos2d::network::HttpClient sender,
cocos2d::network::HttpResponse response 
)
var handle_requestResponse ( var  sender,
var  response 
)
local handle_requestResponse ( local  sender,
local  response 
)
void setAsync ( bool  isAsync)
inline
var setAsync ( var  isAsync)
inline
local setAsync ( local  isAsync)
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 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: