1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #include "irqsonghistoryinfo.h" |
|
18 |
|
19 // --------------------------------------------------------------------------- |
|
20 //IRQSongHistoryInfo::~IRQSongHistoryInfo() |
|
21 //standard C++ constructor |
|
22 // --------------------------------------------------------------------------- |
|
23 // |
|
24 EXPORT_C IRQSongHistoryInfo::IRQSongHistoryInfo() |
|
25 { |
|
26 iChannelType = 0; |
|
27 iChannelId = 0; |
|
28 iBitrate = 0; |
|
29 } |
|
30 |
|
31 // --------------------------------------------------------------------------- |
|
32 //IRQSongHistoryInfo::~IRQSongHistoryInfo() |
|
33 //standard C++ destructor |
|
34 // --------------------------------------------------------------------------- |
|
35 // |
|
36 EXPORT_C IRQSongHistoryInfo::~IRQSongHistoryInfo() |
|
37 { |
|
38 |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // IRQSongHistoryInfo::getArtistName |
|
43 // gets Artist name |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 EXPORT_C const QString& IRQSongHistoryInfo::getArtistName() const |
|
47 { |
|
48 return iArtistName; |
|
49 } |
|
50 |
|
51 // --------------------------------------------------------------------------- |
|
52 // IRQSongHistoryInfo::getSongName |
|
53 // gets the song information |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 EXPORT_C const QString& IRQSongHistoryInfo::getSongName() const |
|
57 { |
|
58 return iSongName; |
|
59 } |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // IRQSongHistoryInfo::getStreamUrl |
|
63 // gets StreamUrl |
|
64 // --------------------------------------------------------------------------- |
|
65 // |
|
66 EXPORT_C const QString& IRQSongHistoryInfo::getStreamUrl() const |
|
67 { |
|
68 return iStreamUrl; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // IRQSongHistoryInfo::getChannelName |
|
73 // gets Channel name |
|
74 // --------------------------------------------------------------------------- |
|
75 // |
|
76 EXPORT_C const QString& IRQSongHistoryInfo::getChannelName() const |
|
77 { |
|
78 return iChannelName; |
|
79 } |
|
80 |
|
81 // --------------------------------------------------------------------------- |
|
82 // IRQSongHistoryInfo::getChannelDesc |
|
83 // gets Channel Description |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C const QString& IRQSongHistoryInfo::getChannelDesc() const |
|
87 { |
|
88 return iChannelDescription; |
|
89 } |
|
90 |
|
91 // --------------------------------------------------------------------------- |
|
92 // IRQSongHistoryInfo::getImageUrl |
|
93 // gets Channel image Url |
|
94 // --------------------------------------------------------------------------- |
|
95 // |
|
96 EXPORT_C const QString& IRQSongHistoryInfo::getImageUrl() const |
|
97 { |
|
98 return iImageUrl; |
|
99 } |
|
100 |
|
101 // --------------------------------------------------------------------------- |
|
102 // IRQSongHistoryInfo::getGenreName |
|
103 // gets Channel genre name |
|
104 // --------------------------------------------------------------------------- |
|
105 // |
|
106 EXPORT_C const QString& IRQSongHistoryInfo::getGenreName() const |
|
107 { |
|
108 return iGenreName; |
|
109 } |
|
110 |
|
111 // --------------------------------------------------------------------------- |
|
112 // IRQSongHistoryInfo::getCountryName |
|
113 // gets Channel country name |
|
114 // --------------------------------------------------------------------------- |
|
115 // |
|
116 EXPORT_C const QString& IRQSongHistoryInfo::getCountryName() const |
|
117 { |
|
118 return iCountryName; |
|
119 } |
|
120 |
|
121 // --------------------------------------------------------------------------- |
|
122 // IRQSongHistoryInfo::getLanguageName |
|
123 // gets Channel language name |
|
124 // --------------------------------------------------------------------------- |
|
125 // |
|
126 EXPORT_C const QString& IRQSongHistoryInfo::getLanguageName() const |
|
127 { |
|
128 return iLanguageName; |
|
129 } |
|
130 |
|
131 // --------------------------------------------------------------------------- |
|
132 // IRQSongHistoryInfo::getMusicStoreStatus |
|
133 // gets Channel MusicStoreStatus |
|
134 // --------------------------------------------------------------------------- |
|
135 // |
|
136 EXPORT_C const QString& IRQSongHistoryInfo::getMusicStoreStatus() const |
|
137 { |
|
138 return iMusicStoreStatus; |
|
139 } |
|
140 |
|
141 // --------------------------------------------------------------------------- |
|
142 // IRQSongHistoryInfo::getChannelType |
|
143 // gets Channel Type |
|
144 // --------------------------------------------------------------------------- |
|
145 // |
|
146 EXPORT_C int IRQSongHistoryInfo::getChannelType() const |
|
147 { |
|
148 return iChannelType; |
|
149 } |
|
150 // --------------------------------------------------------------------------- |
|
151 // IRQSongHistoryInfo::getChannelId |
|
152 // gets Channel Id |
|
153 // --------------------------------------------------------------------------- |
|
154 // |
|
155 EXPORT_C int IRQSongHistoryInfo::getChannelId() const |
|
156 { |
|
157 return iChannelId; |
|
158 } |
|
159 |
|
160 // --------------------------------------------------------------------------- |
|
161 // IRQSongHistoryInfo::getBitrate |
|
162 // gets Channel bitrate |
|
163 // --------------------------------------------------------------------------- |
|
164 // |
|
165 EXPORT_C int IRQSongHistoryInfo::getBitrate() const |
|
166 { |
|
167 return iBitrate; |
|
168 } |
|
169 |
|
170 // --------------------------------------------------------------------------- |
|
171 // IRQSongHistoryInfo::setHistoryInfo |
|
172 // sets Song History Information. |
|
173 // --------------------------------------------------------------------------- |
|
174 // |
|
175 void IRQSongHistoryInfo::setHistoryInfo(const QString& aArtistName, |
|
176 const QString& aSongName, |
|
177 const QString& aStreamUrl, |
|
178 const QString& aChannelName, |
|
179 const QString& aChannelDesc, |
|
180 const QString& aImageUrl, |
|
181 const QString& aGenreName, |
|
182 const QString& aCountryName, |
|
183 const QString& aLanguageName, |
|
184 const QString& aMusicStoreStatus, |
|
185 int aChannelType, |
|
186 int aChannelId, |
|
187 int aBitrate) |
|
188 { |
|
189 setArtistName(aArtistName); |
|
190 setSongName(aSongName); |
|
191 setStreamUrl(aStreamUrl); |
|
192 setChannelName(aChannelName); |
|
193 setChannelDesc(aChannelDesc); |
|
194 setImageUrl(aImageUrl); |
|
195 setGenreName(aGenreName); |
|
196 setCountryName(aCountryName); |
|
197 setLanguageName(aLanguageName); |
|
198 setMusicStoreStatus(aMusicStoreStatus); |
|
199 setChannelType(aChannelType); |
|
200 setChannelId(aChannelId); |
|
201 setBitrate(aBitrate); |
|
202 } |
|
203 |
|
204 // --------------------------------------------------------------------------- |
|
205 // IRQSongHistoryInfo::setArtistName |
|
206 // sets Artist name |
|
207 // --------------------------------------------------------------------------- |
|
208 // |
|
209 void IRQSongHistoryInfo::setArtistName(const QString& aArtistName) |
|
210 { |
|
211 iArtistName = aArtistName; |
|
212 } |
|
213 |
|
214 // --------------------------------------------------------------------------- |
|
215 // IRQSongHistoryInfo::setSongName |
|
216 // sets Song name |
|
217 // --------------------------------------------------------------------------- |
|
218 // |
|
219 void IRQSongHistoryInfo::setSongName (const QString& aSongName) |
|
220 { |
|
221 iSongName = aSongName; |
|
222 } |
|
223 |
|
224 // --------------------------------------------------------------------------- |
|
225 // IRQSongHistoryInfo::setStreamUrl |
|
226 // sets Stream url |
|
227 // --------------------------------------------------------------------------- |
|
228 // |
|
229 void IRQSongHistoryInfo::setStreamUrl(const QString& aStreamUrl) |
|
230 { |
|
231 iStreamUrl = aStreamUrl; |
|
232 } |
|
233 |
|
234 // --------------------------------------------------------------------------- |
|
235 // IRQSongHistoryInfo::setChannelName |
|
236 // sets Channel name |
|
237 // --------------------------------------------------------------------------- |
|
238 // |
|
239 void IRQSongHistoryInfo::setChannelName(const QString& aChannelName) |
|
240 { |
|
241 iChannelName = aChannelName; |
|
242 } |
|
243 // --------------------------------------------------------------------------- |
|
244 // IRQSongHistoryInfo::setChannelDesc |
|
245 // sets Channel description |
|
246 // --------------------------------------------------------------------------- |
|
247 // |
|
248 void IRQSongHistoryInfo::setChannelDesc(const QString& aChannelDesc) |
|
249 { |
|
250 iChannelDescription = aChannelDesc; |
|
251 } |
|
252 |
|
253 // --------------------------------------------------------------------------- |
|
254 // IRQSongHistoryInfo::setImageUrl |
|
255 // sets Channel image Url |
|
256 // --------------------------------------------------------------------------- |
|
257 // |
|
258 void IRQSongHistoryInfo::setImageUrl(const QString& aImageUrl) |
|
259 { |
|
260 iImageUrl = aImageUrl; |
|
261 } |
|
262 |
|
263 // --------------------------------------------------------------------------- |
|
264 // IRQSongHistoryInfo::setGenreName |
|
265 // sets Channel genre name |
|
266 // --------------------------------------------------------------------------- |
|
267 // |
|
268 void IRQSongHistoryInfo::setGenreName(const QString& aGenreName) |
|
269 { |
|
270 iGenreName = aGenreName; |
|
271 } |
|
272 |
|
273 // --------------------------------------------------------------------------- |
|
274 // IRQSongHistoryInfo::setCountryName |
|
275 // sets Channel country name |
|
276 // --------------------------------------------------------------------------- |
|
277 // |
|
278 void IRQSongHistoryInfo::setCountryName(const QString& aCountryName) |
|
279 { |
|
280 iCountryName = aCountryName; |
|
281 } |
|
282 |
|
283 // --------------------------------------------------------------------------- |
|
284 // IRQSongHistoryInfo::setLanguageName |
|
285 // sets Channel language name |
|
286 // --------------------------------------------------------------------------- |
|
287 // |
|
288 void IRQSongHistoryInfo::setLanguageName(const QString& aLanguageName) |
|
289 { |
|
290 iLanguageName = aLanguageName; |
|
291 } |
|
292 |
|
293 // --------------------------------------------------------------------------- |
|
294 // IRQSongHistoryInfo::setMusicStoreStatus |
|
295 // sets Channel's MusicStoreStatus |
|
296 // --------------------------------------------------------------------------- |
|
297 // |
|
298 void IRQSongHistoryInfo::setMusicStoreStatus(const QString& aMusicStoreStatus) |
|
299 { |
|
300 iMusicStoreStatus = aMusicStoreStatus; |
|
301 } |
|
302 // --------------------------------------------------------------------------- |
|
303 // IRQSongHistoryInfo::setChannelType |
|
304 // sets Channel type |
|
305 // --------------------------------------------------------------------------- |
|
306 // |
|
307 void IRQSongHistoryInfo::setChannelType(int aChannelType) |
|
308 { |
|
309 iChannelType = aChannelType; |
|
310 } |
|
311 // --------------------------------------------------------------------------- |
|
312 // IRQSongHistoryInfo::setChannelId |
|
313 // sets Channel Id |
|
314 // --------------------------------------------------------------------------- |
|
315 // |
|
316 void IRQSongHistoryInfo::setChannelId(int aChannelId) |
|
317 { |
|
318 iChannelId = aChannelId; |
|
319 } |
|
320 // --------------------------------------------------------------------------- |
|
321 // IRQSongHistoryInfo::setBitrate |
|
322 // sets Channel bitrate |
|
323 // --------------------------------------------------------------------------- |
|
324 // |
|
325 void IRQSongHistoryInfo::setBitrate(int aBitrate) |
|
326 { |
|
327 iBitrate = aBitrate; |
|
328 } |
|
329 |
|
330 |
|
331 |
|
332 EXPORT_C void IRQSongInfo::setSongName(const QString& aName) |
|
333 { |
|
334 iSongName = aName; |
|
335 } |
|
336 |
|
337 EXPORT_C const QString& IRQSongInfo::getSongName() const |
|
338 { |
|
339 return iSongName; |
|
340 } |
|
341 |
|
342 EXPORT_C void IRQSongInfo::setArtistName(const QString& aArtist) |
|
343 { |
|
344 iSongArtist = aArtist; |
|
345 } |
|
346 |
|
347 EXPORT_C void IRQSongInfo::setStationName(const QString& aStationName) |
|
348 { |
|
349 iStationName = aStationName; |
|
350 } |
|
351 |
|
352 EXPORT_C const QString& IRQSongInfo::getArtistName() const |
|
353 { |
|
354 return iSongArtist; |
|
355 } |
|
356 |
|
357 EXPORT_C const QString& IRQSongInfo::getStationName() const |
|
358 { |
|
359 return iStationName; |
|
360 } |
|
361 EXPORT_C void IRQSongInfo::setMusicshopStatus(const QString& aStatus) |
|
362 { |
|
363 iMusicshopStatus = aStatus; |
|
364 } |
|
365 |
|
366 EXPORT_C const QString& IRQSongInfo::getMusicshopStatus() const |
|
367 { |
|
368 return iMusicshopStatus; |
|
369 } |
|
370 |
|
371 EXPORT_C void IRQSongInfo::setAllInfo(const QString& aName, const QString& aArtist, const QString& aStationName, const QString& aStatus) |
|
372 { |
|
373 iSongName = aName; |
|
374 iSongArtist = aArtist; |
|
375 iStationName = aStationName; |
|
376 iMusicshopStatus = aStatus; |
|
377 } |
|
378 |
|
379 |
|
380 |
|