ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Networking::PostRequest Class Reference

#include <postrequest.h>

Inheritance diagram for Networking::PostRequest:
Collaboration diagram for Networking::PostRequest:

List of all members.

Public Member Functions

 PostRequest (Common::String url, Networking::JSONValueCallback cb, Networking::ErrorCallback ecb)
virtual ~PostRequest ()
void start ()
void setPostData (byte *postData, int postLen)
void setJSONData (Common::JSONValue *jsonData)
void setContentType (Common::String type)
virtual void handle ()
 Method, which does actual work.
virtual void restart ()
 Method, which is used to restart the Request.
virtual Common::String date () const
 Return date this Request received from server.

Private Member Functions

void responseCallback (Networking::JsonResponse response)
void errorCallback (Networking::ErrorResponse error)

Private Attributes

Common::String _url
Networking::JSONValueCallback _jsonCallback
Request_workingRequest
bool _ignoreCallback
Common::String _date
byte_postData
int _postLen
Common::JSONValue_jsonData
Common::String _contentType

Detailed Description

Definition at line 31 of file postrequest.h.


Constructor & Destructor Documentation

Networking::PostRequest::PostRequest ( Common::String  url,
Networking::JSONValueCallback  cb,
Networking::ErrorCallback  ecb 
)

Definition at line 31 of file postrequest.cpp.

Networking::PostRequest::~PostRequest (  )  [virtual]

Definition at line 38 of file postrequest.cpp.


Member Function Documentation

Common::String Networking::PostRequest::date (  )  const [virtual]

Return date this Request received from server.

It could be extracted from "Date" header, which is kept in NetworkReadStream.

Note:
not all Requests do that, so "" is returned to indicate the date is unknown. That's also true if no server response available or no "Date" header was passed.
Returns:
date from "Date" response header.

Reimplemented from Networking::Request.

Definition at line 127 of file postrequest.cpp.

void Networking::PostRequest::errorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 114 of file postrequest.cpp.

void Networking::PostRequest::handle (  )  [virtual]

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 123 of file postrequest.cpp.

void Networking::PostRequest::responseCallback ( Networking::JsonResponse  response  )  [private]

Definition at line 86 of file postrequest.cpp.

void Networking::PostRequest::restart (  )  [virtual]

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 125 of file postrequest.cpp.

void Networking::PostRequest::setContentType ( Common::String  type  )  [inline]

Definition at line 55 of file postrequest.h.

void Networking::PostRequest::setJSONData ( Common::JSONValue jsonData  ) 

Definition at line 52 of file postrequest.cpp.

void Networking::PostRequest::setPostData ( byte postData,
int  postLen 
)

Definition at line 45 of file postrequest.cpp.

void Networking::PostRequest::start (  ) 

Definition at line 58 of file postrequest.cpp.


Member Data Documentation

Definition at line 36 of file postrequest.h.

Definition at line 35 of file postrequest.h.

Definition at line 40 of file postrequest.h.

Definition at line 38 of file postrequest.h.

Definition at line 39 of file postrequest.h.

Definition at line 32 of file postrequest.h.

Definition at line 34 of file postrequest.h.


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


Generated on Sat Sep 19 2020 05:05:57 for ResidualVM by doxygen 1.7.1
curved edge   curved edge