UltraScan III
List of all members | Public Slots | Signals | Public Member Functions | Private Attributes
US_HttpPost Class Reference

A text only class to manage HTTP requests. More...

#include "us_http_post.h"

Inheritance diagram for US_HttpPost:
Inheritance graph
[legend]
Collaboration diagram for US_HttpPost:
Collaboration graph
[legend]

Public Slots

void postFinished (void)
 Handle HTTP response. More...
 
void postError (QNetworkReply::NetworkError)
 Handle network error. More...
 

Signals

void US_Http_post_response (const QString &)
 Forward the response of the post to the interested function. More...
 

Public Member Functions

 US_HttpPost (const QString &, const QString &)
 Make an HTTP POST request. More...
 

Private Attributes

QNetworkReply * reply
 

Detailed Description

A text only class to manage HTTP requests.

Definition at line 12 of file us_http_post.h.

Constructor & Destructor Documentation

US_HttpPost::US_HttpPost ( const QString &  url,
const QString &  request 
)

Make an HTTP POST request.

Parameters
urlThe destination URL
requestThe data to send with the request

Definition at line 4 of file us_http_post.cpp.

Member Function Documentation

void US_HttpPost::postError ( QNetworkReply::NetworkError  error)
slot

Handle network error.

Parameters
errorThe type of network error douemtnted in QNetworkReply::NetworkError

Definition at line 31 of file us_http_post.cpp.

void US_HttpPost::postFinished ( void  )
slot

Handle HTTP response.

Definition at line 23 of file us_http_post.cpp.

void US_HttpPost::US_Http_post_response ( const QString &  )
signal

Forward the response of the post to the interested function.

Member Data Documentation

QNetworkReply* US_HttpPost::reply
private

Definition at line 36 of file us_http_post.h.


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