aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-10 23:25:09 +0100
committerdec05eba <dec05eba@protonmail.com>2021-03-10 23:27:28 +0100
commit5d29f22093fd602bc4d8863208e7812c0746e62e (patch)
tree844ee610b45880873e7afe17cb563f35e8982af5 /include
parent1fe31ba2e244d9ae26d1f8d00f411713d2eaacf7 (diff)
Youtube: add youtube comments to ctrl+r
Diffstat (limited to 'include')
-rw-r--r--include/QuickMedia.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index 5203c5b..512a722 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -96,7 +96,8 @@ namespace QuickMedia {
private:
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 page_loop_render(sf::RenderWindow &window, std::vector<Tab> &tabs, int selected_tab, TabAssociatedData &tab_associated_data, const Json::Value *json_chapters);
- void page_loop(std::vector<Tab> &tabs, int start_tab_index = 0, std::function<void()> after_submit_handler = nullptr);
+ using PageLoopSubmitHandler = std::function<void(const std::vector<Tab> &new_tabs)>;
+ void page_loop(std::vector<Tab> &tabs, int start_tab_index = 0, PageLoopSubmitHandler after_submit_handler = nullptr);
void video_content_page(VideoPage *video_page, std::string video_url, std::string video_title, bool download_if_streaming_fails);
// Returns -1 to go to previous chapter, 0 to stay on same chapter and 1 to go to next chapter
int image_page(MangaImagesPage *images_page, Body *chapters_body);