path: root/src/network/access/qnetworkaccessmanager.h
diff options
authorKevin Ottens <>2013-03-15 09:59:39 +0100
committerThe Qt Project <>2013-04-28 13:58:48 +0200
commit2e749c089f6fd93909e7cd4cc8129f2969b35185 (patch)
treeecc97938e4052e9dbfee27053c81ef59f0f9d0fb /src/network/access/qnetworkaccessmanager.h
parentd928dbbc919f5f39af9ce5c69eb8e9ffa9da71d3 (diff)
List the URL schemes supported by QNetworkAccessManager
Introducing a new method which allows us to know before hand if an URL scheme will be supported by QNetworkAccessManager. It is especially useful in combination with QFileDialog URL based methods to pass this list as the allowed schemes the user can select in the dialog. Change-Id: If625b045e87959bfd78fea2c9213b69caf506886 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/network/access/qnetworkaccessmanager.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/access/qnetworkaccessmanager.h b/src/network/access/qnetworkaccessmanager.h
index ac8d58522b..46e46c49ab 100644
--- a/src/network/access/qnetworkaccessmanager.h
+++ b/src/network/access/qnetworkaccessmanager.h
@@ -97,6 +97,9 @@ public:
explicit QNetworkAccessManager(QObject *parent = 0);
+ // ### Qt 6: turn into virtual
+ QStringList supportedSchemes() const;
void clearAccessCache();
@@ -153,6 +156,9 @@ protected:
virtual QNetworkReply *createRequest(Operation op, const QNetworkRequest &request,
QIODevice *outgoingData = 0);
+protected Q_SLOTS:
+ QStringList supportedSchemesImplementation() const;
friend class QNetworkReplyImplPrivate;
friend class QNetworkReplyHttpImpl;