summaryrefslogtreecommitdiff
path: root/src/protocolhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocolhandler.h')
-rw-r--r--src/protocolhandler.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/protocolhandler.h b/src/protocolhandler.h
index 6ae47b74..a8661f81 100644
--- a/src/protocolhandler.h
+++ b/src/protocolhandler.h
@@ -2,16 +2,16 @@
*
* This file is a part of the rekonq project
*
-* Copyright (C) 2009 by Andrea Diamantini <adjam7 at gmail dot com>
+* Copyright (C) 2010 by Andrea Diamantini <adjam7 at gmail dot com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
-* by the membership of KDE e.V.), which shall act as a proxy
+* by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 of the license.
-*
+*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -27,6 +27,10 @@
#ifndef PROTOCOL_HANDLER_H
#define PROTOCOL_HANDLER_H
+
+// Rekonq Includes
+#include "rekonq_defines.h"
+
// KDE Includes
#include <KDirLister>
@@ -41,12 +45,12 @@ class KUrl;
class KJob;
-class ProtocolHandler : public QObject
+class REKONQ_TESTS_EXPORT ProtocolHandler : public QObject
{
-Q_OBJECT
+ Q_OBJECT
public:
- ProtocolHandler(QObject *parent = 0);
+ ProtocolHandler(QObject *parent = 0);
~ProtocolHandler();
/**
@@ -60,17 +64,18 @@ public:
* WebKit tried to
*/
bool postHandling(const QNetworkRequest &request, QWebFrame *frame);
-
+
signals:
- void downloadUrl( const KUrl &);
-
+ void downloadUrl(const KUrl &);
+
private slots:
void showResults(const KFileItemList &);
void slotMostLocalUrlResult(KJob *);
-
+
private:
QString dirHandling(const KFileItemList &list);
-
+ void abpHandling();
+
KDirLister *_lister;
QWebFrame *_frame;
KUrl _url;