author | William Roberts <williamr@symbian.org> |
Wed, 15 Sep 2010 17:56:16 +0100 | |
changeset 68 | 82f96d64ae88 |
parent 56 | 5bcb308bd24d |
child 65 | 2a5d4ab426d3 |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2005-2009 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 |
* In call state implementation. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
#ifndef CPHONESTATEINCALL |
|
21 |
#define CPHONESTATEINCALL |
|
22 |
||
23 |
// INCLUDES |
|
24 |
#include "cphonestate.h" |
|
25 |
||
26 |
// FORWARD DECLARATIONS |
|
27 |
class CPhoneDtmfWaitCharTimer; |
|
28 |
||
29 |
// CLASS DECLARATION |
|
30 |
/** |
|
31 |
* In call state |
|
32 |
*/ |
|
33 |
class CPhoneStateInCall : public CPhoneState |
|
34 |
{ |
|
35 |
public: |
|
36 |
||
37 |
/** |
|
38 |
* Destructor. |
|
39 |
*/ |
|
40 |
IMPORT_C virtual ~CPhoneStateInCall(); |
|
41 |
||
42 |
/** |
|
43 |
* Creates the InCall state class |
|
44 |
* @param aStateMachine: a state machine |
|
45 |
* @param aViewCommandHandle: handle to the PhoneUIView |
|
46 |
* @return an instance of class CPhoneStateInCall |
|
47 |
*/ |
|
48 |
static CPhoneStateInCall* NewL( |
|
49 |
MPhoneStateMachine* aStateMachine, |
|
50 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
51 |
MPhoneCustomization* aCustomization ); |
|
52 |
||
53 |
IMPORT_C virtual void HandleKeyMessageL( |
|
54 |
TPhoneKeyEventMessages aMessage, |
|
55 |
TKeyCode aCode ); |
|
56 |
||
57 |
/** |
|
58 |
* A message handling function for Phone Engine messages |
|
59 |
* @param aMessage Message from Phone Engine |
|
60 |
* @param aCallId Call id the message concerns |
|
61 |
*/ |
|
62 |
IMPORT_C virtual void HandlePhoneEngineMessageL( |
|
63 |
const TInt aMessage, |
|
64 |
TInt aCallId ); |
|
65 |
||
66 |
IMPORT_C virtual TBool HandleCommandL( TInt aCommand ); |
|
67 |
||
68 |
protected: |
|
69 |
||
70 |
/** |
|
71 |
* Handle state-specific behaviour when number entry is cleared |
|
72 |
*/ |
|
73 |
IMPORT_C virtual void HandleNumberEntryClearedL(); |
|
74 |
||
75 |
/** |
|
76 |
* By default EPOC constructor is private. |
|
77 |
*/ |
|
78 |
IMPORT_C CPhoneStateInCall( |
|
79 |
MPhoneStateMachine* aStateMachine, |
|
80 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
81 |
MPhoneCustomization* aPhoneCustomization ); |
|
82 |
||
83 |
/** |
|
84 |
* ConstructL() |
|
85 |
*/ |
|
86 |
IMPORT_C virtual void ConstructL(); |
|
87 |
||
88 |
/** |
|
89 |
* Call number fetched from New call dialog |
|
90 |
* @param aFetchedNumber number fetched from the diaog |
|
91 |
*/ |
|
92 |
IMPORT_C virtual void CallFetchedNumberL( |
|
93 |
const TDesC& aFetchedNumber ); |
|
94 |
||
95 |
/** |
|
96 |
* Handle EPEMessageIdle |
|
97 |
*/ |
|
98 |
IMPORT_C void HandleIdleL( TInt aCallId ); |
|
99 |
||
100 |
/** |
|
101 |
* Method for quering is video call active. |
|
102 |
* @return ETrue if active otherwise EFalse |
|
103 |
*/ |
|
104 |
IMPORT_C virtual TBool IsVideoCallActiveL(); |
|
105 |
||
106 |
/** |
|
107 |
* Method for quering is video call ringing. |
|
108 |
* @return ETrue if ringing otherwise EFalse |
|
109 |
*/ |
|
110 |
IMPORT_C virtual TBool IsVideoCallRingingL(); |
|
111 |
||
112 |
/** |
|
113 |
* Method for quering ringing call . |
|
114 |
* @return call id otherwise KErrNotFound |
|
115 |
*/ |
|
116 |
IMPORT_C virtual TBool GetRingingCallL(); |
|
117 |
/** |
|
118 |
* Search and release outgoingcall |
|
119 |
*/ |
|
120 |
IMPORT_C void DisconnectOutgoingCallL(); |
|
121 |
||
122 |
/** |
|
123 |
* Upadated CBAs Incall case |
|
124 |
*/ |
|
125 |
IMPORT_C virtual void UpdateInCallCbaL(); |
|
126 |
||
127 |
||
128 |
/** |
|
129 |
* Upadated CBAs |
|
130 |
*/ |
|
131 |
IMPORT_C virtual void UpdateCbaL( TInt aResource ); |
|
132 |
||
133 |
/** |
|
134 |
* Close all dtmf dialogs |
|
135 |
*/ |
|
136 |
IMPORT_C void CloseDtmfQueryL(); |
|
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
137 |
|
37 | 138 |
|
139 |
private: // New functions |
|
140 |
||
141 |
/** |
|
142 |
* Handle EPEMessageAudioMuteChanged |
|
143 |
*/ |
|
144 |
void HandleAudioMuteChangedL(); |
|
145 |
||
146 |
/** |
|
147 |
* Handle EPEMessageAudioOutputChanged |
|
148 |
*/ |
|
149 |
void HandleAudioOutputChangedL(); |
|
150 |
||
151 |
/** |
|
152 |
* Handle EPEMessageAudioVolumeChanged |
|
153 |
*/ |
|
154 |
void HandleAudioVolumeChangedL(); |
|
155 |
||
156 |
/** |
|
157 |
* Handle EPEMessageSendingDTMF |
|
158 |
*/ |
|
159 |
void HandleSendingDTMFL(); |
|
160 |
||
161 |
/** |
|
162 |
* Handle EPEMessageStoppedDTMF |
|
163 |
*/ |
|
164 |
void HandleStoppedDTMFL(); |
|
165 |
||
166 |
/** |
|
167 |
* Handles EPEMessageDTMFSent |
|
168 |
* EPEMessageDTMFSendingAborted |
|
169 |
*/ |
|
170 |
void CancelDTMFSendingL(); |
|
171 |
||
172 |
/** |
|
173 |
* Sends DTMF sequence to Phone Engine |
|
174 |
*/ |
|
175 |
void SendDtmfL(); |
|
176 |
||
177 |
/** |
|
178 |
* Sends command to view for launching DTMF list query |
|
179 |
*/ |
|
180 |
void LaunchDtmfListQueryL(); |
|
181 |
||
182 |
/** |
|
183 |
* Sends command to view for 'Lock keypad' |
|
184 |
*/ |
|
185 |
void LockKeypadL(); |
|
186 |
||
187 |
/** |
|
188 |
* Update remote data and label to the call header. |
|
189 |
* @param aCallId - Call Id. |
|
190 |
* @param aCallHeaderData - Call header parameters where modifications |
|
191 |
* are made. |
|
192 |
*/ |
|
193 |
void UpdateRemoteInfoDataAndLabelL( |
|
194 |
TInt aCallId, |
|
195 |
TPhoneCmdParamCallHeaderData aCallHeaderParam ); |
|
196 |
||
197 |
/** |
|
198 |
* Show dtmf text query |
|
199 |
* @param aDialogResourceId dialog's resource id |
|
200 |
* @param aDefaultCbaResourceId default CBA's resource id |
|
201 |
* @param aContentCbaResourceId content CBA's resource id |
|
202 |
* @param aDataText pointer to data text |
|
203 |
* @param aSendKeyEnabled send key enabled status for the query |
|
204 |
*/ |
|
205 |
void ShowDtmfTextQueryL( |
|
206 |
TInt aDialogResourceId, |
|
207 |
TInt aDefaultCbaResourceId, |
|
208 |
TInt aContentCbaResourceId, |
|
209 |
TDes* aDataText, |
|
210 |
TBool aSendKeyEnabled = EFalse ); |
|
211 |
||
212 |
/** |
|
213 |
* Handles End key pressing (long/short). |
|
214 |
* @param aMessage - Key event from AVKON |
|
215 |
*/ |
|
216 |
void HandleEndKeyPressL( TPhoneKeyEventMessages aMessage ); |
|
217 |
||
218 |
/** |
|
219 |
* Handles Voice key pressing. |
|
220 |
* @param aMessage - Key event from AVKON |
|
221 |
*/ |
|
222 |
void HandleVoiceKeyPressL( TPhoneKeyEventMessages aMessage ); |
|
223 |
||
224 |
private: |
|
225 |
||
226 |
/** |
|
227 |
* Special timer for preventing recursive calls |
|
228 |
* which would otherwise occur with multiple |
|
229 |
* wait characters in a DTMF string. |
|
230 |
*/ |
|
231 |
CPhoneDtmfWaitCharTimer* iDtmfWaitCharTimer; |
|
232 |
||
233 |
||
234 |
}; |
|
235 |
||
236 |
#endif // CPHONESTATEINCALL |
|
237 |
||
238 |
// End of File |