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

Public Functions

QIODevicedestinationDevice ()
 
 QHttpSetHostRequest (const QString &h, quint16 p, QHttp::ConnectionMode m)
 
QIODevicesourceDevice ()
 
void start (QHttp *)
 
- Public Functions inherited from QHttpRequest
virtual bool hasRequestHeader ()
 
 QHttpRequest ()
 
virtual QHttpRequestHeader requestHeader ()
 
virtual ~QHttpRequest ()
 

Properties

QString hostName
 
QHttp::ConnectionMode mode
 
quint16 port
 

Additional Inherited Members

- Public Variables inherited from QHttpRequest
bool finished
 
int id
 

Detailed Description

Definition at line 341 of file qhttp.cpp.

Constructors and Destructors

◆ QHttpSetHostRequest()

QHttpSetHostRequest::QHttpSetHostRequest ( const QString h,
quint16  p,
QHttp::ConnectionMode  m 
)
inline

Definition at line 344 of file qhttp.cpp.

345  : hostName(h), port(p), mode(m)
346  { }
QHttp::ConnectionMode mode
Definition: qhttp.cpp:358
QString hostName
Definition: qhttp.cpp:356

Functions

◆ destinationDevice()

QIODevice* QHttpSetHostRequest::destinationDevice ( )
inlinevirtual

Implements QHttpRequest.

Definition at line 352 of file qhttp.cpp.

353  { return 0; }

◆ sourceDevice()

QIODevice* QHttpSetHostRequest::sourceDevice ( )
inlinevirtual

Implements QHttpRequest.

Definition at line 350 of file qhttp.cpp.

351  { return 0; }

◆ start()

void QHttpSetHostRequest::start ( QHttp http)
virtual

Implements QHttpRequest.

Definition at line 361 of file qhttp.cpp.

362 {
363  http->d_func()->hostName = hostName;
364  http->d_func()->port = port;
365  http->d_func()->mode = mode;
366 
367 #ifdef QT_NO_OPENSSL
369  // SSL requested but no SSL support compiled in
370  http->d_func()->finishedWithError(QLatin1String(QT_TRANSLATE_NOOP("QHttp", "HTTPS connection requested but SSL support not compiled in")),
372  return;
373  }
374 #endif
375 
376  http->d_func()->finishedWithSuccess();
377 }
QHttp::ConnectionMode mode
Definition: qhttp.cpp:358
#define QT_TRANSLATE_NOOP(scope, x)
Marks the string literal sourceText for dynamic translation in the given context; i...
Definition: qglobal.h:2487
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QString hostName
Definition: qhttp.cpp:356

Properties

◆ hostName

QString QHttpSetHostRequest::hostName
private

Definition at line 356 of file qhttp.cpp.

◆ mode

QHttp::ConnectionMode QHttpSetHostRequest::mode
private

Definition at line 358 of file qhttp.cpp.

◆ port

quint16 QHttpSetHostRequest::port
private

Definition at line 357 of file qhttp.cpp.


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