From 6c7adadf6d5c85d5e280e965d4dee1563bf46821 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 1 Dec 2019 18:05:16 +0100 Subject: Add 4chan posting --- plugins/ImageBoard.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/ImageBoard.hpp') diff --git a/plugins/ImageBoard.hpp b/plugins/ImageBoard.hpp index 090f775..e2a43a9 100644 --- a/plugins/ImageBoard.hpp +++ b/plugins/ImageBoard.hpp @@ -3,6 +3,13 @@ #include "Plugin.hpp" namespace QuickMedia { + enum class PostResult { + OK, + TRY_AGAIN, + BANNED, + ERR + }; + class ImageBoard : public Plugin { public: ImageBoard(const std::string &name) : Plugin(name) {} @@ -12,5 +19,6 @@ namespace QuickMedia { 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; + virtual PostResult post_comment(const std::string &board, const std::string &thread, const std::string &captcha_id, const std::string &comment) = 0; }; } \ No newline at end of file -- cgit v1.2.3