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

#include <qnetworkaccessftpbackend_p.h>

Inheritance diagram for QNetworkAccessFtpBackendFactory:
QNetworkAccessBackendFactory

Public Functions

virtual QNetworkAccessBackendcreate (QNetworkAccessManager::Operation op, const QNetworkRequest &request) const
 
- Public Functions inherited from QNetworkAccessBackendFactory
 QNetworkAccessBackendFactory ()
 
virtual ~QNetworkAccessBackendFactory ()
 

Detailed Description

Definition at line 111 of file qnetworkaccessftpbackend_p.h.

Functions

◆ create()

QNetworkAccessBackend * QNetworkAccessFtpBackendFactory::create ( QNetworkAccessManager::Operation  op,
const QNetworkRequest request 
) const
virtual

Implements QNetworkAccessBackendFactory.

Definition at line 65 of file qnetworkaccessftpbackend.cpp.

67 {
68  // is it an operation we know of?
69  switch (op) {
72  break;
73 
74  default:
75  // no, we can't handle this operation
76  return 0;
77  }
78 
79  QUrl url = request.url();
80  if (url.scheme().compare(QLatin1String("ftp"), Qt::CaseInsensitive) == 0)
81  return new QNetworkAccessFtpBackend;
82  return 0;
83 }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QUrl class provides a convenient interface for working with URLs.
Definition: qurl.h:61
QUrl url() const
Returns the URL this network request is referring to.
QString scheme() const
Returns the scheme of the URL.
Definition: qurl.cpp:4550
int compare(const QString &s) const
Definition: qstring.cpp:5037

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