|
1 /* |
|
2 * Copyright (c) 2004 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: This file contains all the resources for the Music Collection |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 #include <bldvariant.hrh> |
|
21 #include <badef.rh> |
|
22 #include <pathconfiguration.hrh> |
|
23 #include "mpxcollectiondb.hrh" |
|
24 #include <mpxcollectiondbhg.loc> |
|
25 |
|
26 STRUCT MENU_ITEM |
|
27 { |
|
28 LONG id; |
|
29 STRUCT name; |
|
30 } |
|
31 |
|
32 STRUCT MENU_ITEM_ARRAY |
|
33 { |
|
34 STRUCT array_of_menu_items[]; |
|
35 } |
|
36 |
|
37 // RESOURCE IDENTIFIER |
|
38 NAME OAMC // 4 letter ID |
|
39 |
|
40 // RESOURCE DEFINITIONS |
|
41 |
|
42 RESOURCE BA_RSS_SIGNATURE { } |
|
43 |
|
44 //---------------------------------------------------- |
|
45 // |
|
46 // r_mc_music_library_menu_items |
|
47 // Menu items to be displayed in the music library view |
|
48 // |
|
49 //---------------------------------------------------- |
|
50 // |
|
51 RESOURCE MENU_ITEM_ARRAY r_mc_menu_items_array |
|
52 { |
|
53 array_of_menu_items = |
|
54 { |
|
55 MENU_ITEM {id = EBrowseAll; name = LBUF {txt = qtn_mus_all_tracks;};}, |
|
56 MENU_ITEM {id = EBrowsePlaylist; name = LBUF {txt = qtn_mus_playlists;};}, |
|
57 MENU_ITEM {id = EBrowseArtist; name = LBUF {txt = qtn_mus_artists;};}, |
|
58 MENU_ITEM {id = EBrowseAlbum; name = LBUF {txt = qtn_mus_albums;};}, |
|
59 #ifdef __ENABLE_PODCAST_IN_MUSIC_MENU |
|
60 MENU_ITEM {id = EBrowsePodcasts; name = LBUF {txt = qtn_mus_podcasts;};}, |
|
61 #endif |
|
62 MENU_ITEM {id = EBrowseGenre; name = LBUF {txt = qtn_mus_genres;};}, |
|
63 MENU_ITEM {id = EBrowseComposer; name = LBUF {txt = qtn_mus_composers;};} |
|
64 }; |
|
65 } |
|
66 |
|
67 RESOURCE TBUF { buf="MPXCOLLECTIONDBRES"; } |
|
68 |
|
69 //---------------------------------------------------- |
|
70 // |
|
71 // r_mc_music_library_title_items |
|
72 // titles to be displayed in the music player |
|
73 // |
|
74 // added album for ganes |
|
75 //---------------------------------------------------- |
|
76 // |
|
77 RESOURCE MENU_ITEM_ARRAY r_mc_title_items_array |
|
78 { |
|
79 array_of_menu_items = |
|
80 { |
|
81 MENU_ITEM {id = EBrowseAll; name = LBUF {txt = qtn_mus_title_tracks;};}, |
|
82 MENU_ITEM {id = EBrowsePlaylist; name = LBUF {txt = qtn_mus_title_pls;};}, |
|
83 MENU_ITEM {id = EBrowseArtist; name = LBUF {txt = qtn_mus_title_artists;};}, |
|
84 MENU_ITEM {id = EBrowseAlbum; name = LBUF {txt = qtn_mus_title_artists_and_albums;};}, |
|
85 #ifdef __ENABLE_PODCAST_IN_MUSIC_MENU |
|
86 MENU_ITEM {id = EBrowsePodcasts; name = LBUF {txt = qtn_mus_podcasts;};}, |
|
87 #endif |
|
88 MENU_ITEM {id = EBrowseGenre; name = LBUF {txt = qtn_mus_title_genres;};}, |
|
89 MENU_ITEM {id = EBrowseComposer; name = LBUF {txt = qtn_mus_title_composers;};}, |
|
90 MENU_ITEM {id = EBrowseAlbumSong; name = LBUF {txt = qtn_mus_title_album;};} |
|
91 }; |
|
92 } |
|
93 |
|
94 |
|
95 // ** DEFAULT MUSIC FOLDER STRINGS |
|
96 |
|
97 //---------------------------------------------------- |
|
98 // |
|
99 // r_mc_default_music_folders |
|
100 // |
|
101 //---------------------------------------------------- |
|
102 // |
|
103 RESOURCE ARRAY r_mc_default_music_folders |
|
104 { |
|
105 items = |
|
106 { |
|
107 LBUF {txt = text_memory_card_root_path;}, |
|
108 LBUF {txt = text_phone_memory_root_path;} |
|
109 }; |
|
110 } |
|
111 |
|
112 //---------------------------------------------------- |
|
113 // |
|
114 // r_mc_music_file_extensions |
|
115 // file extensions which be scanned by music collection |
|
116 // |
|
117 //---------------------------------------------------- |
|
118 // |
|
119 RESOURCE ARRAY r_mc_music_file_extensions |
|
120 { |
|
121 items = |
|
122 { |
|
123 #if (defined __WMA || defined __WINDOWS_MEDIA) |
|
124 LBUF {txt = ".wma";}, |
|
125 #endif |
|
126 LBUF {txt = ".mp3";}, |
|
127 LBUF {txt = ".m4a";}, |
|
128 LBUF {txt = ".aac";} |
|
129 }; |
|
130 } |
|
131 |
|
132 //---------------------------------------------------- |
|
133 // |
|
134 // r_mc_file_extensions_mime |
|
135 // file extensions which can be scanned by music |
|
136 // collection, however, these files types must be |
|
137 // checked whether their MIME types match as well |
|
138 // because they can be DRM or video files |
|
139 // |
|
140 //---------------------------------------------------- |
|
141 // |
|
142 RESOURCE ARRAY r_mc_file_extensions_mime |
|
143 { |
|
144 items = |
|
145 { |
|
146 LBUF {txt = "";}, |
|
147 #ifdef RD_RA_SUPPORT_FOR_MUSIC_PLAYER |
|
148 LBUF {txt = ".ra";}, |
|
149 LBUF {txt = ".rm";}, |
|
150 #endif |
|
151 LBUF {txt = ".mp4";}, |
|
152 LBUF {txt = ".3gpp";}, |
|
153 LBUF {txt = ".3gp";}, |
|
154 LBUF {txt = ".3gpp2";}, |
|
155 LBUF {txt = ".3g2";}, |
|
156 LBUF {txt = ".3ga";}, |
|
157 LBUF {txt = ".dcf";}, |
|
158 LBUF {txt = ".dm";}, |
|
159 LBUF {txt = ".odf";} |
|
160 }; |
|
161 } |
|
162 |
|
163 //---------------------------------------------------- |
|
164 // |
|
165 // r_mc_file_extensions_drm |
|
166 // file extensions which can be scanned by music |
|
167 // collection, however, these files types must be |
|
168 // checked which type of DRM is used |
|
169 // |
|
170 //---------------------------------------------------- |
|
171 // |
|
172 RESOURCE ARRAY r_mc_file_extensions_drm |
|
173 { |
|
174 items = |
|
175 { |
|
176 LBUF {txt = "";}, |
|
177 LBUF {txt = ".dcf";}, |
|
178 LBUF {txt = ".dm";}, |
|
179 LBUF {txt = ".odf";}, |
|
180 LBUF {txt = ".o4a";} |
|
181 }; |
|
182 } |
|
183 |
|
184 //---------------------------------------------------- |
|
185 // |
|
186 // r_mc_mime_types |
|
187 // Mime types which be scanned by music collection |
|
188 // |
|
189 //---------------------------------------------------- |
|
190 // |
|
191 RESOURCE ARRAY r_mc_mime_types |
|
192 { |
|
193 items = |
|
194 { |
|
195 #ifdef __WMA |
|
196 LBUF {txt = "audio/x-ms-wma";}, |
|
197 #endif |
|
198 #ifdef RD_RA_SUPPORT_FOR_MUSIC_PLAYER |
|
199 LBUF {txt = "audio/x-pn-realaudio";}, |
|
200 LBUF {txt = "audio/x-realaudio";}, |
|
201 LBUF {txt = "audio/vnd.rn-realaudio";}, |
|
202 // LBUF {txt = "application/vnd.rn-realmedia";} |
|
203 #endif |
|
204 LBUF {txt = "audio/mpeg";}, |
|
205 LBUF {txt = "audio/aac";}, |
|
206 LBUF {txt = "audio/mp3";}, |
|
207 LBUF {txt = "audio/x-mp3";}, |
|
208 LBUF {txt = "audio/mp4";}, |
|
209 LBUF {txt = "audio/3gpp";}, |
|
210 LBUF {txt = "audio/m4a";}, |
|
211 LBUF {txt = "audio/3gpp2";}, |
|
212 LBUF {txt = "audio/mpeg4";} |
|
213 }; |
|
214 } |
|
215 |
|
216 // ** All songs for an artist |
|
217 RESOURCE LBUF r_mc_all_songs_for_artist |
|
218 { |
|
219 txt = qtn_nmp_all_by; |
|
220 } |
|
221 |
|
222 // ** Recently played |
|
223 RESOURCE LBUF r_mc_recently_played_playlist |
|
224 { |
|
225 txt = qtn_mus_pl_recently_played; |
|
226 } |
|
227 |
|
228 // ** Most played |
|
229 RESOURCE LBUF r_mc_most_played_playlist |
|
230 { |
|
231 txt = qtn_mus_pl_most_played; |
|
232 } |
|
233 |
|
234 // ** Recently added |
|
235 RESOURCE LBUF r_mc_recently_added_playlist |
|
236 { |
|
237 txt = qtn_mus_pl_recently_downloaded; |
|
238 } |
|
239 |
|
240 // --------------------------------------------------------------------------- |
|
241 // r_mpx_qtn_mus_music_num_songs |
|
242 // Number of songs text |
|
243 // --------------------------------------------------------------------------- |
|
244 // |
|
245 RESOURCE LBUF r_mpx_qtn_mus_music_num_songs |
|
246 { |
|
247 txt = qtn_mus_music_num_songs; |
|
248 } |
|
249 |
|
250 // --------------------------------------------------------------------------- |
|
251 // r_mpx_qtn_mus_music_one_song |
|
252 // One song text |
|
253 // --------------------------------------------------------------------------- |
|
254 // |
|
255 RESOURCE LBUF r_mpx_qtn_mus_music_one_song |
|
256 { |
|
257 txt = qtn_mus_music_one_song; |
|
258 } |
|
259 |
|
260 // --------------------------------------------------------------------------- |
|
261 // r_mpx_qtn_mus_music |
|
262 // Collection Plugin Name |
|
263 // --------------------------------------------------------------------------- |
|
264 // |
|
265 RESOURCE LBUF r_mpx_qtn_mus_music |
|
266 { |
|
267 txt = qtn_mus_music; |
|
268 } |
|
269 |
|
270 // --------------------------------------------------------------------------- |
|
271 // r_mpx_qtn_mus_title_music_menu |
|
272 // Music Menu Title |
|
273 // --------------------------------------------------------------------------- |
|
274 // |
|
275 RESOURCE LBUF r_mpx_qtn_mus_title_music_menu |
|
276 { |
|
277 txt = qtn_mus_title_music_menu; |
|
278 } |
|
279 |
|
280 #ifdef __ENABLE_MUSIC_TEXT_ALIGNMENT |
|
281 // --------------------------------------------------------------------------- |
|
282 // r_mpx_qtn_mp_title_my_music_menu_nseries |
|
283 // My Music Menu Title |
|
284 // --------------------------------------------------------------------------- |
|
285 // |
|
286 RESOURCE LBUF r_mpx_qtn_mp_title_my_music_menu_nseries |
|
287 { |
|
288 txt = qtn_mp_title_my_music_menu_nseries; |
|
289 } |
|
290 #endif //__ENABLE_MUSIC_TEXT_ALIGNMENT |
|
291 |
|
292 // --------------------------------------------------------------------------- |
|
293 // r_mc_title_most_played |
|
294 // Title for Most Played item in the playlists menu |
|
295 // --------------------------------------------------------------------------- |
|
296 // |
|
297 RESOURCE LBUF r_mc_title_most_played |
|
298 { |
|
299 txt = qtn_mus_title_most_played; |
|
300 } |
|
301 |
|
302 // --------------------------------------------------------------------------- |
|
303 // r_mpx_qtn_mus_title_music_menu |
|
304 // Title for Recently Played item in the playlists menu |
|
305 // --------------------------------------------------------------------------- |
|
306 // |
|
307 RESOURCE LBUF r_mc_title_recently_played |
|
308 { |
|
309 txt = qtn_mus_title_recently_played; |
|
310 } |
|
311 |
|
312 // --------------------------------------------------------------------------- |
|
313 // r_mpx_qtn_mus_title_music_menu |
|
314 // Title for Recently Added item in the playlists menu |
|
315 // --------------------------------------------------------------------------- |
|
316 // |
|
317 RESOURCE LBUF r_mc_title_recently_downloaded |
|
318 { |
|
319 txt = qtn_mus_title_recently_downloaded; |
|
320 } |
|
321 |
|
322 // End of File |