|
1 // Copyright (c) 2001-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 #ifndef SDPKEY_H |
|
17 #define SDPKEY_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <bttypes.h> |
|
21 #include "sdpconsts.h" |
|
22 //#include "sdpclient.h" |
|
23 |
|
24 |
|
25 // |
|
26 // SDP Query specifications |
|
27 // |
|
28 |
|
29 const static TUint KSDPConnectQuery = 1; |
|
30 const static TUint KSDPServiceQuery = 2; |
|
31 const static TUint KSDPAttributeQuery = 3; |
|
32 const static TUint KSDPEncodedQuery = 4; |
|
33 const static TUint KSDPCancelQuery = 5; |
|
34 const static TUint KSDPRetrieveResultQuery = 0x7f; |
|
35 const static TUint KSDPBufferResult = 0x80; |
|
36 |
|
37 struct TSDPConnectQuery |
|
38 { |
|
39 TUint iQueryType; //< Must be set to KSDPConnectQuery |
|
40 TBTDevAddr iAddr; //< The address to contact |
|
41 }; |
|
42 typedef TPckgBuf<TSDPConnectQuery> TSDPConnectBuf; |
|
43 |
|
44 struct TSDPServiceSearchKey |
|
45 { |
|
46 TUint iQueryType; //< Must be set to KSDPServiceQuery |
|
47 TUint16 iMaxCount; //< Maximum number of records to return |
|
48 TUUID iUUID; //< The UUID to match |
|
49 TUint8 iStateLength;//< Length of the continuation state |
|
50 TUint8 iContinuationState[KSdpContinuationStateMaxLength];//< 0 to 16 bytes of continuation state |
|
51 }; |
|
52 typedef TPckgBuf<TSDPServiceSearchKey> TSDPServiceSearchKeyBuf; |
|
53 |
|
54 struct TSDPAttributeKey |
|
55 { |
|
56 TUint iQueryType; //< Must be set to KSDPAttributeQuery |
|
57 TUint iServiceRecordHandle;//<Handle returned from ServiceSearch Query |
|
58 TUint16 iMaxLength; //< Max number of bytes to return |
|
59 TBool iRange; //< Is the attribute number a range? |
|
60 /** Attribute - interpreted as a range if iRange is true, |
|
61 else bottom 16 bits are the attribute number **/ |
|
62 TUint iAttribute; |
|
63 TUint8 iStateLength;//< Length of the continuation state |
|
64 TUint8 iContinuationState[KSdpContinuationStateMaxLength];//< 0 to 16 bytes of continuation state |
|
65 }; |
|
66 |
|
67 typedef TPckgBuf<TSDPAttributeKey> TSDPAttributeKeyBuf; |
|
68 |
|
69 struct TSDPEncodedKey |
|
70 { |
|
71 TUint iQueryType; |
|
72 TUint8 iPduId; |
|
73 }; |
|
74 |
|
75 typedef TPckgBuf<TSDPEncodedKey> TSDPEncodedKeyBuf; |
|
76 |
|
77 |
|
78 #endif |