9
|
1 #ifndef __gui__pages__now_playing_h
|
|
2 #define __gui__pages__now_playing_h
|
64
|
3 #include <QFrame>
|
80
|
4 #include <unordered_map>
|
2
|
5
|
64
|
6 class QStackedWidget;
|
83
|
7 namespace Anime {
|
|
8 class Anime;
|
|
9 }
|
64
|
10
|
|
11 class NowPlayingPage : public QFrame {
|
9
|
12 Q_OBJECT
|
7
|
13
|
2
|
14 public:
|
64
|
15 NowPlayingPage(QWidget* parent = nullptr);
|
|
16 void SetDefault();
|
83
|
17 void SetPlaying(const Anime::Anime& anime, const std::unordered_map<std::string, std::string>& episodes);
|
69
|
18 int GetPlayingId();
|
64
|
19
|
|
20 private:
|
|
21 QStackedWidget* stack;
|
2
|
22 };
|
|
23
|
9
|
24 #endif // __gui__pages__now_playing_h
|