summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreplyimpl.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-07-14 11:05:11 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-07-14 11:33:49 (GMT)
commitec11bd70c78cbdb07b399b058fabdb16d66072b0 (patch)
treea29b7061a0624df7539750dc2e9183c5068912f1 /src/network/access/qnetworkreplyimpl.cpp
parenta2bad25383e565233a0c2527e04cef9f6b577f14 (diff)
downloadQt-ec11bd70c78cbdb07b399b058fabdb16d66072b0.zip
Qt-ec11bd70c78cbdb07b399b058fabdb16d66072b0.tar.gz
Qt-ec11bd70c78cbdb07b399b058fabdb16d66072b0.tar.bz2
QNetworkReply: Add isFinished() method
The isFinished() method will return true if the reply has successfully finished or has been aborted. Task-number: 257349 Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/network/access/qnetworkreplyimpl.cpp')
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp
index b11d986..55b8b7f 100644
--- a/src/network/access/qnetworkreplyimpl.cpp
+++ b/src/network/access/qnetworkreplyimpl.cpp
@@ -532,6 +532,11 @@ void QNetworkReplyImplPrivate::sslErrors(const QList<QSslError> &errors)
#endif
}
+bool QNetworkReplyImplPrivate::isFinished() const
+{
+ return (state == Finished || state == Aborted);
+}
+
QNetworkReplyImpl::QNetworkReplyImpl(QObject *parent)
: QNetworkReply(*new QNetworkReplyImplPrivate, parent)
{