aboutsummaryrefslogtreecommitdiff
path: root/lib/urlfilter/formats/adblockrule_parse.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/adblockrule_parse.h
parentAdd more regex benchmarks (diff)
downloadsmolbote-566abfa99120652fb1e9190d791fdbbba64d2e0d.tar.xz
Add adblockrule_parse
Diffstat (limited to 'lib/urlfilter/formats/adblockrule_parse.h')
-rw-r--r--lib/urlfilter/formats/adblockrule_parse.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/urlfilter/formats/adblockrule_parse.h b/lib/urlfilter/formats/adblockrule_parse.h
new file mode 100644
index 0000000..7d380a8
--- /dev/null
+++ b/lib/urlfilter/formats/adblockrule_parse.h
@@ -0,0 +1,17 @@
+/*
+ * This file is part of smolbote. It's copyrighted by the contributors recorded
+ * in the version control history of the file, available from its original
+ * location: https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote
+ *
+ * SPDX-License-Identifier: GPL-3.0
+ */
+
+#ifndef ADBLOCKRULE_PARSE_H
+#define ADBLOCKRULE_PARSE_H
+
+class AdBlockRule;
+
+AdBlockRule *loadRule(const QString &filter);
+std::optional<QPair<QWebEngineUrlRequestInfo::ResourceType, bool>> parseOption(const QString &option);
+
+#endif // ADBLOCKRULE_PARSE_H \ No newline at end of file