|
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 #ifndef IRQSONGHISTORYINFO_H_ |
|
18 #define IRQSONGHISTORYINFO_H_ |
|
19 |
|
20 #include <QString> |
|
21 |
|
22 /** |
|
23 * SongHistory meta data information wrapper. |
|
24 */ |
|
25 class IRQSongHistoryInfo |
|
26 { |
|
27 public: |
|
28 |
|
29 /** |
|
30 * Default constructor. |
|
31 */ |
|
32 IMPORT_C IRQSongHistoryInfo(); |
|
33 |
|
34 /** |
|
35 *IRQSongHistoryInfo::~IRQSongHistoryInfo() |
|
36 *standard C++ destructor |
|
37 */ |
|
38 IMPORT_C ~IRQSongHistoryInfo(); |
|
39 |
|
40 /** |
|
41 *IRQSongHistoryInfo::getArtistName() |
|
42 *Function to get artist name from a TDesC |
|
43 *@return QString& instance |
|
44 */ |
|
45 IMPORT_C const QString& getArtistName() const; |
|
46 |
|
47 /** |
|
48 *IRQSongHistoryInfo::getSongName() |
|
49 *Function to get song name from a TDesC |
|
50 *@return QString& instance |
|
51 */ |
|
52 IMPORT_C const QString& getSongName() const; |
|
53 |
|
54 /** |
|
55 *IRQSongHistoryInfo::getStreamUrl() |
|
56 *Function to get url name from a TDesC |
|
57 *@return QString& instance |
|
58 */ |
|
59 IMPORT_C const QString& getStreamUrl() const; |
|
60 |
|
61 /** |
|
62 *IRQSongHistoryInfo::getChannelName() |
|
63 *Function to get channel name from a TDesC |
|
64 *@return QString& instance |
|
65 */ |
|
66 IMPORT_C const QString& getChannelName() const; |
|
67 |
|
68 /** |
|
69 *IRQSongHistoryInfo::getChannelDesc() |
|
70 *Function to get channel Description |
|
71 *@return QString& instance |
|
72 */ |
|
73 IMPORT_C const QString& getChannelDesc() const; |
|
74 |
|
75 /** |
|
76 *IRQSongHistoryInfo::getImageURL() |
|
77 *Function to get channel image URL |
|
78 *@return QString& instance |
|
79 */ |
|
80 IMPORT_C const QString& getImageUrl() const; |
|
81 |
|
82 /** |
|
83 *IRQSongHistoryInfo::getMusicStoreStatus() |
|
84 *Function to get channel MusicStoreStatus |
|
85 *@return QString& instance |
|
86 */ |
|
87 IMPORT_C const QString& getMusicStoreStatus() const; |
|
88 |
|
89 /** |
|
90 *IRQSongHistoryInfo::getChannelType() |
|
91 *Function to get channel Type |
|
92 *@return int channeltype |
|
93 */ |
|
94 IMPORT_C int getChannelType() const; |
|
95 |
|
96 /** |
|
97 *IRQSongHistoryInfo::getChannelId() |
|
98 *Function to get channel Id |
|
99 *@return int channelId |
|
100 */ |
|
101 IMPORT_C int getChannelId() const; |
|
102 |
|
103 /** |
|
104 *IRQSongHistoryInfo::getBitrate() |
|
105 *Function to get channel bitrate |
|
106 *@return int bitrate |
|
107 */ |
|
108 IMPORT_C int getBitrate() const; |
|
109 |
|
110 /** |
|
111 *IRQSongHistoryInfo::setHistoryInfoL() |
|
112 *Function to set songhistory info |
|
113 */ |
|
114 void setHistoryInfo(const QString& aArtistName, |
|
115 const QString& aSongName, |
|
116 const QString& aStreamUrl, |
|
117 const QString& aChannelName, |
|
118 const QString& aChannelDesc, |
|
119 const QString& aImageUrl, |
|
120 const QString& aMusicStoreStatus, |
|
121 int aChannelType, |
|
122 int aChannelId, |
|
123 int aBitrate); |
|
124 |
|
125 /** |
|
126 *IRQSongHistoryInfo::setArtistName() |
|
127 *Function to set artist name from a QString |
|
128 *@param QString aArtistName |
|
129 */ |
|
130 void setArtistName(const QString& aArtistName); |
|
131 |
|
132 /** |
|
133 *IRQSongHistoryInfo::setSongName() |
|
134 *Function to set song name from a QString |
|
135 *@param QString aSongName |
|
136 */ |
|
137 void setSongName (const QString& aSongName); |
|
138 |
|
139 /** |
|
140 *IRQSongHistoryInfo::setStreamUrl() |
|
141 *Function to set stream url from a QString |
|
142 *@param QString aStreamUrl |
|
143 */ |
|
144 void setStreamUrl(const QString& aStreamUrl); |
|
145 |
|
146 /** |
|
147 *IRQSongHistoryInfo::setChannelName() |
|
148 *Function to set channel name from a QString |
|
149 *@param QString aChannelName |
|
150 */ |
|
151 void setChannelName(const QString& aChannelName); |
|
152 |
|
153 /** |
|
154 *IRQSongHistoryInfo::setChannelDesc() |
|
155 *Function to set channel Description |
|
156 * @param QString aChannelDesc |
|
157 */ |
|
158 void setChannelDesc(const QString& aChannelDesc); |
|
159 |
|
160 /** |
|
161 *IRQSongHistoryInfo::setImageURL() |
|
162 *Function to set channel image URL |
|
163 * @param QString aImageUrl |
|
164 */ |
|
165 void setImageUrl(const QString& aImageUrl); |
|
166 |
|
167 /** |
|
168 *IRQSongHistoryInfo::setMusicStoreStatus() |
|
169 *Function to set Channel MusicStoreStatus |
|
170 *@param QString aMusicStoreStatus |
|
171 */ |
|
172 void setMusicStoreStatus(const QString& aMusicStoreStatus); |
|
173 |
|
174 /** |
|
175 *IRQSongHistoryInfo::setChannelType() |
|
176 *Function to set channel Type |
|
177 *@param int aChannelType |
|
178 */ |
|
179 void setChannelType(int aChannelType); |
|
180 |
|
181 /** |
|
182 *IRQSongHistoryInfo::setChannelId() |
|
183 *Function to set channel Id |
|
184 *@param int aChannelId |
|
185 */ |
|
186 void setChannelId(int aChannelId); |
|
187 |
|
188 /** |
|
189 *IRQSongHistoryInfo::setBitrate() |
|
190 *Function to set channel bitrate |
|
191 *@param int aBitrate |
|
192 */ |
|
193 void setBitrate(int aBitrate); |
|
194 |
|
195 private: |
|
196 |
|
197 /** |
|
198 * The name of the artist. |
|
199 */ |
|
200 QString iArtistName; |
|
201 |
|
202 /** |
|
203 * The name of the song. |
|
204 */ |
|
205 QString iSongName; |
|
206 |
|
207 /** |
|
208 * The stream URL. |
|
209 */ |
|
210 QString iStreamUrl; |
|
211 |
|
212 /** |
|
213 * Channel Name. |
|
214 */ |
|
215 QString iChannelName; |
|
216 |
|
217 /** |
|
218 * Channel Description. |
|
219 */ |
|
220 QString iChannelDescription; |
|
221 |
|
222 /** |
|
223 * Channel's image Url. |
|
224 */ |
|
225 QString iImageUrl; |
|
226 |
|
227 /** |
|
228 * Channel's MusicStoreStatus. |
|
229 */ |
|
230 QString iMusicStoreStatus; |
|
231 |
|
232 /** |
|
233 * Channel Type. |
|
234 */ |
|
235 int iChannelType; |
|
236 |
|
237 /** |
|
238 * Channel Id. |
|
239 */ |
|
240 int iChannelId; |
|
241 |
|
242 /** |
|
243 * Channel bitrate. |
|
244 */ |
|
245 int iBitrate; |
|
246 }; |
|
247 |
|
248 class IRQSongInfo |
|
249 { |
|
250 public: |
|
251 |
|
252 |
|
253 IMPORT_C void setSongName(const QString& aName); |
|
254 IMPORT_C const QString& getSongName() const; |
|
255 |
|
256 IMPORT_C void setArtistName(const QString& aArtist); |
|
257 IMPORT_C const QString& getArtistName()const; |
|
258 |
|
259 IMPORT_C void setMusicshopStatus(const QString& aStatus); |
|
260 IMPORT_C const QString& getMusicshopStatus()const; |
|
261 |
|
262 IMPORT_C void setAllInfo(const QString& aName, const QString& aArtist, const QString& aStatus); |
|
263 |
|
264 private: |
|
265 |
|
266 QString iSongName; |
|
267 QString iSongArtist; |
|
268 QString iMusicshopStatus; |
|
269 |
|
270 }; |
|
271 #endif // IRQSONGHISTORYINFO_H_ |