diff options
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); |