summaryrefslogtreecommitdiff
path: root/src/networkaccessmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/networkaccessmanager.cpp')
-rw-r--r--src/networkaccessmanager.cpp31
1 files changed, 29 insertions, 2 deletions
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp
index 4aa2488a..9d9d052d 100644
--- a/src/networkaccessmanager.cpp
+++ b/src/networkaccessmanager.cpp
@@ -88,10 +88,37 @@ QNetworkReply *NetworkAccessManager::createRequest(QNetworkAccessManager::Operat
break;
}
-
- if (op == QNetworkAccessManager::GetOperation)
+ switch(op)
{
+ case QNetworkAccessManager::HeadOperation:
+ break;
+
+ case QNetworkAccessManager::GetOperation:
reply = Application::adblockManager()->block(req, parentPage);
+ break;
+
+ case QNetworkAccessManager::PutOperation:
+ break;
+
+ case QNetworkAccessManager::PostOperation:
+ break;
+
+ case QNetworkAccessManager::DeleteOperation:
+ break;
+
+ case QNetworkAccessManager::CustomOperation:
+/* {
+ kDebug() << "CUSTOM OPERATION...";
+ QByteArray verb("*");
+ reply = sendCustomRequest(req, verb, outgoingData);
+ }
+ if(!reply)
+ kDebug() << "OOOOOOOOOOOOOOOOOOO CUSTOM REPLY NULL";*/
+ break;
+
+ default:
+ kDebug() << "NON EXTANT CASE...";
+ break;
}
if(!reply)