aboutsummaryrefslogtreecommitdiff
path: root/lib/urlfilter/formats/hostlistrule.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-11-16 16:26:22 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-11-16 16:26:22 +0100
commit566abfa99120652fb1e9190d791fdbbba64d2e0d (patch)
tree86a6f71b926794298d922a9319b55909cf5a07b4 /lib/urlfilter/formats/hostlistrule.h
parentAdd more regex benchmarks (diff)
downloadsmolbote-566abfa99120652fb1e9190d791fdbbba64d2e0d.tar.xz
Add adblockrule_parse
Diffstat (limited to 'lib/urlfilter/formats/hostlistrule.h')
-rw-r--r--lib/urlfilter/formats/hostlistrule.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/urlfilter/formats/hostlistrule.h b/lib/urlfilter/formats/hostlistrule.h
index c65a98f..58ec690 100644
--- a/lib/urlfilter/formats/hostlistrule.h
+++ b/lib/urlfilter/formats/hostlistrule.h
@@ -18,7 +18,10 @@ public:
explicit HostlistRule(const QString &domain, const QString &redirect);
bool match(const QUrl &requestUrl) const override;
- FilterLeaf::Action action() const override;
+ std::pair<FilterLeaf::Action, QVariant> action() const override;
+
+private:
+ QString m_redirect;
};
#endif // SMOLBOTE_HOSTLIST_RULE_H