aboutsummaryrefslogtreecommitdiff
path: root/lib/urlfilter/formats/hostlistrule.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/urlfilter/formats/hostlistrule.h')
-rw-r--r--lib/urlfilter/formats/hostlistrule.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/urlfilter/formats/hostlistrule.h b/lib/urlfilter/formats/hostlistrule.h
new file mode 100644
index 0000000..764a2e2
--- /dev/null
+++ b/lib/urlfilter/formats/hostlistrule.h
@@ -0,0 +1,16 @@
+#ifndef SMOLBOTE_HOSTLIST_RULE_H
+#define SMOLBOTE_HOSTLIST_RULE_H
+
+#include "../filterleaf.h"
+#include <QString>
+
+class HostlistRule : public FilterLeaf
+{
+public:
+ explicit HostlistRule(const QString &domain, const QString &redirect);
+
+ bool match(const QString &requestUrl) const override;
+ FilterLeaf::Action action() const override;
+};
+
+#endif // SMOLBOTE_HOSTLIST_RULE_H