diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-01 15:13:35 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-01 15:13:35 +0100 |
commit | 3ac82fad6bc883d979090e8cd56f3611703d6e14 (patch) | |
tree | 5960826029f56101065fac99e3bc3a1665a50ca7 /include/QuickMedia.hpp | |
parent | 29d3f495e3b3be801cbb8c8dbd3f7250ec22415a (diff) |
Make login a bit generalized, readd 4chan login (not tested)
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r-- | include/QuickMedia.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 6856f05..f93b47c 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -74,6 +74,11 @@ namespace QuickMedia { AsyncTask<BodyItems> next_page_future; std::string body_item_url_before_refresh; }; + + struct LoginInput { + std::string placeholder; + SearchBarType type; + }; class Program { public: @@ -83,6 +88,7 @@ namespace QuickMedia { std::unique_ptr<Body> create_body(bool plain_text_list = false, bool prefer_card_view = false); std::unique_ptr<SearchBar> create_search_bar(const std::string &placeholder, int search_delay); + void add_login_inputs(Tab *tab, std::vector<LoginInput> login_inputs); bool load_manga_content_storage(const char *service_name, const std::string &manga_title, const std::string &manga_url, const std::string &manga_id); @@ -215,5 +221,6 @@ namespace QuickMedia { std::unique_ptr<VideoPlayer> video_player; bool use_youtube_dl = false; int video_max_height = 0; + std::mutex login_inputs_mutex; }; } |