From e67b9899feb72027b246e3b63ce5aa0ccae2dd16 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 30 Nov 2019 20:23:07 +0100 Subject: Add image board (4chan) comment navigation --- plugins/ImageBoard.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/ImageBoard.hpp (limited to 'plugins/ImageBoard.hpp') 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 -- cgit v1.2.3