Qt 4.8
Public Functions | List of all members
QHttpPGHRequest Class Reference
Inheritance diagram for QHttpPGHRequest:
QHttpNormalRequest QHttpRequest

Public Functions

 QHttpPGHRequest (const QHttpRequestHeader &h, QIODevice *d, QIODevice *t)
 
 QHttpPGHRequest (const QHttpRequestHeader &h, QByteArray *d, QIODevice *t)
 
void start (QHttp *)
 
 ~QHttpPGHRequest ()
 
- Public Functions inherited from QHttpNormalRequest
QIODevicedestinationDevice ()
 
bool hasRequestHeader ()
 
 QHttpNormalRequest (const QHttpRequestHeader &h, QIODevice *d, QIODevice *t)
 
 QHttpNormalRequest (const QHttpRequestHeader &h, QByteArray *d, QIODevice *t)
 
QHttpRequestHeader requestHeader ()
 
void setRequestHeader (const QHttpRequestHeader &h)
 
QIODevicesourceDevice ()
 
 ~QHttpNormalRequest ()
 
- Public Functions inherited from QHttpRequest
 QHttpRequest ()
 
virtual ~QHttpRequest ()
 

Additional Inherited Members

- Public Variables inherited from QHttpRequest
bool finished
 
int id
 
- Protected Variables inherited from QHttpNormalRequest
QHttpRequestHeader header
 

Detailed Description

Definition at line 309 of file qhttp.cpp.

Constructors and Destructors

◆ QHttpPGHRequest() [1/2]

QHttpPGHRequest::QHttpPGHRequest ( const QHttpRequestHeader h,
QIODevice d,
QIODevice t 
)
inline

Definition at line 312 of file qhttp.cpp.

312  :
313  QHttpNormalRequest(h, d, t)
314  { }
QHttpNormalRequest(const QHttpRequestHeader &h, QIODevice *d, QIODevice *t)
Definition: qhttp.cpp:204

◆ QHttpPGHRequest() [2/2]

QHttpPGHRequest::QHttpPGHRequest ( const QHttpRequestHeader h,
QByteArray d,
QIODevice t 
)
inline

Definition at line 316 of file qhttp.cpp.

316  :
317  QHttpNormalRequest(h, d, t)
318  { }
QHttpNormalRequest(const QHttpRequestHeader &h, QIODevice *d, QIODevice *t)
Definition: qhttp.cpp:204

◆ ~QHttpPGHRequest()

QHttpPGHRequest::~QHttpPGHRequest ( )
inline

Definition at line 320 of file qhttp.cpp.

321  { }

Functions

◆ start()

void QHttpPGHRequest::start ( QHttp http)
virtual

Reimplemented from QHttpNormalRequest.

Definition at line 326 of file qhttp.cpp.

327 {
328  if (http->d_func()->port && http->d_func()->port != 80)
329  header.setValue(QLatin1String("Host"), http->d_func()->hostName + QLatin1Char(':') + QString::number(http->d_func()->port));
330  else
331  header.setValue(QLatin1String("Host"), http->d_func()->hostName);
333 }
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qstring.cpp:6448
void start(QHttp *)
Definition: qhttp.cpp:244
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
void setValue(const QString &key, const QString &value)
Sets the value of the entry with the key to value.
Definition: qhttp.cpp:815
QHttpRequestHeader header
Definition: qhttp.cpp:233
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
Definition: qstring.h:654
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

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