summaryrefslogtreecommitdiff
path: root/src/adblock/adblockrulefallbackimpl.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-29 17:28:18 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-29 17:28:18 +0200
commit0b1564dd34e2b9baf2d981e47abcd4cd7ebcc0f2 (patch)
tree8f4787ee4dc417209dec1f0ecae974257131d940 /src/adblock/adblockrulefallbackimpl.cpp
parentHACK: fix Chinese sites encoding, as suggested by Weng Xuetian in bug #251264 (diff)
downloadrekonq-0b1564dd34e2b9baf2d981e47abcd4cd7ebcc0f2.tar.xz
Implement a sort of debugging informations for adblock
Diffstat (limited to 'src/adblock/adblockrulefallbackimpl.cpp')
-rw-r--r--src/adblock/adblockrulefallbackimpl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/adblock/adblockrulefallbackimpl.cpp b/src/adblock/adblockrulefallbackimpl.cpp
index 959050da..127421fc 100644
--- a/src/adblock/adblockrulefallbackimpl.cpp
+++ b/src/adblock/adblockrulefallbackimpl.cpp
@@ -139,3 +139,15 @@ QString AdBlockRuleFallbackImpl::convertPatternToRegExp(const QString &wildcardP
// Finally, return...
return pattern;
}
+
+
+QString AdBlockRuleFallbackImpl::ruleString() const
+{
+ return m_regExp.pattern();
+}
+
+
+QString AdBlockRuleFallbackImpl::ruleType() const
+{
+ return QL1S("AdBlockRuleFallbackImpl");
+} \ No newline at end of file