aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/blockerrule.h
blob: 9d73004309ce40ce553bb7579246f8a092d49a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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