commondrm/drmencryptor/data/DRMEncryptor.rss
changeset 0 95b198f216e5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/commondrm/drmencryptor/data/DRMEncryptor.rss	Thu Dec 17 08:52:27 2009 +0200
@@ -0,0 +1,466 @@
+/*
+* Copyright (c) 2004 - 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+//  RESOURCE IDENTIFIER
+NAME    DRME // 4 letter ID
+
+//  INCLUDES
+
+#include "DRMEncryptor.rh"
+#include "DRMEncryptor.hrh"
+#include <drmencryptor.mbg>
+#include <data_caging_paths_strings.hrh>
+
+#include <eikon.rh>
+#include <avkon.rh>
+#include <avkon.rsg>
+#include <avkon.mbg>
+
+#include <appinfo.rh>
+
+RESOURCE RSS_SIGNATURE {}
+
+RESOURCE TBUF { buf= ""; }
+
+RESOURCE EIK_APP_INFO
+    {
+    cba = R_AVKON_SOFTKEYS_EXIT;
+    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
+    menubar = r_DrmEncryptor_menubar;
+     // no menu bar
+    }
+
+// ---------------------------------------------------------
+//
+//   r_helloworldbasic_menubar
+//   Menubar for HelloWorldBasic example
+//
+// ---------------------------------------------------------
+//
+RESOURCE MENU_BAR r_DrmEncryptor_menubar
+    {
+    titles =
+        {
+        MENU_TITLE
+            {
+            menu_pane = r_DrmEncryptor_menu;
+            }
+        };
+    }
+
+
+// ---------------------------------------------------------
+//
+//   r_helloworldbasic_menu
+//   Menu for "Options"
+//
+// ---------------------------------------------------------
+//
+RESOURCE MENU_PANE r_DrmEncryptor_menu
+    {
+    items =
+        {
+        MENU_ITEM
+            {
+            command = EDrmEncryptorUICommand1;
+            txt = "Encrypt";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDrmEncryptorKeyCommand;
+            txt = "Import Keys";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDrmEncryptorDeleteCommand;
+            txt = "Delete Database";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDrmTimeCommand;
+            txt = "DRMClock time";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = ESetDrmTimeCommand;
+            txt = "Set DRMClock";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EAddROsIntoDb;
+            txt = "Process multiple ROs";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDrmBb5KeyTestCommand;
+            txt = "Bb5KeyTest";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDRMPlayServerCommand;
+            txt = "DrmPlayServerTest";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDRM_API_BATUICommand3;
+            txt = "Run Performance test";
+            cascade=r_DRM_API_sub_menu_1;
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDrmEncryptorDeleteWmDrmCommand;
+            txt = "Delete WmDrm Rights";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDrmEncryptorBackupWmDrmCommand;
+            txt = "Backup WmDrm DB";
+            flags = EEikMenuItemAction;
+            },
+        MENU_ITEM
+            {
+            command = EDrmEncryptorRestoreWmDrmCommand;
+            txt = "Restore WmDrm DB";
+            flags = EEikMenuItemAction;
+            },                     
+        MENU_ITEM
+            {
+            command = EAknSoftkeyExit;
+            txt = "Exit";
+            }
+        };
+    }
+
+
+RESOURCE TITLE_PANE r_DRMEncryptor_title_pane
+    {
+    txt = "DRMEncryptor";
+    }
+
+// Texts and images appear in this order on the DRMEncryptor screen.
+// Every new text item starts from a new line.
+
+RESOURCE DRMEncryptor_ITEM_LIST r_DRMEncryptor_main_text
+    {
+    items =
+        {
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_1;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_2;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_3;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_4;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_5;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_6;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_7;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_8;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_9;
+            },
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_10;
+            },        
+        DRMEncryptor_TEXT
+            {
+            txt = r_DRMEncryptor_copyright_text_11;
+            }            
+        };
+    }
+
+RESOURCE DIALOG r_drm_time_query
+    {
+    flags = EGeneralQueryFlags;
+    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
+    items =
+        {
+        DLG_LINE
+            {
+            type = EAknCtMultilineQuery;
+            id = EMultilineFirstLine;
+            control = AVKON_DATA_QUERY
+                {
+                layout = EMultiDataFirstDateEd;
+                label = "Date";
+                control = DATE_EDITOR
+                    {
+                    minDate = DATE
+                        {
+                        year = 1900;
+                        };
+                    maxDate = DATE
+                        {
+                        year = 2100;
+                        };
+                    flags = 0;
+                    };
+                };
+            },
+        DLG_LINE
+            {
+            type = EAknCtMultilineQuery;
+            id = EMultilineSecondLine;
+            control = AVKON_DATA_QUERY
+                {
+                layout = EMultiDataSecondTimeEd;
+                label = "Time";
+                control = TIME_EDITOR
+                    {
+                    minTime = TIME
+                        {
+                        second = 0;
+                        minute = 0;
+                        hour = 0;
+                        };
+                    maxTime = TIME
+                        {
+                        second = 59;
+                        minute = 59;
+                        hour = 23;
+                        };
+                    flags = 0;
+                    };
+                };
+            }
+        };
+    }
+
+/////////////////////////////////
+// PERFORMANCE
+///////////////////////////////
+
+// ---------------------------------------------------------
+//
+//   r_DRM_API_sub_menu_1
+//   SubMenu for "Options->Performance"
+//
+// ---------------------------------------------------------
+//
+RESOURCE MENU_PANE r_DRM_API_sub_menu_1
+    {
+    items=
+        {
+		MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_1;
+            txt="Generate test files";
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            txt="RFile plain";
+            cascade=r_DRM_API_sub_menu_1_1;
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            txt="CAF plain";
+            cascade=r_DRM_API_sub_menu_1_2;
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            txt="DRM";
+            cascade=r_DRM_API_sub_menu_1_3;
+            flags = EEikMenuItemSpecific;
+            }
+        };
+    }
+
+// ---------------------------------------------------------
+//
+//   r_DRM_API_sub_menu_1
+//   SubMenu for "Options->Performance->RFile"
+//
+// ---------------------------------------------------------
+//
+RESOURCE MENU_PANE r_DRM_API_sub_menu_1_1
+    {
+    items=
+        {
+		MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_1_1;
+            txt="File opening";
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_1_2;
+            txt="Sequential";
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_1_3;
+            txt="Random";
+            flags = EEikMenuItemSpecific;
+            }
+        };
+    }
+// ---------------------------------------------------------
+//
+//   r_DRM_API_sub_menu_1
+//   SubMenu for "Options->Performance->CAF"
+//
+// ---------------------------------------------------------
+//
+RESOURCE MENU_PANE r_DRM_API_sub_menu_1_2
+    {
+    items=
+        {
+		MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_2_1;
+            txt="File opening";
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_2_2;
+            txt="Sequential";
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_2_3;
+            txt="Random";
+            flags = EEikMenuItemSpecific;
+            }
+        };
+    }
+
+// ---------------------------------------------------------
+//
+//   r_DRM_API_sub_menu_1
+//   SubMenu for "Options->Performance->DRM"
+//
+// ---------------------------------------------------------
+//
+RESOURCE MENU_PANE r_DRM_API_sub_menu_1_3
+    {
+    items=
+        {
+        MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_3_1_1;
+            txt="File Opening";
+            flags = EEikMenuItemSpecific;
+            },
+		MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_3_1_2;
+            txt="File Opening with ExecuteIntent";
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_3_1_3;
+            txt="Sequential";
+            flags = EEikMenuItemSpecific;
+            },
+        MENU_ITEM
+            {
+            command=EDRM_API_SubMenuId_3_1_4;
+            txt="Random";
+            flags = EEikMenuItemSpecific;
+            }
+        };
+    }
+
+RESOURCE DIALOG r_aknicon_icon_size_query
+	{
+	flags = EGeneralQueryFlags;
+	buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
+    items =
+		{
+		DLG_LINE
+			{
+			type = EAknCtQuery;
+			id = EGeneralQuery;
+			control = AVKON_DATA_QUERY
+				{
+				layout = ENumberLayout;
+				label = "Add multiplier";
+				control = AVKON_INTEGER_EDWIN
+				    {
+					min = 0;
+					max = 1000;
+					};
+				};
+			}
+		};
+	}
+
+RESOURCE TBUF r_DRMEncryptor_copyright_text_1  { buf = "DRMEncryptor - tool to process OMA DRM 1.0 content into terminal."; }
+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"; }
+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."; }
+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."; }
+RESOURCE TBUF r_DRMEncryptor_copyright_text_5  { buf = "The tool also allows removal of all rights in the rights database."; }
+RESOURCE TBUF r_DRMEncryptor_copyright_text_6  { buf = "DRMClock can be viewed via menu. DRM Time is shown as nitz time."; }
+RESOURCE TBUF r_DRMEncryptor_copyright_text_7  { buf = "DRMClock can be set via menu. Use Options -> Set DRM clock."; }
+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."; }
+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"; }
+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"; }
+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."; }
+
+
+RESOURCE LOCALISABLE_APP_INFO r_DRMEncryptor_localisable_app_info
+    {
+    short_caption = "DRMEncryptor";
+    caption_and_icon =
+    CAPTION_AND_ICON_INFO
+        {
+        caption = "DRMEncryptor";
+        };
+    }
+
+// End of File