summaryrefslogtreecommitdiff
path: root/src/adblock/adblockrule.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-18 11:06:43 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-18 11:06:43 +0200
commit8b346963ef2087404663f566f397ecaeef63ed7d (patch)
tree97bb6c7f15cecd6aff3c7c7136bcae8a968e3b34 /src/adblock/adblockrule.h
parentdisableKGet --> checkKGetPresence (diff)
parentAdd a primitive text machter as an AdBlockRule implementations (diff)
downloadrekonq-8b346963ef2087404663f566f397ecaeef63ed7d.tar.xz
Merge commit 'refs/merge-requests/178' of git://gitorious.org/rekonq/mainline into m178
Diffstat (limited to 'src/adblock/adblockrule.h')
-rw-r--r--src/adblock/adblockrule.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/adblock/adblockrule.h b/src/adblock/adblockrule.h
index 28084004..04409688 100644
--- a/src/adblock/adblockrule.h
+++ b/src/adblock/adblockrule.h
@@ -58,27 +58,25 @@
// Rekonq Includes
#include "rekonq_defines.h"
-// Qt Includes
-#include <QtCore/QRegExp>
-#include <QtCore/QString>
+#include "adblockruleimpl.h"
-// Forward Includes
-class QUrl;
+#include <QSharedPointer>
+// Forward Includes
+class QString;
class AdBlockRule
{
public:
AdBlockRule(const QString &filter);
- bool match(const QString &encodedUrl) const;
-
- QString pattern() const;
+ bool match(const QString &encodedUrl) const
+ {
+ return m_implementation->match(encodedUrl);
+ }
private:
- QString convertPatternToRegExp(const QString &wildcardPattern);
-
- QRegExp m_regExp;
+ QSharedPointer<AdBlockRuleImpl> m_implementation;
};