|
1 /* |
|
2 * Copyright (c) 2006-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 call state implementation. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONECONFERENCEANDSINGLE_H |
|
21 #define CPHONECONFERENCEANDSINGLE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "cphoneconference.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * Conference and single call state implementation. |
|
31 */ |
|
32 class CPhoneConferenceAndSingle : public CPhoneConference |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Destructor. |
|
38 */ |
|
39 virtual ~CPhoneConferenceAndSingle(); |
|
40 |
|
41 /** |
|
42 * Creates the Conference And Single 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 CPhoneConferenceAndSingle* 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 TBool HandleCommandL( TInt aCommand ); |
|
62 |
|
63 virtual void HandleKeyMessageL( |
|
64 TPhoneKeyEventMessages aMessage, |
|
65 TKeyCode aCode ); |
|
66 |
|
67 |
|
68 protected: |
|
69 |
|
70 /** |
|
71 * By default EPOC constructor is private. |
|
72 */ |
|
73 CPhoneConferenceAndSingle( |
|
74 MPhoneStateMachine* aStateMachine, |
|
75 MPhoneViewCommandHandle* aViewCommandHandle, |
|
76 MPhoneCustomization* aPhoneCustomization ); |
|
77 |
|
78 /** |
|
79 * ConstructL() |
|
80 */ |
|
81 virtual void ConstructL(); |
|
82 |
|
83 virtual void OpenMenuBarL(); |
|
84 |
|
85 virtual void UpdateInCallCbaL(); |
|
86 |
|
87 virtual void HandleIncomingL( TInt aCallId ); |
|
88 |
|
89 virtual void HandleIdleL( TInt aCallId ); |
|
90 |
|
91 virtual void HandleConferenceIdleL(); |
|
92 |
|
93 |
|
94 private: |
|
95 |
|
96 void HandleConnectedConferenceL(); |
|
97 |
|
98 void HandleHeldConferenceL(); |
|
99 |
|
100 void HandleConnectedL( TInt aCallId ); |
|
101 |
|
102 void HandleHeldL( TInt aCallId ); |
|
103 |
|
104 void JoinToConferenceL(); |
|
105 |
|
106 void HandleAddedConferenceMemberL( TInt aCallId ); |
|
107 |
|
108 void HandleSendL(); |
|
109 |
|
110 }; |
|
111 |
|
112 #endif // CPHONECONFERENCEANDSINGLE_H |
|
113 |
|
114 // End of File |