#ifndef NOWPLAYINGCARD_H #define NOWPLAYINGCARD_H #include #include #include struct SessionInfo; class QEmbyCore; class QLabel; class QProgressBar; class TweenedValue; class NowPlayingCard : public QFrame { Q_OBJECT public: explicit NowPlayingCard(const SessionInfo& session, QEmbyCore* core, QWidget* parent = nullptr); void updateSession(const SessionInfo& session); QString sessionId() const { return m_sessionId; } private: void setupUi(const SessionInfo& session); QCoro::Task loadImage(const SessionInfo& session); QEmbyCore* m_core; QString m_sessionId; QString m_currentImageItemId; QLabel* m_imageLabel; QLabel* m_titleLabel; QLabel* m_subtitleLabel; QLabel* m_progressText; QLabel* m_stateIcon; QProgressBar* m_progressBar; QLabel* m_userLabel; QLabel* m_streamLabel; TweenedValue* m_progressTween = nullptr; }; #endif