From e67b9899feb72027b246e3b63ce5aa0ccae2dd16 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 30 Nov 2019 20:23:07 +0100 Subject: Add image board (4chan) comment navigation --- include/Body.hpp | 2 ++ include/DataView.hpp | 10 ++++++++++ include/Page.hpp | 4 +++- include/QuickMedia.hpp | 3 +++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 include/DataView.hpp (limited to 'include') diff --git a/include/Body.hpp b/include/Body.hpp index ae1c3ff..32e19dc 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -20,6 +20,8 @@ namespace QuickMedia { std::string url; std::string thumbnail_url; bool visible; + // Used by image boards for example. The elements are indices to other body items + std::vector replies; }; using BodyItems = std::vector>; diff --git a/include/DataView.hpp b/include/DataView.hpp new file mode 100644 index 0000000..baf64dc --- /dev/null +++ b/include/DataView.hpp @@ -0,0 +1,10 @@ +#pragma once + +#include + +namespace QuickMedia { + struct DataView { + char *data; + size_t size; + }; +} \ No newline at end of file diff --git a/include/Page.hpp b/include/Page.hpp index b159877..b615c8c 100644 --- a/include/Page.hpp +++ b/include/Page.hpp @@ -9,6 +9,8 @@ namespace QuickMedia { EPISODE_LIST, IMAGES, CONTENT_LIST, - CONTENT_DETAILS + CONTENT_DETAILS, + IMAGE_BOARD_THREAD_LIST, + IMAGE_BOARD_THREAD }; } \ No newline at end of file diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 7bf8231..f4cb250 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -32,6 +32,8 @@ namespace QuickMedia { void image_page(); void content_list_page(); void content_details_page(); + void image_board_thread_list_page(); + void image_board_thread_page(); enum class LoadImageResult { OK, @@ -57,6 +59,7 @@ namespace QuickMedia { std::string content_episode; std::string content_url; std::string content_list_url; + std::string image_board_thread_list_url; std::string chapter_title; int image_index; Path content_storage_file; -- cgit v1.2.3