From 04e852c45a3f309d5e139b0ca059b32277c250e4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Apr 2021 06:16:47 +0200 Subject: Create a unified launcher for quickmedia --- include/QuickMedia.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/QuickMedia.hpp') diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 497f202..c6cd7b5 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -87,6 +87,7 @@ namespace QuickMedia { RoomData* get_current_chat_room(); void set_go_to_previous_page(); + void set_pipe_selected_text(const std::string &text); TaskResult run_task_with_loading_screen(std::function callback); @@ -94,6 +95,7 @@ namespace QuickMedia { void manga_get_watch_history(const char *plugin_name, BodyItems &history_items); void youtube_get_watch_history(BodyItems &history_items); private: + void load_plugin_by_name(std::vector &tabs, const char *start_dir); void base_event_handler(sf::Event &event, PageType previous_page, Body *body, SearchBar *search_bar, bool handle_key_press = true, bool handle_searchbar = true); void event_idle_handler(const sf::Event &event); void idle_active_handler(); @@ -165,6 +167,7 @@ namespace QuickMedia { std::string resources_root; sf::Shader circle_mask_shader; bool no_video = false; + bool force_no_video = false; bool use_system_mpv_config = false; UpscaleImageAction upscale_image_action = UpscaleImageAction::NO; // TODO: Save this to config file when switching modes @@ -184,5 +187,6 @@ namespace QuickMedia { sf::Clock idle_timer; bool idle = true; bool low_cpu_mode = false; + std::string pipe_selected_text; }; } \ No newline at end of file -- cgit v1.2.3