comparison include/gui/pages/now_playing.h @ 383:27c462bc7815

make the "Now Playing" page actually work
author Paper <paper@tflc.us>
date Thu, 06 Nov 2025 07:10:58 -0500
parents abd956418fe9
children e89901683d72
comparison
equal deleted inserted replaced
382:0265e125f680 383:27c462bc7815
10 #include <QStackedWidget> 10 #include <QStackedWidget>
11 #include <QTimer> 11 #include <QTimer>
12 12
13 #include <memory> 13 #include <memory>
14 #include <unordered_map> 14 #include <unordered_map>
15 #include <cstdint>
15 16
16 17
17 namespace Anime { 18 namespace Anime {
18 class Anime; 19 class Anime;
19 } 20 }
80 Default = 0, 81 Default = 0,
81 Playing = 1, 82 Playing = 1,
82 }; 83 };
83 84
84 QStackedWidget stack_; 85 QStackedWidget stack_;
85 QTimer timer_; 86 /* Time the episode started playing (roughly)
87 * This is -1 if there is no episode playing */
88 std::int64_t timer_ = -1;
86 89
87 NowPlayingPages::Default default_; 90 NowPlayingPages::Default default_;
88 NowPlayingPages::Playing playing_; 91 NowPlayingPages::Playing playing_;
89 }; 92 };
90 93