bluetoothcommsprofiles/btpan/panagt/panlocalsdphelper.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2004-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 // panhelperlocalsdp.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef PANHELPERLOCALSDP_H
       
    19 #define PANHELPERLOCALSDP_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <e32std.h>
       
    23 #include <btsdp.h>
       
    24 #include <es_sock.h>
       
    25 #include <bt_sock.h>
       
    26 #include "panroles.h"
       
    27 
       
    28 namespace PanAgent
       
    29 {
       
    30 
       
    31 enum TPanSecurityMode
       
    32 /**
       
    33 Different security modes on PAN services
       
    34 @internalTechnology
       
    35 @released
       
    36 */
       
    37 	{
       
    38 	ENone = 0x0000,
       
    39 	EServiceLevelSecurity = 0x0001,
       
    40 	E802dot1xSecurity = 0x0002
       
    41 	};
       
    42 
       
    43 /**
       
    44 The PAN NAP SDP default uplink throughput.  5b8d8 octets/s == 3Mbits/s
       
    45 This value reflects the current maximum BT throughput using EDR hardware
       
    46 */
       
    47 static const TUint32 KPanNapDefaultUplinkThroughput = 0x0005b8d8;
       
    48 
       
    49 /**
       
    50 The version of the BNEP protocol that we implement
       
    51 */
       
    52 const TUint KBnepVersion = 0x0100;
       
    53 
       
    54 /**
       
    55 The version of the PAN role that we implement
       
    56 @note Currently this is the same for all roles
       
    57 */
       
    58 const TUint KPanRoleVersion = 0x0100;
       
    59 	
       
    60 	
       
    61 NONSHARABLE_CLASS(CPanHelperLocalSdpRegistrar) 
       
    62 /**
       
    63 Register PAN roles in the local SDP database
       
    64 @internalTechnology
       
    65 */
       
    66 	{
       
    67 public:
       
    68 	static CPanHelperLocalSdpRegistrar* NewL();
       
    69 	virtual ~CPanHelperLocalSdpRegistrar();
       
    70 	
       
    71 	
       
    72 	void RegisterLocalSdpRecordL(TBluetoothPanRole aRole, TInt aIapId);
       
    73 	void UnregisterLocalSdpRecord(TBluetoothPanRole aRole);
       
    74 private:
       
    75 	CPanHelperLocalSdpRegistrar();
       
    76 	void ConstructL();
       
    77 	
       
    78 public:
       
    79 
       
    80 private:			
       
    81 	RSdp iSdpServer;
       
    82 	RSdpDatabase iSdpDatabase;
       
    83 	CPanHelperLocalSdpRegistrar* iLocalSdpRegistrar;
       
    84 	TFixedArray<TSdpServRecordHandle, KMaxPanRoles> iLocalSdpRecordHandles; // position in array represents role; role is used to index array after rebasing role from 0x111x to zero
       
    85 	};
       
    86 }
       
    87 #endif //PANHELPERLOCALSDP_H