bluetooth/btstack/eirman/eirmanserversecuritypolicy.h
changeset 0 29b1cd4cb562
child 26 1f10b9300be6
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2007-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  @internalComponent
       
    19 */
       
    20  
       
    21 #ifndef _EIRMANSERVERSECURITYPOLICY_H
       
    22 #define _EIRMANSERVERSECURITYPOLICY_H
       
    23 
       
    24 #include <e32def.h>
       
    25 #include <bluetooth/eirmanshared.h>
       
    26 
       
    27 
       
    28 _LIT_SECURE_ID(KSDPServerID, 0x10009220); 
       
    29 _LIT_SECURE_ID(KStackID, 0x101f7989); 
       
    30 
       
    31 /** EIR Manager Server Security Policy Definition */
       
    32 const TUint KEirManServerRangeCount = 3;
       
    33 
       
    34 const TInt KEirManServerRanges[KEirManServerRangeCount] = 
       
    35 	{
       
    36 	EEirManRegisterTag,					/** check comes from SDP */
       
    37 	EEirManSpaceAvailableNotification,	/** check has local services **/
       
    38 	EEirManServerMessageCount,			/** not supported */
       
    39 	};
       
    40 
       
    41 /** Index numbers into KEirManServerElements[] */
       
    42 const TInt KPolicyCapabilityCheck = 0;
       
    43 
       
    44 /** Mapping IPCs to policy element */
       
    45 const TUint8 KEirManServerElementsIndex[KEirManServerRangeCount] = 
       
    46 	{
       
    47 	CPolicyServer::ECustomCheck,
       
    48 	KPolicyCapabilityCheck, 
       
    49 	CPolicyServer::ENotSupported,	/** Undefined functions */
       
    50 	};
       
    51 
       
    52 /** Individual policy elements */
       
    53 const CPolicyServer::TPolicyElement KEirManServerElements[] = 
       
    54 	{
       
    55 		{ _INIT_SECURITY_POLICY_C1(ECapabilityLocalServices) }
       
    56 	};
       
    57 
       
    58 /** Main policy */
       
    59 const CPolicyServer::TPolicy KEirManServerPolicy = 
       
    60 	{
       
    61 	CPolicyServer::EAlwaysPass , /** Specifies all connect attempts should pass */
       
    62 	KEirManServerRangeCount,
       
    63 	KEirManServerRanges,
       
    64 	KEirManServerElementsIndex,
       
    65 	KEirManServerElements,
       
    66 	};
       
    67 	
       
    68 #endif // _EIRMANSERVERSECURITYPOLICY_H