1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Active single call with call setup and waiting calls state implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONESINGLEANDCALLSETUPANDWAITING_H |
|
21 #define CPHONESINGLEANDCALLSETUPANDWAITING_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "cphonegsmincall.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * Active single call with call setup and waiting calls state implementation. |
|
31 */ |
|
32 class CPhoneSingleAndCallSetupAndWaiting : public CPhoneGsmInCall |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Destructor. |
|
38 */ |
|
39 virtual ~CPhoneSingleAndCallSetupAndWaiting(); |
|
40 |
|
41 /** |
|
42 * Creates the Single And Call Setup And Waiting state class |
|
43 * @param aStateMachine: a container of state objects |
|
44 * @param aViewCommandHandle: handle to the PhoneUIView |
|
45 * @return an instance of class CPhoneStateIncoming |
|
46 */ |
|
47 static CPhoneSingleAndCallSetupAndWaiting* NewL( |
|
48 MPhoneStateMachine* aStateMachine, |
|
49 MPhoneViewCommandHandle* aViewCommandHandle, |
|
50 MPhoneCustomization* aPhoneCustomization ); |
|
51 |
|
52 /** |
|
53 * A message handling function for Phone Engine messages |
|
54 * @param aMessage Message from Phone Engine |
|
55 * @param aCallId Call id the message concerns |
|
56 */ |
|
57 virtual void HandlePhoneEngineMessageL( |
|
58 const TInt aMessage, |
|
59 TInt aCallId ); |
|
60 |
|
61 TBool HandleCommandL( TInt aCommand ); |
|
62 |
|
63 virtual void HandleKeyMessageL( |
|
64 TPhoneKeyEventMessages aMessage, |
|
65 TKeyCode aCode ); |
|
66 |
|
67 |
|
68 protected: |
|
69 |
|
70 /** |
|
71 * By default EPOC constructor is private. |
|
72 */ |
|
73 CPhoneSingleAndCallSetupAndWaiting( |
|
74 MPhoneStateMachine* aStateMachine, |
|
75 MPhoneViewCommandHandle* aViewCommandHandle, |
|
76 MPhoneCustomization* aPhoneCustomization ); |
|
77 |
|
78 /** |
|
79 * ConstructL() |
|
80 */ |
|
81 virtual void ConstructL(); |
|
82 |
|
83 /** |
|
84 * Open menu bar |
|
85 */ |
|
86 virtual void OpenMenuBarL(); |
|
87 |
|
88 virtual void UpdateInCallCbaL(); |
|
89 |
|
90 private: |
|
91 |
|
92 /** |
|
93 * Handles EPEMessageIdle |
|
94 */ |
|
95 void HandleIdleL( TInt aCallId ); |
|
96 |
|
97 /** |
|
98 * Handles EPEMessageConnecting |
|
99 */ |
|
100 void HandleConnectingL( TInt aCallId ); |
|
101 |
|
102 /** |
|
103 * Handles EPEMessageConnected |
|
104 */ |
|
105 void HandleConnectedL( TInt aCallId ); |
|
106 |
|
107 /** |
|
108 * State transition to state Call Setup and Waiting |
|
109 */ |
|
110 void StateChangeToCallSetupAndWaitingL( TInt aCallId ); |
|
111 |
|
112 /** |
|
113 * State transition to state Single and Waiting |
|
114 */ |
|
115 void StateChangeToSingleAndWaitingL( TInt aCallId ); |
|
116 |
|
117 /** |
|
118 * State transition to state Single and Alerting |
|
119 */ |
|
120 void StateChangeToSingleAndAlertingL( TInt aCallId ); |
|
121 |
|
122 /** |
|
123 * State transition to state Two Singles. |
|
124 */ |
|
125 void StateChangeToTwoSinglesL( TInt aCallId ); |
|
126 |
|
127 /** |
|
128 * State transition to state Two Singles and Waiting |
|
129 */ |
|
130 void StateChangeToTwoSinglesAndWaitingL( TInt aCallId ); |
|
131 |
|
132 void HandleAudioMuteChangedL(); |
|
133 |
|
134 private: |
|
135 |
|
136 /** |
|
137 * Status of SingleAndCallSetupAndWaiting alerting |
|
138 */ |
|
139 TBool iAlerting; |
|
140 |
|
141 /** |
|
142 * Waiting call id |
|
143 */ |
|
144 TInt iWaitingCallId; |
|
145 |
|
146 }; |
|
147 |
|
148 #endif // CPHONESINGLEANDCALLSETUPANDWAITING_H |
|
149 |
|
150 // End of File |
|