summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r--src/protocolhandler.cpp40
1 files changed, 15 insertions, 25 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index a260ad06..c469d0c3 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -25,43 +25,33 @@
// Self Includes
#include "protocolhandler.h"
-#include "protocolhandler.moc"
// Auto Includes
#include "rekonq.h"
// Local Includes
-#include "newtabpage.h"
+#include "adblockmanager.h"
#include "application.h"
-#include "mainwindow.h"
+#include "historymanager.h"
#include "mainview.h"
+#include "mainwindow.h"
+#include "newtabpage.h"
#include "urlbar.h"
+#include "webpage.h"
#include "webtab.h"
-#include "historymanager.h"
-#include "adblockmanager.h"
// KDE Includes
-#include <klocalizedstring.h>
-#include <KUrl>
-#include <KRun>
-#include <KToolInvocation>
-#include <KStandardDirs>
-#include <KMimeType>
-#include <KIconLoader>
+#include <KIO/Job>
#include <KDirLister>
-#include <KFileItem>
-#include <KJob>
-#include <kio/udsentry.h>
+#include <KLocalizedString>
#include <KMessageBox>
-#include <kprocess.h>
+#include <KProcess>
+#include <KStandardDirs>
+#include <KToolInvocation>
// Qt Includes
-#include <QLatin1String>
-#include <QNetworkRequest>
-#include <QWebFrame>
-#include <QDir>
-#include <QFile>
-#include <QDateTime>
+#include <QtNetwork/QNetworkRequest>
+#include <QtWebKit/QWebFrame>
ProtocolHandler::ProtocolHandler(QObject *parent)
@@ -108,7 +98,7 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
if(scriptSource.isEmpty())
return false;
}
-
+
kDebug() << "EVALUATING JAVASCRIPT...";
QVariant result = frame->evaluateJavaScript(scriptSource);
return true;
@@ -132,11 +122,11 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
if ( KProcess::execute (apturl,host)==0)
return true;
- else
+ else
return false;
}
-
+
// "abp" handling
if (_url.protocol() == QL1S("abp"))
{