diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-09 11:35:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-09 11:35:47 +0200 |
commit | 76ef34393aa72230a3490ecf7b06647ede1448da (patch) | |
tree | 1121b209293e719271b62c4fddeb4ec44ea6aac6 /include | |
parent | da2988c4356d2756e86037b1c7e859f49583c109 (diff) |
Add initial peertube support
Diffstat (limited to 'include')
-rw-r--r-- | include/QuickMedia.hpp | 2 | ||||
-rw-r--r-- | include/Storage.hpp | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 86a2993..db3dd09 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -103,7 +103,7 @@ namespace QuickMedia { Json::Value load_video_history_json(); private: void init(Window parent_window, std::string &program_path); - void load_plugin_by_name(std::vector<Tab> &tabs, int &start_tab_index, FileManagerMimeType fm_mime_type, FileSelectionHandler file_selection_handler); + void load_plugin_by_name(std::vector<Tab> &tabs, int &start_tab_index, FileManagerMimeType fm_mime_type, FileSelectionHandler file_selection_handler, std::string instance); void common_event_handler(sf::Event &event); void handle_x11_events(); void base_event_handler(sf::Event &event, PageType previous_page, Body *body, SearchBar *search_bar, bool handle_key_press = true, bool handle_searchbar = true); diff --git a/include/Storage.hpp b/include/Storage.hpp index c3f40aa..9107bb2 100644 --- a/include/Storage.hpp +++ b/include/Storage.hpp @@ -3,9 +3,12 @@ #include "Path.hpp" #include <functional> #include <filesystem> -#include <json/value.h> #include <rapidjson/fwd.h> +namespace Json { + class Value; +} + namespace QuickMedia { // Return false to stop the iterator using FileIteratorCallback = std::function<bool(const std::filesystem::path &filepath)>; |