Qt 4.8
Public Functions | List of all members
QHttpSocketEngineHandler Class Reference

#include <qhttpsocketengine_p.h>

Inheritance diagram for QHttpSocketEngineHandler:
QSocketEngineHandler

Public Functions

virtual QAbstractSocketEnginecreateSocketEngine (QAbstractSocket::SocketType socketType, const QNetworkProxy &, QObject *parent)
 
virtual QAbstractSocketEnginecreateSocketEngine (int socketDescripter, QObject *parent)
 

Additional Inherited Members

- Protected Functions inherited from QSocketEngineHandler
 QSocketEngineHandler ()
 
virtual ~QSocketEngineHandler ()
 

Detailed Description

Definition at line 189 of file qhttpsocketengine_p.h.

Functions

◆ createSocketEngine() [1/2]

QAbstractSocketEngine * QHttpSocketEngineHandler::createSocketEngine ( QAbstractSocket::SocketType  socketType,
const QNetworkProxy proxy,
QObject parent 
)
virtual

Implements QSocketEngineHandler.

Definition at line 824 of file qhttpsocketengine.cpp.

827 {
828  if (socketType != QAbstractSocket::TcpSocket)
829  return 0;
830 
831  // proxy type must have been resolved by now
832  if (proxy.type() != QNetworkProxy::HttpProxy)
833  return 0;
834 
835  // we only accept active sockets
836  if (!qobject_cast<QAbstractSocket *>(parent))
837  return 0;
838 
839  QHttpSocketEngine *engine = new QHttpSocketEngine(parent);
840  engine->setProxy(proxy);
841  return engine;
842 }
QNetworkProxy::ProxyType type() const
Returns the proxy type for this instance.
void setProxy(const QNetworkProxy &networkProxy)

◆ createSocketEngine() [2/2]

QAbstractSocketEngine * QHttpSocketEngineHandler::createSocketEngine ( int  socketDescripter,
QObject parent 
)
virtual

Implements QSocketEngineHandler.

Definition at line 844 of file qhttpsocketengine.cpp.

845 {
846  return 0;
847 }

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