17 #ifndef GIGA_DATA_PREVIEW_MODEL_H_
18 #define GIGA_DATA_PREVIEW_MODEL_H_
23 #include "../../rest/prepoc_manage.h"
27 #include "PreviewCover.h"
37 boost::optional<utility::string_t>
type = boost::none;
39 boost::optional<utility::string_t>
icon = boost::none;
40 std::unique_ptr<PreviewCover> cover =
nullptr;
41 std::vector<std::unique_ptr<Stream>> streams = {};
42 std::vector<std::unique_ptr<Subtitle>> subtitles = {};
44 boost::optional<utility::string_t>
albumart = boost::none;
46 boost::optional<utility::string_t>
image = boost::none;
48 boost::optional<utility::string_t>
pdf = boost::none;
50 boost::optional<utility::string_t>
epub = boost::none;
52 template <
class Manager>
53 void visit(
const Manager& m) {
56 GIGA_MANAGE(m, cover);
57 GIGA_MANAGE(m, streams);
58 GIGA_MANAGE(m, subtitles);
60 GIGA_MANAGE(m,
image);
boost::optional< utility::string_t > albumart
Definition: Preview.h:44
boost::optional< utility::string_t > pdf
Definition: Preview.h:48
boost::optional< utility::string_t > type
Definition: Preview.h:37
boost::optional< utility::string_t > icon
Definition: Preview.h:39
boost::optional< utility::string_t > image
Definition: Preview.h:46
boost::optional< utility::string_t > epub
Definition: Preview.h:50