summaryrefslogtreecommitdiff
path: root/src/adblock/adblockrule.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/adblock/adblockrule.h')
-rw-r--r--src/adblock/adblockrule.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/adblock/adblockrule.h b/src/adblock/adblockrule.h
index 35715051..6f042fe2 100644
--- a/src/adblock/adblockrule.h
+++ b/src/adblock/adblockrule.h
@@ -29,7 +29,7 @@
*
* This file is a part of the rekonq project
*
- * Copyright (C) 2009 by Andrea Diamantini <adjam7 at gmail dot com>
+ * Copyright (C) 2010 by Andrea Diamantini <adjam7 at gmail dot com>
*
*
* This program is free software; you can redistribute it and/or
@@ -37,9 +37,9 @@
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
- * by the membership of KDE e.V.), which shall act as a proxy
+ * by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 of the license.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -54,9 +54,13 @@
#ifndef ADBLOCKRULE_H
#define ADBLOCKRULE_H
+
+// Rekonq Includes
+#include "rekonq_defines.h"
+
// Qt Includes
-#include <QRegExp>
-#include <QString>
+#include <QtCore/QRegExp>
+#include <QtCore/QString>
// Forward Includes
class QUrl;
@@ -69,11 +73,13 @@ public:
bool match(const QString &encodedUrl) const;
-private:
+ QString pattern() const;
+
+private:
QString convertPatternToRegExp(const QString &wildcardPattern);
-
+
QRegExp m_regExp;
-
+
// Rule Options
bool m_optionMatchRule;
};