author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 72 | c76a0b1755b9 |
child 76 | cfea66083b62 |
permissions | -rw-r--r-- |
37 | 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 |
* Incoming state implementation. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
#ifndef CPHONESTATEINCOMING |
|
21 |
#define CPHONESTATEINCOMING |
|
22 |
||
23 |
// INCLUDES |
|
24 |
#include "cphonestate.h" |
|
25 |
||
26 |
// FORWARD DECLARATIONS |
|
27 |
class TPhoneCmdParamCallStateData; |
|
28 |
||
29 |
// CLASS DECLARATION |
|
30 |
/** |
|
31 |
* Incoming state |
|
32 |
*/ |
|
33 |
class CPhoneStateIncoming : public CPhoneState |
|
34 |
{ |
|
35 |
public: |
|
36 |
||
37 |
/** |
|
38 |
* Destructor. |
|
39 |
*/ |
|
40 |
IMPORT_C virtual ~CPhoneStateIncoming(); |
|
41 |
||
42 |
/** |
|
43 |
* Creates the Incoming state class |
|
44 |
* @param aStateMachine: a container of state objects |
|
45 |
* @param aViewCommandHandle: handle to the PhoneUIView |
|
46 |
* @return an instance of class CPhoneStateIncoming |
|
47 |
*/ |
|
48 |
static CPhoneStateIncoming* NewL( |
|
49 |
MPhoneStateMachine* aStateMachine, |
|
50 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
51 |
MPhoneCustomization* aPhoneCustomization ); |
|
52 |
||
53 |
IMPORT_C void HandleKeyMessageL( |
|
54 |
TPhoneKeyEventMessages aMessage, |
|
55 |
TKeyCode aCode ); |
|
56 |
||
57 |
IMPORT_C void HandleKeyEventL( |
|
58 |
const TKeyEvent& aKeyEvent, |
|
59 |
TEventCode aEventCode ); |
|
60 |
||
61 |
/** |
|
62 |
* A message handling function for Phone Engine messages |
|
63 |
* @param aMessage Message from Phone Engine |
|
64 |
* @param aCallId Call id the message concerns |
|
65 |
*/ |
|
66 |
IMPORT_C virtual void HandlePhoneEngineMessageL( |
|
67 |
const TInt aMessage, |
|
68 |
TInt aCallId ); |
|
69 |
||
70 |
IMPORT_C TBool HandleCommandL( TInt aCommand ); |
|
71 |
||
72 |
/** |
|
73 |
* Handle state-specific behaviour when number entry is cleared |
|
74 |
*/ |
|
75 |
IMPORT_C void HandleNumberEntryClearedL(); |
|
76 |
||
77 |
protected: |
|
78 |
||
79 |
/** |
|
80 |
* By default EPOC constructor is private. |
|
81 |
*/ |
|
82 |
IMPORT_C CPhoneStateIncoming( |
|
83 |
MPhoneStateMachine* aStateMachine, |
|
84 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
85 |
MPhoneCustomization* aPhoneCustomization ); |
|
86 |
||
87 |
/** |
|
88 |
* ConstructL() |
|
89 |
*/ |
|
90 |
IMPORT_C virtual void ConstructL(); |
|
91 |
||
92 |
||
93 |
/** |
|
94 |
* Audio play stopped handling |
|
95 |
*/ |
|
96 |
IMPORT_C virtual void HandleAudioPlayStoppedL(); |
|
97 |
||
98 |
private: // From CPhoneState |
|
99 |
||
100 |
/** |
|
101 |
* A message handling function for EPEMessageConnected |
|
102 |
* @param aCallId: the call id of the call |
|
103 |
*/ |
|
104 |
void HandleConnectedL( TInt aCallId ); |
|
105 |
||
106 |
/** |
|
107 |
* A message handling function for EPEMessageIdle |
|
108 |
* @param aCallId: the call id of the call |
|
109 |
*/ |
|
110 |
void HandleIdleL( TInt aCallId ); |
|
111 |
||
112 |
/** |
|
113 |
* Handles Send key or command, when pressed from the dialer |
|
114 |
*/ |
|
115 |
void HandleSendL(); |
|
116 |
||
117 |
/** |
|
118 |
* Open soft reject message editor |
|
119 |
*/ |
|
120 |
void OpenSoftRejectMessageL(); |
|
121 |
||
122 |
/** |
|
123 |
* Answer the MT call |
|
124 |
*/ |
|
125 |
void AnswerCallL(); |
|
126 |
||
127 |
/** |
|
128 |
* Disconnects the waiting call |
|
129 |
*/ |
|
130 |
void DisconnectWaitingCallL(); |
|
131 |
||
132 |
/** |
|
133 |
* Gets resource to use when number entry is open |
|
134 |
* @return resource id |
|
135 |
*/ |
|
136 |
TInt GetNumberEntryVisibleMenuBar(); |
|
137 |
||
138 |
/** |
|
139 |
* Gets resource to use when number entry is closed |
|
140 |
* @return resource id |
|
141 |
*/ |
|
142 |
TInt GetNumberEntryNotVisibleMenuBar(); |
|
143 |
||
144 |
/** |
|
145 |
* Show disconnected note |
|
146 |
*/ |
|
147 |
void ShowDisconnectingL( TInt aCallId ); |
|
148 |
||
149 |
/** |
|
150 |
* Update remote data and label to the call header. |
|
151 |
* @param aCallId - Call Id. |
|
152 |
*/ |
|
153 |
void UpdateRemoteInfoDataAndLabelL( |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
154 |
TInt aCallId ); |
37 | 155 |
|
156 |
protected: |
|
157 |
// call id of ringing call |
|
158 |
TInt iRingingCallId; |
|
159 |
||
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
160 |
// True if call is disconnected otherwise false |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
161 |
TBool iCallDisconnected; |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
72
diff
changeset
|
162 |
|
37 | 163 |
}; |
164 |
||
165 |
#endif // CPHONESTATEINCOMING |
|
166 |
||
167 |
// End of File |