Use NetworkJob to automatically, and consistently, handle re-directs

This commit is contained in:
craig.p.drummond
2013-09-18 18:11:49 +00:00
parent 2fd3864ce5
commit 5683f7939b
40 changed files with 237 additions and 403 deletions

View File

@@ -24,7 +24,7 @@
#include "contextengine.h"
#include "metaengine.h"
#include "wikipediaengine.h"
#include <QNetworkReply>
#include "networkaccessmanager.h"
ContextEngine * ContextEngine::create(QObject *parent)
{
@@ -66,9 +66,9 @@ void ContextEngine::cancel()
}
}
QNetworkReply * ContextEngine::getReply(QObject *obj)
NetworkJob * ContextEngine::getReply(QObject *obj)
{
QNetworkReply *reply = qobject_cast<QNetworkReply*>(obj);
NetworkJob *reply = qobject_cast<NetworkJob*>(obj);
if (!reply) {
return 0;
}