aboutsummaryrefslogtreecommitdiff
path: root/include/QuickMedia.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-06 06:16:47 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-06 06:16:47 +0200
commit04e852c45a3f309d5e139b0ca059b32277c250e4 (patch)
treed704413fa0d76bf7f8c92eacce5e96e0a3d4c874 /include/QuickMedia.hpp
parent797a36228bdb3b77b7314585a31de6f27feab51d (diff)
Create a unified launcher for quickmedia
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r--include/QuickMedia.hpp4
1 files changed, 4 insertions, 0 deletions
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<bool()> 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<Tab> &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