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