QRODS
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractHTTPClient Class Reference
Inheritance diagram for AbstractHTTPClient:
CollectionClient DataObjectClient FileContentsClient ServerInfoClient

Public Member Functions

 AbstractHTTPClient (QString &baseURL, QString user, QString pass, QObject *parent=0)
 AbstractHTTPClient::AbstractHTTPClient Constructor method. More...
 
QString baseURL ()
 AbstractHTTPClient::baseURL Returns the base URL. More...
 
void setBaseURL (QString &str)
 
void setUserName (QString &str)
 AbstractHTTPClient::setUserName Sets user name. More...
 
void setPassword (QString &str)
 AbstractHTTPClient::setPassword Sets the password. More...
 
void setContentType (QString &str)
 AbstractHTTPClient::setContentType Sets the MIME type. More...
 

Protected Member Functions

QByteArray doGet (QString &url)
 AbstractHTTPClient::doGet HTTP gets operation. More...
 
QByteArray doPut (QString &url, QByteArray &content)
 AbstractHTTPClient::doPut Put operation. More...
 
QByteArray doPost (QString &url, QByteArray &content)
 AbstractHTTPClient::doPost Post operation. More...
 
QByteArray doDelete (QString &url)
 AbstractHTTPClient::doDelete Delete operation. More...
 
QNetworkReply * doAsyncGet (QString &url)
 AbstractHTTPClient::doAsyncGet Asynchronous get operation. More...
 
QNetworkReply * doAsyncGet (QString &url, const char *accept)
 AbstractHTTPClient::doAsyncGet Asynchronous get operation. More...
 
void prepareRequest (QNetworkRequest &request)
 AbstractHTTPClient::prepareRequest Prepares Requests. More...
 

Protected Attributes

QNetworkAccessManager * manager
 

Constructor & Destructor Documentation

AbstractHTTPClient::AbstractHTTPClient ( QString &  bURL,
QString  user,
QString  pass,
QObject *  parent = 0 
)
explicit

AbstractHTTPClient::AbstractHTTPClient Constructor method.

This is a constructor for AbstractHTTPClient class.

Parameters
bURLthe base URL.
parentthe parent.

Member Function Documentation

QString AbstractHTTPClient::baseURL ( )

AbstractHTTPClient::baseURL Returns the base URL.

Returns the base URL.

Returns
the base URL.
QNetworkReply * AbstractHTTPClient::doAsyncGet ( QString &  url)
protected

AbstractHTTPClient::doAsyncGet Asynchronous get operation.

Performs a do asynchronous get operation.

Parameters
urla string that represents the do asynchronous get operation.
Returns
returns a QNetworkReply.
QNetworkReply * AbstractHTTPClient::doAsyncGet ( QString &  url,
const char *  accept 
)
protected

AbstractHTTPClient::doAsyncGet Asynchronous get operation.

Performs a do asynchronous get operation.

Parameters
urla string that represents the do asynchronous get operation.
accept.
Returns
returns a QNetworkReply.
QByteArray AbstractHTTPClient::doDelete ( QString &  url)
protected

AbstractHTTPClient::doDelete Delete operation.

Performs a request with a do Delete operation.

Parameters
urla string that represents the do Delete operation
Returns
returns a QByteArray.
QByteArray AbstractHTTPClient::doGet ( QString &  url)
protected

AbstractHTTPClient::doGet HTTP gets operation.

Performs HTTP gets operation.

Parameters
urla string that represents the URL
Returns
returns QByteArray.
QByteArray AbstractHTTPClient::doPost ( QString &  url,
QByteArray &  content 
)
protected

AbstractHTTPClient::doPost Post operation.

Performs Post operations.

Parameters
urla string that represents the HTTP post operation.
contenta QByteArray.
Returns
returns a QByteArray.
QByteArray AbstractHTTPClient::doPut ( QString &  url,
QByteArray &  content 
)
protected

AbstractHTTPClient::doPut Put operation.

Performs Put operations.

Parameters
urla string that represents the HTTP put operation.
contenta QByteArray.
Returns
returns a QByteArray.
void AbstractHTTPClient::prepareRequest ( QNetworkRequest &  request)
protected

AbstractHTTPClient::prepareRequest Prepares Requests.

Method that prepares requests.

Parameters
requesta QNetworkRequest.
void AbstractHTTPClient::setContentType ( QString &  str)

AbstractHTTPClient::setContentType Sets the MIME type.

Sets the MIME type for HTTP responses (e.g. application/xml).

Parameters
stra string that represents the MIME type.
void AbstractHTTPClient::setPassword ( QString &  str)

AbstractHTTPClient::setPassword Sets the password.

Sets the user password.

Parameters
stra string that represents the user password.
void AbstractHTTPClient::setUserName ( QString &  str)

AbstractHTTPClient::setUserName Sets user name.

Sets user name.

Parameters
stra string that represents the user name.

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