aboutsummaryrefslogtreecommitdiff
path: root/include/QuickMedia.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-07 18:10:12 +0100
committerdec05eba <dec05eba@protonmail.com>2019-12-07 18:10:12 +0100
commit3364e8c6291907ea88e45314c5add9624b81c110 (patch)
treef832ea211c8c4fc7f132ba68c8c0c32bfce3e3bb /include/QuickMedia.hpp
parent623cfeb9de7ff4bcc710b5a4e41cc354bb2e3f0c (diff)
Add support for viewing videos/gifs on image boards (4chan)
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r--include/QuickMedia.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index abfe270..9cc85d5 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -11,6 +11,7 @@
#include <json/value.h>
#include <unordered_set>
#include <future>
+#include <stack>
namespace QuickMedia {
class Plugin;
@@ -44,6 +45,9 @@ namespace QuickMedia {
LoadImageResult load_image_by_index(int image_index, sf::Texture &image_texture, sf::String &error_message);
void download_chapter_images_if_needed(Manganelo *image_plugin);
void select_episode(BodyItem *item, bool start_from_beginning);
+
+ // Returns Page::EXIT if empty
+ Page pop_page_stack();
private:
sf::RenderWindow window;
sf::Vector2f window_size;
@@ -54,6 +58,7 @@ namespace QuickMedia {
sf::Texture plugin_logo;
std::unique_ptr<SearchBar> search_bar;
Page current_page;
+ std::stack<Page> page_stack;
// TODO: Combine these
std::string images_url;
std::string content_title;