aboutsummaryrefslogtreecommitdiff
path: root/lib/urlfilter/formats/adblockrule.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-22 20:39:21 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-22 20:39:21 +0200
commitb091eab32952450744a21109a924cfdb5c504c82 (patch)
tree0f8628e48078687240e0841c3dd0b5f0fc1fc8c1 /lib/urlfilter/formats/adblockrule.h
parentAdd MatcherBenchmark (diff)
downloadsmolbote-b091eab32952450744a21109a924cfdb5c504c82.tar.xz
AdblockRule constructor
Diffstat (limited to 'lib/urlfilter/formats/adblockrule.h')
-rw-r--r--lib/urlfilter/formats/adblockrule.h7
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);