author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 56 | 5bcb308bd24d |
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 |
* Single And Waiting state implementation. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
#ifndef CPHONESINGLEANDWAITING_H |
|
21 |
#define CPHONESINGLEANDWAITING_H |
|
22 |
||
23 |
// INCLUDES |
|
24 |
#include "cphonegsmincall.h" |
|
25 |
||
26 |
// FORWARD DECLARATIONS |
|
27 |
||
28 |
// CLASS DECLARATION |
|
29 |
/** |
|
30 |
* Incoming call at single state implementation. |
|
31 |
*/ |
|
32 |
class CPhoneSingleAndWaiting : public CPhoneGsmInCall |
|
33 |
{ |
|
34 |
public: |
|
35 |
||
36 |
/** |
|
37 |
* Destructor. |
|
38 |
*/ |
|
39 |
virtual ~CPhoneSingleAndWaiting(); |
|
40 |
||
41 |
/** |
|
42 |
* Creates the Single 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 CPhoneSingleAndWaiting* 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 |
/** |
|
62 |
* Handles user selected UI commands. |
|
63 |
* @param aCommand - selected command |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
64 |
*/ |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
65 |
TBool HandleCommandL( TInt aCommand ); |
37 | 66 |
|
67 |
protected: |
|
68 |
||
69 |
/** |
|
70 |
* By default constructor is private. |
|
71 |
*/ |
|
72 |
CPhoneSingleAndWaiting( |
|
73 |
MPhoneStateMachine* aStateMachine, |
|
74 |
MPhoneViewCommandHandle* aViewCommandHandle, |
|
75 |
MPhoneCustomization* aPhoneCustomization ); |
|
76 |
||
77 |
/** |
|
78 |
* HandleError |
|
79 |
* Implements error handling framework |
|
80 |
* @param aErrorInfo: the error info |
|
81 |
*/ |
|
82 |
IMPORT_C virtual void HandleErrorL( |
|
83 |
const TPEErrorInfo& aErrorInfo ); |
|
84 |
||
85 |
/** |
|
86 |
* ConstructL() |
|
87 |
*/ |
|
88 |
virtual void ConstructL(); |
|
89 |
||
90 |
/** |
|
91 |
* Handles key messages. |
|
92 |
* @param aMessage - key event message |
|
93 |
* @param aScanCode - standard Symbian scan code |
|
94 |
*/ |
|
95 |
virtual void HandleKeyMessageL( |
|
96 |
TPhoneKeyEventMessages aMessage, |
|
97 |
TKeyCode aCode ); |
|
98 |
||
99 |
private: |
|
100 |
||
101 |
/** |
|
102 |
* Unholds the call. |
|
103 |
* @param aCallId - call id to unhold |
|
104 |
*/ |
|
105 |
void HandleUnholdL( TInt aCallId ); |
|
106 |
||
107 |
/** |
|
108 |
* Performs a state transition to Two Singles. |
|
109 |
* @param aCallId - call id that got connected |
|
110 |
*/ |
|
111 |
void MakeStateTransitionToTwoSinglesL( TInt aCallId ); |
|
112 |
||
113 |
/** |
|
114 |
* Handles received idle message from Phone Engine. |
|
115 |
* @param aCallId - call id that received the event |
|
116 |
*/ |
|
117 |
void HandleIdleL( TInt aCallId ); |
|
118 |
||
119 |
/** |
|
120 |
* Handles received held message from Phone Engine. |
|
121 |
* @param aCallId - call id that received the event |
|
122 |
*/ |
|
123 |
void HandleHeldL( TInt aCallId ); |
|
124 |
||
125 |
/** |
|
126 |
* Handles received connected message from Phone Engine. |
|
127 |
* @param aCallId - call id that received the event |
|
128 |
*/ |
|
129 |
void HandleConnectedL( TInt aCallId ); |
|
130 |
||
131 |
/** |
|
132 |
* Handles received dialing message from Phone Engine. |
|
133 |
* @param aCallId - call id that received the event |
|
134 |
*/ |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
135 |
void HandleDialingL( TInt aCallId ); |
37 | 136 |
|
137 |
/** |
|
138 |
* Handles received EPEMessageDisconnecting message from Phone Engine. |
|
139 |
* @param aCallId: the call id of the call |
|
140 |
*/ |
|
141 |
void HandleDisconnectingL( TInt aCallId ); |
|
142 |
||
143 |
/** |
|
144 |
* Handles received EPhoneCmdUpdateUiControls command. |
|
145 |
*/ |
|
146 |
void UpdateUiControlsL(); |
|
147 |
||
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
148 |
/** |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
149 |
* Updates call bubble and ui commands |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
150 |
*/ |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
151 |
void UpdateBubbleAndUICommandsL( TInt aCallId ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
152 |
|
37 | 153 |
private: //Data |
154 |
||
155 |
// Store single call id |
|
156 |
TInt iSingleCallId; |
|
157 |
||
158 |
}; |
|
159 |
||
160 |
#endif // CPHONESINGLEANDWAITING_H |
|
161 |
||
162 |
// End of File |