141 Returns the song genre. |
141 Returns the song genre. |
142 */ |
142 */ |
143 QString MpSongDataPrivate::genre() const |
143 QString MpSongDataPrivate::genre() const |
144 { |
144 { |
145 TX_LOG |
145 TX_LOG |
146 return mGenre; |
146 QString localizedString(mGenre); |
|
147 |
|
148 if ( mGenre == "Acoustic" ) { |
|
149 localizedString = hbTrId( "txt_mus_dblist_genre_val_acoustic" ); |
|
150 } |
|
151 else if ( mGenre == "Alternative" ) { |
|
152 localizedString = hbTrId( "txt_mus_dblist_genre_val_alternative" ); |
|
153 } |
|
154 else if ( mGenre == "Blues" ) { |
|
155 localizedString = hbTrId( "txt_mus_dblist_genre_val_blues" ); |
|
156 } |
|
157 else if ( mGenre == "Classical" ) { |
|
158 localizedString = hbTrId( "txt_mus_dblist_genre_val_classical" ); |
|
159 } |
|
160 else if ( mGenre == "Country" ) { |
|
161 localizedString = hbTrId( "txt_mus_dblist_genre_val_country" ); |
|
162 } |
|
163 else if ( mGenre == "Dance" ) { |
|
164 localizedString = hbTrId( "txt_mus_dblist_genre_val_dance" ); |
|
165 } |
|
166 else if ( mGenre == "Easy Listening" ) { |
|
167 localizedString = hbTrId( "txt_mus_dblist_genre_val_easy_listening" ); |
|
168 } |
|
169 else if ( mGenre == "Electronic" ) { |
|
170 localizedString = hbTrId( "txt_mus_dblist_genre_val_electronic" ); |
|
171 } |
|
172 else if ( mGenre == "Folk" ) { |
|
173 localizedString = hbTrId( "txt_mus_dblist_genre_val_folk" ); |
|
174 } |
|
175 else if ( mGenre == "Hip-Hop" ) { |
|
176 localizedString = hbTrId( "txt_mus_dblist_genre_val_hiphop" ); |
|
177 } |
|
178 else if ( mGenre == "Jazz" ) { |
|
179 localizedString = hbTrId( "txt_mus_dblist_genre_val_jazz" ); |
|
180 } |
|
181 else if ( mGenre == "Latin" ) { |
|
182 localizedString = hbTrId( "txt_mus_dblist_genre_val_latin" ); |
|
183 } |
|
184 else if ( mGenre == "Metal" ) { |
|
185 localizedString = hbTrId( "txt_mus_dblist_genre_val_metal" ); |
|
186 } |
|
187 else if ( mGenre == "New Age" ) { |
|
188 localizedString = hbTrId( "txt_mus_dblist_genre_val_new_age" ); |
|
189 } |
|
190 else if ( mGenre == "Other" ) { |
|
191 localizedString = hbTrId( "txt_mus_dblist_genre_val_other" ); |
|
192 } |
|
193 else if ( mGenre == "Pop" ) { |
|
194 localizedString = hbTrId( "txt_mus_dblist_genre_val_pop" ); |
|
195 } |
|
196 else if ( mGenre == "R&B" ) { |
|
197 localizedString = hbTrId( "txt_mus_dblist_genre_val_rb" ); |
|
198 } |
|
199 else if ( mGenre == "Rap" ) { |
|
200 localizedString = hbTrId( "txt_mus_dblist_genre_val_rap" ); |
|
201 } |
|
202 else if ( mGenre == "Reggae" ) { |
|
203 localizedString = hbTrId( "txt_mus_dblist_genre_val_reggae" ); |
|
204 } |
|
205 else if ( mGenre == "Rock" ) { |
|
206 localizedString = hbTrId( "txt_mus_dblist_genre_val_rock" ); |
|
207 } |
|
208 else if ( mGenre == "Soundtrack" ) { |
|
209 localizedString = hbTrId( "txt_mus_dblist_genre_val_soundtrack" ); |
|
210 } |
|
211 else if ( mGenre == "Spoken" ) { |
|
212 localizedString = hbTrId( "txt_mus_dblist_genre_val_spoken" ); |
|
213 } |
|
214 else if ( mGenre == "World" ) { |
|
215 localizedString = hbTrId( "txt_mus_dblist_genre_val_world" ); |
|
216 } |
|
217 TX_EXIT_ARGS( "Logical String = " << localizedString ); |
|
218 return localizedString; |
147 } |
219 } |
148 |
220 |
149 /*! |
221 /*! |
150 Returns the song composer. |
222 Returns the song composer. |
151 */ |
223 */ |
390 |
462 |
391 if ( mAlbumArt == mDefaultAlbumArt ) { |
463 if ( mAlbumArt == mDefaultAlbumArt ) { |
392 TX_LOG_ARGS( "Album art is default album art." ) |
464 TX_LOG_ARGS( "Album art is default album art." ) |
393 delete mAlbumArt; |
465 delete mAlbumArt; |
394 mAlbumArt = new HbIcon(qicon); |
466 mAlbumArt = new HbIcon(qicon); |
395 mDefaultAlbumArt = new HbIcon( "qtg_large_music_album" ); |
467 mDefaultAlbumArt = new HbIcon( "qtg_large_album_art" ); |
396 } else { |
468 } else { |
397 TX_LOG_ARGS( "Album art is NOT default album art." ) |
469 TX_LOG_ARGS( "Album art is NOT default album art." ) |
398 delete mAlbumArt; |
470 delete mAlbumArt; |
399 mAlbumArt = new HbIcon(qicon); |
471 mAlbumArt = new HbIcon(qicon); |
400 } |
472 } |