|
1 /* |
|
2 * |
|
3 * Copyright (c) <2010> Comarch S.A. and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of the License "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Original Contributors: |
|
11 * Comarch S.A. - original contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef HFPSDP_H_ |
|
20 #define HFPSDP_H_ |
|
21 |
|
22 #include <btsdp.h> |
|
23 #include <hssdppluginbase.h> |
|
24 |
|
25 /** Hand-Free Uid */ |
|
26 const TInt KHsHandsFreeUid = 0x111E; |
|
27 |
|
28 /** Generic Audio Uid */ |
|
29 const TInt KHsHfpGenericAudioUid = 0x1203; |
|
30 |
|
31 /** HFP profile version */ |
|
32 const TInt KHsHfpProfileVersion = 0x0105; |
|
33 |
|
34 /** HFP supported features Uid */ |
|
35 const TInt KHsSupportedFeaturesUid = 0x0311; |
|
36 |
|
37 /** HFP supported features value */ |
|
38 const TInt KHsSupportedFeaturesValue = 0x0010; |
|
39 /** Service name */ |
|
40 _LIT(KHsServiceNameHandsFree, "Hands-Free unit"); |
|
41 |
|
42 /** |
|
43 * @brief Manages SDP record |
|
44 */ |
|
45 class CHsHFPSDP : public CHsSdpBase |
|
46 { |
|
47 public: |
|
48 /** |
|
49 * Two-phase constructor |
|
50 * |
|
51 * @return instance of class |
|
52 */ |
|
53 static CHsHFPSDP* NewL(); |
|
54 |
|
55 /** |
|
56 * Two-phase constructor |
|
57 * |
|
58 * @return instance of class |
|
59 */ |
|
60 static CHsHFPSDP* NewLC(); |
|
61 |
|
62 /** |
|
63 * Destructor |
|
64 */ |
|
65 ~CHsHFPSDP(); |
|
66 |
|
67 public: |
|
68 /** |
|
69 * Creates SDP record |
|
70 */ |
|
71 void CreateSdpRecordL(); |
|
72 |
|
73 /** |
|
74 * Deletes SDP record |
|
75 */ |
|
76 void DeleteSdpRecordL(); |
|
77 |
|
78 private: |
|
79 /** |
|
80 * Constructor for performing 1st stage construction |
|
81 */ |
|
82 CHsHFPSDP(); |
|
83 |
|
84 /** |
|
85 * Constructor for performing 2nd stage construction |
|
86 */ |
|
87 void ConstructL(); |
|
88 |
|
89 private: |
|
90 |
|
91 /** Session to the SDP */ |
|
92 RSdp iSdp; |
|
93 |
|
94 /** Subsession to the SDP */ |
|
95 RSdpDatabase iSdpDatabase; |
|
96 |
|
97 /** Handle to SDP record which is registered in SDP database */ |
|
98 TSdpServRecordHandle iSdpRecordHandle; |
|
99 }; |
|
100 |
|
101 #endif /* HFPSDP_H_ */ |