|
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 HSPSDP_H_ |
|
20 #define HSPSDP_H_ |
|
21 |
|
22 #include <btsdp.h> |
|
23 #include <hssdppluginbase.h> |
|
24 |
|
25 /** Headset Uid */ |
|
26 const TInt KHsHeadsetUid = 0x1131; |
|
27 |
|
28 /** Generic Audio Uid */ |
|
29 const TInt KHsGenericAudioUid = 0x1203; |
|
30 |
|
31 /** Profile's UID */ |
|
32 const TInt KHsHeadsetProfileUid = 0x1108; |
|
33 |
|
34 /** Profile's version */ |
|
35 const TInt KHsHeadsetProfileVersion = 0x0102; |
|
36 |
|
37 /** Supported remote audio volume control UID */ |
|
38 const TInt KHsRemoteAudioVolumeControl = 0x0302; |
|
39 /** Service name */ |
|
40 _LIT(KHsServiceNameHeadset, "Headset"); |
|
41 |
|
42 /** |
|
43 * @brief Manages SDP record |
|
44 */ |
|
45 class CHsHSPSDP : public CHsSdpBase |
|
46 { |
|
47 public: |
|
48 /** |
|
49 * Two-phase constructor |
|
50 * |
|
51 * @return instance of class |
|
52 */ |
|
53 static CHsHSPSDP* NewL(); |
|
54 |
|
55 /** |
|
56 * Two-phase constructor |
|
57 * |
|
58 * @return instance of class |
|
59 */ |
|
60 static CHsHSPSDP* NewLC(); |
|
61 |
|
62 /** |
|
63 * Destructor |
|
64 */ |
|
65 ~CHsHSPSDP(); |
|
66 |
|
67 public: |
|
68 /** |
|
69 * Creates SDP record |
|
70 */ |
|
71 void CreateSdpRecordL(); |
|
72 |
|
73 /** |
|
74 * Destroys SDP record |
|
75 */ |
|
76 void DeleteSdpRecordL(); |
|
77 |
|
78 private: |
|
79 /** |
|
80 * Constructor for performing 1st stage construction |
|
81 */ |
|
82 CHsHSPSDP(); |
|
83 |
|
84 /** |
|
85 * Constructor for performing 2nd stage construction |
|
86 */ |
|
87 void ConstructL(); |
|
88 |
|
89 private: |
|
90 /** Session to the SDP */ |
|
91 RSdp iSdp; |
|
92 |
|
93 /** Subsession to the SDP */ |
|
94 RSdpDatabase iSdpDatabase; |
|
95 |
|
96 /** Handle to SDP record */ |
|
97 TSdpServRecordHandle iSdpRecordHandle; |
|
98 }; |
|
99 |
|
100 #endif /* HSPSDP_H_ */ |