aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/adblockrule.h
blob: 8c68de768a3ad1bca53e0b9c64e36f47f81f1f86 (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 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