diff options
Diffstat (limited to 'plugins/Plugin.hpp')
-rw-r--r-- | plugins/Plugin.hpp | 17 |
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: |