1 /* |
|
2 * Copyright (c) 2005-2008 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 * Conference and single and waiting call state implementation. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONECONFERENCEANDSINGLEANDWAITING_H |
|
21 #define CPHONECONFERENCEANDSINGLEANDWAITING_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "cphoneconferenceandsingle.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * Conference and single and waiting call state implementation. |
|
31 */ |
|
32 class CPhoneConferenceAndSingleAndWaiting : public CPhoneConferenceAndSingle |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Destructor. |
|
38 */ |
|
39 virtual ~CPhoneConferenceAndSingleAndWaiting(); |
|
40 |
|
41 /** |
|
42 * Creates the Conference And 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 CPhoneConferenceAndSingleAndWaiting* 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 virtual void HandleKeyMessageL( |
|
62 TPhoneKeyEventMessages aMessage, |
|
63 TKeyCode aCode ); |
|
64 |
|
65 virtual void HandleKeyEventL( |
|
66 const TKeyEvent& aKeyEvent, |
|
67 TEventCode aEventCode ); |
|
68 |
|
69 protected: |
|
70 |
|
71 /** |
|
72 * By default EPOC constructor is private. |
|
73 */ |
|
74 CPhoneConferenceAndSingleAndWaiting( |
|
75 MPhoneStateMachine* aStateMachine, |
|
76 MPhoneViewCommandHandle* aViewCommandHandle, |
|
77 MPhoneCustomization* aPhoneCustomization ); |
|
78 |
|
79 /** |
|
80 * ConstructL() |
|
81 */ |
|
82 virtual void ConstructL(); |
|
83 |
|
84 virtual void OpenMenuBarL(); |
|
85 |
|
86 virtual void HandleIdleL( TInt aCallId ); |
|
87 |
|
88 virtual void HandleConferenceIdleL(); |
|
89 |
|
90 virtual void HandleAddedConferenceMemberL( TInt aCallId ); |
|
91 |
|
92 virtual void UpdateInCallCbaL(); |
|
93 |
|
94 |
|
95 private: |
|
96 |
|
97 void MakeStateTransitionToConferenceAndWaitingL( TInt aCallId ); |
|
98 |
|
99 void MakeStateTransitionToConferenceAndSingleL( TInt aCallId ); |
|
100 |
|
101 void MakeTransitionAccordingToActiveCallsL(); |
|
102 }; |
|
103 |
|
104 #endif // CPHONECONFERENCEANDSINGLEANDWAITING_H |
|
105 |
|
106 // End of File |
|