diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-11-30 20:23:07 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-11-30 20:23:07 +0100 |
commit | e67b9899feb72027b246e3b63ce5aa0ccae2dd16 (patch) | |
tree | f13feac1d176fe12a68d685ab2894da72abe905b /plugins/ImageBoard.hpp | |
parent | e2ef465bb606a18e097fd143953e24b4f927241d (diff) |
Add image board (4chan) comment navigation
Diffstat (limited to 'plugins/ImageBoard.hpp')
-rw-r--r-- | plugins/ImageBoard.hpp | 16 |
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 |