|
1 // Copyright (c) 2005-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 // Constants for the AVCTP protocol |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @internalComponent |
|
20 @file |
|
21 */ |
|
22 |
|
23 #ifndef __AVCTPCONSTANTS_H__ |
|
24 #define __AVCTPCONSTANTS_H__ |
|
25 |
|
26 #include <e32std.h> |
|
27 #include <bluetoothav.h> |
|
28 |
|
29 /* |
|
30 @internalTechnology |
|
31 */ |
|
32 namespace SymbianAvctp |
|
33 { |
|
34 |
|
35 // |
|
36 // AVCTP Bluetooth Security Defaults |
|
37 // |
|
38 |
|
39 const static TBluetoothMitmProtection KInboundAuthenticationDefault = EMitmDesired; |
|
40 const static TBool KInboundAuthoristationDefault = ETrue; |
|
41 const static TBool KInboundEncryptionDefault = ETrue; |
|
42 |
|
43 const static TBluetoothMitmProtection KOutboundAuthenticationDefault = KInboundAuthenticationDefault; |
|
44 const static TBool KOutboundAuthoristationDefault = KInboundAuthoristationDefault; |
|
45 const static TBool KOutboundEncryptionDefault = KInboundEncryptionDefault; |
|
46 |
|
47 const static TBluetoothMitmProtection KSecondaryChannelAuthenticationDefault = EMitmNotRequired; |
|
48 const static TBool KSecondaryChannelAuthoristationDefault = EFalse; |
|
49 // |
|
50 // AVCTP protocol constants |
|
51 // |
|
52 |
|
53 const static TInt KTransportIdleTimeout = 5 * 1000000; // i.e. 5 seconds |
|
54 const static TInt KProtocolIdleTimeout = 5 * 1000000; // i.e. 5 seconds |
|
55 /** Total outstanding packets before a sap flows off */ |
|
56 const static TInt KSapOutboundQHighMark = 10; |
|
57 /** Point where it will flow back on again */ |
|
58 const static TInt KSapOutboundQLowMark = 8; |
|
59 const static TInt KProtocolListeningQueueSize = 5; |
|
60 const static TUid KAvctpServiceUid = { 0x100095FD }; |
|
61 const static TUint KMaximumIpidResponsesAllowed = 10; |
|
62 |
|
63 } // end of namespace SymbianAvctp |
|
64 |
|
65 #endif // __AVCTPCONSTANTS_H__ |
|
66 |