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.cpp | |
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.cpp')
-rw-r--r-- | src/adblock/adblockrule.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/adblock/adblockrule.cpp b/src/adblock/adblockrule.cpp index 25ca3678..c0c3fd5b 100644 --- a/src/adblock/adblockrule.cpp +++ b/src/adblock/adblockrule.cpp @@ -181,3 +181,9 @@ QString AdBlockRule::convertPatternToRegExp(const QString &wildcardPattern) // Finally, return... return pattern; } + + +QString AdBlockRule::pattern() const +{ + return m_regExp.pattern(); +} |