pimprotocols/pbap/inc/pbapserversecuritypolicy.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 #ifndef PBAPSERVERSECURITYPOLICY_H
       
    21 #define PBAPSERVERSECURITYPOLICY_H
       
    22 
       
    23 
       
    24 const TUint KPbapServerRangeCount = 3;
       
    25 
       
    26 const TInt KPbapServerRanges[KPbapServerRangeCount] = 
       
    27 	{
       
    28 	0,		//range is 0-2 inclusive
       
    29 	3,		//range is 3-6 inclusive
       
    30 	7,		//range is 7-KMaxTInt inclusive
       
    31 	};
       
    32 
       
    33 const TUint8 KPbapServerElementsIndex[KPbapServerRangeCount] = 
       
    34 	{
       
    35 	0,
       
    36 	1,
       
    37 	CPolicyServer::ENotSupported
       
    38 	};
       
    39 
       
    40 const CPolicyServer::TPolicyElement KPbapServerElements[] = 
       
    41 	{
       
    42 	{ _INIT_SECURITY_POLICY_C2( ECapabilityLocalServices, ECapabilityReadUserData), CPolicyServer::EFailClient},	// policy 0:  range 0 - 2
       
    43 	{ _INIT_SECURITY_POLICY_C1( ECapability_None), CPolicyServer::EFailClient}	// policy 1:  range 3 - 6
       
    44 	};
       
    45 
       
    46 
       
    47 const CPolicyServer::TPolicy KPbapServerPolicy = 
       
    48 	{
       
    49 	CPolicyServer::EAlwaysPass,
       
    50 	KPbapServerRangeCount,
       
    51 	KPbapServerRanges,
       
    52 	KPbapServerElementsIndex,
       
    53 	KPbapServerElements
       
    54 	};
       
    55 
       
    56 
       
    57 #endif	//PBAPSERVERSECURITYPOLICY_H