equal
deleted
inserted
replaced
23 #include "irqenums.h" |
23 #include "irqenums.h" |
24 |
24 |
25 class IRApplication; |
25 class IRApplication; |
26 class IRQMediaPlayer; |
26 class IRQMediaPlayer; |
27 class IRQPreset; |
27 class IRQPreset; |
28 class IRQMetaData; |
28 class IRQMetaData; |
29 class IRQSongHistoryEngine; |
|
30 class IRQStatisticsReporter; |
29 class IRQStatisticsReporter; |
31 class HbMessageBox; |
30 class HbMessageBox; |
|
31 class IRDBWrapper; |
|
32 class channelHistoryWrapper; |
|
33 class urlInfoWrapper; |
|
34 |
32 /** |
35 /** |
33 * This class is a wrapper for IRQMediaPlayer. |
36 * This class is a wrapper for IRQMediaPlayer. |
34 */ |
37 */ |
35 |
38 |
36 class IRPlayController : public QObject |
39 class IRPlayController : public QObject |
104 |
107 |
105 // Get the meta data |
108 // Get the meta data |
106 IRQMetaData * getMetaData() const; |
109 IRQMetaData * getMetaData() const; |
107 |
110 |
108 IRQTerminatedType getStopReason() const; |
111 IRQTerminatedType getStopReason() const; |
109 |
|
110 #ifdef _DEBUG |
|
111 int bitrateTrying() const; |
|
112 #endif |
|
113 |
112 |
114 signals: |
113 signals: |
115 // emitted when meta data is available |
114 // emitted when meta data is available |
116 void metaDataAvailable(IRQMetaData*); |
115 void metaDataAvailable(IRQMetaData*); |
117 |
116 |
163 |
162 |
164 void doPlay(const QString aUrl); |
163 void doPlay(const QString aUrl); |
165 |
164 |
166 void startSession(); |
165 void startSession(); |
167 void endSession(IRQTerminatedType aStopReason); |
166 void endSession(IRQTerminatedType aStopReason); |
168 |
167 |
|
168 void saveSong2DB(const IRQMetaData& aMetaData, const IRQPreset& aPreset); |
|
169 void saveStation2DB(IRQPreset *aPreset); |
|
170 |
169 private: |
171 private: |
170 IRApplication *iApplication; |
172 IRApplication *iApplication; |
171 IRQMediaPlayer *iMediaPlayer; |
173 IRQMediaPlayer *iMediaPlayer; |
172 |
174 |
173 IRQStatisticsReporter *iStatisticsReporter; |
175 IRQStatisticsReporter *iStatisticsReporter; |
188 |
190 |
189 bool iStationLogoAvailable; |
191 bool iStationLogoAvailable; |
190 bool iStationLogoAvailableBackup; |
192 bool iStationLogoAvailableBackup; |
191 |
193 |
192 // reference of IRQMediaPlayer meta data |
194 // reference of IRQMediaPlayer meta data |
193 IRQMetaData *iMetaData; |
195 IRQMetaData *iMetaData; |
194 IRQSongHistoryEngine *iSongHistoryEngine; |
|
195 |
196 |
196 EPlayState iPlayState; |
197 EPlayState iPlayState; |
197 |
198 |
198 // If resuming the last played url fails, reset the player to init state |
199 // If resuming the last played url fails, reset the player to init state |
199 // i.e., call connectToChannel() once again. |
200 // i.e., call connectToChannel() once again. |
216 IRQError iLastError; |
217 IRQError iLastError; |
217 |
218 |
218 IRQTerminatedType iStopReason; |
219 IRQTerminatedType iStopReason; |
219 |
220 |
220 HbMessageBox *iErrorNote; |
221 HbMessageBox *iErrorNote; |
|
222 |
|
223 IRDBWrapper *iDbWrapper; |
|
224 channelHistoryWrapper *iHistoryWrapper; |
|
225 urlInfoWrapper *iUrlInfoWrapper; |
221 }; |
226 }; |
222 |
227 |
223 #endif //IRPLAYCONTROLLER_H |
228 #endif //IRPLAYCONTROLLER_H |