terminalsecurity/inc/PlatformSecurityPolicies.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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 terminalsecurity components
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __PLATFORM_SECURITY_POLICIES__
       
    20 #define __PLATFORM_SECURITY_POLICIES__
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 const TUint policyEngineRangeCount = 3;
       
    25 
       
    26 const TInt policyEngineRanges[policyEngineRangeCount] = 
       
    27         {
       
    28         0, // For delivery...
       
    29         100, // For request
       
    30         101  // ENotSupported
       
    31         }; 
       
    32        
       
    33 const TUint8 policyEngineSecurityElementsIndex[policyEngineRangeCount] = 
       
    34         {
       
    35         0,  //applies to 1st range
       
    36         CPolicyServer::ECustomCheck,  
       
    37         CPolicyServer::ENotSupported  
       
    38         };
       
    39 
       
    40 //capability checks
       
    41 const CPolicyServer::TPolicyElement policyEngineSecurityElements[] = 
       
    42         {
       
    43         {_INIT_SECURITY_POLICY_C1(ECapabilityReadDeviceData),  CPolicyServer::EFailClient} 	 
       
    44         };
       
    45 
       
    46 //Package all the above together into a policy
       
    47 CPolicyServer::TPolicy policyEngineSecurityPolicy;
       
    48 /*        0,	//iSpare --> must be 0
       
    49         helloWorldRanges,	//ranges array
       
    50         helloWorldElementsIndex,	//elements<->ranges index
       
    51         helloWorldElements,		//array of elements
       
    52         };
       
    53 */
       
    54 
       
    55 #endif