aboutsummaryrefslogtreecommitdiff
path: root/plugins/Plugin.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-01 18:05:16 +0100
committerdec05eba <dec05eba@protonmail.com>2019-12-01 18:05:16 +0100
commit6c7adadf6d5c85d5e280e965d4dee1563bf46821 (patch)
treefecdef2d933e0e83e23e0d87bf42139820490bbc /plugins/Plugin.hpp
parent129d842030fa993e800009ec0ab170f109e8e899 (diff)
Add 4chan posting
Diffstat (limited to 'plugins/Plugin.hpp')
-rw-r--r--plugins/Plugin.hpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/plugins/Plugin.hpp b/plugins/Plugin.hpp
index 47f0864..e19fbcd 100644
--- a/plugins/Plugin.hpp
+++ b/plugins/Plugin.hpp
@@ -2,6 +2,8 @@
#include "../include/Page.hpp"
#include "../include/Body.hpp"
+#include "../include/StringUtils.hpp"
+#include "../include/DownloadUtils.hpp"
#include <string>
#include <vector>
#include <memory>
@@ -25,12 +27,6 @@ namespace QuickMedia {
NET_ERR
};
- enum class DownloadResult {
- OK,
- ERR,
- NET_ERR
- };
-
enum class ImageResult {
OK,
END,
@@ -38,13 +34,6 @@ namespace QuickMedia {
NET_ERR
};
- struct CommandArg {
- std::string option;
- std::string value;
- };
-
- std::string strip(const std::string &str);
- void string_replace_all(std::string &str, const std::string &old_str, const std::string &new_str);
void html_unescape_sequences(std::string &str);
class Plugin {
@@ -77,8 +66,6 @@ namespace QuickMedia {
virtual bool search_suggestion_is_search() const { return false; }
virtual Page get_page_after_search() const = 0;
- DownloadResult download_to_string(const std::string &url, std::string &result, const std::vector<CommandArg> &additional_args = {});
-
const std::string name;
bool use_tor = false;
protected: