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