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 * Two single calls and waiting call state implementation. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONETWOSINGLESANDWAITING_H |
|
21 #define CPHONETWOSINGLESANDWAITING_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "cphonetwosingles.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * Two single calls and waiting call state |
|
31 */ |
|
32 class CPhoneTwoSinglesAndWaiting : public CPhoneTwoSingles |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Destructor. |
|
38 */ |
|
39 virtual ~CPhoneTwoSinglesAndWaiting(); |
|
40 |
|
41 /** |
|
42 * Creates the Two Singles And Waiting state class |
|
43 * @param aStateMachine: a state machine |
|
44 * @param aViewCommandHandle: handle to the PhoneUIView |
|
45 * @return an instance of class CPhoneSingleAndAlerting |
|
46 */ |
|
47 static CPhoneTwoSinglesAndWaiting* NewL( |
|
48 MPhoneStateMachine* aStateMachine, |
|
49 MPhoneViewCommandHandle* aViewCommandHandle, |
|
50 MPhoneCustomization* aPhoneCustomization ); |
|
51 |
|
52 virtual void HandleKeyMessageL( |
|
53 TPhoneKeyEventMessages aMessage, |
|
54 TKeyCode aCode ); |
|
55 |
|
56 virtual void HandleKeyEventL( |
|
57 const TKeyEvent& aKeyEvent, |
|
58 TEventCode aEventCode ); |
|
59 |
|
60 /** |
|
61 * A message handling function for Phone Engine messages |
|
62 * @param aMessage Message from Phone Engine |
|
63 * @param aCallId Call id the message concerns |
|
64 */ |
|
65 virtual void HandlePhoneEngineMessageL( |
|
66 const TInt aMessage, |
|
67 TInt aCallId ); |
|
68 |
|
69 /** |
|
70 * HandleError |
|
71 * Implements error handling framework |
|
72 * @param aErrorInfo: the error info |
|
73 */ |
|
74 IMPORT_C virtual void HandleErrorL( |
|
75 const TPEErrorInfo& aErrorInfo ); |
|
76 |
|
77 /** |
|
78 * Handles user selected UI commands. |
|
79 * @param aCommand - selected command |
|
80 */ |
|
81 TBool HandleCommandL( TInt aCommand ); |
|
82 |
|
83 protected: |
|
84 |
|
85 /** |
|
86 * By default EPOC constructor is private. |
|
87 */ |
|
88 CPhoneTwoSinglesAndWaiting( |
|
89 MPhoneStateMachine* aStateMachine, |
|
90 MPhoneViewCommandHandle* aViewCommandHandle, |
|
91 MPhoneCustomization* aPhoneCustomization ); |
|
92 |
|
93 /** |
|
94 * ConstructL() |
|
95 */ |
|
96 virtual void ConstructL(); |
|
97 |
|
98 /** |
|
99 * Open menu bar |
|
100 */ |
|
101 virtual void OpenMenuBarL(); |
|
102 |
|
103 virtual void HandleConnectedConferenceL( TInt aCallId ); |
|
104 |
|
105 virtual void UpdateInCallCbaL(); |
|
106 |
|
107 private: |
|
108 |
|
109 void HandleIdleL( TInt aCallId ); |
|
110 |
|
111 void StateTransitionToTwoSinglesL(); |
|
112 |
|
113 void StateTransitionToSingleAndWaitingL(); |
|
114 |
|
115 /** |
|
116 * Handle state-specific behaviour when number entry is cleared |
|
117 */ |
|
118 void HandleNumberEntryClearedL(); |
|
119 |
|
120 /** |
|
121 * Handles received EPhoneCmdUpdateUiControls command. |
|
122 */ |
|
123 void UpdateUiControlsL(); |
|
124 |
|
125 // call id of ringing call |
|
126 TInt iRingingCallId; |
|
127 }; |
|
128 |
|
129 #endif // CPHONETWOSINGLESANDWAITING_H |
|
130 |
|
131 // End of File |
|