summaryrefslogtreecommitdiffstats
path: root/src/network/access
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-04 06:57:47 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-08 07:47:48 (GMT)
commitdf4b88078124fe993795bd436f3093b0120ffce2 (patch)
tree95c5a3a972a6c2731d66e225144ee2384b654ef9 /src/network/access
parentdc5350f9325eb0daef6550e7a6ff14a82d030d63 (diff)
downloadQt-df4b88078124fe993795bd436f3093b0120ffce2.zip
Qt-df4b88078124fe993795bd436f3093b0120ffce2.tar.gz
Qt-df4b88078124fe993795bd436f3093b0120ffce2.tar.bz2
Add hooks for testing.
Diffstat (limited to 'src/network/access')
-rw-r--r--src/network/access/qnetworkreply.h2
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp7
-rw-r--r--src/network/access/qnetworkreplyimpl_p.h2
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())