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;
|
|
7
|
|
8 class NowPlayingPage : public QFrame {
|
9
|
9 Q_OBJECT
|
7
|
10
|
2
|
11 public:
|
64
|
12 NowPlayingPage(QWidget* parent = nullptr);
|
|
13 void SetDefault();
|
80
|
14 void SetPlaying(int id, const std::unordered_map<std::string, std::string>& episodes);
|
69
|
15 int GetPlayingId();
|
64
|
16
|
|
17 private:
|
|
18 QStackedWidget* stack;
|
2
|
19 };
|
|
20
|
9
|
21 #endif // __gui__pages__now_playing_h
|