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
|
|
13 class NowPlayingPage : 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
|