diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-01-14 03:28:15 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-01-14 03:28:15 +0100 |
commit | 1af5fc922877a5ec4db5dfa068b0e88c55fdc1c7 (patch) | |
tree | 4d7b7f022cfdd4ec02bb5789ecf8dd50c7bf899c /src/adblock/adblockmanager.h | |
parent | AdBlock Plus rules fast summary :) (diff) | |
download | rekonq-1af5fc922877a5ec4db5dfa068b0e88c55fdc1c7.tar.xz |
Better AdBlocking things :)
Diffstat (limited to 'src/adblock/adblockmanager.h')
-rw-r--r-- | src/adblock/adblockmanager.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/adblock/adblockmanager.h b/src/adblock/adblockmanager.h index 1f53b76e..45c3fa18 100644 --- a/src/adblock/adblockmanager.h +++ b/src/adblock/adblockmanager.h @@ -28,19 +28,6 @@ #ifndef ADBLOCK_MANAGER_H #define ADBLOCK_MANAGER_H -// Local Includes -#include "adblockrule.h" - -// Qt Includes -#include <QObject> -#include <QNetworkReply> - -// Forward Includes -class QNetworkRequest; - -// Definitions -typedef QList<AdBlockRule> AdBlockRuleList; - // NOTE: AdBlockPlus Filters (fast) summary // @@ -114,7 +101,23 @@ typedef QList<AdBlockRule> AdBlockRuleList; // // The previous rule will hide every div whose class is named "advise". Usual CSS selectors apply here :) // -// END NOTE +// END NOTE ---------------------------------------------------------------------------------------------------------- + + +// Local Includes +#include "adblockrule.h" + +// Qt Includes +#include <QObject> +#include <QNetworkReply> + +// Forward Includes +class QNetworkRequest; +class WebPage; +class QStringList; + +// Definitions +typedef QList<AdBlockRule> AdBlockRuleList; class AdBlockManager : public QObject @@ -127,12 +130,15 @@ public: void loadSettings(); QNetworkReply *block(const QNetworkRequest &request); + void applyHidingRules(WebPage *page); private: bool _isAdblockEnabled; bool _isHideAdsEnabled; - AdBlockRuleList filterList; + AdBlockRuleList _blackList; + AdBlockRuleList _whiteList; + QStringList _hideList; }; #endif |