secsrv_plat/devencadaptation_api/inc/DevEncEngineConstants.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 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:  Enumerations used in the application UI.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __DEVENCADAPTATION_H_
       
    20 #define __DEVENCADAPTATION_H_
       
    21 
       
    22 
       
    23 //  Constants
       
    24 
       
    25 _LIT(KEncryptionDll, "\\sys\\bin\\nfeengine.dll");
       
    26 
       
    27 enum TDiskStatus
       
    28     {
       
    29     EUnmounted 	= 0,
       
    30     EDecrypted 	= 8,
       
    31     EDecrypting = 9,
       
    32     EEncrypted 	= 10,
       
    33     EEncrypting = 11,
       
    34     EWiping 	= 12,
       
    35     ECorrupted 	= 13,
       
    36     };
       
    37 
       
    38 enum TEncCommands
       
    39     {
       
    40     EDiskStatus	 = 0,
       
    41     EEncryptDisk = 1,
       
    42     EDecryptDisk = 2,
       
    43     EWipeDisk    = 3
       
    44     };
       
    45 
       
    46 //- Constants ---------------------------------------------------------------
       
    47 // The KFileServerUidValue which is defined in f32file.h.
       
    48 const TUid  KEncUtility = {0x100039e3};
       
    49 
       
    50 const TUint KDEToThreadKey 	= 1;
       
    51 const TUint KDEToUiKey 		= 2;
       
    52 const TUint KDEToExtKey 	= 3; 
       
    53 const TUint KDEProgressToUiKey 	= 4;
       
    54 const TUint KDEStatusToUiKey 	= 5;
       
    55 
       
    56 //- Macros ------------------------------------------------------------------
       
    57 // Calculates pub&sub key for given drive and id. Top 8 bits are used for the
       
    58 // drives. Bottom 8 bits are used for the ids. The rest of the bits are
       
    59 // reserved and use zero value. The key layout:
       
    60 //          dddddddd0000000000000000kkkkkkkk
       
    61 //          ^bit 31                        ^bit 0
       
    62 #define ENC_KEY(drive, id) (((drive) << 24) | (0xFF & (id)))
       
    63 
       
    64 
       
    65 #endif // __DEVENCADAPTATION_H_