19 #define MPPLAYBACKWIDGET_H |
19 #define MPPLAYBACKWIDGET_H |
20 |
20 |
21 #include <hbwidget.h> |
21 #include <hbwidget.h> |
22 |
22 |
23 class MpPlaybackData; |
23 class MpPlaybackData; |
24 |
|
25 class HbStackedLayout; |
24 class HbStackedLayout; |
26 class QString; |
25 class QString; |
27 class HbTextItem; |
26 class HbTextItem; |
28 class HbProgressSlider; |
27 class HbProgressSlider; |
29 class HbLabel; |
28 class HbLabel; |
30 class HbIcon; |
29 class MpPlaybackDocumentLoader; |
31 class HbDocumentLoader; |
30 class MpAlbumCoverWidget; |
32 |
31 |
33 class MpPlaybackWidget : public HbWidget |
32 class MpPlaybackWidget : public HbWidget |
34 { |
33 { |
35 Q_OBJECT |
34 Q_OBJECT |
36 |
35 |
62 |
61 |
63 QString formatDuration( int seconds ); |
62 QString formatDuration( int seconds ); |
64 |
63 |
65 private: |
64 private: |
66 |
65 |
67 MpPlaybackData *mPlaybackData; // Not own |
66 MpPlaybackData *mPlaybackData; // Not own |
68 HbDocumentLoader *mDocumentLoader; // Own |
67 MpPlaybackDocumentLoader *mDocumentLoader; // Own |
69 |
68 |
70 HbStackedLayout *mLayout; // Not own |
69 HbStackedLayout *mLayout; // Not own |
71 HbLabel *mSongTitle; // Not own |
70 HbLabel *mSongTitle; // Not own |
72 HbLabel *mArtistName; // Not own |
71 HbLabel *mArtistName; // Not own |
73 HbLabel *mAlbumName; // Not own |
72 HbLabel *mAlbumName; // Not own |
74 HbLabel *mAlbumArt; // Not own |
73 MpAlbumCoverWidget *mAlbumArt; // Not own |
75 HbProgressSlider *mProgressBar; // Not own |
74 HbProgressSlider *mProgressBar; // Not own |
76 HbLabel *mRealAudioIndicator; // Not own |
75 HbLabel *mRealAudioIndicator; // Not own |
77 HbLabel *mRepeatIndicator; // Not own |
76 HbLabel *mRepeatIndicator; // Not own |
78 |
77 bool mProgreesBarDragging; |
79 bool mProgreesBarDragging; |
78 int mDuration; |
80 int mDuration; |
|
81 |
79 |
82 Q_DISABLE_COPY(MpPlaybackWidget) |
80 Q_DISABLE_COPY(MpPlaybackWidget) |
83 }; |
81 }; |
84 |
82 |
85 #endif // MPPLAYBACKWIDGET_H |
83 #endif // MPPLAYBACKWIDGET_H |