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/Plugin.hpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'plugins/Plugin.hpp') 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 #include #include @@ -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 &additional_args = {}); - const std::string name; bool use_tor = false; protected: -- cgit v1.2.3