Mercurial > minori
comparison include/gui/pages/now_playing.h @ 80:825506f0e221
[UNFINISHED]: stuff
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 13 Oct 2023 13:15:19 -0400 |
parents | c489dd4434af |
children | d02fdf1d6708 |
comparison
equal
deleted
inserted
replaced
79:c489dd4434af | 80:825506f0e221 |
---|---|
1 #ifndef __gui__pages__now_playing_h | 1 #ifndef __gui__pages__now_playing_h |
2 #define __gui__pages__now_playing_h | 2 #define __gui__pages__now_playing_h |
3 #include <QFrame> | 3 #include <QFrame> |
4 #include <unordered_map> | |
4 | 5 |
5 class QStackedWidget; | 6 class QStackedWidget; |
6 | 7 |
7 class NowPlayingPage : public QFrame { | 8 class NowPlayingPage : public QFrame { |
8 Q_OBJECT | 9 Q_OBJECT |
9 | 10 |
10 public: | 11 public: |
11 NowPlayingPage(QWidget* parent = nullptr); | 12 NowPlayingPage(QWidget* parent = nullptr); |
12 void SetDefault(); | 13 void SetDefault(); |
13 void SetPlaying(int id, int episodes); | 14 void SetPlaying(int id, const std::unordered_map<std::string, std::string>& episodes); |
14 int GetPlayingId(); | 15 int GetPlayingId(); |
15 | 16 |
16 private: | 17 private: |
17 QStackedWidget* stack; | 18 QStackedWidget* stack; |
18 }; | 19 }; |