diff options
-rw-r--r-- | src/network/access/qnetworkreply.h | 2 | ||||
-rw-r--r-- | src/network/access/qnetworkreplyimpl.cpp | 7 | ||||
-rw-r--r-- | src/network/access/qnetworkreplyimpl_p.h | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreply.h b/src/network/access/qnetworkreply.h index b39557a..0f1fe8a 100644 --- a/src/network/access/qnetworkreply.h +++ b/src/network/access/qnetworkreply.h @@ -138,6 +138,8 @@ public: void ignoreSslErrors(const QList<QSslError> &errors); #endif + virtual void migrateBackend() { qWarning("Your backend doesn't support migration!"); } // Testing + public Q_SLOTS: virtual void ignoreSslErrors(); diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index 932d81a..0c7aca8 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -774,6 +774,13 @@ bool QNetworkReplyImpl::event(QEvent *e) return QObject::event(e); } +void QNetworkReplyImpl::migrateBackend() +{ + Q_D(QNetworkReplyImpl); + + d->migrateBackend(); +} + void QNetworkReplyImplPrivate::migrateBackend() { Q_Q(QNetworkReplyImpl); diff --git a/src/network/access/qnetworkreplyimpl_p.h b/src/network/access/qnetworkreplyimpl_p.h index 9de16e6..ac82ca0 100644 --- a/src/network/access/qnetworkreplyimpl_p.h +++ b/src/network/access/qnetworkreplyimpl_p.h @@ -92,6 +92,8 @@ public: Q_INVOKABLE virtual void ignoreSslErrorsImplementation(const QList<QSslError> &errors); #endif + void migrateBackend(); + Q_DECLARE_PRIVATE(QNetworkReplyImpl) Q_PRIVATE_SLOT(d_func(), void _q_startOperation()) Q_PRIVATE_SLOT(d_func(), void _q_copyReadyRead()) |