diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-03-13 23:24:45 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-03-13 23:24:45 +0100 |
commit | 6faa12680a0d7d2f13c2862628325ab65521004b (patch) | |
tree | d749f40b304feb6c1d007dcce46c9c8e9d17932d /src/adblock/adblockrule.h | |
parent | Updating forgotten files (diff) | |
download | rekonq-6faa12680a0d7d2f13c2862628325ab65521004b.tar.xz |
Implemented automatic adblock update.
This (squashed) commit adds this new feature in rekonq, letting
people to simply "forgot" adblock and let rekonq do everything for it
I added:
- a new (rekonq) adblock widget
- an asyncronous method to update rules from the net every TOT days
- a better AdBlockManager management.
What it is actually missing is the adp protocol support to add new
subscriptions to adblock. This will come the next week.
For now this part seems stable and needs just testing :)
Diffstat (limited to 'src/adblock/adblockrule.h')
-rw-r--r-- | src/adblock/adblockrule.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/adblock/adblockrule.h b/src/adblock/adblockrule.h index 8f79d16e..ee4825d1 100644 --- a/src/adblock/adblockrule.h +++ b/src/adblock/adblockrule.h @@ -69,7 +69,9 @@ public: AdBlockRule(const QString &filter); bool match(const QString &encodedUrl) const; - + + QString pattern() const; + private: QString convertPatternToRegExp(const QString &wildcardPattern); |