diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-11-30 20:23:07 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-11-30 20:23:07 +0100 |
commit | e67b9899feb72027b246e3b63ce5aa0ccae2dd16 (patch) | |
tree | f13feac1d176fe12a68d685ab2894da72abe905b /include | |
parent | e2ef465bb606a18e097fd143953e24b4f927241d (diff) |
Add image board (4chan) comment navigation
Diffstat (limited to 'include')
-rw-r--r-- | include/Body.hpp | 2 | ||||
-rw-r--r-- | include/DataView.hpp | 10 | ||||
-rw-r--r-- | include/Page.hpp | 4 | ||||
-rw-r--r-- | include/QuickMedia.hpp | 3 |
4 files changed, 18 insertions, 1 deletions
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<size_t> replies; }; using BodyItems = std::vector<std::unique_ptr<BodyItem>>; 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 <stddef.h> + +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; |