summaryrefslogtreecommitdiff
path: root/src/adblock/adblockmanager.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-30 10:26:43 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-30 10:26:43 +0100
commit88bde6fd1e73f30a9bdb1da5fd4bd24aeb84266b (patch)
treed002a585d5a889c5e5df8ea8ab83ec8a04e2e59a /src/adblock/adblockmanager.h
parentRestored QWebElementCollection (diff)
downloadrekonq-88bde6fd1e73f30a9bdb1da5fd4bd24aeb84266b.tar.xz
Porting rekonq to last Qt/KDE API
adblock (KDE one) fix #1
Diffstat (limited to 'src/adblock/adblockmanager.h')
-rw-r--r--src/adblock/adblockmanager.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/adblock/adblockmanager.h b/src/adblock/adblockmanager.h
index 10f72366..5b47c1da 100644
--- a/src/adblock/adblockmanager.h
+++ b/src/adblock/adblockmanager.h
@@ -29,12 +29,16 @@
#define ADBLOCK_MANAGER_H
+// Local Includes
+#include "khtml_filter_p.h"
+
// Qt Includes
#include <QObject>
#include <QStringList>
+#include <QNetworkReply>
// Forward Includes
-class QUrl;
+class QNetworkRequest;
class AdBlockManager : public QObject
@@ -46,11 +50,14 @@ public:
~AdBlockManager();
void loadSettings();
- bool isUrlAllowed(const QUrl &url);
+ QNetworkReply *block(const QNetworkRequest &request);
private:
bool _isAdblockEnabled;
bool _isHideAdsEnabled;
+
+ khtml::FilterSet _adBlackList;
+ khtml::FilterSet _adWhiteList;
};
#endif