|
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 HFPCALLTERMINATEPROC_H_ |
|
20 #define HFPCALLTERMINATEPROC_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "hfpfeaturecommons.h" |
|
25 |
|
26 class CHsHFPCommand; |
|
27 class CHsHFPSettings; |
|
28 |
|
29 /** |
|
30 * @brief Represents "Terminate a call" feature |
|
31 */ |
|
32 class CHsHFPCallTerminationProc : public CBase, public MHsHFPProcedureCommons |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Two-phased constructor. |
|
37 * |
|
38 * @param aObserver feature observer |
|
39 * |
|
40 * @return instance of class |
|
41 */ |
|
42 static CHsHFPCallTerminationProc* NewL( |
|
43 MHsHFPFeatureProviderObserver* aObserver); |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * |
|
48 * @param aObserver feature observer |
|
49 * |
|
50 * @return instance of class |
|
51 */ |
|
52 static CHsHFPCallTerminationProc* NewLC( |
|
53 MHsHFPFeatureProviderObserver* aObserver); |
|
54 |
|
55 /** |
|
56 * Destructor |
|
57 */ |
|
58 ~CHsHFPCallTerminationProc(); |
|
59 |
|
60 public: |
|
61 //Methods inherited from MHsHFPProcedureCommons |
|
62 TInt ProcessCommand(const CHsHFPCommand &aInputCmd, |
|
63 CHsHFPCommand &aOutputCmd); |
|
64 |
|
65 private: |
|
66 /** |
|
67 * Constructor for performing 1st stage construction |
|
68 * |
|
69 * @param aObserver feature observer |
|
70 */ |
|
71 CHsHFPCallTerminationProc(MHsHFPFeatureProviderObserver* aObserver); |
|
72 |
|
73 /** |
|
74 * Constructor for performing 2nd stage construction |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 /** |
|
79 * Checks if received CIEV is proper |
|
80 * |
|
81 * @param aCommand AT command |
|
82 */ |
|
83 TBool IsProperCIEV(const CHsHFPCommand* aCommand); |
|
84 |
|
85 private: |
|
86 /** Pointer to observer */ |
|
87 MHsHFPFeatureProviderObserver* iObserver; |
|
88 |
|
89 /** Denotes if OK command is expected */ |
|
90 TBool iWaitingForOK; |
|
91 |
|
92 /** Denotes if CIEV command is expected */ |
|
93 TBool iWaitingForCIEV; |
|
94 |
|
95 /** Profile setting */ |
|
96 CHsHFPSettings* iSettings; |
|
97 }; |
|
98 |
|
99 #endif /* HFPCALLTERMINATEPROC_H_ */ |