From d886b377ac168d32668b5f3d145279a4f64de730 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 23 Jan 2017 15:42:14 +0100 Subject: URL blocking --- src/webengine/adblockrule.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/webengine/adblockrule.h (limited to 'src/webengine/adblockrule.h') diff --git a/src/webengine/adblockrule.h b/src/webengine/adblockrule.h new file mode 100644 index 0000000..8c68de7 --- /dev/null +++ b/src/webengine/adblockrule.h @@ -0,0 +1,24 @@ +#ifndef ADBLOCKRULE_H +#define ADBLOCKRULE_H + +#include +#include +#include + +class AdBlockRule : public QObject +{ + Q_OBJECT +public: + explicit AdBlockRule(QString rule, QObject *parent = 0); + + bool match(const QUrl &url); + +signals: + +public slots: + +private: + QRegularExpression ruleExpression; +}; + +#endif // ADBLOCKRULE_H -- cgit v1.2.1