diff options
Diffstat (limited to 'src/webengine/adblockrule.h')
-rw-r--r-- | src/webengine/adblockrule.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 <QObject> +#include <QUrl> +#include <QRegularExpression> + +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 |