deviceencryption/common/DevEnc.hrh
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Enumerations used in the application UI.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __DEVENCUI_HRH__
       
    19 #define __DEVENCUI_HRH__
       
    20 
       
    21 // DevEncUi enumerate command codes
       
    22 enum TDevEncUiCommandIds
       
    23     {
       
    24     EDevEncUiCommandChange = 4242, // start value must not be 0
       
    25     EDevEncUiCommandHelp,
       
    26 
       
    27     // These MMC-related commands are used in the Encryption view.
       
    28     EDevEncUiCommandEncryptWithoutSavingKey,
       
    29     EDevEncUiCommandEncryptAndSaveKey,
       
    30     EDevEncUiCommandEncryptWithRestoredKey,
       
    31     
       
    32     // This MMC-related command is not shown to the user. It is used
       
    33     // when the encryption key is in the security driver and the user
       
    34     // inserts an unencrypted card.
       
    35     EDevEncUiCommandEncryptWithCurrentKey,
       
    36 
       
    37     // These MMC-related commands are used in the Decryption view.
       
    38     EDevEncUiCommandDecrypt,
       
    39     EDevEncUiCommandDecryptAndTurnOffEncryption,
       
    40 
       
    41     EDevEncUiInternalCommandEncrypt,
       
    42     EDevEncUiInternalCommandDecrypt,
       
    43 
       
    44     // ID's of some UI items
       
    45     EPhoneEncryptionSettingItem,
       
    46     EMemoryCardEncryptionSettingItem,
       
    47     EDevEncUiDlgCIdConfirmationQuery,
       
    48     EDevEncUiDlgCIdDataQuery,
       
    49     EDevEncUiWaitNoteId,
       
    50     EDevEncUiSecretCodeQueryId
       
    51     };
       
    52 
       
    53 enum TDevEncUiMemoryType
       
    54     {
       
    55     EPhoneMemory,
       
    56     EMemoryCard,
       
    57     EPrimaryPhoneMemory
       
    58     };
       
    59 
       
    60 enum TDevEncUiMemoryEntityState
       
    61     {
       
    62     EMemStateUnknown = 0,
       
    63     EMemDecrypted    = 1,
       
    64     EMemEncrypting   = 2,
       
    65     EMemEncrypted    = 3,
       
    66     EMemDecrypting   = 4,
       
    67     EMemCorrupted    = 5
       
    68     };
       
    69 
       
    70 enum TDevEncUiViewIds
       
    71     {
       
    72     EDevEncUiMainViewId = 1,
       
    73     EDevEncUiEncrViewId,
       
    74     EDevEncUiDecrViewId,
       
    75     EDevEncUiNumberOfViews
       
    76     };
       
    77 
       
    78 enum TDevEncUiMmcStatus
       
    79     {
       
    80     EMmcNotPresent = 0,
       
    81     EMmcNotReadable = 1,
       
    82     EMmcOk = 2   
       
    83     };
       
    84     
       
    85 #endif // __DEVENCUI_HRH__