aboutsummaryrefslogtreecommitdiff
path: root/plugins/ImageBoard.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ImageBoard.hpp')
-rw-r--r--plugins/ImageBoard.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/ImageBoard.hpp b/plugins/ImageBoard.hpp
new file mode 100644
index 0000000..090f775
--- /dev/null
+++ b/plugins/ImageBoard.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "Plugin.hpp"
+
+namespace QuickMedia {
+ class ImageBoard : public Plugin {
+ public:
+ ImageBoard(const std::string &name) : Plugin(name) {}
+ virtual ~ImageBoard() = default;
+
+ bool is_image_board() override { return true; }
+
+ virtual PluginResult get_threads(const std::string &url, BodyItems &result_items) = 0;
+ virtual PluginResult get_thread_comments(const std::string &list_url, const std::string &url, BodyItems &result_items) = 0;
+ };
+} \ No newline at end of file