fw4spl
fwNetworkIO::http::ClientQt Class Reference

HTTP client using Qt Network. More...

#include <ClientQt.hpp>

+ Inheritance diagram for fwNetworkIO::http::ClientQt:
+ Collaboration diagram for fwNetworkIO::http::ClientQt:

Public Slots

void processError (QNetworkReply::NetworkError errorCode)
 Slot triggered when an error occurs.
 

Public Member Functions

FWNETWORKIO_API QByteArray get (Request::sptr request)
 Retrieves data over network. More...
 
FWNETWORKIO_API std::string getFile (Request::sptr request)
 Retrieves data over network. More...
 
FWNETWORKIO_API Request::HeadersType head (Request::sptr request)
 Performs head request. More...
 
FWNETWORKIO_API QByteArray post (Request::sptr request, const QByteArray &body)
 Performs POST request. More...
 
FWNETWORKIO_API ClientQt ()
 
virtual FWNETWORKIO_API ~ClientQt ()
 

Detailed Description

HTTP client using Qt Network.

Definition at line 35 of file ClientQt.hpp.

Constructor & Destructor Documentation

fwNetworkIO::http::ClientQt::ClientQt ( )

Constructor/Destructor

Definition at line 24 of file ClientQt.cpp.

fwNetworkIO::http::ClientQt::~ClientQt ( )
virtual

Constructor/Destructor

Definition at line 30 of file ClientQt.cpp.

Member Function Documentation

QByteArray fwNetworkIO::http::ClientQt::get ( Request::sptr  request)

Retrieves data over network.

Parameters
requestthe request

Definition at line 36 of file ClientQt.cpp.

References processError().

Referenced by ioDicomWeb::SQueryEditor::updating(), ioDicomWeb::SSeriesPuller::updating(), and ioDicomWeb::SSliceIndexDicomPullerEditor::updating().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string fwNetworkIO::http::ClientQt::getFile ( Request::sptr  request)

Retrieves data over network.

Parameters
requestthe request

Definition at line 58 of file ClientQt.cpp.

References fwTools::UUID::generateUUID(), fwTools::System::getTemporaryFolder(), and processError().

Referenced by ioDicomWeb::SSeriesPuller::updating(), and ioDicomWeb::SSliceIndexDicomPullerEditor::updating().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Request::HeadersType fwNetworkIO::http::ClientQt::head ( Request::sptr  request)

Performs head request.

Parameters
requestthe request
Returns
headers resulting of the request

Definition at line 158 of file ClientQt.cpp.

QByteArray fwNetworkIO::http::ClientQt::post ( Request::sptr  request,
const QByteArray &  body 
)

Performs POST request.

Parameters
requestthe request
Returns
body The body content

Definition at line 124 of file ClientQt.cpp.

References processError().

Referenced by ioDicomWeb::SQueryEditor::updating(), ioDicomWeb::SSeriesPusher::updating(), ioDicomWeb::SSeriesPuller::updating(), and ioDicomWeb::SSliceIndexDicomPullerEditor::updating().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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