equal
deleted
inserted
replaced
24 class IRQPreset; |
24 class IRQPreset; |
25 class IRQStatisticsReporter; |
25 class IRQStatisticsReporter; |
26 class IRQMetaData; |
26 class IRQMetaData; |
27 class IRStationShare; |
27 class IRStationShare; |
28 class HbLabel; |
28 class HbLabel; |
|
29 class HbMarqueeItem; |
|
30 class QEvent; |
29 |
31 |
30 /** |
32 /** |
31 * This class shows the station information when it's played. |
33 * This class shows the station information when it's played. |
32 */ |
34 */ |
33 |
35 |
37 Q_OBJECT |
39 Q_OBJECT |
38 |
40 |
39 public: |
41 public: |
40 ~IRNowPlayingView(); |
42 ~IRNowPlayingView(); |
41 |
43 |
|
44 signals: |
|
45 void applicationReady(); |
|
46 |
42 protected: |
47 protected: |
43 IRNowPlayingView(IRApplication* aApplication, TIRViewId aViewId); |
48 IRNowPlayingView(IRApplication* aApplication, TIRViewId aViewId); |
44 |
49 |
45 //from base class IRBaseView |
50 //from base class IRBaseView |
46 void launchAction(); |
51 void launchAction(); |
47 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
52 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
48 |
53 |
|
54 // from HbWidget |
|
55 void changeEvent(QEvent *event); |
49 |
56 |
50 private slots: |
57 private slots: |
51 // slots for logo download |
58 // slots for logo download |
52 void handleLogoDownloaded(IRQPreset* aPreset); |
59 void handleLogoDownloaded(IRQPreset* aPreset); |
53 |
60 |
82 // since this maybe called during handleLogoDownloaded(), |
89 // since this maybe called during handleLogoDownloaded(), |
83 // so make it as slot connected to a single timer. |
90 // so make it as slot connected to a single timer. |
84 void updateAdvImage(); |
91 void updateAdvImage(); |
85 #endif |
92 #endif |
86 |
93 |
|
94 #ifdef STATISTIC_REPORT_TEST_ENABLED |
|
95 void handleDummySongIdentify(); |
|
96 void handleDummyGoToNms(); |
|
97 void handleDummyFindInNms(); |
|
98 #endif |
|
99 |
87 private: |
100 private: |
88 void initialize(); |
101 void initialize(); |
89 void initMenu(); |
102 void initMenu(); |
90 void initToolBar(); |
103 void initToolBar(); |
91 void initWidget(); |
104 void initWidget(); |
92 |
105 |
93 void updateWidgets(); |
106 void updateWidgets(); |
94 void updateMusicStoreStatus(); |
107 void updateMusicStoreStatus(); |
95 void updateForLauchAction(); |
108 void updateForLauchAction(); |
|
109 void updateSongName(const QString &aSongName); |
96 |
110 |
97 void updateStationLogo(); |
111 void updateStationLogo(); |
98 void loadStationLogo(); |
112 void loadStationLogo(); |
99 |
113 |
100 void lazyInit(); |
114 void lazyInit(); |
122 #endif |
136 #endif |
123 EDownloadLogo = 2 |
137 EDownloadLogo = 2 |
124 }; |
138 }; |
125 LogoDownloadState iLogoDownloadState; |
139 LogoDownloadState iLogoDownloadState; |
126 |
140 |
127 HbLabel *iSongName; |
141 HbLabel *iSongNameLabel; |
|
142 HbMarqueeItem *iSongNameMarquee; |
128 HbLabel *iArtistName; |
143 HbLabel *iArtistName; |
129 HbLabel *iStationName; |
144 HbLabel *iStationName; |
130 HbLabel *iStationLogo; |
145 HbLabel *iStationLogo; |
131 bool iLogoNeedUpdate; |
146 bool iLogoNeedUpdate; |
132 |
147 |