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 * Call setup at conference state implementation. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONECONFERENCEANDCALLSETUP_H |
|
21 #define CPHONECONFERENCEANDCALLSETUP_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "cphoneconference.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * Call setup at conference state implementation. |
|
31 */ |
|
32 class CPhoneConferenceAndCallSetup : public CPhoneConference |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Destructor. |
|
38 */ |
|
39 virtual ~CPhoneConferenceAndCallSetup(); |
|
40 |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Creates the Conference And Call Setup state class |
|
45 * @param aStateMachine: a container of state objects |
|
46 * @param aViewCommandHandle: handle to the PhoneUIView |
|
47 * @return an instance of class CPhoneStateIncoming |
|
48 */ |
|
49 static CPhoneConferenceAndCallSetup* NewL( |
|
50 MPhoneStateMachine* aStateMachine, |
|
51 MPhoneViewCommandHandle* aViewCommandHandle, |
|
52 MPhoneCustomization* aPhoneCustomization ); |
|
53 |
|
54 /** |
|
55 * A message handling function for Phone Engine messages |
|
56 * @param aMessage Message from Phone Engine |
|
57 * @param aCallId Call id the message concerns |
|
58 */ |
|
59 virtual void HandlePhoneEngineMessageL( |
|
60 const TInt aMessage, |
|
61 TInt aCallId ); |
|
62 |
|
63 virtual TBool HandleCommandL( TInt aCommand ); |
|
64 |
|
65 virtual void HandleKeyMessageL( |
|
66 TPhoneKeyEventMessages aMessage, |
|
67 TKeyCode aCode ); |
|
68 |
|
69 protected: |
|
70 |
|
71 /** |
|
72 * By default EPOC constructor is private. |
|
73 */ |
|
74 CPhoneConferenceAndCallSetup( |
|
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 UpdateInCallCbaL(); |
|
87 |
|
88 |
|
89 private: |
|
90 |
|
91 /** |
|
92 * Handle EPEMessageConnecting |
|
93 */ |
|
94 void HandleConnectingL( TInt aCallId ); |
|
95 |
|
96 /** |
|
97 * Handle EPEMessageConnected |
|
98 */ |
|
99 void HandleConnectedL( TInt aCallId ); |
|
100 |
|
101 /** |
|
102 * A message handling function for EPEMessageIdle |
|
103 * @param aCallId: the call id of the call |
|
104 */ |
|
105 void HandleIdleL( TInt aCallId ); |
|
106 |
|
107 /** |
|
108 * Handle EPEMessageConferenceIdle |
|
109 */ |
|
110 void HandleConferenceIdleL(); |
|
111 |
|
112 private: |
|
113 |
|
114 /** |
|
115 * Status of ConferenceAndCallSetup alerting |
|
116 */ |
|
117 TBool iAlerting; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // CPHONECONFERENCEANDCALLSETUP_H |
|
122 |
|
123 // End of File |
|