blob: e2a43a94c1cc4a1166c66b11290adeab1f280da5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#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) {}
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;
virtual PostResult post_comment(const std::string &board, const std::string &thread, const std::string &captcha_id, const std::string &comment) = 0;
};
}
|