#pragma once #include "../include/Body.hpp" #include "../include/DownloadUtils.hpp" #include #include namespace QuickMedia { enum class PluginResult { OK, ERR, NET_ERR }; enum class SearchResult { OK, ERR, NET_ERR }; enum class SuggestionResult { OK, ERR, NET_ERR }; enum class ImageResult { OK, END, ERR, NET_ERR }; struct BodyItemImageContext { BodyItems *body_items; size_t index; }; void html_escape_sequences(std::string &str); void html_unescape_sequences(std::string &str); std::string url_param_encode(const std::string ¶m); SuggestionResult download_result_to_suggestion_result(DownloadResult download_result); PluginResult download_result_to_plugin_result(DownloadResult download_result); SearchResult download_result_to_search_result(DownloadResult download_result); ImageResult download_result_to_image_result(DownloadResult download_result); }