diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-02-14 11:27:54 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-03-13 10:24:42 +0100 |
commit | 1c97a54381cd6a5bfd1fb6d97e8695f1b1d49166 (patch) | |
tree | dbc2071257705803b98a322c93d5214a6d336199 /src/adblock/adblockmanager.h | |
parent | Let rekonq block sparse images (this idea has been copied from Arora) (diff) | |
download | rekonq-1c97a54381cd6a5bfd1fb6d97e8695f1b1d49166.tar.xz |
Add dialog allowing adblock to list blocked/hided elements and unblock
some of them
Diffstat (limited to 'src/adblock/adblockmanager.h')
-rw-r--r-- | src/adblock/adblockmanager.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/adblock/adblockmanager.h b/src/adblock/adblockmanager.h index 2e7f7836..30daa27e 100644 --- a/src/adblock/adblockmanager.h +++ b/src/adblock/adblockmanager.h @@ -155,20 +155,26 @@ public: ~AdBlockManager(); bool isEnabled(); + bool isHidingElements(); QNetworkReply *block(const QNetworkRequest &request, WebPage *page); void applyHidingRules(WebPage *page); void addCustomRule(const QString &); - -public Q_SLOTS: - void loadSettings(); - void showSettings(); + void clearElementsLists(); private: void updateSubscriptions(); void loadRules(const QString &); +private Q_SLOTS: + void loadSettings(); + void showSettings(); + void showBlockedItemDialog(); + +Q_SIGNALS: + void reloadCurrentPage(); + private: bool _isAdblockEnabled; bool _isHideAdsEnabled; @@ -179,6 +185,9 @@ private: AdBlockRuleList _whiteList; QStringList _hideList; + QStringList _blockedElements; + int _hidedElements; + KSharedConfig::Ptr _adblockConfig; }; |