aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-05 18:17:00 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-05 18:17:04 +0200
commit657edb8eb9ab2fdef60d9c5d23a4c3093a64d859 (patch)
treea7055146e30551104480efd5f80898e21ae6aa5c /include
parent7e8a2f23a40e6374ddfb551920257846021e86fa (diff)
Add manga chapter viewing
Diffstat (limited to 'include')
-rw-r--r--include/Page.hpp4
-rw-r--r--include/QuickMedia.hpp7
2 files changed, 9 insertions, 2 deletions
diff --git a/include/Page.hpp b/include/Page.hpp
index ce20971..7b1fc17 100644
--- a/include/Page.hpp
+++ b/include/Page.hpp
@@ -5,6 +5,8 @@ namespace QuickMedia {
EXIT,
SEARCH_SUGGESTION,
SEARCH_RESULT,
- VIDEO_CONTENT
+ VIDEO_CONTENT,
+ EPISODE_LIST,
+ IMAGES
};
} \ No newline at end of file
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index d5839c7..e5f4f2d 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -17,10 +17,12 @@ namespace QuickMedia {
~Program();
void run();
private:
- void base_event_handler(sf::Event &event);
+ void base_event_handler(sf::Event &event, Page previous_page);
void search_suggestion_page();
void search_result_page();
void video_content_page();
+ void episode_list_page();
+ void image_page();
private:
sf::RenderWindow window;
sf::Vector2f window_size;
@@ -29,6 +31,9 @@ namespace QuickMedia {
Plugin *current_plugin;
std::unique_ptr<SearchBar> search_bar;
Page current_page;
+ // TODO: Combine these
std::string video_url;
+ std::string images_url;
+ int image_index;
};
} \ No newline at end of file