|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <mm:content xmlns:mm="http://nokia.com/mmenu" |
|
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 xsi:schemaLocation="http://nokia.com/mmenu ../mmenuschema.xsd" genre="musicsuite"> |
|
5 <mm:localization namespace="musicsuite_loc" source="musichomescreen.rsc"/> |
|
6 |
|
7 |
|
8 <mm:item count="1" template="logical_template_6" id="msuitecps"> |
|
9 <mm:menuitem name="musicsuite_loc:R_MUSICHOMESCREEN_OPTIONS_OPEN" event="key:select" position="1" /> |
|
10 <mm:menuitem name="musicsuite_loc:R_MUSICHOMESCREEN_OPTIONS_HELP" event="custom:musicsuitehelp" position="2" /> |
|
11 <mm:query namespace="musicquery" service="Service.ContentPublishing" interface="IDataSource"> |
|
12 <mm:command mode="sync" name="GetList"> |
|
13 <mm:key name="type" type="string" value="cp_data"/> |
|
14 <mm:key name="filter"> |
|
15 <mm:key name="publisher" type="string" value="MWPublisher"/> |
|
16 <mm:key name="content_type" type="string" value="text"/> |
|
17 <mm:key name="content_id" type="string" value="musicmenu_musicinfo_text1"/> |
|
18 </mm:key> |
|
19 </mm:command> |
|
20 </mm:query> |
|
21 <mm:notify_request service="Service.ContentPublishing" interface="IDataSource"> |
|
22 <mm:command name="RequestNotification"> |
|
23 <mm:key name="type" type="string" value="cp_data"/> |
|
24 <mm:key name="filter"> |
|
25 <mm:key name="publisher" type="string" value="MWPublisher"/> |
|
26 <mm:key name="content_type" type="string" value="text"/> |
|
27 <mm:key name="content_id" type="string" value="musicmenu_musicinfo_text1"/> |
|
28 </mm:key> |
|
29 </mm:command> |
|
30 </mm:notify_request> |
|
31 |
|
32 <mm:output alias="mul_title" type="string" value="musicquery:results/[$index]/data_map/musicmenu_musicinfo_text1data"/> |
|
33 |
|
34 <mm:query namespace="musicquery2" service="Service.ContentPublishing" interface="IDataSource"> |
|
35 <mm:command mode="sync" name="GetList"> |
|
36 <mm:key name="type" type="string" value="cp_data"/> |
|
37 <mm:key name="filter"> |
|
38 <mm:key name="publisher" type="string" value="MWPublisher"/> |
|
39 <mm:key name="content_type" type="string" value="text"/> |
|
40 <mm:key name="content_id" type="string" value="musicmenu_musicinfo_text2"/> |
|
41 </mm:key> |
|
42 </mm:command> |
|
43 </mm:query> |
|
44 <mm:notify_request service="Service.ContentPublishing" interface="IDataSource"> |
|
45 <mm:command name="RequestNotification"> |
|
46 <mm:key name="type" type="string" value="cp_data"/> |
|
47 <mm:key name="filter"> |
|
48 <mm:key name="publisher" type="string" value="MWPublisher"/> |
|
49 <mm:key name="content_type" type="string" value="text"/> |
|
50 <mm:key name="content_id" type="string" value="musicmenu_musicinfo_text2"/> |
|
51 </mm:key> |
|
52 </mm:command> |
|
53 </mm:notify_request> |
|
54 |
|
55 <mm:output alias="mul_detail" type="string" value="musicquery2:results/[$index]/data_map/musicmenu_musicinfo_text2data"/> |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 <mm:query namespace="musicquery3" service="Service.ContentPublishing" interface="IDataSource"> |
|
61 <mm:command mode="sync" name="GetList"> |
|
62 <mm:key name="type" type="string" value="cp_data"/> |
|
63 <mm:key name="filter"> |
|
64 <mm:key name="publisher" type="string" value="MWPublisher"/> |
|
65 <mm:key name="content_type" type="string" value="image"/> |
|
66 <mm:key name="content_id" type="string" value="musicmenu_musicinfo_image"/> |
|
67 </mm:key> |
|
68 </mm:command> |
|
69 </mm:query> |
|
70 <mm:notify_request service="Service.ContentPublishing" interface="IDataSource"> |
|
71 <mm:command name="RequestNotification"> |
|
72 <mm:key name="type" type="string" value="cp_data"/> |
|
73 <mm:key name="filter"> |
|
74 <mm:key name="publisher" type="string" value="MWPublisher"/> |
|
75 <mm:key name="content_type" type="string" value="image"/> |
|
76 <mm:key name="content_id" type="string" value="musicmenu_musicinfo_image"/> |
|
77 </mm:key> |
|
78 </mm:command> |
|
79 </mm:notify_request> |
|
80 |
|
81 <mm:output alias="mul_icon"> |
|
82 <mm:image bitmap="musicquery3:results/[$index]/data_map/musicmenu_musicinfo_imagedata" mask="musicquery3:results/[$index]/data_map/musicmenu_musicinfo_imagedata_mask"/> |
|
83 </mm:output> |
|
84 |
|
85 |
|
86 |
|
87 <mm:event event="key:select"> |
|
88 <mm:action service="Service.ContentPublishing" interface="IContentPublishing"> |
|
89 <mm:command name="ExecuteAction"> |
|
90 <mm:key name="type" type="string" value="cp_data"/> |
|
91 <mm:key name="filter" type="map"> |
|
92 <mm:key name="publisher" type="string" value="MWPublisher"/> |
|
93 <mm:key name="content_type" type="string" value="text"/> |
|
94 <mm:key name="content_id" type="string" value="musicmenu_musicinfo_text1"/> |
|
95 <mm:key name="action_trigger" type="string8" value="MMInfoTrigger"/> |
|
96 </mm:key> |
|
97 </mm:command> |
|
98 </mm:action> |
|
99 </mm:event> |
|
100 </mm:item> |
|
101 |
|
102 <mm:item count="1" template="logical_template_6" id="msuitemymusic"> |
|
103 <mm:menuitem name="musicsuite_loc:R_MUSICHOMESCREEN_OPTIONS_OPEN" event="key:select" position="1" /> |
|
104 <mm:menuitem name="musicsuite_loc:R_MUSICHOMESCREEN_OPTIONS_HELP" event="custom:musicsuitehelp" position="2" /> |
|
105 <mm:output alias="mul_title"> |
|
106 <mm:text value="musicsuite_loc:R_MUSICHOMESCREEN_MY_MUSIC"/> |
|
107 </mm:output> |
|
108 <mm:query namespace="musicquery3" service="Service.ContentPublishing" interface="IDataSource"> |
|
109 <mm:command mode="sync" name="GetList"> |
|
110 <mm:key name="type" type="string" value="cp_data"/> |
|
111 <mm:key name="filter"> |
|
112 <mm:key name="publisher" type="string" value="MpxCollectionPublisher"/> |
|
113 <mm:key name="content_type" type="string" value="integer"/> |
|
114 <mm:key name="content_id" type="string" value="musicmenu_collectioninfo_numb1"/> |
|
115 </mm:key> |
|
116 </mm:command> |
|
117 </mm:query> |
|
118 <mm:notify_request service="Service.ContentPublishing" interface="IDataSource"> |
|
119 <mm:command name="RequestNotification"> |
|
120 <mm:key name="type" type="string" value="cp_data"/> |
|
121 <mm:key name="filter"> |
|
122 <mm:key name="publisher" type="string" value="MpxCollectionPublisher"/> |
|
123 <mm:key name="content_type" type="string" value="integer"/> |
|
124 <mm:key name="content_id" type="string" value="musicmenu_collectioninfo_numb1"/> |
|
125 </mm:key> |
|
126 </mm:command> |
|
127 </mm:notify_request> |
|
128 |
|
129 <!-- only one song present --> |
|
130 <mm:output alias="mul_detail" condition="musicquery3:results/[$index]/data_map/musicmenu_collectioninfo_numb1data = 1"> |
|
131 <mm:text value ="musicsuite_loc:R_MUSICHOMESCREEN_MY_MUSIC_1_SONG"/> |
|
132 </mm:output> |
|
133 <!-- multiple songs present --> |
|
134 <mm:output alias="mul_detail" condition="musicquery3:results/[$index]/data_map/musicmenu_collectioninfo_numb1data > 1"> |
|
135 <!-- %N songs present --> |
|
136 <mm:text value ="musicsuite_loc:R_MUSICHOMESCREEN_MY_MUSIC_N_SONGS"> |
|
137 <mm:param value="musicquery3:results/[$index]/data_map/musicmenu_collectioninfo_numb1data"/> |
|
138 </mm:text> |
|
139 </mm:output> |
|
140 <!-- default - no songs present --> |
|
141 <mm:output alias="mul_detail"> |
|
142 <mm:text value="musicsuite_loc:R_MUSICHOMESCREEN_MY_MUSIC_NO_SONGS"/> |
|
143 </mm:output> |
|
144 <mm:output alias="mul_icon"> |
|
145 <mm:image application_uid="0x102072C3"/> |
|
146 </mm:output> |
|
147 |
|
148 <mm:event event="key:select"> |
|
149 <mm:action service="Service.ActionHandler" interface="IDataAction"> |
|
150 <mm:command name="Execute"> |
|
151 <mm:key name="plugin_id" type="uid" value="0x10207C16"/> |
|
152 <mm:key name="data"> |
|
153 <mm:key name="type" type="string" value="MessageToMusicPlayer"/> |
|
154 <mm:key name="message" type="string" value="GoToMusicLibrary"/> |
|
155 <!--mm:key name="Path" type="string" value="MusicMenu"/--> |
|
156 </mm:key> |
|
157 </mm:command> |
|
158 </mm:action> |
|
159 </mm:event> |
|
160 </mm:item> |
|
161 |
|
162 |
|
163 <mm:item count="1" template="logical_template_6" id="msuitemusicstore"> |
|
164 <mm:menuitem name="musicsuite_loc:R_MUSICHOMESCREEN_OPTIONS_OPEN" event="key:select" position="1" /> |
|
165 <mm:menuitem name="musicsuite_loc:R_MUSICHOMESCREEN_OPTIONS_HELP" event="custom:musicsuitehelp" position="2" /> |
|
166 <mm:output alias="mul_title"> |
|
167 <mm:text value="musicsuite_loc:R_MUSICHOMESCREEN_NOKIA_MUSIC_STORE"/> |
|
168 </mm:output> |
|
169 <mm:output alias="mul_detail"> |
|
170 <mm:text value="musicsuite_loc:R_MUSICHOMESCREEN_NOKIA_STORE_AD"/> |
|
171 </mm:output> |
|
172 <mm:output alias="mul_icon"> |
|
173 <mm:image application_uid="0x101FFB51"/> |
|
174 </mm:output> |
|
175 <mm:event event="key:select"> |
|
176 <mm:action service="Service.ActionHandler" interface="IDataAction"> |
|
177 <mm:command name="Execute"> |
|
178 <mm:key> |
|
179 <mm:key name="plugin_id" type="uid" value="0x10282E5F"/> |
|
180 <mm:key name="data"> |
|
181 <!-- At least one sub element is required in the data key. --> |
|
182 <mm:key name="type" type="string" value="launch_application"/> |
|
183 <mm:key name="launch_method" type="string" value="cmd_line"/> |
|
184 <mm:key name="application_uid" type="integer" value="0x101FFB51"/> |
|
185 </mm:key> |
|
186 </mm:key> |
|
187 </mm:command> |
|
188 </mm:action> |
|
189 </mm:event> |
|
190 </mm:item> |
|
191 |
|
192 <mm:item count="1" template="logical_template_6" id="msuitefmradio"> |
|
193 <mm:menuitem name="musicsuite_loc:R_MUSICHOMESCREEN_OPTIONS_OPEN" event="key:select" position="1" /> |
|
194 <mm:menuitem name="musicsuite_loc:R_MUSICHOMESCREEN_OPTIONS_HELP" event="custom:musicsuitehelp" position="2" /> |
|
195 <mm:output alias="mul_title"> |
|
196 <mm:text value="musicsuite_loc:R_MUSICHOMESCREEN_FM_RADIO"/> |
|
197 </mm:output> |
|
198 <mm:output alias="mul_detail"> |
|
199 <mm:text value="musicsuite_loc:R_MUSICHOMESCREEN_FM_RADIO_AD"/> |
|
200 </mm:output> |
|
201 <mm:output alias="mul_icon"> |
|
202 <mm:image application_uid="0x10207A89"/> |
|
203 </mm:output> |
|
204 <mm:event event="key:select"> |
|
205 <mm:action service="Service.ActionHandler" interface="IDataAction"> |
|
206 <mm:command name="Execute"> |
|
207 <mm:key> |
|
208 <mm:key name="plugin_id" type="uid" value="0x10282E5F"/> |
|
209 <mm:key name="data"> |
|
210 <!-- At least one sub element is required in the data key. --> |
|
211 <mm:key name="type" type="string" value="launch_application"/> |
|
212 <mm:key name="launch_method" type="string" value="cmd_line"/> |
|
213 <mm:key name="application_uid" type="integer" value="0x10207A89"/> |
|
214 </mm:key> |
|
215 </mm:key> |
|
216 </mm:command> |
|
217 </mm:action> |
|
218 </mm:event> |
|
219 </mm:item> |
|
220 |
|
221 </mm:content> |