1 /* |
|
2 * Copyright (c) 2004 - 2007 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 |
|
18 |
|
19 // RESOURCE IDENTIFIER |
|
20 NAME DRME // 4 letter ID |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include "DRMEncryptor.rh" |
|
25 #include "DRMEncryptor.hrh" |
|
26 #include <drmencryptor.mbg> |
|
27 #include <data_caging_paths_strings.hrh> |
|
28 |
|
29 #include <eikon.rh> |
|
30 #include <avkon.rh> |
|
31 #include <avkon.rsg> |
|
32 #include <avkon.mbg> |
|
33 |
|
34 #include <appinfo.rh> |
|
35 |
|
36 RESOURCE RSS_SIGNATURE {} |
|
37 |
|
38 RESOURCE TBUF { buf= ""; } |
|
39 |
|
40 RESOURCE EIK_APP_INFO |
|
41 { |
|
42 cba = R_AVKON_SOFTKEYS_EXIT; |
|
43 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
44 menubar = r_DrmEncryptor_menubar; |
|
45 // no menu bar |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------- |
|
49 // |
|
50 // r_helloworldbasic_menubar |
|
51 // Menubar for HelloWorldBasic example |
|
52 // |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 RESOURCE MENU_BAR r_DrmEncryptor_menubar |
|
56 { |
|
57 titles = |
|
58 { |
|
59 MENU_TITLE |
|
60 { |
|
61 menu_pane = r_DrmEncryptor_menu; |
|
62 } |
|
63 }; |
|
64 } |
|
65 |
|
66 |
|
67 // --------------------------------------------------------- |
|
68 // |
|
69 // r_helloworldbasic_menu |
|
70 // Menu for "Options" |
|
71 // |
|
72 // --------------------------------------------------------- |
|
73 // |
|
74 RESOURCE MENU_PANE r_DrmEncryptor_menu |
|
75 { |
|
76 items = |
|
77 { |
|
78 MENU_ITEM |
|
79 { |
|
80 command = EDrmEncryptorUICommand1; |
|
81 txt = "Encrypt"; |
|
82 flags = EEikMenuItemAction; |
|
83 }, |
|
84 MENU_ITEM |
|
85 { |
|
86 command = EDrmEncryptorKeyCommand; |
|
87 txt = "Import Keys"; |
|
88 flags = EEikMenuItemAction; |
|
89 }, |
|
90 MENU_ITEM |
|
91 { |
|
92 command = EDrmEncryptorDeleteCommand; |
|
93 txt = "Delete Database"; |
|
94 flags = EEikMenuItemAction; |
|
95 }, |
|
96 MENU_ITEM |
|
97 { |
|
98 command = EDrmTimeCommand; |
|
99 txt = "DRMClock time"; |
|
100 flags = EEikMenuItemAction; |
|
101 }, |
|
102 MENU_ITEM |
|
103 { |
|
104 command = ESetDrmTimeCommand; |
|
105 txt = "Set DRMClock"; |
|
106 flags = EEikMenuItemAction; |
|
107 }, |
|
108 MENU_ITEM |
|
109 { |
|
110 command = EAddROsIntoDb; |
|
111 txt = "Process multiple ROs"; |
|
112 flags = EEikMenuItemAction; |
|
113 }, |
|
114 MENU_ITEM |
|
115 { |
|
116 command = EDrmBb5KeyTestCommand; |
|
117 txt = "Bb5KeyTest"; |
|
118 flags = EEikMenuItemAction; |
|
119 }, |
|
120 MENU_ITEM |
|
121 { |
|
122 command = EDRMPlayServerCommand; |
|
123 txt = "DrmPlayServerTest"; |
|
124 flags = EEikMenuItemAction; |
|
125 }, |
|
126 MENU_ITEM |
|
127 { |
|
128 command = EDRM_API_BATUICommand3; |
|
129 txt = "Run Performance test"; |
|
130 cascade=r_DRM_API_sub_menu_1; |
|
131 flags = EEikMenuItemAction; |
|
132 }, |
|
133 MENU_ITEM |
|
134 { |
|
135 command = EDrmEncryptorDeleteWmDrmCommand; |
|
136 txt = "Delete WmDrm Rights"; |
|
137 flags = EEikMenuItemAction; |
|
138 }, |
|
139 MENU_ITEM |
|
140 { |
|
141 command = EDrmEncryptorBackupWmDrmCommand; |
|
142 txt = "Backup WmDrm DB"; |
|
143 flags = EEikMenuItemAction; |
|
144 }, |
|
145 MENU_ITEM |
|
146 { |
|
147 command = EDrmEncryptorRestoreWmDrmCommand; |
|
148 txt = "Restore WmDrm DB"; |
|
149 flags = EEikMenuItemAction; |
|
150 }, |
|
151 MENU_ITEM |
|
152 { |
|
153 command = EAknSoftkeyExit; |
|
154 txt = "Exit"; |
|
155 } |
|
156 }; |
|
157 } |
|
158 |
|
159 |
|
160 RESOURCE TITLE_PANE r_DRMEncryptor_title_pane |
|
161 { |
|
162 txt = "DRMEncryptor"; |
|
163 } |
|
164 |
|
165 // Texts and images appear in this order on the DRMEncryptor screen. |
|
166 // Every new text item starts from a new line. |
|
167 |
|
168 RESOURCE DRMEncryptor_ITEM_LIST r_DRMEncryptor_main_text |
|
169 { |
|
170 items = |
|
171 { |
|
172 DRMEncryptor_TEXT |
|
173 { |
|
174 txt = r_DRMEncryptor_copyright_text_1; |
|
175 }, |
|
176 DRMEncryptor_TEXT |
|
177 { |
|
178 txt = r_DRMEncryptor_copyright_text_2; |
|
179 }, |
|
180 DRMEncryptor_TEXT |
|
181 { |
|
182 txt = r_DRMEncryptor_copyright_text_3; |
|
183 }, |
|
184 DRMEncryptor_TEXT |
|
185 { |
|
186 txt = r_DRMEncryptor_copyright_text_4; |
|
187 }, |
|
188 DRMEncryptor_TEXT |
|
189 { |
|
190 txt = r_DRMEncryptor_copyright_text_5; |
|
191 }, |
|
192 DRMEncryptor_TEXT |
|
193 { |
|
194 txt = r_DRMEncryptor_copyright_text_6; |
|
195 }, |
|
196 DRMEncryptor_TEXT |
|
197 { |
|
198 txt = r_DRMEncryptor_copyright_text_7; |
|
199 }, |
|
200 DRMEncryptor_TEXT |
|
201 { |
|
202 txt = r_DRMEncryptor_copyright_text_8; |
|
203 }, |
|
204 DRMEncryptor_TEXT |
|
205 { |
|
206 txt = r_DRMEncryptor_copyright_text_9; |
|
207 }, |
|
208 DRMEncryptor_TEXT |
|
209 { |
|
210 txt = r_DRMEncryptor_copyright_text_10; |
|
211 }, |
|
212 DRMEncryptor_TEXT |
|
213 { |
|
214 txt = r_DRMEncryptor_copyright_text_11; |
|
215 } |
|
216 }; |
|
217 } |
|
218 |
|
219 RESOURCE DIALOG r_drm_time_query |
|
220 { |
|
221 flags = EGeneralQueryFlags; |
|
222 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
223 items = |
|
224 { |
|
225 DLG_LINE |
|
226 { |
|
227 type = EAknCtMultilineQuery; |
|
228 id = EMultilineFirstLine; |
|
229 control = AVKON_DATA_QUERY |
|
230 { |
|
231 layout = EMultiDataFirstDateEd; |
|
232 label = "Date"; |
|
233 control = DATE_EDITOR |
|
234 { |
|
235 minDate = DATE |
|
236 { |
|
237 year = 1900; |
|
238 }; |
|
239 maxDate = DATE |
|
240 { |
|
241 year = 2100; |
|
242 }; |
|
243 flags = 0; |
|
244 }; |
|
245 }; |
|
246 }, |
|
247 DLG_LINE |
|
248 { |
|
249 type = EAknCtMultilineQuery; |
|
250 id = EMultilineSecondLine; |
|
251 control = AVKON_DATA_QUERY |
|
252 { |
|
253 layout = EMultiDataSecondTimeEd; |
|
254 label = "Time"; |
|
255 control = TIME_EDITOR |
|
256 { |
|
257 minTime = TIME |
|
258 { |
|
259 second = 0; |
|
260 minute = 0; |
|
261 hour = 0; |
|
262 }; |
|
263 maxTime = TIME |
|
264 { |
|
265 second = 59; |
|
266 minute = 59; |
|
267 hour = 23; |
|
268 }; |
|
269 flags = 0; |
|
270 }; |
|
271 }; |
|
272 } |
|
273 }; |
|
274 } |
|
275 |
|
276 ///////////////////////////////// |
|
277 // PERFORMANCE |
|
278 /////////////////////////////// |
|
279 |
|
280 // --------------------------------------------------------- |
|
281 // |
|
282 // r_DRM_API_sub_menu_1 |
|
283 // SubMenu for "Options->Performance" |
|
284 // |
|
285 // --------------------------------------------------------- |
|
286 // |
|
287 RESOURCE MENU_PANE r_DRM_API_sub_menu_1 |
|
288 { |
|
289 items= |
|
290 { |
|
291 MENU_ITEM |
|
292 { |
|
293 command=EDRM_API_SubMenuId_1; |
|
294 txt="Generate test files"; |
|
295 flags = EEikMenuItemSpecific; |
|
296 }, |
|
297 MENU_ITEM |
|
298 { |
|
299 txt="RFile plain"; |
|
300 cascade=r_DRM_API_sub_menu_1_1; |
|
301 flags = EEikMenuItemSpecific; |
|
302 }, |
|
303 MENU_ITEM |
|
304 { |
|
305 txt="CAF plain"; |
|
306 cascade=r_DRM_API_sub_menu_1_2; |
|
307 flags = EEikMenuItemSpecific; |
|
308 }, |
|
309 MENU_ITEM |
|
310 { |
|
311 txt="DRM"; |
|
312 cascade=r_DRM_API_sub_menu_1_3; |
|
313 flags = EEikMenuItemSpecific; |
|
314 } |
|
315 }; |
|
316 } |
|
317 |
|
318 // --------------------------------------------------------- |
|
319 // |
|
320 // r_DRM_API_sub_menu_1 |
|
321 // SubMenu for "Options->Performance->RFile" |
|
322 // |
|
323 // --------------------------------------------------------- |
|
324 // |
|
325 RESOURCE MENU_PANE r_DRM_API_sub_menu_1_1 |
|
326 { |
|
327 items= |
|
328 { |
|
329 MENU_ITEM |
|
330 { |
|
331 command=EDRM_API_SubMenuId_1_1; |
|
332 txt="File opening"; |
|
333 flags = EEikMenuItemSpecific; |
|
334 }, |
|
335 MENU_ITEM |
|
336 { |
|
337 command=EDRM_API_SubMenuId_1_2; |
|
338 txt="Sequential"; |
|
339 flags = EEikMenuItemSpecific; |
|
340 }, |
|
341 MENU_ITEM |
|
342 { |
|
343 command=EDRM_API_SubMenuId_1_3; |
|
344 txt="Random"; |
|
345 flags = EEikMenuItemSpecific; |
|
346 } |
|
347 }; |
|
348 } |
|
349 // --------------------------------------------------------- |
|
350 // |
|
351 // r_DRM_API_sub_menu_1 |
|
352 // SubMenu for "Options->Performance->CAF" |
|
353 // |
|
354 // --------------------------------------------------------- |
|
355 // |
|
356 RESOURCE MENU_PANE r_DRM_API_sub_menu_1_2 |
|
357 { |
|
358 items= |
|
359 { |
|
360 MENU_ITEM |
|
361 { |
|
362 command=EDRM_API_SubMenuId_2_1; |
|
363 txt="File opening"; |
|
364 flags = EEikMenuItemSpecific; |
|
365 }, |
|
366 MENU_ITEM |
|
367 { |
|
368 command=EDRM_API_SubMenuId_2_2; |
|
369 txt="Sequential"; |
|
370 flags = EEikMenuItemSpecific; |
|
371 }, |
|
372 MENU_ITEM |
|
373 { |
|
374 command=EDRM_API_SubMenuId_2_3; |
|
375 txt="Random"; |
|
376 flags = EEikMenuItemSpecific; |
|
377 } |
|
378 }; |
|
379 } |
|
380 |
|
381 // --------------------------------------------------------- |
|
382 // |
|
383 // r_DRM_API_sub_menu_1 |
|
384 // SubMenu for "Options->Performance->DRM" |
|
385 // |
|
386 // --------------------------------------------------------- |
|
387 // |
|
388 RESOURCE MENU_PANE r_DRM_API_sub_menu_1_3 |
|
389 { |
|
390 items= |
|
391 { |
|
392 MENU_ITEM |
|
393 { |
|
394 command=EDRM_API_SubMenuId_3_1_1; |
|
395 txt="File Opening"; |
|
396 flags = EEikMenuItemSpecific; |
|
397 }, |
|
398 MENU_ITEM |
|
399 { |
|
400 command=EDRM_API_SubMenuId_3_1_2; |
|
401 txt="File Opening with ExecuteIntent"; |
|
402 flags = EEikMenuItemSpecific; |
|
403 }, |
|
404 MENU_ITEM |
|
405 { |
|
406 command=EDRM_API_SubMenuId_3_1_3; |
|
407 txt="Sequential"; |
|
408 flags = EEikMenuItemSpecific; |
|
409 }, |
|
410 MENU_ITEM |
|
411 { |
|
412 command=EDRM_API_SubMenuId_3_1_4; |
|
413 txt="Random"; |
|
414 flags = EEikMenuItemSpecific; |
|
415 } |
|
416 }; |
|
417 } |
|
418 |
|
419 RESOURCE DIALOG r_aknicon_icon_size_query |
|
420 { |
|
421 flags = EGeneralQueryFlags; |
|
422 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
423 items = |
|
424 { |
|
425 DLG_LINE |
|
426 { |
|
427 type = EAknCtQuery; |
|
428 id = EGeneralQuery; |
|
429 control = AVKON_DATA_QUERY |
|
430 { |
|
431 layout = ENumberLayout; |
|
432 label = "Add multiplier"; |
|
433 control = AVKON_INTEGER_EDWIN |
|
434 { |
|
435 min = 0; |
|
436 max = 1000; |
|
437 }; |
|
438 }; |
|
439 } |
|
440 }; |
|
441 } |
|
442 |
|
443 RESOURCE TBUF r_DRMEncryptor_copyright_text_1 { buf = "DRMEncryptor - tool to process OMA DRM 1.0 content into terminal."; } |
|
444 RESOURCE TBUF r_DRMEncryptor_copyright_text_2 { buf = "Encryptor tool will process DRM messages (.dm) from e:\DRM - directory. If the directory does not exist, it will be created during the first execution. Output files will be placed into e:\Others -directory. On the emulator, the c: drive is used instead of the e: drive"; } |
|
445 RESOURCE TBUF r_DRMEncryptor_copyright_text_3 { buf = "Encryptor tool process separate delivery rights objects (.oro && .ro && .drc && dr). Place the files under e:\DRM directory and press Encrypt."; } |
|
446 RESOURCE TBUF r_DRMEncryptor_copyright_text_4 { buf = "With tool the PKI -keys can be imported into hardware. PKI -key files should be placed under e:\DRM\keys."; } |
|
447 RESOURCE TBUF r_DRMEncryptor_copyright_text_5 { buf = "The tool also allows removal of all rights in the rights database."; } |
|
448 RESOURCE TBUF r_DRMEncryptor_copyright_text_6 { buf = "DRMClock can be viewed via menu. DRM Time is shown as nitz time."; } |
|
449 RESOURCE TBUF r_DRMEncryptor_copyright_text_7 { buf = "DRMClock can be set via menu. Use Options -> Set DRM clock."; } |
|
450 RESOURCE TBUF r_DRMEncryptor_copyright_text_8 { buf = "DRMEncryptor can be used for processing same RO for multiple times. Place ROs into e:\drm -folder and choose Options->Process multiple ROs->add multiplier which will be used for every processed RO."; } |
|
451 RESOURCE TBUF r_DRMEncryptor_copyright_text_9 { buf = "DRMEncryptor can be used for checking that DrmPlayServer's usage is prohibited for WMDRM files. Place any WMDRM file named as test.wma into e:\drm and choose Options->DrmPlayServerTest"; } |
|
452 RESOURCE TBUF r_DRMEncryptor_copyright_text_10 { buf = "DRMEncryptor can be used for making backup and restoring WMDRM SQlite License Store. Backup will make a copy of [10282F1B]hds.db to e:\[10282F1B]hds.db. Restore will copy e:\[10282F1B]hds.db back to c:\private\10281e17\[10282F1B]hds.db"; } |
|
453 RESOURCE TBUF r_DRMEncryptor_copyright_text_11 { buf = "This tool is purposed only for R&D and should not be used commercially. Copyright © 2004 Nokia. All rights reserved."; } |
|
454 |
|
455 |
|
456 RESOURCE LOCALISABLE_APP_INFO r_DRMEncryptor_localisable_app_info |
|
457 { |
|
458 short_caption = "DRMEncryptor"; |
|
459 caption_and_icon = |
|
460 CAPTION_AND_ICON_INFO |
|
461 { |
|
462 caption = "DRMEncryptor"; |
|
463 }; |
|
464 } |
|
465 |
|
466 // End of File |
|