Mercurial > minori
annotate include/gui/pages/now_playing.h @ 137:69db40272acd
dep/animia: [WIP] huge refactor
this WILL NOT compile, because lots of code has been changed
and every API in the original codebase has been removed.
note that this api setup is not exactly permanent...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 10 Nov 2023 13:52:47 -0500 |
parents | 8043152ef9d4 |
children | d43d68408d3c |
rev | line source |
---|---|
9 | 1 #ifndef __gui__pages__now_playing_h |
2 #define __gui__pages__now_playing_h | |
85 | 3 |
64 | 4 #include <QFrame> |
80 | 5 #include <unordered_map> |
2 | 6 |
64 | 7 class QStackedWidget; |
85 | 8 |
83 | 9 namespace Anime { |
10 class Anime; | |
11 } | |
64 | 12 |
95
8043152ef9d4
include: set classes as final where appropriate
Paper <mrpapersonic@gmail.com>
parents:
85
diff
changeset
|
13 class NowPlayingPage final : public QFrame { |
9 | 14 Q_OBJECT |
7 | 15 |
2 | 16 public: |
64 | 17 NowPlayingPage(QWidget* parent = nullptr); |
18 void SetDefault(); | |
83 | 19 void SetPlaying(const Anime::Anime& anime, const std::unordered_map<std::string, std::string>& episodes); |
69 | 20 int GetPlayingId(); |
64 | 21 |
22 private: | |
23 QStackedWidget* stack; | |
2 | 24 }; |
25 | |
9 | 26 #endif // __gui__pages__now_playing_h |