blob: abab22e5e5cbf170450e72158b726e0382910c37 (
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
25
|
#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 const std::string& get_pass_id() const = 0;
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;
};
}
|