Qt 4.8
Public Functions | Public Variables | Static Private Attributes | List of all members
QHttpRequest Class Referenceabstract
Inheritance diagram for QHttpRequest:
QHttpCloseRequest QHttpNormalRequest QHttpSetHostRequest QHttpSetProxyRequest QHttpSetSocketRequest QHttpSetUserRequest QHttpPGHRequest

Public Functions

virtual QIODevicedestinationDevice ()=0
 
virtual bool hasRequestHeader ()
 
 QHttpRequest ()
 
virtual QHttpRequestHeader requestHeader ()
 
virtual QIODevicesourceDevice ()=0
 
virtual void start (QHttp *)=0
 
virtual ~QHttpRequest ()
 

Public Variables

bool finished
 
int id
 

Static Private Attributes

static QBasicAtomicInt idCounter = Q_BASIC_ATOMIC_INITIALIZER(1)
 

Detailed Description

Definition at line 72 of file qhttp.cpp.

Constructors and Destructors

◆ QHttpRequest()

QHttpRequest::QHttpRequest ( )
inline

Definition at line 75 of file qhttp.cpp.

75  : finished(false)
76  { id = idCounter.fetchAndAddRelaxed(1); }
bool finished
Definition: qhttp.cpp:88
static QBasicAtomicInt idCounter
Definition: qhttp.cpp:91
int fetchAndAddRelaxed(int valueToAdd)

◆ ~QHttpRequest()

virtual QHttpRequest::~QHttpRequest ( )
inlinevirtual

Definition at line 77 of file qhttp.cpp.

78  { }

Functions

◆ destinationDevice()

virtual QIODevice* QHttpRequest::destinationDevice ( )
pure virtual

◆ hasRequestHeader()

bool QHttpRequest::hasRequestHeader ( )
virtual

Reimplemented in QHttpNormalRequest.

Definition at line 185 of file qhttp.cpp.

Referenced by QHttp::currentRequest(), QHttpNormalRequest::~QHttpNormalRequest(), and ~QHttpRequest().

186 {
187  return false;
188 }

◆ requestHeader()

QHttpRequestHeader QHttpRequest::requestHeader ( )
virtual

Reimplemented in QHttpNormalRequest.

Definition at line 190 of file qhttp.cpp.

Referenced by QHttp::currentRequest(), QHttpNormalRequest::~QHttpNormalRequest(), and ~QHttpRequest().

191 {
192  return QHttpRequestHeader();
193 }
The QHttpRequestHeader class contains request header information for HTTP.
Definition: qhttp.h:147

◆ sourceDevice()

virtual QIODevice* QHttpRequest::sourceDevice ( )
pure virtual

◆ start()

virtual void QHttpRequest::start ( QHttp )
pure virtual

Properties

◆ finished

bool QHttpRequest::finished

Definition at line 88 of file qhttp.cpp.

Referenced by QHttpPrivate::finishedWithError(), and QHttpPrivate::finishedWithSuccess().

◆ id

int QHttpRequest::id

◆ idCounter

QBasicAtomicInt QHttpRequest::idCounter = Q_BASIC_ATOMIC_INITIALIZER(1)
staticprivate

Definition at line 91 of file qhttp.cpp.

Referenced by QHttpRequest().


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