diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-24 16:09:07 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-24 16:09:07 +0100 |
commit | 0250559bcf5764fb8cf3a8ccc4e330b8ed855f96 (patch) | |
tree | 2283350e44f78e83a8c0257b66c184939cd95a98 /src/webengine/blockerrule.h | |
parent | Made Profile menu a regular menu (diff) | |
download | smolbote-0250559bcf5764fb8cf3a8ccc4e330b8ed855f96.tar.xz |
Blocker UI
Diffstat (limited to 'src/webengine/blockerrule.h')
-rw-r--r-- | src/webengine/blockerrule.h | 24 |
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 |