aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/blockerrule.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine/blockerrule.h')
-rw-r--r--src/webengine/blockerrule.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/webengine/blockerrule.h b/src/webengine/blockerrule.h
new file mode 100644
index 0000000..9d73004
--- /dev/null
+++ b/src/webengine/blockerrule.h
@@ -0,0 +1,24 @@
+#ifndef ADBLOCKRULE_H
+#define ADBLOCKRULE_H
+
+#include <QObject>
+#include <QUrl>
+#include <QRegularExpression>
+
+class BlockerRule : public QObject
+{
+ Q_OBJECT
+public:
+ explicit BlockerRule(QString rule, QObject *parent = 0);
+
+ bool match(const QUrl &url);
+
+signals:
+
+public slots:
+
+private:
+ QRegularExpression ruleExpression;
+};
+
+#endif // ADBLOCKRULE_H