Mercurial > minori
annotate include/gui/pages/now_playing.h @ 95:8043152ef9d4
include: set classes as final where appropriate
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 14:39:43 -0400 |
parents | c69230dc2b5d |
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 |