37
|
1 |
/*
|
|
2 |
* Copyright (c) 2008-2009 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: Voice call continuity (VCC)-specific class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef C_CPHONEVCCHANDLER_H
|
|
19 |
#define C_CPHONEVCCHANDLER_H
|
|
20 |
|
|
21 |
// INCLUDES
|
|
22 |
#include <telmenuextension.h>
|
|
23 |
#include <vccuipspropertylistener.h>
|
|
24 |
|
|
25 |
// FORWARD DECLARATIONS
|
|
26 |
class MPhoneStateMachine;
|
|
27 |
class MPhoneViewCommandHandle;
|
|
28 |
class CPhoneTimer;
|
|
29 |
class CEikMenuPane;
|
|
30 |
|
|
31 |
// CLASS DECLARATION
|
|
32 |
/**
|
|
33 |
* VoIP vcc-specific class
|
|
34 |
*/
|
|
35 |
NONSHARABLE_CLASS( CPhoneVccHandler ): public CBase,
|
|
36 |
public MVccPsPropertyListenerObserver
|
|
37 |
{
|
|
38 |
public:
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Destructor.
|
|
42 |
*/
|
|
43 |
virtual ~CPhoneVccHandler();
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Creates the VCC-specific VoIP class
|
|
47 |
* @param aStateMachine: a container of state objects
|
|
48 |
* @param aViewCommandHandle: handle to the PhoneUIView
|
|
49 |
* @return an instance of class CPhoneVccHandler
|
|
50 |
*/
|
|
51 |
static CPhoneVccHandler* NewL(
|
|
52 |
MPhoneStateMachine& aStateMachine,
|
|
53 |
MPhoneViewCommandHandle& aViewCommandHandle );
|
|
54 |
|
|
55 |
/**
|
|
56 |
* StartManualHandover
|
|
57 |
* @param aCommand a command parameter
|
|
58 |
*/
|
|
59 |
void StartManualHandoverL( TInt aCommand );
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Adds Manual Handover menu item to menu.
|
|
63 |
* @param aArray Active call array.
|
|
64 |
* @param aResourceId Menu bar resource identifier.
|
|
65 |
* @param aMenuPane Menu pane.
|
|
66 |
*/
|
|
67 |
void AddHandoverMenuItemL(
|
|
68 |
RArray<CTelMenuExtension::TCallInfo>& aArray,
|
|
69 |
TInt aResourceId,
|
|
70 |
CEikMenuPane& aMenuPane );
|
|
71 |
|
|
72 |
protected:
|
|
73 |
|
|
74 |
CPhoneVccHandler(
|
|
75 |
MPhoneStateMachine& aStateMachine,
|
|
76 |
MPhoneViewCommandHandle& aViewCommandHandle );
|
|
77 |
|
|
78 |
void ConstructL();
|
|
79 |
|
|
80 |
private:
|
|
81 |
|
|
82 |
/**
|
|
83 |
* StartHandoverNoteTimerL
|
|
84 |
*/
|
|
85 |
void StartHandoverNoteTimerL();
|
|
86 |
|
|
87 |
/**
|
|
88 |
* CancelHandoverNoteTimer if running
|
|
89 |
*/
|
|
90 |
void CancelHandoverNoteTimerL();
|
|
91 |
|
|
92 |
/**
|
|
93 |
* Callback function for launching Handover wait note
|
|
94 |
* This is called when HO note timer timeout is
|
|
95 |
* reached
|
|
96 |
* @param aAny - not used
|
|
97 |
*/
|
|
98 |
static TInt HandoverNoteTimerCallbackL( TAny* aAny );
|
|
99 |
|
|
100 |
/**
|
|
101 |
* StartHandoverNoteTimerL
|
|
102 |
*/
|
|
103 |
void RemoveHandoverNoteL();
|
|
104 |
|
|
105 |
/**
|
|
106 |
* HandoverInProgressNote
|
|
107 |
* @param aCommand a command parameter
|
|
108 |
*/
|
|
109 |
void HandoverInProgressNoteL( TInt aCommand );
|
|
110 |
|
|
111 |
// From MVccPsPropertyListenerObserver
|
|
112 |
/**
|
|
113 |
* Gets called when PS key is changed
|
|
114 |
* @param aKeyId
|
|
115 |
* @param aValue
|
|
116 |
**/
|
|
117 |
void VccPropertyChangedL( const TUint aKeyId,
|
|
118 |
const TInt aValue );
|
|
119 |
|
|
120 |
/**
|
|
121 |
* returns notification tone mode (off=0 or on=1), or 0 in error situations
|
|
122 |
*/
|
|
123 |
TInt GetHoNotifToneModeL();
|
|
124 |
|
|
125 |
/**
|
|
126 |
* GetVccServiceIdL
|
|
127 |
*/
|
|
128 |
TInt GetVccServiceIdL();
|
|
129 |
|
|
130 |
private: // Data
|
|
131 |
|
|
132 |
/**
|
|
133 |
* Interface for setting and getting active state
|
|
134 |
*/
|
|
135 |
MPhoneStateMachine& iStateMachine;
|
|
136 |
|
|
137 |
/**
|
|
138 |
* Reference to the Phone UI View command handle
|
|
139 |
*/
|
|
140 |
MPhoneViewCommandHandle& iViewCommandHandle;
|
|
141 |
|
|
142 |
// Timer.
|
|
143 |
CPhoneTimer* iHandoverNoteTimer;
|
|
144 |
|
|
145 |
// Handover is ready
|
|
146 |
TBool iVccHoReady;
|
|
147 |
|
|
148 |
// Handover not available
|
|
149 |
TBool iVccUnavailable;
|
|
150 |
|
|
151 |
// Handover allowed WLAN to GSM
|
|
152 |
TBool iVccHoAllowedToGsm;
|
|
153 |
|
|
154 |
// Handover allowed GSM to WLAN
|
|
155 |
TBool iVccHoAllowedToWlan;
|
|
156 |
|
|
157 |
// Handover not allowed if multicall
|
|
158 |
TBool iNoHoIfMultiCall;
|
|
159 |
|
|
160 |
// Listens for the hand-over commands
|
|
161 |
CVccUiPsPropertyListener* iPropListener;
|
|
162 |
};
|
|
163 |
|
|
164 |
#endif // C_CPHONEVCCHANDLER_H
|
|
165 |
|
|
166 |
// End of File
|