applicationmanagement/server/inc/PlatformSecurityPolicies.h
changeset 42 aa33c2cb9a50
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
       
     1 /*
       
     2  * Copyright (c) 2000 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: Implementation of applicationmanagement components
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef __PLATFORM_SECURITY_POLICIES__
       
    19 #define __PLATFORM_SECURITY_POLICIES__
       
    20 
       
    21 // INCLUDES
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "ApplicationManagementClientServer.h"
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 const TUint KApplicationManagementRangeCount = 3;
       
    29 
       
    30 const TInt KApplicationManagementRanges[KApplicationManagementRangeCount] =
       
    31     {
       
    32 
       
    33     NApplicationManagement::EAddTrust, //For Management
       
    34             NApplicationManagement::EPerformRfs,
       
    35             NApplicationManagement::ELast
       
    36 ,//ENotSupported
       
    37 };
       
    38 
       
    39 const TUint8
       
    40         KApplicationManagementSecurityElementsIndex[KApplicationManagementRangeCount] =
       
    41             {
       
    42             0, //applies to 1st range 
       
    43                     1,
       
    44                     CPolicyServer::ENotSupported
       
    45             };
       
    46 
       
    47 //capability checks
       
    48 const CPolicyServer::TPolicyElement KApplicationManagementSecurityElements[] =
       
    49     {
       
    50         {
       
    51         _INIT_SECURITY_POLICY_C1(ECapabilityTrustedUI), CPolicyServer::EFailClient
       
    52         },
       
    53         {
       
    54         _INIT_SECURITY_POLICY_S1(0x101f9a02, ECapabilityDiskAdmin), CPolicyServer::EFailClient
       
    55         }
       
    56     };
       
    57 
       
    58 //Package all the above together into a policy
       
    59 //CPolicyServer::TPolicy KApplicationManagementSecurityPolicy;
       
    60 
       
    61 #endif
       
    62 
       
    63 //  End of File