diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-22 20:39:21 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-22 20:39:21 +0200 |
commit | b091eab32952450744a21109a924cfdb5c504c82 (patch) | |
tree | 0f8628e48078687240e0841c3dd0b5f0fc1fc8c1 /lib/urlfilter/formats/adblockrule.h | |
parent | Add MatcherBenchmark (diff) | |
download | smolbote-b091eab32952450744a21109a924cfdb5c504c82.tar.xz |
AdblockRule constructor
Diffstat (limited to 'lib/urlfilter/formats/adblockrule.h')
-rw-r--r-- | lib/urlfilter/formats/adblockrule.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/urlfilter/formats/adblockrule.h b/lib/urlfilter/formats/adblockrule.h index 0f0873c..da7e4fc 100644 --- a/lib/urlfilter/formats/adblockrule.h +++ b/lib/urlfilter/formats/adblockrule.h @@ -15,10 +15,11 @@ class AdBlockRule : public FilterLeaf { public: -// explicit AdBlockRule(const QString &filter); + explicit AdBlockRule(FilterLeaf::UrlMatchType matchType, const QString &filter, FilterLeaf::Action action); + void mergeOptions(const QHash<QWebEngineUrlRequestInfo::ResourceType, bool> &options); -// bool match(const QUrl &requestUrl) const override; -// FilterLeaf::Action action() const override; + bool match(const QUrl &requestUrl) const override; + FilterLeaf::Action action() const override; }; std::optional<QPair<QWebEngineUrlRequestInfo::ResourceType, bool>> parseOption(const QString &option); |