|
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 HFPPROFILEPLUGIN_H |
|
20 #define HFPPROFILEPLUGIN_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32std.h> |
|
24 #include <hsprofilepluginbase.h> |
|
25 |
|
26 class CHsHFPSettings; |
|
27 class CHsHFPDataHandler; |
|
28 |
|
29 // Constants |
|
30 /** HFP Ecom implementation Uid */ |
|
31 const TUid KHsHFPProfileImplementationUid = |
|
32 { |
|
33 0xE0009DD3 |
|
34 }; |
|
35 |
|
36 /** |
|
37 * @brief Implementation of Hands-Free Profile |
|
38 */ |
|
39 class CHsHFPProfile : public CHsProfileBase |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Two-phase constructor |
|
44 * @return instance of class |
|
45 */ |
|
46 static CHsHFPProfile* NewL(); |
|
47 |
|
48 /** |
|
49 * Two-phase constructor |
|
50 * @return instance of class |
|
51 */ |
|
52 static CHsHFPProfile* NewLC(); |
|
53 |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 ~CHsHFPProfile(); |
|
58 |
|
59 public: |
|
60 |
|
61 // Methods derived from MHsProfileBase |
|
62 void HandleCommandL(const TDesC8 &aCommandsIn, TDes8 &aCommandsOut, |
|
63 const TBool aFromAG = ETrue); |
|
64 |
|
65 void HandleClientDisconnected(TInt aErr); |
|
66 |
|
67 void HandleClientConnected(TDes8& aCommandOut); |
|
68 |
|
69 void HandleAcceptCallL(TDes8& aCommandOut); |
|
70 |
|
71 void HandleReleaseCallL(TDes8& aCommandOut); |
|
72 |
|
73 private: |
|
74 /** |
|
75 * Constructor for performing 1st stage construction |
|
76 */ |
|
77 CHsHFPProfile(); |
|
78 |
|
79 /** |
|
80 * Constructor for performing 2nd stage construction |
|
81 */ |
|
82 void ContructL(); |
|
83 |
|
84 private: |
|
85 /** AT command handler. Owned */ |
|
86 CHsHFPDataHandler* iDataHandler; |
|
87 |
|
88 /** HFP setting. Not owned */ |
|
89 CHsHFPSettings* iSettings; |
|
90 }; |
|
91 |
|
92 #endif // HFPPROFILEPLUGIN_H |