diff options
Diffstat (limited to 'plugins/ImageBoard.hpp')
-rw-r--r-- | plugins/ImageBoard.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 |