|
1 // Copyright (c) 2000-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 BTSDPAGENTWRAPPER_H |
|
17 #define BTSDPAGENTWRAPPER_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <bttypes.h> |
|
21 #include "sdpkey.h" |
|
22 |
|
23 |
|
24 /** |
|
25 Interface, internal to SDP agent DLL, used for direct prodding of a remote database. |
|
26 **/ |
|
27 NONSHARABLE_CLASS(RSdpAgent) |
|
28 { |
|
29 public: |
|
30 RSdpAgent(); |
|
31 TInt Open(RSdpSession& aSession); |
|
32 void Close(); |
|
33 TBool IsOpen(); |
|
34 void Connect(TBTDevAddr aRemoteAddr, TRequestStatus& aStatus); |
|
35 void SdpSearchRequestL(TInt& aResultSize, |
|
36 CSdpAttrValueDES& aUUIDList, |
|
37 TUint16 aMaxRecCount, |
|
38 const TDesC8& aContState, |
|
39 TRequestStatus& aStatus); |
|
40 void SdpSearchRequestL(TInt& aResultSize, |
|
41 CSdpSearchPattern& aUUIDFilter, |
|
42 TUint16 aMaxRecCount, |
|
43 const TDesC8& aContState, |
|
44 TRequestStatus& aStatus); |
|
45 void SdpAttributeRequestL(TInt& aResultSize, |
|
46 TSdpServRecordHandle aHandle, |
|
47 TUint16 aMaxAttrByteCount, |
|
48 CSdpAttrIdMatchList& aMatchList, |
|
49 const TDesC8& aContState, |
|
50 TRequestStatus& aStatus); |
|
51 TInt RetrieveResult(TDes8& aResult); |
|
52 void Cancel(); |
|
53 |
|
54 private: |
|
55 TBTDevAddr iDevAddr; |
|
56 HBufC8* iRequestBuf; |
|
57 TPckg<TInt> iResultSize; |
|
58 RNetDatabase iNetDb; |
|
59 TSDPConnectBuf iConnectBuf; |
|
60 }; |
|
61 |
|
62 #endif |