24
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#include "ccallcontroldispatcher.h"
|
|
17 |
|
|
18 |
#include <ctsy/ltsy/mltsydispatchcallcontrolinterface.h>
|
|
19 |
#include <ctsy/pluginapi/mmmessagemanagercallback.h>
|
|
20 |
#include <ctsy/serviceapi/mmtsy_ipcdefs.h>
|
|
21 |
|
|
22 |
#include <ctsy/ltsy/ltsylogger.h>
|
|
23 |
#include "ctsydispatcherpanic.h"
|
|
24 |
#include "tdispatcherholder.h"
|
|
25 |
#include "csatdispatcher.h"
|
|
26 |
|
|
27 |
CCallControlDispatcher::CCallControlDispatcher(
|
|
28 |
MLtsyDispatchFactoryV1& aLtsyFactory,
|
|
29 |
MmMessageManagerCallback& aMessageManagerCallback,
|
|
30 |
CRequestQueueOneShot& aRequestAsyncOneShot)
|
|
31 |
: iLtsyFactoryV1(aLtsyFactory),
|
|
32 |
iMessageManagerCallback(aMessageManagerCallback),
|
|
33 |
iRequestAsyncOneShot(aRequestAsyncOneShot),
|
|
34 |
iFoundDtmfStop(EFalse), iModeUsedForVoiceCallDial(RMobilePhone::EServiceUnspecified),
|
|
35 |
iFdnCheckPerformed(EFalse),iSwapCallId(KInvalidCallId),
|
|
36 |
iSecondSwapCallId(KInvalidCallId),iTransferHeldCallId(KInvalidCallId),
|
|
37 |
iTransferSecondCallId(KInvalidCallId)
|
|
38 |
{
|
|
39 |
iDtmfString.Zero();
|
|
40 |
} // CCallControlDispatcher::CCallControlDispatcher
|
|
41 |
|
|
42 |
|
|
43 |
CCallControlDispatcher::~CCallControlDispatcher()
|
|
44 |
{
|
|
45 |
} // CCallControlDispatcher::~CCallControlDispatcher
|
|
46 |
|
|
47 |
|
|
48 |
CCallControlDispatcher* CCallControlDispatcher::NewLC(
|
|
49 |
MLtsyDispatchFactoryV1& aLtsyFactory,
|
|
50 |
MmMessageManagerCallback& aMessageManagerCallback,
|
|
51 |
CRequestQueueOneShot& aRequestAsyncOneShot)
|
|
52 |
{
|
|
53 |
TSYLOGENTRYEXIT;
|
|
54 |
CCallControlDispatcher* self =
|
|
55 |
new (ELeave) CCallControlDispatcher(aLtsyFactory, aMessageManagerCallback, aRequestAsyncOneShot);
|
|
56 |
CleanupStack::PushL(self);
|
|
57 |
self->ConstructL();
|
|
58 |
return self;
|
|
59 |
} // CCallControlDispatcher::NewLC
|
|
60 |
|
|
61 |
|
|
62 |
CCallControlDispatcher* CCallControlDispatcher::NewL(
|
|
63 |
MLtsyDispatchFactoryV1& aLtsyFactory,
|
|
64 |
MmMessageManagerCallback& aMessageManagerCallback,
|
|
65 |
CRequestQueueOneShot& aRequestAsyncOneShot)
|
|
66 |
{
|
|
67 |
TSYLOGENTRYEXIT;
|
|
68 |
CCallControlDispatcher* self =
|
|
69 |
CCallControlDispatcher::NewLC(aLtsyFactory, aMessageManagerCallback, aRequestAsyncOneShot);
|
|
70 |
CleanupStack::Pop (self);
|
|
71 |
return self;
|
|
72 |
} // CCallControlDispatcher::NewL
|
|
73 |
|
|
74 |
|
|
75 |
void CCallControlDispatcher::ConstructL()
|
|
76 |
/**
|
|
77 |
* Second phase constructor.
|
|
78 |
*/
|
|
79 |
{
|
|
80 |
TSYLOGENTRYEXIT;
|
|
81 |
|
|
82 |
// Get the Licensee LTSY interfaces related to CallControl functionality
|
|
83 |
// from the factory
|
|
84 |
|
|
85 |
|
|
86 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlAnswer::KLtsyDispatchCallControlAnswerApiId))
|
|
87 |
{
|
|
88 |
TAny* answerInterface = NULL;
|
|
89 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
90 |
MLtsyDispatchCallControlAnswer::KLtsyDispatchCallControlAnswerApiId,
|
|
91 |
answerInterface);
|
|
92 |
iLtsyDispatchCallControlAnswer =
|
|
93 |
static_cast<MLtsyDispatchCallControlAnswer*>(answerInterface);
|
|
94 |
__ASSERT_DEBUG(iLtsyDispatchCallControlAnswer, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
95 |
}
|
|
96 |
|
|
97 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlHold::KLtsyDispatchCallControlHoldApiId))
|
|
98 |
{
|
|
99 |
TAny* holdInterface = NULL;
|
|
100 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
101 |
MLtsyDispatchCallControlHold::KLtsyDispatchCallControlHoldApiId,
|
|
102 |
holdInterface);
|
|
103 |
iLtsyDispatchCallControlHold =
|
|
104 |
static_cast<MLtsyDispatchCallControlHold*>(holdInterface);
|
|
105 |
__ASSERT_DEBUG(iLtsyDispatchCallControlHold, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
106 |
}
|
|
107 |
|
|
108 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlDialEmergency::KLtsyDispatchCallControlDialEmergencyApiId))
|
|
109 |
{
|
|
110 |
TAny* dialEmergencyInterface = NULL;
|
|
111 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
112 |
MLtsyDispatchCallControlDialEmergency::KLtsyDispatchCallControlDialEmergencyApiId,
|
|
113 |
dialEmergencyInterface);
|
|
114 |
iLtsyDispatchCallControlDialEmergency =
|
|
115 |
static_cast<MLtsyDispatchCallControlDialEmergency*>(dialEmergencyInterface);
|
|
116 |
__ASSERT_DEBUG(iLtsyDispatchCallControlDialEmergency, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
117 |
}
|
|
118 |
|
|
119 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlStopDtmfTone::KLtsyDispatchCallControlStopDtmfToneApiId))
|
|
120 |
{
|
|
121 |
TAny* stopDtmfToneInterface = NULL;
|
|
122 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
123 |
MLtsyDispatchCallControlStopDtmfTone::KLtsyDispatchCallControlStopDtmfToneApiId,
|
|
124 |
stopDtmfToneInterface);
|
|
125 |
iLtsyDispatchCallControlStopDtmfTone =
|
|
126 |
static_cast<MLtsyDispatchCallControlStopDtmfTone*>(stopDtmfToneInterface);
|
|
127 |
__ASSERT_DEBUG(iLtsyDispatchCallControlStopDtmfTone, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
128 |
}
|
|
129 |
|
|
130 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlSetActiveAlsLine::KLtsyDispatchCallControlSetActiveAlsLineApiId))
|
|
131 |
{
|
|
132 |
TAny* setActiveAlsLineInterface = NULL;
|
|
133 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
134 |
MLtsyDispatchCallControlSetActiveAlsLine::KLtsyDispatchCallControlSetActiveAlsLineApiId,
|
|
135 |
setActiveAlsLineInterface);
|
|
136 |
iLtsyDispatchCallControlSetActiveAlsLine =
|
|
137 |
static_cast<MLtsyDispatchCallControlSetActiveAlsLine*>(setActiveAlsLineInterface);
|
|
138 |
__ASSERT_DEBUG(iLtsyDispatchCallControlSetActiveAlsLine, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
139 |
}
|
|
140 |
|
|
141 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlSendDtmfTonesCancel::KLtsyDispatchCallControlSendDtmfTonesCancelApiId))
|
|
142 |
{
|
|
143 |
TAny* sendDtmfTonesCancelInterface = NULL;
|
|
144 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
145 |
MLtsyDispatchCallControlSendDtmfTonesCancel::KLtsyDispatchCallControlSendDtmfTonesCancelApiId,
|
|
146 |
sendDtmfTonesCancelInterface);
|
|
147 |
iLtsyDispatchCallControlSendDtmfTonesCancel =
|
|
148 |
static_cast<MLtsyDispatchCallControlSendDtmfTonesCancel*>(sendDtmfTonesCancelInterface);
|
|
149 |
__ASSERT_DEBUG(iLtsyDispatchCallControlSendDtmfTonesCancel, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
150 |
}
|
|
151 |
|
|
152 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlHangUp::KLtsyDispatchCallControlHangUpApiId))
|
|
153 |
{
|
|
154 |
TAny* hangUpInterface = NULL;
|
|
155 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
156 |
MLtsyDispatchCallControlHangUp::KLtsyDispatchCallControlHangUpApiId,
|
|
157 |
hangUpInterface);
|
|
158 |
iLtsyDispatchCallControlHangUp =
|
|
159 |
static_cast<MLtsyDispatchCallControlHangUp*>(hangUpInterface);
|
|
160 |
__ASSERT_DEBUG(iLtsyDispatchCallControlHangUp, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
161 |
}
|
|
162 |
|
|
163 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlResume::KLtsyDispatchCallControlResumeApiId))
|
|
164 |
{
|
|
165 |
TAny* resumeInterface = NULL;
|
|
166 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
167 |
MLtsyDispatchCallControlResume::KLtsyDispatchCallControlResumeApiId,
|
|
168 |
resumeInterface);
|
|
169 |
iLtsyDispatchCallControlResume =
|
|
170 |
static_cast<MLtsyDispatchCallControlResume*>(resumeInterface);
|
|
171 |
__ASSERT_DEBUG(iLtsyDispatchCallControlResume, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
172 |
}
|
|
173 |
|
|
174 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlSetDynamicHscsdParams::KLtsyDispatchCallControlSetDynamicHscsdParamsApiId))
|
|
175 |
{
|
|
176 |
TAny* setDynamicHscsdParamsInterface = NULL;
|
|
177 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
178 |
MLtsyDispatchCallControlSetDynamicHscsdParams::KLtsyDispatchCallControlSetDynamicHscsdParamsApiId,
|
|
179 |
setDynamicHscsdParamsInterface);
|
|
180 |
iLtsyDispatchCallControlSetDynamicHscsdParams =
|
|
181 |
static_cast<MLtsyDispatchCallControlSetDynamicHscsdParams*>(setDynamicHscsdParamsInterface);
|
|
182 |
__ASSERT_DEBUG(iLtsyDispatchCallControlSetDynamicHscsdParams, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
183 |
}
|
|
184 |
|
|
185 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlDialVoice::KLtsyDispatchCallControlDialVoiceApiId))
|
|
186 |
{
|
|
187 |
TAny* dialInterface = NULL;
|
|
188 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
189 |
MLtsyDispatchCallControlDialVoice::KLtsyDispatchCallControlDialVoiceApiId,
|
|
190 |
dialInterface);
|
|
191 |
iLtsyDispatchCallControlDialVoice =
|
|
192 |
static_cast<MLtsyDispatchCallControlDialVoice*>(dialInterface);
|
|
193 |
__ASSERT_DEBUG(iLtsyDispatchCallControlDialVoice, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
194 |
}
|
|
195 |
|
|
196 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlTransfer::KLtsyDispatchCallControlTransferApiId))
|
|
197 |
{
|
|
198 |
TAny* transferInterface = NULL;
|
|
199 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
200 |
MLtsyDispatchCallControlTransfer::KLtsyDispatchCallControlTransferApiId,
|
|
201 |
transferInterface);
|
|
202 |
iLtsyDispatchCallControlTransfer =
|
|
203 |
static_cast<MLtsyDispatchCallControlTransfer*>(transferInterface);
|
|
204 |
__ASSERT_DEBUG(iLtsyDispatchCallControlTransfer, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
205 |
}
|
|
206 |
|
|
207 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlSendDtmfTones::KLtsyDispatchCallControlSendDtmfTonesApiId))
|
|
208 |
{
|
|
209 |
TAny* sendDtmfTonesInterface = NULL;
|
|
210 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
211 |
MLtsyDispatchCallControlSendDtmfTones::KLtsyDispatchCallControlSendDtmfTonesApiId,
|
|
212 |
sendDtmfTonesInterface);
|
|
213 |
iLtsyDispatchCallControlSendDtmfTones =
|
|
214 |
static_cast<MLtsyDispatchCallControlSendDtmfTones*>(sendDtmfTonesInterface);
|
|
215 |
__ASSERT_DEBUG(iLtsyDispatchCallControlSendDtmfTones, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
216 |
}
|
|
217 |
|
|
218 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlGetIdentityServiceStatus::KLtsyDispatchCallControlGetIdentityServiceStatusApiId))
|
|
219 |
{
|
|
220 |
TAny* getIdentityServiceStatusInterface = NULL;
|
|
221 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
222 |
MLtsyDispatchCallControlGetIdentityServiceStatus::KLtsyDispatchCallControlGetIdentityServiceStatusApiId,
|
|
223 |
getIdentityServiceStatusInterface);
|
|
224 |
iLtsyDispatchCallControlGetIdentityServiceStatus =
|
|
225 |
static_cast<MLtsyDispatchCallControlGetIdentityServiceStatus*>(getIdentityServiceStatusInterface);
|
|
226 |
__ASSERT_DEBUG(iLtsyDispatchCallControlGetIdentityServiceStatus, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
227 |
}
|
|
228 |
|
|
229 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlSwap::KLtsyDispatchCallControlSwapApiId))
|
|
230 |
{
|
|
231 |
TAny* swapInterface = NULL;
|
|
232 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
233 |
MLtsyDispatchCallControlSwap::KLtsyDispatchCallControlSwapApiId,
|
|
234 |
swapInterface);
|
|
235 |
iLtsyDispatchCallControlSwap =
|
|
236 |
static_cast<MLtsyDispatchCallControlSwap*>(swapInterface);
|
|
237 |
__ASSERT_DEBUG(iLtsyDispatchCallControlSwap, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
238 |
}
|
|
239 |
|
|
240 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlSwap::KLtsyDispatchCallControlSingleSwapApiId))
|
|
241 |
{
|
|
242 |
TAny* swapInterface = NULL;
|
|
243 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
244 |
MLtsyDispatchCallControlSwap::KLtsyDispatchCallControlSingleSwapApiId,
|
|
245 |
swapInterface);
|
|
246 |
iLtsyDispatchCallControlSingleSwap =
|
|
247 |
static_cast<MLtsyDispatchCallControlSwap*>(swapInterface);
|
|
248 |
__ASSERT_DEBUG(iLtsyDispatchCallControlSingleSwap, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
249 |
}
|
|
250 |
|
|
251 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlLoanDataPort::KLtsyDispatchCallControlLoanDataPortApiId))
|
|
252 |
{
|
|
253 |
TAny* loanDataPortInterface = NULL;
|
|
254 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
255 |
MLtsyDispatchCallControlLoanDataPort::KLtsyDispatchCallControlLoanDataPortApiId,
|
|
256 |
loanDataPortInterface);
|
|
257 |
iLtsyDispatchCallControlLoanDataPort =
|
|
258 |
static_cast<MLtsyDispatchCallControlLoanDataPort*>(loanDataPortInterface);
|
|
259 |
__ASSERT_DEBUG(iLtsyDispatchCallControlLoanDataPort, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
260 |
}
|
|
261 |
|
|
262 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlRecoverDataPort::KLtsyDispatchCallControlRecoverDataPortApiId))
|
|
263 |
{
|
|
264 |
TAny* recoverDataPortInterface = NULL;
|
|
265 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
266 |
MLtsyDispatchCallControlRecoverDataPort::KLtsyDispatchCallControlRecoverDataPortApiId,
|
|
267 |
recoverDataPortInterface);
|
|
268 |
iLtsyDispatchCallControlRecoverDataPort =
|
|
269 |
static_cast<MLtsyDispatchCallControlRecoverDataPort*>(recoverDataPortInterface);
|
|
270 |
__ASSERT_DEBUG(iLtsyDispatchCallControlRecoverDataPort, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
271 |
}
|
|
272 |
|
|
273 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlStartDtmfTone::KLtsyDispatchCallControlStartDtmfToneApiId))
|
|
274 |
{
|
|
275 |
TAny* startDtmfToneInterface = NULL;
|
|
276 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
277 |
MLtsyDispatchCallControlStartDtmfTone::KLtsyDispatchCallControlStartDtmfToneApiId,
|
|
278 |
startDtmfToneInterface);
|
|
279 |
iLtsyDispatchCallControlStartDtmfTone =
|
|
280 |
static_cast<MLtsyDispatchCallControlStartDtmfTone*>(startDtmfToneInterface);
|
|
281 |
__ASSERT_DEBUG(iLtsyDispatchCallControlStartDtmfTone, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
282 |
}
|
|
283 |
|
|
284 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlGetActiveAlsLine::KLtsyDispatchCallControlGetActiveAlsLineApiId))
|
|
285 |
{
|
|
286 |
TAny* GetActiveAlsLineInterface = NULL;
|
|
287 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
288 |
MLtsyDispatchCallControlGetActiveAlsLine::KLtsyDispatchCallControlGetActiveAlsLineApiId,
|
|
289 |
GetActiveAlsLineInterface);
|
|
290 |
iLtsyDispatchCallControlGetActiveAlsLine =
|
|
291 |
static_cast<MLtsyDispatchCallControlGetActiveAlsLine*>(GetActiveAlsLineInterface);
|
|
292 |
__ASSERT_DEBUG(iLtsyDispatchCallControlGetActiveAlsLine, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
293 |
}
|
|
294 |
|
|
295 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlDialData::KLtsyDispatchCallControlDialDataApiId))
|
|
296 |
{
|
|
297 |
TAny* dialDataInterface = NULL;
|
|
298 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
299 |
MLtsyDispatchCallControlDialData::KLtsyDispatchCallControlDialDataApiId,
|
|
300 |
dialDataInterface);
|
|
301 |
iLtsyDispatchCallControlDialData =
|
|
302 |
static_cast<MLtsyDispatchCallControlDialData*>(dialDataInterface);
|
|
303 |
__ASSERT_DEBUG(iLtsyDispatchCallControlDialData, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
304 |
}
|
|
305 |
|
|
306 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlQueryIsEmergencyNumber::KLtsyDispatchCallControlQueryIsEmergencyNumberApiId))
|
|
307 |
{
|
|
308 |
TAny* queryIsEmergencyNumberInterface = NULL;
|
|
309 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
310 |
MLtsyDispatchCallControlQueryIsEmergencyNumber::KLtsyDispatchCallControlQueryIsEmergencyNumberApiId,
|
|
311 |
queryIsEmergencyNumberInterface);
|
|
312 |
iLtsyDispatchCallControlQueryIsEmergencyNumber =
|
|
313 |
static_cast<MLtsyDispatchCallControlQueryIsEmergencyNumber*>(queryIsEmergencyNumberInterface);
|
|
314 |
__ASSERT_DEBUG(iLtsyDispatchCallControlQueryIsEmergencyNumber, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
315 |
}
|
|
316 |
|
|
317 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlGetAlsPpSupport::KLtsyDispatchCallControlGetAlsPpSupportApiId))
|
|
318 |
{
|
|
319 |
TAny* getAlsPpSupportInterface = NULL;
|
|
320 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
321 |
MLtsyDispatchCallControlGetAlsPpSupport::KLtsyDispatchCallControlGetAlsPpSupportApiId,
|
|
322 |
getAlsPpSupportInterface);
|
|
323 |
iLtsyDispatchCallControlGetAlsPpSupport =
|
|
324 |
static_cast<MLtsyDispatchCallControlGetAlsPpSupport*>(getAlsPpSupportInterface);
|
|
325 |
__ASSERT_DEBUG(iLtsyDispatchCallControlGetAlsPpSupport, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
326 |
}
|
|
327 |
|
|
328 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlGetAlsBlockedStatus::KLtsyDispatchCallControlGetAlsBlockedStatusApiId))
|
|
329 |
{
|
|
330 |
TAny* getAlsBlockedStatusInterface = NULL;
|
|
331 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
332 |
MLtsyDispatchCallControlGetAlsBlockedStatus::KLtsyDispatchCallControlGetAlsBlockedStatusApiId,
|
|
333 |
getAlsBlockedStatusInterface);
|
|
334 |
iLtsyDispatchCallControlGetAlsBlockedStatus =
|
|
335 |
static_cast<MLtsyDispatchCallControlGetAlsBlockedStatus*>(getAlsBlockedStatusInterface);
|
|
336 |
__ASSERT_DEBUG(iLtsyDispatchCallControlGetAlsBlockedStatus, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
337 |
}
|
|
338 |
|
|
339 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlSetAlsBlocked::KLtsyDispatchCallControlSetAlsBlockedApiId))
|
|
340 |
{
|
|
341 |
TAny* setAlsBlockedInterface = NULL;
|
|
342 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
343 |
MLtsyDispatchCallControlSetAlsBlocked::KLtsyDispatchCallControlSetAlsBlockedApiId,
|
|
344 |
setAlsBlockedInterface);
|
|
345 |
iLtsyDispatchCallControlSetAlsBlocked =
|
|
346 |
static_cast<MLtsyDispatchCallControlSetAlsBlocked*>(setAlsBlockedInterface);
|
|
347 |
__ASSERT_DEBUG(iLtsyDispatchCallControlSetAlsBlocked, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
348 |
}
|
|
349 |
|
|
350 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlGetLifeTime::KLtsyDispatchCallControlGetLifeTimeApiId))
|
|
351 |
{
|
|
352 |
TAny* getLifeTimeInterface = NULL;
|
|
353 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
354 |
MLtsyDispatchCallControlGetLifeTime::KLtsyDispatchCallControlGetLifeTimeApiId,
|
|
355 |
getLifeTimeInterface);
|
|
356 |
iLtsyDispatchCallControlGetLifeTime =
|
|
357 |
static_cast<MLtsyDispatchCallControlGetLifeTime*>(getLifeTimeInterface);
|
|
358 |
__ASSERT_DEBUG(iLtsyDispatchCallControlGetLifeTime, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
359 |
}
|
|
360 |
|
|
361 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlTerminateErrorCall::KLtsyDispatchCallControlTerminateErrorCallApiId))
|
|
362 |
{
|
|
363 |
TAny* terminateErrorCallInterface = NULL;
|
|
364 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
365 |
MLtsyDispatchCallControlTerminateErrorCall::KLtsyDispatchCallControlTerminateErrorCallApiId,
|
|
366 |
terminateErrorCallInterface);
|
|
367 |
iLtsyDispatchCallControlTerminateErrorCall =
|
|
368 |
static_cast<MLtsyDispatchCallControlTerminateErrorCall*>(terminateErrorCallInterface);
|
|
369 |
__ASSERT_DEBUG(iLtsyDispatchCallControlTerminateErrorCall, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
370 |
}
|
|
371 |
|
|
372 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlTerminateAllCalls::KLtsyDispatchCallControlTerminateAllCallsApiId))
|
|
373 |
{
|
|
374 |
TAny* terminateAllCallsInterface = NULL;
|
|
375 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
376 |
MLtsyDispatchCallControlTerminateAllCalls::KLtsyDispatchCallControlTerminateAllCallsApiId,
|
|
377 |
terminateAllCallsInterface);
|
|
378 |
iLtsyDispatchCallControlTerminateAllCalls =
|
|
379 |
static_cast<MLtsyDispatchCallControlTerminateAllCalls*>(terminateAllCallsInterface);
|
|
380 |
__ASSERT_DEBUG(iLtsyDispatchCallControlTerminateAllCalls, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
381 |
}
|
|
382 |
|
|
383 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlGetCallForwardingIndicator::KLtsyDispatchCallControlGetCallForwardingIndicatorApiId))
|
|
384 |
{
|
|
385 |
TAny* getCallForwardingIndicatorInterface = NULL;
|
|
386 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
387 |
MLtsyDispatchCallControlGetCallForwardingIndicator::KLtsyDispatchCallControlGetCallForwardingIndicatorApiId,
|
|
388 |
getCallForwardingIndicatorInterface);
|
|
389 |
iLtsyDispatchCallControlGetCallForwardingIndicator =
|
|
390 |
static_cast<MLtsyDispatchCallControlGetCallForwardingIndicator*>(getCallForwardingIndicatorInterface);
|
|
391 |
__ASSERT_DEBUG(iLtsyDispatchCallControlGetCallForwardingIndicator, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
392 |
}
|
|
393 |
|
|
394 |
if(iLtsyFactoryV1.IsDispatchInterfaceSupported(KDispatchCallControlFuncUnitId, MLtsyDispatchCallControlUpdateLifeTimer::KLtsyDispatchCallControlUpdateLifeTimerApiId))
|
|
395 |
{
|
|
396 |
TAny* updateLifeTimerInterface = NULL;
|
|
397 |
iLtsyFactoryV1.GetDispatchHandler(
|
|
398 |
MLtsyDispatchCallControlUpdateLifeTimer::KLtsyDispatchCallControlUpdateLifeTimerApiId,
|
|
399 |
updateLifeTimerInterface);
|
|
400 |
iLtsyDispatchCallControlUpdateLifeTimer =
|
|
401 |
static_cast<MLtsyDispatchCallControlUpdateLifeTimer*>(updateLifeTimerInterface);
|
|
402 |
__ASSERT_DEBUG(iLtsyDispatchCallControlUpdateLifeTimer, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
403 |
}
|
|
404 |
} // CCallControlDispatcher::ConstructL
|
|
405 |
|
|
406 |
|
|
407 |
void CCallControlDispatcher::SetDispatcherHolder(TDispatcherHolder& aDispatcherHolder)
|
|
408 |
/**
|
|
409 |
* Set the dispatcher holder.
|
|
410 |
*
|
|
411 |
* @param aDispatcherHolder Pointer to dispatcher holder.
|
|
412 |
*/
|
|
413 |
{
|
|
414 |
TSYLOGENTRYEXIT;
|
|
415 |
|
|
416 |
iDispatcherHolder = &aDispatcherHolder;
|
|
417 |
} // CCallControlDispatcher::SetDispatcherHolder
|
|
418 |
|
|
419 |
|
|
420 |
TInt CCallControlDispatcher::DispatchAnswerL(const CMmDataPackage* aDataPackage)
|
|
421 |
/**
|
|
422 |
* Unpack data related to EEtelCallAnswer
|
|
423 |
* and pass request on to Licensee LTSY.
|
|
424 |
*
|
|
425 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
426 |
* the Licensee LTSY does not support this request.
|
|
427 |
*/
|
|
428 |
{
|
|
429 |
TSYLOGENTRYEXIT;
|
|
430 |
|
|
431 |
TInt ret = DoDispatchAnswerL(aDataPackage, EFalse);
|
|
432 |
|
|
433 |
return TSYLOGSETEXITERR(ret);
|
|
434 |
} // CCallControlDispatcher::DispatchAnswerL
|
|
435 |
|
|
436 |
TInt CCallControlDispatcher::DispatchAnswerIsvL(const CMmDataPackage* aDataPackage)
|
|
437 |
/**
|
|
438 |
* Unpack data related to EEtelCallAnswerIsv
|
|
439 |
* and pass request on to Licensee LTSY.
|
|
440 |
*
|
|
441 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
442 |
* the Licensee LTSY does not support this request.
|
|
443 |
*/
|
|
444 |
{
|
|
445 |
TSYLOGENTRYEXIT;
|
|
446 |
|
|
447 |
TInt ret = DoDispatchAnswerL(aDataPackage, ETrue);
|
|
448 |
|
|
449 |
return TSYLOGSETEXITERR(ret);
|
|
450 |
} // CCallControlDispatcher::DispatchAnswerIsvL
|
|
451 |
|
|
452 |
|
|
453 |
TInt CCallControlDispatcher::DispatchHoldL(const CMmDataPackage* aDataPackage)
|
|
454 |
/**
|
|
455 |
* Unpack data related to EMobileCallHold
|
|
456 |
* and pass request on to Licensee LTSY.
|
|
457 |
*
|
|
458 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
459 |
* the Licensee LTSY does not support this request.
|
|
460 |
*/
|
|
461 |
{
|
|
462 |
TSYLOGENTRYEXIT;
|
|
463 |
TInt ret = KErrNotSupported;
|
|
464 |
|
|
465 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
466 |
|
|
467 |
// Call Handle... method in Licensee LTSY
|
|
468 |
if (iLtsyDispatchCallControlHold)
|
|
469 |
{
|
|
470 |
const CCallDataPackage* dataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
471 |
TInt callId;
|
|
472 |
RMobilePhone::TMobileService mode;
|
|
473 |
dataPackage->GetCallIdAndMode(callId, mode);
|
|
474 |
ret = iLtsyDispatchCallControlHold->HandleHoldReqL(callId);
|
|
475 |
}
|
|
476 |
|
|
477 |
return TSYLOGSETEXITERR(ret);
|
|
478 |
} // CCallControlDispatcher::DispatchHoldL
|
|
479 |
|
|
480 |
TInt CCallControlDispatcher::DispatchDialEmergencyL(const CMmDataPackage* aDataPackage)
|
|
481 |
/**
|
|
482 |
* Unpack data related to EMobileCallDialEmergencyCall
|
|
483 |
* and pass request on to Licensee LTSY.
|
|
484 |
*
|
|
485 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
486 |
* the Licensee LTSY does not support this request.
|
|
487 |
*/
|
|
488 |
{
|
|
489 |
TSYLOGENTRYEXIT;
|
|
490 |
TInt ret = KErrNotSupported;
|
|
491 |
|
|
492 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
493 |
|
|
494 |
// Call Handle... method in Licensee LTSY
|
|
495 |
if (iLtsyDispatchCallControlDialEmergency)
|
|
496 |
{
|
|
497 |
RMobileENStore::TEmergencyNumber* emergencyNumber;
|
|
498 |
aDataPackage->UnPackData(&emergencyNumber);
|
|
499 |
|
|
500 |
__ASSERT_DEBUG(emergencyNumber, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
501 |
|
|
502 |
ret = iLtsyDispatchCallControlDialEmergency->HandleDialEmergencyReqL(*emergencyNumber);
|
|
503 |
}
|
|
504 |
|
|
505 |
return TSYLOGSETEXITERR(ret);
|
|
506 |
} // CCallControlDispatcher::DispatchDialEmergencyL
|
|
507 |
|
|
508 |
TInt CCallControlDispatcher::DispatchDialNoFdnCheckL(const CMmDataPackage* aDataPackage)
|
|
509 |
/**
|
|
510 |
* Unpack data related to EMobileCallDialNoFdnCheck
|
|
511 |
* and pass request on to Licensee LTSY.
|
|
512 |
*
|
|
513 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
514 |
* the Licensee LTSY does not support this request.
|
|
515 |
*/
|
|
516 |
{
|
|
517 |
TSYLOGENTRYEXIT;
|
|
518 |
|
|
519 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
520 |
|
|
521 |
TInt ret = DoDispatchDialL(aDataPackage, EFalse, EFalse);
|
|
522 |
|
|
523 |
return TSYLOGSETEXITERR(ret);
|
|
524 |
} // CCallControlDispatcher::DispatchDialNoFdnCheckL
|
|
525 |
|
|
526 |
TInt CCallControlDispatcher::DispatchStopDtmfToneL(const CMmDataPackage* aDataPackage)
|
|
527 |
/**
|
|
528 |
* Unpack data related to EMobilePhoneStopDTMFTone
|
|
529 |
* and pass request on to Licensee LTSY.
|
|
530 |
*
|
|
531 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
532 |
* the Licensee LTSY does not support this request.
|
|
533 |
*/
|
|
534 |
{
|
|
535 |
TSYLOGENTRYEXIT;
|
|
536 |
TInt ret = KErrNotSupported;
|
|
537 |
|
|
538 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
539 |
// Call Handle... method in Licensee LTSY
|
|
540 |
if (iLtsyDispatchCallControlStopDtmfTone)
|
|
541 |
{
|
|
542 |
TInt* callId;
|
|
543 |
aDataPackage->UnPackData(&callId);
|
|
544 |
ret = iLtsyDispatchCallControlStopDtmfTone->HandleStopDtmfToneReqL(*callId);
|
|
545 |
}
|
|
546 |
|
|
547 |
return TSYLOGSETEXITERR(ret);
|
|
548 |
} // CCallControlDispatcher::DispatchStopDtmfToneL
|
|
549 |
|
|
550 |
TInt CCallControlDispatcher::DispatchDialIsvL(const CMmDataPackage* aDataPackage)
|
|
551 |
/**
|
|
552 |
* Unpack data related to EMobileCallDialISV
|
|
553 |
* and pass request on to Licensee LTSY.
|
|
554 |
*
|
|
555 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
556 |
* the Licensee LTSY does not support this request.
|
|
557 |
*/
|
|
558 |
{
|
|
559 |
TSYLOGENTRYEXIT;
|
|
560 |
|
|
561 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
562 |
|
|
563 |
TInt ret = DoDispatchDialL(aDataPackage, ETrue, ETrue);
|
|
564 |
|
|
565 |
return TSYLOGSETEXITERR(ret);
|
|
566 |
} // CCallControlDispatcher::DispatchDialIsvL
|
|
567 |
|
|
568 |
TInt CCallControlDispatcher::DispatchSetActiveAlsLineL(const CMmDataPackage* aDataPackage)
|
|
569 |
/**
|
|
570 |
* Unpack data related to EMobilePhoneSetALSLine
|
|
571 |
* and pass request on to Licensee LTSY.
|
|
572 |
*
|
|
573 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
574 |
* the Licensee LTSY does not support this request.
|
|
575 |
*/
|
|
576 |
{
|
|
577 |
TSYLOGENTRYEXIT;
|
|
578 |
TInt ret = KErrNotSupported;
|
|
579 |
|
|
580 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
581 |
// Call Handle... method in Licensee LTSY
|
|
582 |
if (iLtsyDispatchCallControlSetActiveAlsLine)
|
|
583 |
{
|
|
584 |
RMobilePhone::TMobilePhoneALSLine* alsLine;
|
|
585 |
aDataPackage->UnPackData(&alsLine);
|
|
586 |
ret = iLtsyDispatchCallControlSetActiveAlsLine->HandleSetActiveAlsLineReqL(*alsLine);
|
|
587 |
}
|
|
588 |
|
|
589 |
return TSYLOGSETEXITERR(ret);
|
|
590 |
} // CCallControlDispatcher::DispatchSetActiveAlsLineL
|
|
591 |
|
|
592 |
TInt CCallControlDispatcher::DispatchSendDtmfTonesCancelL(const CMmDataPackage* aDataPackage)
|
|
593 |
/**
|
|
594 |
* Unpack data related to EMobilePhoneSendDTMFTonesCancel
|
|
595 |
* and pass request on to Licensee LTSY.
|
|
596 |
*
|
|
597 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
598 |
* the Licensee LTSY does not support this request.
|
|
599 |
*/
|
|
600 |
{
|
|
601 |
TSYLOGENTRYEXIT;
|
|
602 |
TInt ret = KErrNotSupported;
|
|
603 |
|
|
604 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
605 |
|
|
606 |
// Call Handle... method in Licensee LTSY
|
|
607 |
if (iLtsyDispatchCallControlSendDtmfTonesCancel)
|
|
608 |
{
|
|
609 |
TInt callId;
|
|
610 |
aDataPackage->UnPackData(callId);
|
|
611 |
ret = iLtsyDispatchCallControlSendDtmfTonesCancel->HandleSendDtmfTonesCancelReqL(callId);
|
|
612 |
}
|
|
613 |
|
|
614 |
return TSYLOGSETEXITERR(ret);
|
|
615 |
} // CCallControlDispatcher::DispatchSendDtmfTonesCancelL
|
|
616 |
|
|
617 |
TInt CCallControlDispatcher::DispatchHangUpL(const CMmDataPackage* aDataPackage)
|
|
618 |
/**
|
|
619 |
* Unpack data related to EEtelCallHangUp
|
|
620 |
* and pass request on to Licensee LTSY.
|
|
621 |
*
|
|
622 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
623 |
* the Licensee LTSY does not support this request.
|
|
624 |
*/
|
|
625 |
{
|
|
626 |
TSYLOGENTRYEXIT;
|
|
627 |
TInt ret = KErrNotSupported;
|
|
628 |
|
|
629 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
630 |
if (iLtsyDispatchCallControlHangUp)
|
|
631 |
{
|
|
632 |
TInt callId;
|
|
633 |
RMobilePhone::TMobileService mode;
|
|
634 |
const CCallDataPackage* callDataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
635 |
callDataPackage->GetCallIdAndMode(callId, mode);
|
|
636 |
|
|
637 |
TInt hangupCause;
|
|
638 |
TBool autoStChangeDisable;
|
|
639 |
callDataPackage->UnPackData(hangupCause, autoStChangeDisable);
|
|
640 |
|
|
641 |
ret = iLtsyDispatchCallControlHangUp->HandleHangUpReqL(callId, hangupCause);
|
|
642 |
}
|
|
643 |
|
|
644 |
return TSYLOGSETEXITERR(ret);
|
|
645 |
} // CCallControlDispatcher::DispatchHangUpL
|
|
646 |
|
|
647 |
TInt CCallControlDispatcher::DispatchResumeL(const CMmDataPackage* aDataPackage)
|
|
648 |
/**
|
|
649 |
* Unpack data related to EMobileCallResume
|
|
650 |
* and pass request on to Licensee LTSY.
|
|
651 |
*
|
|
652 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
653 |
* the Licensee LTSY does not support this request.
|
|
654 |
*/
|
|
655 |
{
|
|
656 |
TSYLOGENTRYEXIT;
|
|
657 |
TInt ret = KErrNotSupported;
|
|
658 |
|
|
659 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
660 |
// Call Handle... method in Licensee LTSY
|
|
661 |
if (iLtsyDispatchCallControlResume)
|
|
662 |
{
|
|
663 |
const CCallDataPackage* dataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
664 |
TInt callId;
|
|
665 |
RMobilePhone::TMobileService mode;
|
|
666 |
dataPackage->GetCallIdAndMode(callId, mode);
|
|
667 |
ret = iLtsyDispatchCallControlResume->HandleResumeReqL(callId);
|
|
668 |
}
|
|
669 |
|
|
670 |
return TSYLOGSETEXITERR(ret);
|
|
671 |
} // CCallControlDispatcher::DispatchResumeL
|
|
672 |
|
|
673 |
TInt CCallControlDispatcher::DispatchSetDynamicHscsdParamsL(const CMmDataPackage* aDataPackage)
|
|
674 |
/**
|
|
675 |
* Unpack data related to EMobileCallSetDynamicHscsdParams
|
|
676 |
* and pass request on to Licensee LTSY.
|
|
677 |
*
|
|
678 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
679 |
* the Licensee LTSY does not support this request.
|
|
680 |
*/
|
|
681 |
{
|
|
682 |
TSYLOGENTRYEXIT;
|
|
683 |
TInt ret = KErrNotSupported;
|
|
684 |
|
|
685 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
686 |
|
|
687 |
if (iLtsyDispatchCallControlSetDynamicHscsdParams)
|
|
688 |
{
|
|
689 |
const CCallDataPackage* callDataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
690 |
TInt callId;
|
|
691 |
RMobilePhone::TMobileService mode;
|
|
692 |
callDataPackage->GetCallIdAndMode(callId, mode);
|
|
693 |
RMobileCall::TMobileHscsdCallParamsV1* hscsdParams;
|
|
694 |
aDataPackage->UnPackData(&hscsdParams);
|
|
695 |
ret = iLtsyDispatchCallControlSetDynamicHscsdParams->HandleSetDynamicHscsdParamsReqL(callId, *hscsdParams);
|
|
696 |
}
|
|
697 |
|
|
698 |
return TSYLOGSETEXITERR(ret);
|
|
699 |
} // CCallControlDispatcher::DispatchSetDynamicHscsdParamsL
|
|
700 |
|
|
701 |
TInt CCallControlDispatcher::DispatchDialL(const CMmDataPackage* aDataPackage)
|
|
702 |
/**
|
|
703 |
* Unpack data related to EEtelCallDial
|
|
704 |
* and pass request on to Licensee LTSY.
|
|
705 |
*
|
|
706 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
707 |
* the Licensee LTSY does not support this request.
|
|
708 |
*/
|
|
709 |
{
|
|
710 |
TSYLOGENTRYEXIT;
|
|
711 |
|
|
712 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
713 |
|
|
714 |
TInt ret = DoDispatchDialL(aDataPackage, EFalse, ETrue);
|
|
715 |
|
|
716 |
return TSYLOGSETEXITERR(ret);
|
|
717 |
} // CCallControlDispatcher::DispatchDialL
|
|
718 |
|
|
719 |
TInt CCallControlDispatcher::DispatchTransferL(const CMmDataPackage* aDataPackage)
|
|
720 |
/**
|
|
721 |
* Unpack data related to EMobileCallTransfer
|
|
722 |
* and pass request on to Licensee LTSY.
|
|
723 |
*
|
|
724 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
725 |
* the Licensee LTSY does not support this request.
|
|
726 |
*/
|
|
727 |
{
|
|
728 |
TSYLOGENTRYEXIT;
|
|
729 |
TInt ret = KErrNotSupported;
|
|
730 |
|
|
731 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
732 |
if (iLtsyDispatchCallControlTransfer)
|
|
733 |
{
|
|
734 |
const CCallDataPackage* callDataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
735 |
RMobilePhone::TMobileService mode;
|
|
736 |
callDataPackage->GetCallIdAndMode(iTransferHeldCallId, mode);
|
|
737 |
callDataPackage->UnPackData(iTransferSecondCallId);
|
|
738 |
ret = iLtsyDispatchCallControlTransfer->HandleTransferReqL(iTransferHeldCallId, iTransferSecondCallId);
|
|
739 |
}
|
|
740 |
|
|
741 |
return TSYLOGSETEXITERR(ret);
|
|
742 |
} // CCallControlDispatcher::DispatchTransferL
|
|
743 |
|
|
744 |
TInt CCallControlDispatcher::DispatchSendDtmfTonesL(const CMmDataPackage* aDataPackage)
|
|
745 |
/**
|
|
746 |
* Unpack data related to EMobilePhoneSendDTMFTones
|
|
747 |
* and pass request on to Licensee LTSY.
|
|
748 |
*
|
|
749 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
750 |
* the Licensee LTSY does not support this request.
|
|
751 |
*/
|
|
752 |
{
|
|
753 |
TSYLOGENTRYEXIT;
|
|
754 |
TInt ret = KErrNotSupported;
|
|
755 |
|
|
756 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
757 |
if (iLtsyDispatchCallControlSendDtmfTones)
|
|
758 |
{
|
|
759 |
TInt* callId;
|
|
760 |
TDesC* tones;
|
|
761 |
aDataPackage->UnPackData(&callId, &tones);
|
|
762 |
|
|
763 |
ret = DoSendDtmfTonesL(*callId, *tones);
|
|
764 |
}
|
|
765 |
|
|
766 |
return TSYLOGSETEXITERR(ret);
|
|
767 |
} // CCallControlDispatcher::DispatchSendDtmfTonesL
|
|
768 |
|
|
769 |
TInt CCallControlDispatcher::DoSendDtmfTonesL(TInt aCallId, const TDesC& aTones)
|
|
770 |
{
|
|
771 |
TSYLOGENTRYEXIT;
|
|
772 |
|
|
773 |
TInt ret = KErrNotSupported;
|
|
774 |
|
|
775 |
// Locate a 'w' (wait) in the DTMF string
|
|
776 |
// Send the part of the string before the 'w' to LTSY,
|
|
777 |
// cache the rest.
|
|
778 |
TChar w('w');
|
|
779 |
TInt wPos = aTones.LocateF(w);
|
|
780 |
if (wPos == KErrNotFound)
|
|
781 |
{
|
|
782 |
if (iLtsyDispatchCallControlSendDtmfTones)
|
|
783 |
{
|
|
784 |
ret = iLtsyDispatchCallControlSendDtmfTones->HandleSendDtmfTonesReqL(aCallId, aTones);
|
|
785 |
}
|
|
786 |
}
|
|
787 |
else
|
|
788 |
{
|
|
789 |
iFoundDtmfStop = ETrue;
|
|
790 |
iCallIdForDtmf = aCallId;
|
|
791 |
|
|
792 |
// Send string before 'w' to LTSY
|
|
793 |
TPtrC firstPartOfString = aTones.Left(wPos);
|
|
794 |
if (iLtsyDispatchCallControlSendDtmfTones)
|
|
795 |
{
|
|
796 |
ret = iLtsyDispatchCallControlSendDtmfTones->HandleSendDtmfTonesReqL(aCallId, firstPartOfString);
|
|
797 |
}
|
|
798 |
|
|
799 |
// Cache string after the 'w' so that client can choose to continue sending
|
|
800 |
// or not.
|
|
801 |
|
|
802 |
// Buffer needs to be big enough to fit the rest of the string after the first 'w'
|
|
803 |
// (not including the 'w' itself).
|
|
804 |
iDtmfString = aTones.Right(aTones.Length() - wPos - 1);
|
|
805 |
}
|
|
806 |
|
|
807 |
return TSYLOGSETEXITERR(ret);
|
|
808 |
} // CCallControlDispatcher::DoSendDtmfTonesL
|
|
809 |
|
|
810 |
|
|
811 |
TInt CCallControlDispatcher::DispatchGetIdentityServiceStatusL(const CMmDataPackage* aDataPackage)
|
|
812 |
/**
|
|
813 |
* Unpack data related to EMobilePhoneGetIdentityServiceStatus
|
|
814 |
* and pass request on to Licensee LTSY.
|
|
815 |
*
|
|
816 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
817 |
* the Licensee LTSY does not support this request.
|
|
818 |
*/
|
|
819 |
{
|
|
820 |
TSYLOGENTRYEXIT;
|
|
821 |
TInt ret = KErrNotSupported;
|
|
822 |
|
|
823 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
824 |
// Call Handle... method in Licensee LTSY
|
|
825 |
if (iLtsyDispatchCallControlGetIdentityServiceStatus)
|
|
826 |
{
|
|
827 |
RMobilePhone::TMobilePhoneIdService idService;
|
|
828 |
aDataPackage->UnPackData(idService);
|
|
829 |
ret = iLtsyDispatchCallControlGetIdentityServiceStatus->HandleGetIdentityServiceStatusReqL(idService);
|
|
830 |
}
|
|
831 |
|
|
832 |
return TSYLOGSETEXITERR(ret);
|
|
833 |
} // CCallControlDispatcher::DispatchGetIdentityServiceStatusL
|
|
834 |
|
|
835 |
TInt CCallControlDispatcher::DispatchSwapL(const CMmDataPackage* aDataPackage)
|
|
836 |
/**
|
|
837 |
* Unpack data related to EMobileCallSwap
|
|
838 |
* and pass request on to Licensee LTSY.
|
|
839 |
*
|
|
840 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
841 |
* the Licensee LTSY does not support this request.
|
|
842 |
*/
|
|
843 |
{
|
|
844 |
TSYLOGENTRYEXIT;
|
|
845 |
TInt ret = KErrNotSupported;
|
|
846 |
|
|
847 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
848 |
|
|
849 |
if (iLtsyDispatchCallControlSwap)
|
|
850 |
{
|
|
851 |
const CCallDataPackage* dataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
852 |
RMobilePhone::TMobileService mode;
|
|
853 |
dataPackage->GetCallIdAndMode(iSwapCallId, mode);
|
|
854 |
dataPackage->UnPackData(iSecondSwapCallId);
|
|
855 |
|
|
856 |
if (iSwapCallId == KInvalidCallId)
|
|
857 |
{
|
|
858 |
// Swapping a single call.
|
|
859 |
ret = iLtsyDispatchCallControlSwap->HandleSwapReqL(iSecondSwapCallId);
|
|
860 |
}
|
|
861 |
else if (iSecondSwapCallId == KInvalidCallId)
|
|
862 |
{
|
|
863 |
// Swapping a single call.
|
|
864 |
ret = iLtsyDispatchCallControlSwap->HandleSwapReqL(iSwapCallId);
|
|
865 |
}
|
|
866 |
else
|
|
867 |
{
|
|
868 |
ret = iLtsyDispatchCallControlSwap->HandleSwapReqL(iSwapCallId, iSecondSwapCallId);
|
|
869 |
}
|
|
870 |
}
|
|
871 |
|
|
872 |
return TSYLOGSETEXITERR(ret);
|
|
873 |
} // CCallControlDispatcher::DispatchSwapL
|
|
874 |
|
|
875 |
TInt CCallControlDispatcher::DispatchContinueDtmfStringSendingL(const CMmDataPackage* aDataPackage)
|
|
876 |
/**
|
|
877 |
* Unpack data related to EMobilePhoneContinueDTMFStringSending
|
|
878 |
* and pass request on to Licensee LTSY.
|
|
879 |
*
|
|
880 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
881 |
* the Licensee LTSY does not support this request.
|
|
882 |
*/
|
|
883 |
{
|
|
884 |
TSYLOGENTRYEXIT;
|
|
885 |
TInt ret = KErrNotSupported;
|
|
886 |
|
|
887 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
888 |
|
|
889 |
TDesC* stringToSend;
|
|
890 |
aDataPackage->UnPackData(&stringToSend);
|
|
891 |
if (stringToSend)
|
|
892 |
{
|
|
893 |
__ASSERT_DEBUG(stringToSend, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
894 |
ret = DoSendDtmfTonesL(iCallIdForDtmf, *stringToSend);
|
|
895 |
}
|
|
896 |
|
|
897 |
return TSYLOGSETEXITERR(ret);
|
|
898 |
} // CCallControlDispatcher::DispatchContinueDtmfStringSendingL
|
|
899 |
|
|
900 |
TInt CCallControlDispatcher::DispatchLoanDataPortL(const CMmDataPackage* aDataPackage)
|
|
901 |
/**
|
|
902 |
* Unpack data related to EEtelCallLoanDataPort
|
|
903 |
* and pass request on to Licensee LTSY.
|
|
904 |
*
|
|
905 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
906 |
* the Licensee LTSY does not support this request.
|
|
907 |
*/
|
|
908 |
{
|
|
909 |
TSYLOGENTRYEXIT;
|
|
910 |
TInt ret = KErrNotSupported;
|
|
911 |
|
|
912 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
913 |
if (iLtsyDispatchCallControlLoanDataPort)
|
|
914 |
{
|
|
915 |
const CCallDataPackage* callDataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
916 |
TInt callId;
|
|
917 |
RMobilePhone::TMobileService mode;
|
|
918 |
callDataPackage->GetCallIdAndMode(callId, mode);
|
|
919 |
RCall::TCommPort* commPort;
|
|
920 |
callDataPackage->UnPackData(&commPort);
|
|
921 |
ret = iLtsyDispatchCallControlLoanDataPort->HandleLoanDataPortSyncL(callId, *commPort);
|
|
922 |
}
|
|
923 |
|
|
924 |
return TSYLOGSETEXITERR(ret);
|
|
925 |
} // CCallControlDispatcher::DispatchLoanDataPortL
|
|
926 |
|
|
927 |
TInt CCallControlDispatcher::DispatchRecoverDataPortL(const CMmDataPackage* aDataPackage)
|
|
928 |
/**
|
|
929 |
* Unpack data related to EEtelCallRecoverDataPort
|
|
930 |
* and pass request on to Licensee LTSY.
|
|
931 |
*
|
|
932 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
933 |
* the Licensee LTSY does not support this request.
|
|
934 |
*/
|
|
935 |
{
|
|
936 |
TSYLOGENTRYEXIT;
|
|
937 |
TInt ret = KErrNotSupported;
|
|
938 |
|
|
939 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
940 |
if (iLtsyDispatchCallControlRecoverDataPort)
|
|
941 |
{
|
|
942 |
const CCallDataPackage* callDataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
943 |
TInt callId;
|
|
944 |
RMobilePhone::TMobileService mode;
|
|
945 |
callDataPackage->GetCallIdAndMode(callId, mode);
|
|
946 |
RCall::TCommPort* commPort;
|
|
947 |
callDataPackage->UnPackData(&commPort);
|
|
948 |
ret = iLtsyDispatchCallControlRecoverDataPort->HandleRecoverDataPortSyncL(callId, *commPort);
|
|
949 |
}
|
|
950 |
|
|
951 |
return TSYLOGSETEXITERR(ret);
|
|
952 |
} // CCallControlDispatcher::DispatchRecoverDataPortL
|
|
953 |
|
|
954 |
TInt CCallControlDispatcher::DispatchStartDtmfToneL(const CMmDataPackage* aDataPackage)
|
|
955 |
/**
|
|
956 |
* Unpack data related to EMobilePhoneStartDTMFTone
|
|
957 |
* and pass request on to Licensee LTSY.
|
|
958 |
*
|
|
959 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
960 |
* the Licensee LTSY does not support this request.
|
|
961 |
*/
|
|
962 |
{
|
|
963 |
TSYLOGENTRYEXIT;
|
|
964 |
TInt ret = KErrNotSupported;
|
|
965 |
|
|
966 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
967 |
// Call Handle... method in Licensee LTSY
|
|
968 |
if (iLtsyDispatchCallControlStartDtmfTone)
|
|
969 |
{
|
|
970 |
TChar* tone;
|
|
971 |
TInt* callId;
|
|
972 |
aDataPackage->UnPackData(&callId, &tone);
|
|
973 |
|
|
974 |
ret = iLtsyDispatchCallControlStartDtmfTone->HandleStartDtmfToneReqL(*callId, *tone);
|
|
975 |
}
|
|
976 |
|
|
977 |
return TSYLOGSETEXITERR(ret);
|
|
978 |
} // CCallControlDispatcher::DispatchStartDtmfToneL
|
|
979 |
|
|
980 |
|
|
981 |
TInt CCallControlDispatcher::DispatchGetActiveAlsLineL()
|
|
982 |
/**
|
|
983 |
* Unpack data related to RMobilePhone::GetActiveAlsLine
|
|
984 |
* and pass request on to Licensee LTSY.
|
|
985 |
*
|
|
986 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
987 |
* the Licensee LTSY does not support this request.
|
|
988 |
*/
|
|
989 |
{
|
|
990 |
TSYLOGENTRYEXIT;
|
|
991 |
TInt ret = KErrNotSupported;
|
|
992 |
|
|
993 |
// Call Handle... method in Licensee LTSY
|
|
994 |
if (iLtsyDispatchCallControlGetActiveAlsLine)
|
|
995 |
{
|
|
996 |
ret = iLtsyDispatchCallControlGetActiveAlsLine->HandleGetActiveAlsLineReqL();
|
|
997 |
}
|
|
998 |
|
|
999 |
return TSYLOGSETEXITERR(ret);
|
|
1000 |
} // CCallControlDispatcher::DispatchGetActiveAlsLineL
|
|
1001 |
|
|
1002 |
TInt CCallControlDispatcher::DispatchQueryIsEmergencyNumberL(const CMmDataPackage* aDataPackage)
|
|
1003 |
/**
|
|
1004 |
* Unpack data related to ECustomCheckEmergencyNumberIPC
|
|
1005 |
* and pass request on to Licensee LTSY.
|
|
1006 |
*
|
|
1007 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
1008 |
* the Licensee LTSY does not support this request.
|
|
1009 |
*/
|
|
1010 |
{
|
|
1011 |
TSYLOGENTRYEXIT;
|
|
1012 |
TInt ret = KErrNotSupported;
|
|
1013 |
|
|
1014 |
// Call Handle... method in Licensee LTSY
|
|
1015 |
if (iLtsyDispatchCallControlQueryIsEmergencyNumber)
|
|
1016 |
{
|
|
1017 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
1018 |
|
|
1019 |
RMmCustomAPI::TEmerNumberCheckMode* numberCheckMode;
|
|
1020 |
aDataPackage->UnPackData(&numberCheckMode);
|
|
1021 |
|
|
1022 |
TBool isEmergencyNumber = ETrue;
|
|
1023 |
|
|
1024 |
ret = iLtsyDispatchCallControlQueryIsEmergencyNumber->HandleQueryIsEmergencyNumberSyncL(
|
|
1025 |
numberCheckMode->iNumber, isEmergencyNumber);
|
|
1026 |
|
|
1027 |
// Trigger async one shot completer
|
|
1028 |
if (ret == KErrNone)
|
|
1029 |
{
|
|
1030 |
// CTSY handling of ECustomCheckEmergencyNumberIPC is as follows...
|
|
1031 |
// It expects the lower layer to do the following:
|
|
1032 |
//
|
|
1033 |
// - If the number is an emergency number, return KErrNone as error code,
|
|
1034 |
// and CMmDataPackage containing the number.
|
|
1035 |
//
|
|
1036 |
// - If the number is not an emergency number, return KErrNone as error code,
|
|
1037 |
// and NULL in the CMmDataPackage.
|
|
1038 |
//
|
|
1039 |
// - If there was a problem checking the number, return error != KErrNone.
|
|
1040 |
|
|
1041 |
if (isEmergencyNumber)
|
|
1042 |
{
|
|
1043 |
iQueryEmergencyNumber = numberCheckMode->iNumber;
|
|
1044 |
}
|
|
1045 |
else
|
|
1046 |
{
|
|
1047 |
iQueryEmergencyNumber.Zero();
|
|
1048 |
}
|
|
1049 |
|
|
1050 |
// For this particular IPC, the CMmDataPackage expected by CTSY on
|
|
1051 |
// callback contains the emergency number sent down originally rather
|
|
1052 |
// than anything explicitly returned by the LTSY in the sync call,
|
|
1053 |
// therefore the number is cached and the CMmDataPackage package is
|
|
1054 |
// constructed on callback.
|
|
1055 |
// dataPackage->iDataPackage is NULL here.
|
|
1056 |
CRequestQueueOneShot::TIpcDataPackage* dataPackage =
|
|
1057 |
new (ELeave) CRequestQueueOneShot::TIpcDataPackage;
|
|
1058 |
dataPackage->iIpc = ECustomCheckEmergencyNumberIPC;
|
|
1059 |
dataPackage->iResultCode = KErrNone;
|
|
1060 |
dataPackage->iDataPackage = NULL;
|
|
1061 |
dataPackage->iDispatcherCallback = this;
|
|
1062 |
iRequestAsyncOneShot.QueueRequest(*dataPackage);
|
|
1063 |
}
|
|
1064 |
}
|
|
1065 |
|
|
1066 |
return TSYLOGSETEXITERR(ret);
|
|
1067 |
} // CCallControlDispatcher::DispatchQueryIsEmergencyNumberL
|
|
1068 |
|
|
1069 |
TInt CCallControlDispatcher::DispatchGetAlsPpSupportL()
|
|
1070 |
/**
|
|
1071 |
* Pass ECustomCheckAlsPpSupportIPC request on to Licensee LTSY.
|
|
1072 |
*
|
|
1073 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
1074 |
* the Licensee LTSY does not support this request.
|
|
1075 |
*/
|
|
1076 |
{
|
|
1077 |
TSYLOGENTRYEXIT;
|
|
1078 |
TInt ret = KErrNotSupported;
|
|
1079 |
|
|
1080 |
// Call Handle... method in Licensee LTSY
|
|
1081 |
if (iLtsyDispatchCallControlGetAlsPpSupport)
|
|
1082 |
{
|
|
1083 |
ret = iLtsyDispatchCallControlGetAlsPpSupport->HandleGetAlsPpSupportL();
|
|
1084 |
}
|
|
1085 |
|
|
1086 |
return TSYLOGSETEXITERR(ret);
|
|
1087 |
} // CCallControlDispatcher::DispatchGetAlsPpSupportL
|
|
1088 |
|
|
1089 |
TInt CCallControlDispatcher::DispatchGetAlsBlockedStatusL()
|
|
1090 |
/**
|
|
1091 |
* Pass ECustomGetAlsBlockedIPC request on to Licensee LTSY.
|
|
1092 |
*
|
|
1093 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
1094 |
* the Licensee LTSY does not support this request.
|
|
1095 |
*/
|
|
1096 |
{
|
|
1097 |
TSYLOGENTRYEXIT;
|
|
1098 |
TInt ret = KErrNotSupported;
|
|
1099 |
|
|
1100 |
// Call Handle... method in Licensee LTSY
|
|
1101 |
if (iLtsyDispatchCallControlGetAlsBlockedStatus)
|
|
1102 |
{
|
|
1103 |
ret = iLtsyDispatchCallControlGetAlsBlockedStatus->HandleGetAlsBlockedStatusL();
|
|
1104 |
}
|
|
1105 |
|
|
1106 |
return TSYLOGSETEXITERR(ret);
|
|
1107 |
} // CCallControlDispatcher::DispatchGetAlsBlockedStatusL
|
|
1108 |
|
|
1109 |
TInt CCallControlDispatcher::DispatchSetAlsBlockedL(const CMmDataPackage* aDataPackage)
|
|
1110 |
/**
|
|
1111 |
* Unpack data related to ECustomSetAlsBlockedIPC
|
|
1112 |
* and pass request on to Licensee LTSY.
|
|
1113 |
*
|
|
1114 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
1115 |
* the Licensee LTSY does not support this request.
|
|
1116 |
*/
|
|
1117 |
{
|
|
1118 |
TSYLOGENTRYEXIT;
|
|
1119 |
TInt ret = KErrNotSupported;
|
|
1120 |
|
|
1121 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
1122 |
// Call Handle... method in Licensee LTSY
|
|
1123 |
if (iLtsyDispatchCallControlSetAlsBlocked)
|
|
1124 |
{
|
|
1125 |
RMmCustomAPI::TSetAlsBlock alsBlock;
|
|
1126 |
aDataPackage->UnPackData(alsBlock);
|
|
1127 |
ret = iLtsyDispatchCallControlSetAlsBlocked->HandleSetAlsBlockedL(alsBlock);
|
|
1128 |
}
|
|
1129 |
|
|
1130 |
return TSYLOGSETEXITERR(ret);
|
|
1131 |
} // CCallControlDispatcher::DispatchSetAlsBlockedL
|
|
1132 |
|
|
1133 |
TInt CCallControlDispatcher::DispatchGetLifeTimeL()
|
|
1134 |
/**
|
|
1135 |
* Pass ECustomGetLifeTimeIPC request on to Licensee LTSY.
|
|
1136 |
*
|
|
1137 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
1138 |
* the Licensee LTSY does not support this request.
|
|
1139 |
*/
|
|
1140 |
{
|
|
1141 |
TSYLOGENTRYEXIT;
|
|
1142 |
TInt ret = KErrNotSupported;
|
|
1143 |
|
|
1144 |
// Call Handle... method in Licensee LTSY
|
|
1145 |
if (iLtsyDispatchCallControlGetLifeTime)
|
|
1146 |
{
|
|
1147 |
ret = iLtsyDispatchCallControlGetLifeTime->HandleGetLifeTimeL();
|
|
1148 |
}
|
|
1149 |
|
|
1150 |
return TSYLOGSETEXITERR(ret);
|
|
1151 |
} // CCallControlDispatcher::DispatchGetLifeTimeL
|
|
1152 |
|
|
1153 |
TInt CCallControlDispatcher::DispatchTerminateCallL(const CMmDataPackage* aDataPackage)
|
|
1154 |
/**
|
|
1155 |
* Unpack data related to ECustomTerminateCallIPC
|
|
1156 |
* and pass request on to Licensee LTSY.
|
|
1157 |
*
|
|
1158 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
1159 |
* the Licensee LTSY does not support this request.
|
|
1160 |
*/
|
|
1161 |
{
|
|
1162 |
TSYLOGENTRYEXIT;
|
|
1163 |
TInt ret = KErrNotSupported;
|
|
1164 |
|
|
1165 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
1166 |
// Call Handle... method in Licensee LTSY
|
|
1167 |
if (iLtsyDispatchCallControlTerminateErrorCall && iLtsyDispatchCallControlTerminateAllCalls)
|
|
1168 |
{
|
|
1169 |
TInt callId;
|
|
1170 |
TBool isError;
|
|
1171 |
aDataPackage->UnPackData(callId,isError);
|
|
1172 |
if ((isError) && (callId <= 0))
|
|
1173 |
{
|
|
1174 |
ret = KErrCorrupt;
|
|
1175 |
}
|
|
1176 |
else if ((!isError) && (callId > 0))
|
|
1177 |
{
|
|
1178 |
ret = KErrCorrupt;
|
|
1179 |
}
|
|
1180 |
else if(isError)
|
|
1181 |
{
|
|
1182 |
ret = iLtsyDispatchCallControlTerminateErrorCall->HandleTerminateErrorCallL(callId);
|
|
1183 |
}
|
|
1184 |
else
|
|
1185 |
{
|
|
1186 |
// The callId is the negative id of a call in a connecting state (if there is one)
|
|
1187 |
// we shall not pass it to the LTSY since our assumption is that it will know all calls (whether active or in the process of connecting).
|
|
1188 |
ret = iLtsyDispatchCallControlTerminateAllCalls->HandleTerminateAllCallsL();
|
|
1189 |
}
|
|
1190 |
}
|
|
1191 |
|
|
1192 |
return TSYLOGSETEXITERR(ret);
|
|
1193 |
} // CCallControlDispatcher::DispatchTerminateCallL
|
|
1194 |
|
|
1195 |
TInt CCallControlDispatcher::DispatchGetCallForwardingIndicatorL()
|
|
1196 |
/**
|
|
1197 |
* Pass ECustomGetIccCallForwardingStatusIPC request on to Licensee LTSY.
|
|
1198 |
*
|
|
1199 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
1200 |
* the Licensee LTSY does not support this request.
|
|
1201 |
*/
|
|
1202 |
{
|
|
1203 |
TSYLOGENTRYEXIT;
|
|
1204 |
TInt ret = KErrNotSupported;
|
|
1205 |
|
|
1206 |
// Call Handle... method in Licensee LTSY
|
|
1207 |
if (iLtsyDispatchCallControlGetCallForwardingIndicator)
|
|
1208 |
{
|
|
1209 |
ret = iLtsyDispatchCallControlGetCallForwardingIndicator->HandleGetCallForwardingIndicatorL();
|
|
1210 |
}
|
|
1211 |
|
|
1212 |
return TSYLOGSETEXITERR(ret);
|
|
1213 |
} // CCallControlDispatcher::DispatchGetCallForwardingIndicatorL
|
|
1214 |
|
|
1215 |
TInt CCallControlDispatcher::DispatchUpdateLifeTimeL(const CMmDataPackage* aDataPackage)
|
|
1216 |
/**
|
|
1217 |
* Unpack data related to ECtsyUpdateLifeTimeReq / ECtsyUpdateLifeTimeComp IPCs
|
|
1218 |
* and pass request on to Licensee LTSY.
|
|
1219 |
*
|
|
1220 |
* @return Returns error code returned by the Licensee LTSY or KErrNotSupported if
|
|
1221 |
* the Licensee LTSY does not support this request.
|
|
1222 |
*/
|
|
1223 |
{
|
|
1224 |
TSYLOGENTRYEXIT;
|
|
1225 |
TInt ret = KErrNotSupported;
|
|
1226 |
|
|
1227 |
// Call Handle... method in Licensee LTSY
|
|
1228 |
if (iLtsyDispatchCallControlUpdateLifeTimer)
|
|
1229 |
{
|
|
1230 |
__ASSERT_DEBUG(aDataPackage, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
1231 |
|
|
1232 |
TUint32 duration;
|
|
1233 |
aDataPackage->UnPackData(duration);
|
|
1234 |
|
|
1235 |
ret = iLtsyDispatchCallControlUpdateLifeTimer->HandleUpdateLifeTimerReqL(duration);
|
|
1236 |
}
|
|
1237 |
|
|
1238 |
return TSYLOGSETEXITERR(ret);
|
|
1239 |
} // CCallControlDispatcher::DispatchUpdateLifeTimeL
|
|
1240 |
|
|
1241 |
//
|
|
1242 |
// Callback handlers follow
|
|
1243 |
//
|
|
1244 |
|
|
1245 |
|
|
1246 |
void CCallControlDispatcher::CallbackNotifyCallStatusChange(TInt aError,
|
|
1247 |
TInt aCallId, RMobileCall::TMobileCallStatus aMobileCallStatus)
|
|
1248 |
/**
|
|
1249 |
* Callback function to be used by the request to complete
|
|
1250 |
* CCtsyDispatcherCallback::CallbackCallControlNotifyCallStatusChangeInd()
|
|
1251 |
*
|
|
1252 |
* Packs data into a format expected by the Common TSY.
|
|
1253 |
*
|
|
1254 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1255 |
*
|
|
1256 |
* @param aCallId The Call ID of the call aMobileCallStatus refers to.
|
|
1257 |
*
|
|
1258 |
* @param aMobileCallStatus The new status of the call refered to by aCallId.
|
|
1259 |
*/
|
|
1260 |
{
|
|
1261 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d, aMobileCallStatus=%d"), aError, aCallId, aMobileCallStatus);
|
|
1262 |
|
|
1263 |
CCallDataPackage dataPackage;
|
|
1264 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1265 |
dataPackage.PackData(const_cast<RMobileCall::TMobileCallStatus*>(&aMobileCallStatus));
|
|
1266 |
|
|
1267 |
iMessageManagerCallback.Complete(EMobileCallNotifyMobileCallStatusChange, &dataPackage, aError);
|
|
1268 |
|
|
1269 |
// For data calls, CTSY does not complete dial request back to client
|
|
1270 |
if (aMobileCallStatus == RMobileCall::EStatusConnected)
|
|
1271 |
{
|
|
1272 |
if (iFdnCheckPerformed)
|
|
1273 |
{
|
|
1274 |
iMessageManagerCallback.Complete(EEtelCallDial, &dataPackage, aError);
|
|
1275 |
}
|
|
1276 |
else
|
|
1277 |
{
|
|
1278 |
iMessageManagerCallback.Complete(EMobileCallDialNoFdnCheck, &dataPackage, aError);
|
|
1279 |
}
|
|
1280 |
}
|
|
1281 |
|
|
1282 |
} // CCallControlDispatcher::CallbackNotifyCallStatusChange
|
|
1283 |
|
|
1284 |
void CCallControlDispatcher::CallbackReceiveUui(
|
|
1285 |
TInt aError, TInt aCallId, const TDesC& aCallUui)
|
|
1286 |
/**
|
|
1287 |
* Callback function to be used by the request to complete
|
|
1288 |
* CCtsyDispatcherCallback::CallbackCallControlReceiveUuiInd().
|
|
1289 |
*
|
|
1290 |
* @param aError The error code to be returned to the CTSY.
|
|
1291 |
* @param aCallId The Call ID of the call.
|
|
1292 |
* @param aCallUui The UUI information received from the LTSY.
|
|
1293 |
*/
|
|
1294 |
{
|
|
1295 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1296 |
|
|
1297 |
TPtrC callUui(aCallUui);
|
|
1298 |
|
|
1299 |
// Pack the data to return to the Common TSY
|
|
1300 |
CCallDataPackage dataPackage;
|
|
1301 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1302 |
dataPackage.PackData(&callUui);
|
|
1303 |
|
|
1304 |
iMessageManagerCallback.Complete(EMobileCallReceiveUUI, &dataPackage, aError);
|
|
1305 |
} // CCallControlDispatcher::CallbackReceiveUui
|
|
1306 |
|
|
1307 |
void CCallControlDispatcher::CallbackNotifyDataCallCapsChange(TInt aError,
|
|
1308 |
TInt aCallId, const RMobileCall::TMobileCallDataCapsV1& aMobileCallDataCaps)
|
|
1309 |
/**
|
|
1310 |
* Callback function to be used by the request to complete
|
|
1311 |
* CCtsyDispatcherCallback::CallbackCallControlNotifyDataCallCapsChangeInd()
|
|
1312 |
*
|
|
1313 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1314 |
* @param aCallId The Call ID of the call whose capabilities have changed.
|
|
1315 |
* @param aMobileCallDataCaps The new capabilities of the data call.
|
|
1316 |
*/
|
|
1317 |
{
|
|
1318 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1319 |
|
|
1320 |
// Pack the data to return to the Common TSY
|
|
1321 |
CCallDataPackage dataPackage;
|
|
1322 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1323 |
dataPackage.PackData(const_cast<RMobileCall::TMobileCallDataCapsV1*>(&aMobileCallDataCaps));
|
|
1324 |
|
|
1325 |
iMessageManagerCallback.Complete(EMobileCallNotifyMobileDataCallCapsChange, &dataPackage, aError);
|
|
1326 |
} // CCallControlDispatcher::CallbackNotifyDataCallCapsChange
|
|
1327 |
|
|
1328 |
void CCallControlDispatcher::CallbackNotifyIncomingCall(TInt aError,
|
|
1329 |
const RMobileCall::TMobileCallInfoV1& aCallInfo)
|
|
1330 |
/**
|
|
1331 |
* Callback function to be used by the request to complete
|
|
1332 |
* CCtsyDispatcherCallback::CallbackCallControlNotifyIncomingCallInd()
|
|
1333 |
*
|
|
1334 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1335 |
* @param aCallInfo Call information from LTSY.
|
|
1336 |
*/
|
|
1337 |
{
|
|
1338 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1339 |
|
|
1340 |
// Pack the data to return to the Common TSY
|
|
1341 |
CCallDataPackage dataPackage;
|
|
1342 |
dataPackage.SetCallIdAndMode(aCallInfo.iCallId, aCallInfo.iService);
|
|
1343 |
dataPackage.PackData(const_cast<RMobileCall::TMobileCallInfoV1*>(&aCallInfo));
|
|
1344 |
|
|
1345 |
iMessageManagerCallback.Complete(EEtelLineNotifyIncomingCall, &dataPackage, aError);
|
|
1346 |
|
|
1347 |
CallbackNotifyCallStatusChange(aError, aCallInfo.iCallId, RMobileCall::EStatusRinging);
|
|
1348 |
|
|
1349 |
} // CCallControlDispatcher::CallbackNotifyIncomingCall
|
|
1350 |
|
|
1351 |
|
|
1352 |
void CCallControlDispatcher::CallbackNotifyHscsdInfoChange(TInt aError,
|
|
1353 |
TInt aCallId, const RMobileCall::TMobileCallHscsdInfoV8& aCallParams,
|
|
1354 |
const RMobileCall::TMobileCallDataCapsV1& aCallCaps)
|
|
1355 |
/**
|
|
1356 |
* Callback function to be used by the request to complete
|
|
1357 |
* CCtsyDispatcherCallback::CallbackCallControlNotifyHscsdInfoChangeInd().
|
|
1358 |
*
|
|
1359 |
* @param aError The error code returned from the LTSY.
|
|
1360 |
* @param aCallId The Call ID returned from the LTSY.
|
|
1361 |
* @param aCallParams The call params returned from the LTSY.
|
|
1362 |
* @param aCallInfo The call information returned from the LTSY.
|
|
1363 |
*/
|
|
1364 |
{
|
|
1365 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1366 |
|
|
1367 |
// Pack the data to return to the Common TSY
|
|
1368 |
CCallDataPackage dataPackage;
|
|
1369 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::ECircuitDataService);
|
|
1370 |
dataPackage.PackData(const_cast<RMobileCall::TMobileCallHscsdInfoV8*>(&aCallParams),
|
|
1371 |
const_cast<RMobileCall::TMobileCallDataCapsV1*>(&aCallCaps));
|
|
1372 |
|
|
1373 |
iMessageManagerCallback.Complete(EMobileCallNotifyHscsdInfoChange, &dataPackage, aError);
|
|
1374 |
|
|
1375 |
} // CCallControlDispatcher::CallbackNotifyHscsdInfoChange
|
|
1376 |
|
|
1377 |
void CCallControlDispatcher::CallbackNotifyCallEvent(TInt aError,
|
|
1378 |
TInt aCallId, RMobileCall::TMobileCallEvent aCallEvent)
|
|
1379 |
/**
|
|
1380 |
* Callback function to be used by the request to complete
|
|
1381 |
* CCtsyDispatcherCallback::CallbackCallControlNotifyCallEventInd()
|
|
1382 |
*
|
|
1383 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1384 |
* @param aCallId Call ID returned from LTSY
|
|
1385 |
* @param aCallEvent Call event returned from LTSY
|
|
1386 |
*/
|
|
1387 |
{
|
|
1388 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d, aCallEvent=%d"), aError, aCallId, aCallEvent);
|
|
1389 |
|
|
1390 |
CCallDataPackage dataPackage;
|
|
1391 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1392 |
dataPackage.PackData(const_cast<RMobileCall::TMobileCallEvent*>(&aCallEvent));
|
|
1393 |
|
|
1394 |
iMessageManagerCallback.Complete(EMobileCallNotifyCallEvent, &dataPackage, aError);
|
|
1395 |
|
|
1396 |
} // CCallControlDispatcher::CallbackNotifyCallEvent
|
|
1397 |
|
|
1398 |
void CCallControlDispatcher::CallbackNotifyCallInfoChange(
|
|
1399 |
TInt aError, const RMobileCall::TMobileCallInfoV1& aMobileCallInfo)
|
|
1400 |
/**
|
|
1401 |
* Callback function to be used by the request to complete
|
|
1402 |
* CCtsyDispatcherCallback::CallbackCallControlNotifyCallInfoChangeInd().
|
|
1403 |
*
|
|
1404 |
* @param aError The error code returned by the LTSY.
|
|
1405 |
* @param aMobileCallInfo The call information relating to the call identified by aCallId.
|
|
1406 |
*/
|
|
1407 |
{
|
|
1408 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, callId=%d, callMode=%d"), aError, aMobileCallInfo.iCallId, aMobileCallInfo.iService);
|
|
1409 |
|
|
1410 |
// Pack the data to return to the Common TSY
|
|
1411 |
CCallDataPackage dataPackage;
|
|
1412 |
dataPackage.SetCallIdAndMode(aMobileCallInfo.iCallId, aMobileCallInfo.iService);
|
|
1413 |
dataPackage.PackData(const_cast<RMobileCall::TMobileCallInfoV1*>(&aMobileCallInfo));
|
|
1414 |
|
|
1415 |
iMessageManagerCallback.Complete(EMobileCallGetMobileCallInfo, &dataPackage, aError);
|
|
1416 |
|
|
1417 |
} // CCallControlDispatcher::CallbackNotifyCallInfoChange
|
|
1418 |
|
|
1419 |
void CCallControlDispatcher::CallbackRemoteAlertingToneChange(
|
|
1420 |
TInt aError, RMmCustomAPI::TRemoteAlertingToneStatus aRemoteAlertingTone)
|
|
1421 |
/**
|
|
1422 |
* Callback function to be used by the request to complete
|
|
1423 |
* CCtsyDispatcherCallback::CallbackCallControlRemoteAlertingToneChangeInd().
|
|
1424 |
*
|
|
1425 |
* @param aError The error code returned by the LTSY.
|
|
1426 |
* @param aRemoteAlertingTone The new remote alerting status (either RMmCustomAPI::EUiRbtTone
|
|
1427 |
* when it is a ringback tone or RMmCustomAPI::EUiStopTone when it's a stop tone)
|
|
1428 |
*/
|
|
1429 |
{
|
|
1430 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aRemoteAlertingTone=%d"), aError, aRemoteAlertingTone);
|
|
1431 |
|
|
1432 |
CMmDataPackage dataPackage;
|
|
1433 |
|
|
1434 |
// Pack the data to return to the Common TSY
|
|
1435 |
if(aRemoteAlertingTone != RMmCustomAPI::EUiNoTone)
|
|
1436 |
{
|
|
1437 |
TBool playRemoteAlertToneLocally = (aRemoteAlertingTone == RMmCustomAPI::EUiRbtTone) ? TRUE : FALSE;
|
|
1438 |
dataPackage.PackData(&playRemoteAlertToneLocally);
|
|
1439 |
|
|
1440 |
iMessageManagerCallback.Complete(ECustomGetRemoteAlertingToneStatusIPC, &dataPackage, aError);
|
|
1441 |
}
|
|
1442 |
|
|
1443 |
dataPackage.PackData(&aRemoteAlertingTone);
|
|
1444 |
iMessageManagerCallback.Complete(ECustomNotifyRemoteAlertingToneStatusChangeIPC, &dataPackage, aError);
|
|
1445 |
|
|
1446 |
|
|
1447 |
} // CCallControlDispatcher::CallbackRemoteAlertingToneChange
|
|
1448 |
|
|
1449 |
|
|
1450 |
void CCallControlDispatcher::CallbackAnswer(TInt aError, TInt aCallId)
|
|
1451 |
/**
|
|
1452 |
* Callback function to be used by the request to complete
|
|
1453 |
* CCtsyDispatcherCallback::CallbackCallControlAnswerComp()
|
|
1454 |
*
|
|
1455 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1456 |
* @param aCallId The Call ID returned from the LTSY.
|
|
1457 |
*/
|
|
1458 |
{
|
|
1459 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1460 |
|
|
1461 |
// For cases where the answer completes with no error, call status change
|
|
1462 |
// notifications come from the LTSY to indicate the call is connected.
|
|
1463 |
// The EStatusConnected status will complete the client's answer request.
|
|
1464 |
if (aError != KErrNone)
|
|
1465 |
{
|
|
1466 |
CCallDataPackage dataPackage;
|
|
1467 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1468 |
iMessageManagerCallback.Complete(EEtelCallAnswer, &dataPackage, aError);
|
|
1469 |
}
|
|
1470 |
|
|
1471 |
} // CCallControlDispatcher::CallbackAnswer
|
|
1472 |
|
|
1473 |
|
|
1474 |
void CCallControlDispatcher::CallbackHold(TInt aError, TInt aCallId)
|
|
1475 |
/**
|
|
1476 |
* Callback function to be used by the request to complete
|
|
1477 |
* CCtsyDispatcherCallback::CallbackCallControlHoldComp().
|
|
1478 |
*
|
|
1479 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1480 |
* @param aCallId The Call ID of the call which was requested to be held.
|
|
1481 |
*/
|
|
1482 |
{
|
|
1483 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1484 |
|
|
1485 |
CCallDataPackage dataPackage;
|
|
1486 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1487 |
|
|
1488 |
if (aError != KErrNone)
|
|
1489 |
{
|
|
1490 |
iMessageManagerCallback.Complete(EMobileCallHold, &dataPackage, aError);
|
|
1491 |
}
|
|
1492 |
|
|
1493 |
} // CCallControlDispatcher::CallbackHold
|
|
1494 |
|
|
1495 |
void CCallControlDispatcher::CallbackDialEmergency(TInt aError,
|
|
1496 |
TInt aCallId)
|
|
1497 |
/**
|
|
1498 |
* Callback function to be used by the request to complete
|
|
1499 |
* CCtsyDispatcherCallback::CallbackCallControlDialEmergencyComp()
|
|
1500 |
*
|
|
1501 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1502 |
* @param aCallId The call ID returned from the LTSY
|
|
1503 |
*/
|
|
1504 |
{
|
|
1505 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1506 |
|
|
1507 |
if (aError == KErrNone)
|
|
1508 |
{
|
|
1509 |
DoCallbackDial(aError, aCallId, RMobilePhone::EVoiceService);
|
|
1510 |
iModeUsedForVoiceCallDial = RMobilePhone::EServiceUnspecified;
|
|
1511 |
}
|
|
1512 |
else
|
|
1513 |
{
|
|
1514 |
// When dialling of an emergency call fails, the CTSY expects a particular
|
|
1515 |
// series of completions
|
|
1516 |
|
|
1517 |
RMobileCall::TMobileCallInfoV1 callInfo;
|
|
1518 |
callInfo.iService = RMobilePhone::EVoiceService;
|
|
1519 |
callInfo.iCallId = aCallId;
|
|
1520 |
|
|
1521 |
CCallDataPackage dataPackage;
|
|
1522 |
dataPackage.SetCallIdAndMode(aCallId, callInfo.iService);
|
|
1523 |
dataPackage.PackData(&callInfo);
|
|
1524 |
|
|
1525 |
CallbackNotifyCallInfoChange(aError, callInfo);
|
|
1526 |
|
|
1527 |
CallbackNotifyCallStatusChange(aError, aCallId, RMobileCall::EStatusIdle);
|
|
1528 |
}
|
|
1529 |
|
|
1530 |
} // CCallControlDispatcher::CallbackDialEmergency
|
|
1531 |
|
|
1532 |
|
|
1533 |
void CCallControlDispatcher::CallbackStopDtmfTone(TInt aError)
|
|
1534 |
/**
|
|
1535 |
* Callback function to be used by the request to complete
|
|
1536 |
* CCtsyDispatcherCallback::CallbackCallControlStopDtmfToneComp()
|
|
1537 |
*
|
|
1538 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1539 |
*/
|
|
1540 |
{
|
|
1541 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1542 |
|
|
1543 |
iMessageManagerCallback.Complete(EMobilePhoneStopDTMFTone, aError);
|
|
1544 |
|
|
1545 |
} // CCallControlDispatcher::CallbackStopDtmfTone
|
|
1546 |
|
|
1547 |
void CCallControlDispatcher::CallbackSetActiveAlsLine(TInt aError)
|
|
1548 |
/**
|
|
1549 |
* Callback function to be used by the request to complete
|
|
1550 |
* CCtsyDispatcherCallback::CallbackCallControlSetActiveAlsLineComp()
|
|
1551 |
*
|
|
1552 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1553 |
*/
|
|
1554 |
{
|
|
1555 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1556 |
|
|
1557 |
iMessageManagerCallback.Complete(EMobilePhoneSetALSLine, aError);
|
|
1558 |
|
|
1559 |
} // CCallControlDispatcher::CallbackSetActiveAlsLine
|
|
1560 |
|
|
1561 |
void CCallControlDispatcher::CallbackSendDtmfTonesCancel(TInt aError)
|
|
1562 |
/**
|
|
1563 |
* Callback function to be used by the request to complete
|
|
1564 |
* CCtsyDispatcherCallback::CallbackCallControlSendDtmfTonesCancelComp().
|
|
1565 |
*
|
|
1566 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1567 |
*/
|
|
1568 |
{
|
|
1569 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1570 |
|
|
1571 |
iMessageManagerCallback.Complete(EMobilePhoneSendDTMFTonesCancel, aError);
|
|
1572 |
} // CCallControlDispatcher::CallbackSendDtmfTonesCancel
|
|
1573 |
|
|
1574 |
void CCallControlDispatcher::CallbackHangUp(TInt aError, TInt aCallId)
|
|
1575 |
/**
|
|
1576 |
* Callback function to be used by the request to complete
|
|
1577 |
* CCtsyDispatcherCallback::CallbackCallControlHangUpComp()
|
|
1578 |
*
|
|
1579 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1580 |
* @param aCallId The Call ID of the call which has been hung up.
|
|
1581 |
*
|
|
1582 |
* @see RCall::HangUp
|
|
1583 |
*/
|
|
1584 |
{
|
|
1585 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1586 |
|
|
1587 |
CCallDataPackage dataPackage;
|
|
1588 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1589 |
|
|
1590 |
iMessageManagerCallback.Complete(EEtelCallHangUp, &dataPackage, aError);
|
|
1591 |
} // CCallControlDispatcher::CallbackHangUp
|
|
1592 |
|
|
1593 |
void CCallControlDispatcher::CallbackResume(TInt aError, TInt aCallId)
|
|
1594 |
/**
|
|
1595 |
* Callback function to be used by the request to complete
|
|
1596 |
* CCtsyDispatcherCallback::CallbackCallControlResumeComp()
|
|
1597 |
*
|
|
1598 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1599 |
* @param aCallId The Call ID returned by CCtsyDispatcherCallback.
|
|
1600 |
*/
|
|
1601 |
{
|
|
1602 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1603 |
|
|
1604 |
CCallDataPackage dataPackage;
|
|
1605 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1606 |
|
|
1607 |
if (aError != KErrNone)
|
|
1608 |
{
|
|
1609 |
iMessageManagerCallback.Complete(EMobileCallResume, &dataPackage, aError);
|
|
1610 |
}
|
|
1611 |
|
|
1612 |
} // CCallControlDispatcher::CallbackResume
|
|
1613 |
|
|
1614 |
void CCallControlDispatcher::CallbackSetDynamicHscsdParams(TInt aError,
|
|
1615 |
TInt aCallId)
|
|
1616 |
/**
|
|
1617 |
* Callback function to be used by the request to complete
|
|
1618 |
* CCtsyDispatcherCallback::CallbackCallControlSetDynamicHscsdParamsComp()
|
|
1619 |
*
|
|
1620 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1621 |
* @param aCallId The Call ID returned to the CTSY.
|
|
1622 |
*/
|
|
1623 |
{
|
|
1624 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1625 |
|
|
1626 |
CCallDataPackage dataPackage;
|
|
1627 |
dataPackage.SetCallIdAndMode(aCallId, RMobilePhone::EServiceUnspecified);
|
|
1628 |
|
|
1629 |
iMessageManagerCallback.Complete(EMobileCallSetDynamicHscsdParams, &dataPackage, aError);
|
|
1630 |
|
|
1631 |
} // CCallControlDispatcher::CallbackSetDynamicHscsdParams
|
|
1632 |
|
|
1633 |
|
|
1634 |
void CCallControlDispatcher::CallbackDialVoice(TInt aError, TInt aCallId)
|
|
1635 |
/**
|
|
1636 |
* Callback function to be used by the request to complete
|
|
1637 |
* CCtsyDispatcherCallback::CallbackCallControlDialVoiceComp()
|
|
1638 |
*
|
|
1639 |
* @param aError The error code to be returned to the CTSY.
|
|
1640 |
*
|
|
1641 |
* @param aCallId The Call ID returned to the CTSY.
|
|
1642 |
*
|
|
1643 |
*/
|
|
1644 |
{
|
|
1645 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1646 |
|
|
1647 |
DoCallbackDial(aError, aCallId, iModeUsedForVoiceCallDial);
|
|
1648 |
iModeUsedForVoiceCallDial = RMobilePhone::EServiceUnspecified;
|
|
1649 |
|
|
1650 |
} // CCallControlDispatcher::CallbackDialVoice
|
|
1651 |
|
|
1652 |
void CCallControlDispatcher::CallbackTransfer(TInt aError)
|
|
1653 |
/**
|
|
1654 |
* Callback function to be used by the request to complete
|
|
1655 |
* CCtsyDispatcherCallback::CallbackCallControlTransferComp()
|
|
1656 |
*
|
|
1657 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1658 |
*/
|
|
1659 |
{
|
|
1660 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1661 |
|
|
1662 |
// If the transfer was not called on this call ID, the CTSY will have
|
|
1663 |
// no reqHandle for this IPC so calling both here is OK.
|
|
1664 |
|
|
1665 |
// Check in case LTSY has completed a transfer when no transfer was called
|
|
1666 |
// Don't complete back to CTSY in this case
|
|
1667 |
CCallDataPackage dataPackage;
|
|
1668 |
|
|
1669 |
if (iTransferHeldCallId != KInvalidCallId)
|
|
1670 |
{
|
|
1671 |
dataPackage.SetCallIdAndMode(iTransferHeldCallId, RMobilePhone::EServiceUnspecified);
|
|
1672 |
iTransferHeldCallId = KInvalidCallId;
|
|
1673 |
iMessageManagerCallback.Complete(EMobileCallTransfer, &dataPackage, aError);
|
|
1674 |
}
|
|
1675 |
|
|
1676 |
if (iTransferSecondCallId != KInvalidCallId)
|
|
1677 |
{
|
|
1678 |
dataPackage.SetCallIdAndMode(iTransferSecondCallId, RMobilePhone::EServiceUnspecified);
|
|
1679 |
iSecondSwapCallId = KInvalidCallId;
|
|
1680 |
iMessageManagerCallback.Complete(EMobileCallTransfer, &dataPackage, aError);
|
|
1681 |
}
|
|
1682 |
|
|
1683 |
} // CCallControlDispatcher::CallbackTransfer
|
|
1684 |
|
|
1685 |
void CCallControlDispatcher::CallbackSendDtmfTones(TInt aError)
|
|
1686 |
/**
|
|
1687 |
* Callback function to be used by the request to complete
|
|
1688 |
* CCtsyDispatcherCallback::CallbackCallControlSendDtmfTonesComp()
|
|
1689 |
*
|
|
1690 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1691 |
*/
|
|
1692 |
{
|
|
1693 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1694 |
|
|
1695 |
if (iFoundDtmfStop)
|
|
1696 |
{
|
|
1697 |
// Part of the DTMF string (after the 'w') has been cached, and there is
|
|
1698 |
// still more to send so notify the client of the stop character
|
|
1699 |
// Make a copy of the cached data as CTSY deletes previous pointer
|
|
1700 |
CMmDataPackage dataPackage;
|
|
1701 |
dataPackage.PackData(&iDtmfString);
|
|
1702 |
iMessageManagerCallback.Complete(EMobilePhoneNotifyStopInDTMFString, &dataPackage, aError);
|
|
1703 |
iDtmfString.Zero();
|
|
1704 |
iFoundDtmfStop = EFalse;
|
|
1705 |
}
|
|
1706 |
else
|
|
1707 |
{
|
|
1708 |
// There was no 'w' in the string, normal completion of send
|
|
1709 |
iMessageManagerCallback.Complete(EMobilePhoneSendDTMFTones, aError);
|
|
1710 |
}
|
|
1711 |
|
|
1712 |
} // CCallControlDispatcher::CallbackSendDtmfTones
|
|
1713 |
|
|
1714 |
void CCallControlDispatcher::CallbackGetIdentityServiceStatus(TInt aError,
|
|
1715 |
RMobilePhone::TMobilePhoneIdServiceStatus aIdentityServiceStatus)
|
|
1716 |
/**
|
|
1717 |
* Callback function to be used by the request to complete
|
|
1718 |
* CCtsyDispatcherCallback::CallbackCallControlGetIdentityServiceStatusComp()
|
|
1719 |
*
|
|
1720 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1721 |
* @param aIdentityServiceStatus The identity service status returned to the CTSY.
|
|
1722 |
*/
|
|
1723 |
{
|
|
1724 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aIdentityServiceStatus=%d"), aError, aIdentityServiceStatus);
|
|
1725 |
|
|
1726 |
// Pack the data to return to the Common TSY
|
|
1727 |
CMmDataPackage dataPackage;
|
|
1728 |
dataPackage.PackData(const_cast<RMobilePhone::TMobilePhoneIdServiceStatus*>(&aIdentityServiceStatus));
|
|
1729 |
|
|
1730 |
iMessageManagerCallback.Complete(EMobilePhoneGetIdentityServiceStatus, &dataPackage, aError);
|
|
1731 |
|
|
1732 |
} // CCallControlDispatcher::CallbackGetIdentityServiceStatus
|
|
1733 |
|
|
1734 |
void CCallControlDispatcher::CallbackSwap(TInt aError)
|
|
1735 |
/**
|
|
1736 |
* Callback function to be used by the request to complete
|
|
1737 |
* CCtsyDispatcherCallback::CallbackCallControlSwapComp()
|
|
1738 |
*
|
|
1739 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1740 |
*/
|
|
1741 |
{
|
|
1742 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1743 |
|
|
1744 |
if (aError != KErrNone)
|
|
1745 |
{
|
|
1746 |
CCallDataPackage dataPackage;
|
|
1747 |
|
|
1748 |
// If the swap was not called on this call ID, the CTSY will have
|
|
1749 |
// no reqHandle for this IPC so calling both here is OK.
|
|
1750 |
|
|
1751 |
// Check in case LTSY has completed a swap when no swap was called
|
|
1752 |
// Don't complete back to CTSY in this case
|
|
1753 |
|
|
1754 |
if (iSwapCallId != KInvalidCallId)
|
|
1755 |
{
|
|
1756 |
dataPackage.SetCallIdAndMode(iSwapCallId, RMobilePhone::EServiceUnspecified);
|
|
1757 |
iSwapCallId = KInvalidCallId;
|
|
1758 |
iMessageManagerCallback.Complete(EMobileCallSwap, &dataPackage, aError);
|
|
1759 |
}
|
|
1760 |
|
|
1761 |
if (iSecondSwapCallId != KInvalidCallId)
|
|
1762 |
{
|
|
1763 |
dataPackage.SetCallIdAndMode(iSecondSwapCallId, RMobilePhone::EServiceUnspecified);
|
|
1764 |
iSecondSwapCallId = KInvalidCallId;
|
|
1765 |
iMessageManagerCallback.Complete(EMobileCallSwap, &dataPackage, aError);
|
|
1766 |
}
|
|
1767 |
|
|
1768 |
}
|
|
1769 |
|
|
1770 |
} // CCallControlDispatcher::CallbackSwap
|
|
1771 |
|
|
1772 |
void CCallControlDispatcher::CallbackStartDtmfTone(TInt aError)
|
|
1773 |
/**
|
|
1774 |
* Callback function to be used by the request to complete
|
|
1775 |
* CCtsyDispatcherCallback::CallbackCallControlStartDtmfToneComp()
|
|
1776 |
*
|
|
1777 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
1778 |
*/
|
|
1779 |
{
|
|
1780 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1781 |
|
|
1782 |
iMessageManagerCallback.Complete(EMobilePhoneStartDTMFTone, aError);
|
|
1783 |
|
|
1784 |
} // CCallControlDispatcher::CallbackStartDtmfTone
|
|
1785 |
|
|
1786 |
void CCallControlDispatcher::CallbackGetActiveAlsLine(
|
|
1787 |
TInt aError, RMobilePhone::TMobilePhoneALSLine aAlsLine)
|
|
1788 |
/**
|
|
1789 |
* Packages the data returned by the Licensee LTSY and completes the
|
|
1790 |
* request back to the Common TSY.
|
|
1791 |
*
|
|
1792 |
* @param aError The error code to complete back.
|
|
1793 |
* @param aAlsLine The ALS line returned by the Licensee LTSY.
|
|
1794 |
*/
|
|
1795 |
{
|
|
1796 |
TSYLOGENTRYEXITARGS(_L8("aError=%d aAlsLine=%d"), aError, aAlsLine);
|
|
1797 |
|
|
1798 |
// Package up data to return to Common TSY
|
|
1799 |
CMmDataPackage dataPackage;
|
|
1800 |
dataPackage.PackData(const_cast<RMobilePhone::TMobilePhoneALSLine*>(&aAlsLine));
|
|
1801 |
|
|
1802 |
// Now complete the actual get request
|
|
1803 |
iMessageManagerCallback.Complete(EMobilePhoneGetALSLine, &dataPackage, aError);
|
|
1804 |
|
|
1805 |
} // CPhoneDispatcher::CallbackGetActiveAlsLine
|
|
1806 |
|
|
1807 |
void CCallControlDispatcher::CallbackDialData(TInt aError, TInt aCallId)
|
|
1808 |
/**
|
|
1809 |
* Callback function to be used by the request to complete
|
|
1810 |
* CCtsyDispatcherCallback::CallbackCallControlDialDataComp().
|
|
1811 |
*
|
|
1812 |
* @param aError The error code to be returned to the CTSY.
|
|
1813 |
*
|
|
1814 |
* @param aCallId The Call ID returned to the CTSY.
|
|
1815 |
*
|
|
1816 |
*/
|
|
1817 |
{
|
|
1818 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aCallId=%d"), aError, aCallId);
|
|
1819 |
|
|
1820 |
DoCallbackDial(aError, aCallId, RMobilePhone::ECircuitDataService);
|
|
1821 |
iModeUsedForVoiceCallDial = RMobilePhone::EServiceUnspecified;
|
|
1822 |
|
|
1823 |
} // CCallControlDispatcher::CallbackDialData
|
|
1824 |
|
|
1825 |
void CCallControlDispatcher::CallbackGetAlsPpSupport(TInt aError, RMmCustomAPI::TAlsSupport aAlsSupport)
|
|
1826 |
/**
|
|
1827 |
* Callback function to be used by the request to complete
|
|
1828 |
* CCtsyDispatcherCallback::CallbackCallControlGetAlsPpSupportComp().
|
|
1829 |
*
|
|
1830 |
* @param aError The error code to be returned to the CTSY.
|
|
1831 |
*
|
|
1832 |
* @param aAlsSupport The return value from the LTSY.
|
|
1833 |
*
|
|
1834 |
*/
|
|
1835 |
{
|
|
1836 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aAlsSupport=%d"), aError, aAlsSupport);
|
|
1837 |
|
|
1838 |
// Package up data to return to Common TSY
|
|
1839 |
CMmDataPackage dataPackage;
|
|
1840 |
dataPackage.PackData(&aAlsSupport);
|
|
1841 |
|
|
1842 |
// Now complete the actual get request
|
|
1843 |
iMessageManagerCallback.Complete(ECustomCheckAlsPpSupportIPC, &dataPackage, aError);
|
|
1844 |
|
|
1845 |
} // CCallControlDispatcher::CallbackGetAlsPpSupport
|
|
1846 |
|
|
1847 |
void CCallControlDispatcher::CallbackGetAlsBlockedStatus(TInt aError, RMmCustomAPI::TGetAlsBlockStatus aAlsStatus)
|
|
1848 |
/**
|
|
1849 |
* Callback function to be used by the request to complete
|
|
1850 |
* CCtsyDispatcherCallback::CallbackCallControlGetAlsBlockedStatusComp().
|
|
1851 |
*
|
|
1852 |
* @param aError The error code to be returned to the CTSY.
|
|
1853 |
*
|
|
1854 |
* @param aAlsStatus The return value from the LTSY.
|
|
1855 |
*
|
|
1856 |
*/
|
|
1857 |
{
|
|
1858 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aAlsStatus=%d"), aError, aAlsStatus);
|
|
1859 |
|
|
1860 |
// Package up data to return to Common TSY
|
|
1861 |
CMmDataPackage dataPackage;
|
|
1862 |
dataPackage.PackData(&aAlsStatus);
|
|
1863 |
|
|
1864 |
// Now complete the actual get request
|
|
1865 |
iMessageManagerCallback.Complete(ECustomGetAlsBlockedIPC, &dataPackage, aError);
|
|
1866 |
|
|
1867 |
} // CCallControlDispatcher::CallbackGetAlsBlockedStatus
|
|
1868 |
|
|
1869 |
void CCallControlDispatcher::CallbackSetAlsBlocked(TInt aError)
|
|
1870 |
/**
|
|
1871 |
* Callback function to be used by the request to complete
|
|
1872 |
* CCtsyDispatcherCallback::CallbackCallControlSetAlsBlockedComp().
|
|
1873 |
*
|
|
1874 |
* @param aError The error code to be returned to the CTSY.
|
|
1875 |
*
|
|
1876 |
*/
|
|
1877 |
{
|
|
1878 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1879 |
|
|
1880 |
// Now complete the actual get request
|
|
1881 |
iMessageManagerCallback.Complete(ECustomSetAlsBlockedIPC, aError);
|
|
1882 |
|
|
1883 |
} // CCallControlDispatcher::CallbackSetAlsBlocked
|
|
1884 |
|
|
1885 |
void CCallControlDispatcher::CallbackGetLifeTime(TInt aError)
|
|
1886 |
/**
|
|
1887 |
* Callback function to be used by the request to complete
|
|
1888 |
* CCtsyDispatcherCallback::CallbackCallControlGetLifeTimeComp().
|
|
1889 |
*
|
|
1890 |
* @param aError The error code to be returned to the CTSY.
|
|
1891 |
*
|
|
1892 |
*/
|
|
1893 |
{
|
|
1894 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1895 |
|
|
1896 |
// Package up data to return to Common TSY
|
|
1897 |
RMmCustomAPI::TLifeTimeData data;
|
|
1898 |
data.iCaps = 0;
|
|
1899 |
CMmDataPackage dataPackage;
|
|
1900 |
dataPackage.PackData(&data);
|
|
1901 |
|
|
1902 |
// Now complete the actual get request
|
|
1903 |
iMessageManagerCallback.Complete(ECustomGetLifeTimeIPC, &dataPackage, aError);
|
|
1904 |
|
|
1905 |
} // CCallControlDispatcher::CallbackGetLifeTime
|
|
1906 |
|
|
1907 |
void CCallControlDispatcher::CallbackGetLifeTime(TInt aError, TUint32 aHours, TUint8 aMinutes)
|
|
1908 |
/**
|
|
1909 |
* Callback function to be used by the request to complete
|
|
1910 |
* CCtsyDispatcherCallback::CallbackCallControlGetLifeTimeComp().
|
|
1911 |
*
|
|
1912 |
* @param aError The error code to be returned to the CTSY.
|
|
1913 |
*
|
|
1914 |
* @param aHours The amount of hours of airtime use since the manufacturing date. The range of the value should be 0-999999.
|
|
1915 |
* @param aMinutes The amount of minutes in addition to the amount of hours represented by aHours. The range of the value is 0-59.
|
|
1916 |
*
|
|
1917 |
*/
|
|
1918 |
{
|
|
1919 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aHours=%d, aMinutes=%d"), aError, aHours, aMinutes);
|
|
1920 |
|
|
1921 |
// Package up data to return to Common TSY
|
|
1922 |
RMmCustomAPI::TLifeTimeData data;
|
|
1923 |
data.iCaps = RMmCustomAPI::TLifeTimeData::ELifeTimeDataCapsLifeTime;
|
|
1924 |
data.iHours = aHours;
|
|
1925 |
data.iMinutes = aMinutes;
|
|
1926 |
CMmDataPackage dataPackage;
|
|
1927 |
dataPackage.PackData(&data);
|
|
1928 |
|
|
1929 |
// Now complete the actual get request
|
|
1930 |
iMessageManagerCallback.Complete(ECustomGetLifeTimeIPC, &dataPackage, aError);
|
|
1931 |
|
|
1932 |
} // CCallControlDispatcher::CallbackGetLifeTime
|
|
1933 |
|
|
1934 |
void CCallControlDispatcher::CallbackGetLifeTime(TInt aError, const TDateTime &aManufacturingDate)
|
|
1935 |
/**
|
|
1936 |
* Callback function to be used by the request to complete
|
|
1937 |
* CCtsyDispatcherCallback::CallbackCallControlGetLifeTimeComp().
|
|
1938 |
*
|
|
1939 |
* @param aError The error code to be returned to the CTSY.
|
|
1940 |
*
|
|
1941 |
* @param aManufacturingDate The date of phone manufacturing. Only the Year, Month and day information is meaningful.
|
|
1942 |
*
|
|
1943 |
*/
|
|
1944 |
{
|
|
1945 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1946 |
|
|
1947 |
// Package up data to return to Common TSY
|
|
1948 |
RMmCustomAPI::TLifeTimeData data;
|
|
1949 |
data.iCaps = RMmCustomAPI::TLifeTimeData::ELifeTimeDataCapsManufacturerDate;
|
|
1950 |
data.iManufacturingDate = aManufacturingDate;
|
|
1951 |
CMmDataPackage dataPackage;
|
|
1952 |
dataPackage.PackData(&data);
|
|
1953 |
|
|
1954 |
// Now complete the actual get request
|
|
1955 |
iMessageManagerCallback.Complete(ECustomGetLifeTimeIPC, &dataPackage, aError);
|
|
1956 |
|
|
1957 |
} // CCallControlDispatcher::CallbackGetLifeTime
|
|
1958 |
|
|
1959 |
void CCallControlDispatcher::CallbackGetLifeTime(TInt aError, const TDateTime &aManufacturingDate, TUint32 aHours, TUint8 aMinutes)
|
|
1960 |
/**
|
|
1961 |
* Callback function to be used by the request to complete
|
|
1962 |
* CCtsyDispatcherCallback::CallbackCallControlGetLifeTimeComp().
|
|
1963 |
*
|
|
1964 |
* @param aError The error code to be returned to the CTSY.
|
|
1965 |
*
|
|
1966 |
* @param aManufacturingDate The date of phone manufacturing. Only the Year, Month and day information is meaningful.
|
|
1967 |
* @param aHours The amount of hours of airtime use since the manufacturing date. The range of the value should be 0-999999.
|
|
1968 |
* @param aMinutes The amount of minutes in addition to the amount of hours represented by aHours. The range of the value is 0-59.
|
|
1969 |
*
|
|
1970 |
*/
|
|
1971 |
{
|
|
1972 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, aHours=%d, aMinutes=%d"), aError, aHours, aMinutes);
|
|
1973 |
|
|
1974 |
// Package up data to return to Common TSY
|
|
1975 |
RMmCustomAPI::TLifeTimeData data;
|
|
1976 |
data.iCaps = RMmCustomAPI::TLifeTimeData::ELifeTimeDataCapsLifeTime | RMmCustomAPI::TLifeTimeData::ELifeTimeDataCapsManufacturerDate;
|
|
1977 |
data.iHours = aHours;
|
|
1978 |
data.iMinutes = aMinutes;
|
|
1979 |
data.iManufacturingDate = aManufacturingDate;
|
|
1980 |
CMmDataPackage dataPackage;
|
|
1981 |
dataPackage.PackData(&data);
|
|
1982 |
|
|
1983 |
// Now complete the actual get request
|
|
1984 |
iMessageManagerCallback.Complete(ECustomGetLifeTimeIPC, &dataPackage, aError);
|
|
1985 |
|
|
1986 |
} // CCallControlDispatcher::CallbackGetLifeTime
|
|
1987 |
|
|
1988 |
void CCallControlDispatcher::CallbackTerminateErrorCall(TInt aError)
|
|
1989 |
/**
|
|
1990 |
* Callback function to be used by the request to complete
|
|
1991 |
* CCtsyDispatcherCallback::CallbackCallControlTerminateErrorCallComp().
|
|
1992 |
*
|
|
1993 |
* @param aError The error code to be returned to the CTSY.
|
|
1994 |
*
|
|
1995 |
*/
|
|
1996 |
{
|
|
1997 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
1998 |
|
|
1999 |
// Now complete the actual get request
|
|
2000 |
iMessageManagerCallback.Complete(ECustomTerminateCallIPC, aError);
|
|
2001 |
|
|
2002 |
} // CCallControlDispatcher::CallbackTerminateErrorCall
|
|
2003 |
|
|
2004 |
void CCallControlDispatcher::CallbackTerminateAllCalls(TInt aError)
|
|
2005 |
/**
|
|
2006 |
* Callback function to be used by the request to complete
|
|
2007 |
* CCtsyDispatcherCallback::CallbackCallControlTerminateAllCallsComp().
|
|
2008 |
*
|
|
2009 |
* @param aError The error code to be returned to the CTSY.
|
|
2010 |
*
|
|
2011 |
*/
|
|
2012 |
{
|
|
2013 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
2014 |
|
|
2015 |
// Now complete the actual get request
|
|
2016 |
iMessageManagerCallback.Complete(ECustomTerminateCallIPC, aError);
|
|
2017 |
|
|
2018 |
} // CCallControlDispatcher::CallbackTerminateAllCalls
|
|
2019 |
|
|
2020 |
void CCallControlDispatcher::CallbackGetCallForwardingIndicator(TInt aError, RMobilePhone::TMobileTON aTypeOfNumber,
|
|
2021 |
RMobilePhone::TMobileNPI aMobilePlan,
|
|
2022 |
const TDesC &aNumber,
|
|
2023 |
RMobilePhone::TCFUIndicatorStatusFlags aCFUIndicatorStatusFlags,
|
|
2024 |
RMobilePhone::TMultipleSubscriberProfileID aMultipleSubscriberProfileId)
|
|
2025 |
/**
|
|
2026 |
* Callback function to be used by the request to complete
|
|
2027 |
* CCtsyDispatcherCallback::CallbackCallControlGetCallForwardingIndicatorComp().
|
|
2028 |
*
|
|
2029 |
* @param aError The error code to be returned to the CTSY.
|
|
2030 |
*
|
|
2031 |
* @param aTypeOfNumber The call forwarding type of number.
|
|
2032 |
* @param aMobilePlan The call forwarding mobile plan.
|
|
2033 |
* @param aNumber The call forwarding telephone number.
|
|
2034 |
* @param aCFUIndicatorStatusFlags The setting for indicator status. Can contain a number of flags from RMobilePhone::TCFUIndicatorStatus.
|
|
2035 |
* @param aMultipleSubscriberProfileID The multiple subscriber profile ID.
|
|
2036 |
*
|
|
2037 |
*/
|
|
2038 |
{
|
|
2039 |
TSYLOGENTRYEXITARGS(_L8("aError=%d, Flags=%d, ProfileId=%d"), aError, aCFUIndicatorStatusFlags, aMultipleSubscriberProfileId);
|
|
2040 |
|
|
2041 |
// Package up data to return to Common TSY
|
|
2042 |
RMmCustomAPI::TCFIndicators data;
|
|
2043 |
data.iCFNumber.iTypeOfNumber = aTypeOfNumber;
|
|
2044 |
data.iCFNumber.iNumberPlan = aMobilePlan;
|
|
2045 |
data.iCFNumber.iTelNumber = aNumber;
|
|
2046 |
data.iIndicator = aCFUIndicatorStatusFlags;
|
|
2047 |
switch(aMultipleSubscriberProfileId)
|
|
2048 |
{
|
|
2049 |
case RMobilePhone::KProfileIdentityUnknown:
|
|
2050 |
break;
|
|
2051 |
case RMobilePhone::KProfileIdentityOne:
|
|
2052 |
data.iMultipleSubscriberProfileID = RMmCustomAPI::KProfileIdentityOne;
|
|
2053 |
break;
|
|
2054 |
case RMobilePhone::KProfileIdentityTwo:
|
|
2055 |
data.iMultipleSubscriberProfileID = RMmCustomAPI::KProfileIdentityTwo;
|
|
2056 |
break;
|
|
2057 |
case RMobilePhone::KProfileIdentityThree:
|
|
2058 |
data.iMultipleSubscriberProfileID = RMmCustomAPI::KProfileIdentityThree;
|
|
2059 |
break;
|
|
2060 |
case RMobilePhone::KProfileIdentityFour:
|
|
2061 |
data.iMultipleSubscriberProfileID = RMmCustomAPI::KProfileIdentityFour;
|
|
2062 |
break;
|
|
2063 |
|
|
2064 |
}
|
|
2065 |
CMmDataPackage dataPackage;
|
|
2066 |
dataPackage.PackData(&data);
|
|
2067 |
|
|
2068 |
// Now complete the actual get request
|
|
2069 |
iMessageManagerCallback.Complete(ECustomGetIccCallForwardingStatusIPC, &dataPackage, aError);
|
|
2070 |
|
|
2071 |
} // CCallControlDispatcher::CallbackGetCallForwardingIndicator
|
|
2072 |
|
|
2073 |
|
|
2074 |
void CCallControlDispatcher::CallbackQueryIsEmergencyNumber(
|
|
2075 |
CRequestQueueOneShot::TIpcDataPackage* aDataPackage)
|
|
2076 |
/**
|
|
2077 |
* Callback function to be used by the request to complete
|
|
2078 |
* MLtsyDispatchCallControlQueryIsEmergencyNumber::HandleQueryIsEmergencyNumberSyncL.
|
|
2079 |
*
|
|
2080 |
* @param aDataPackage Structure encapulsating data about the request.
|
|
2081 |
*/
|
|
2082 |
{
|
|
2083 |
TSYLOGENTRYEXITARGS(_L8("iResultCode=%d"), aDataPackage->iResultCode);
|
|
2084 |
|
|
2085 |
if (!aDataPackage->iCleanupOnly)
|
|
2086 |
{
|
|
2087 |
RMmCustomAPI::TMobileTelNumber* numberPtr = NULL;
|
|
2088 |
if (iQueryEmergencyNumber.Length() > 0)
|
|
2089 |
{
|
|
2090 |
numberPtr = &iQueryEmergencyNumber;
|
|
2091 |
}
|
|
2092 |
|
|
2093 |
CMmDataPackage mmDataPackage;
|
|
2094 |
mmDataPackage.PackData(&numberPtr);
|
|
2095 |
|
|
2096 |
iMessageManagerCallback.Complete(ECustomCheckEmergencyNumberIPC, &mmDataPackage, aDataPackage->iResultCode);
|
|
2097 |
|
|
2098 |
iQueryEmergencyNumber.Zero();
|
|
2099 |
}
|
|
2100 |
|
|
2101 |
delete aDataPackage;
|
|
2102 |
} // CCallControlDispatcher::CallbackQueryIsEmergencyNumber
|
|
2103 |
|
|
2104 |
void CCallControlDispatcher::CallbackUpdateLifeTimer(TInt aError)
|
|
2105 |
/**
|
|
2106 |
* Callback function to be used by the request to complete
|
|
2107 |
* MLtsyDispatchCallControlUpdateLifeTimer::HandleUpdateLifeTimerReqL.
|
|
2108 |
*
|
|
2109 |
* @param aError The error code to be returned to the CTSY
|
|
2110 |
*/
|
|
2111 |
{
|
|
2112 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
2113 |
|
|
2114 |
iMessageManagerCallback.Complete(ECtsyUpdateLifeTimeComp, aError);
|
|
2115 |
|
|
2116 |
} // CCallControlDispatcher::CallbackUpdateLifeTimer
|
|
2117 |
|
|
2118 |
TInt CCallControlDispatcher::DoDispatchDialL(const CMmDataPackage* aDataPackage,
|
|
2119 |
TBool aIsIsvCall, TBool aPerformFdnCheck)
|
|
2120 |
{
|
|
2121 |
TSYLOGENTRYEXITARGS(_L8("aIsIsvCall=%d,aPerformFdnCheck=%d"), aIsIsvCall, aPerformFdnCheck);
|
|
2122 |
|
|
2123 |
TInt ret = KErrNotSupported;
|
|
2124 |
|
|
2125 |
iFdnCheckPerformed = aPerformFdnCheck;
|
|
2126 |
|
|
2127 |
TInt callId;
|
|
2128 |
RMobilePhone::TMobileService mode;
|
|
2129 |
const CCallDataPackage* callDataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
2130 |
callDataPackage->GetCallIdAndMode(callId, mode);
|
|
2131 |
|
|
2132 |
iModeUsedForVoiceCallDial = mode;
|
|
2133 |
|
|
2134 |
RMobileCall::TMobileCallInfoV1* callInfo;
|
|
2135 |
RMobileCall::TMobileCallParamsV1Pckg* callParamsPckg;
|
|
2136 |
aDataPackage->UnPackData(&callParamsPckg, &callInfo);
|
|
2137 |
|
|
2138 |
__ASSERT_DEBUG(iDispatcherHolder, CtsyDispatcherPanic(EInvalidNullPtr));
|
|
2139 |
|
|
2140 |
RMobileCall::TCallParamOrigin callOrigin;
|
|
2141 |
|
|
2142 |
CSatDispatcher& satDispatcher = iDispatcherHolder->GetSatDispatcher();
|
|
2143 |
if (satDispatcher.IsSimOriginatedCall(callInfo->iDialledParty))
|
|
2144 |
{
|
|
2145 |
callOrigin = RMobileCall::EOriginatorSIM;
|
|
2146 |
}
|
|
2147 |
else
|
|
2148 |
{
|
|
2149 |
callOrigin = RMobileCall::EOriginatorEtelClient;
|
|
2150 |
}
|
|
2151 |
|
|
2152 |
// Call Handle... method in Licensee LTSY
|
|
2153 |
if (mode == RMobilePhone::EVoiceService &&
|
|
2154 |
iLtsyDispatchCallControlDialVoice)
|
|
2155 |
{
|
|
2156 |
if (!aIsIsvCall)
|
|
2157 |
{
|
|
2158 |
ret = iLtsyDispatchCallControlDialVoice->HandleDialVoiceReqL(
|
|
2159 |
RMobilePhone::EAlternateLinePrimary, callInfo->iDialledParty,
|
|
2160 |
((*callParamsPckg)()), aIsIsvCall, callOrigin, aPerformFdnCheck);
|
|
2161 |
}
|
|
2162 |
else
|
|
2163 |
{
|
|
2164 |
aDataPackage->UnPackData(&callParamsPckg, &callInfo);
|
|
2165 |
|
|
2166 |
RMobileCall::TEtel3rdPartyMobileCallParamsV1Pckg* callParams3rdPartyPckg =
|
|
2167 |
reinterpret_cast<RMobileCall::TEtel3rdPartyMobileCallParamsV1Pckg*>(callParamsPckg);
|
|
2168 |
RMobileCall::TEtel3rdPartyMobileCallParamsV1* callParams3rdParty = &((*callParams3rdPartyPckg)());
|
|
2169 |
|
|
2170 |
RMobileCall::TMobileCallParamsV1 newCallParamsV1;
|
|
2171 |
RMobileCall::TMobileCallParamsV1Pckg newCallParamsV1Pckg(newCallParamsV1);
|
|
2172 |
|
|
2173 |
// Pack params from 3rd party to V1
|
|
2174 |
newCallParamsV1.iAutoRedial = callParams3rdParty->iAutoRedial;
|
|
2175 |
newCallParamsV1.iIdRestrict = callParams3rdParty->iIdRestrict;
|
|
2176 |
|
|
2177 |
ret = iLtsyDispatchCallControlDialVoice->HandleDialVoiceReqL(
|
|
2178 |
RMobilePhone::EAlternateLinePrimary, callInfo->iDialledParty,
|
|
2179 |
newCallParamsV1, aIsIsvCall, callOrigin, aPerformFdnCheck);
|
|
2180 |
|
|
2181 |
}
|
|
2182 |
}
|
|
2183 |
else if (mode == RMobilePhone::EAuxVoiceService &&
|
|
2184 |
iLtsyDispatchCallControlDialVoice)
|
|
2185 |
{
|
|
2186 |
ret = iLtsyDispatchCallControlDialVoice->HandleDialVoiceReqL(
|
|
2187 |
RMobilePhone::EAlternateLineAuxiliary, callInfo->iDialledParty,
|
|
2188 |
((*callParamsPckg)()), aIsIsvCall, callOrigin, aPerformFdnCheck);
|
|
2189 |
|
|
2190 |
}
|
|
2191 |
else if (mode == RMobilePhone::ECircuitDataService &&
|
|
2192 |
iLtsyDispatchCallControlDialData)
|
|
2193 |
{
|
|
2194 |
RMobileCall::TMobileCallInfoV1* callInfo;
|
|
2195 |
RMobileCall::TMobileDataCallParamsV1Pckg* callParamsPckg;
|
|
2196 |
aDataPackage->UnPackData(&callParamsPckg, &callInfo);
|
|
2197 |
|
|
2198 |
ret = iLtsyDispatchCallControlDialData->HandleDialDataReqL(
|
|
2199 |
callInfo->iDialledParty, ((*callParamsPckg)()), aPerformFdnCheck);
|
|
2200 |
}
|
|
2201 |
else
|
|
2202 |
{
|
|
2203 |
CtsyDispatcherPanic(EInvalidParameter);
|
|
2204 |
}
|
|
2205 |
|
|
2206 |
return TSYLOGSETEXITERR(ret);
|
|
2207 |
} // CCallControlDispatcher::DoDispatchDialL
|
|
2208 |
|
|
2209 |
TInt CCallControlDispatcher::DoDispatchAnswerL(
|
|
2210 |
const CMmDataPackage* aDataPackage, TBool aIsIsvRequest)
|
|
2211 |
{
|
|
2212 |
TSYLOGENTRYEXIT;
|
|
2213 |
|
|
2214 |
TInt ret = KErrNotSupported;
|
|
2215 |
|
|
2216 |
if (iLtsyDispatchCallControlAnswer)
|
|
2217 |
{
|
|
2218 |
const CCallDataPackage* dataPackage = static_cast<const CCallDataPackage*>(aDataPackage);
|
|
2219 |
TInt callId;
|
|
2220 |
RMobilePhone::TMobileService mode;
|
|
2221 |
dataPackage->GetCallIdAndMode(callId, mode);
|
|
2222 |
|
|
2223 |
ret = iLtsyDispatchCallControlAnswer->HandleAnswerReqL(callId, aIsIsvRequest);
|
|
2224 |
}
|
|
2225 |
|
|
2226 |
return TSYLOGSETEXITERR(ret);
|
|
2227 |
} // CCallControlDispatcher::DoDispatchAnswerL
|
|
2228 |
|
|
2229 |
void CCallControlDispatcher::DoCallbackDial(TInt aError, TInt aCallId,
|
|
2230 |
RMobilePhone::TMobileService aMode)
|
|
2231 |
{
|
|
2232 |
TSYLOGENTRYEXIT;
|
|
2233 |
|
|
2234 |
RMobileCall::TMobileCallInfoV1 callInfo;
|
|
2235 |
callInfo.iService = aMode;
|
|
2236 |
CCallDataPackage dataPackage;
|
|
2237 |
|
|
2238 |
if (aError == KErrNone)
|
|
2239 |
{
|
|
2240 |
// CTSY expects completion of EMobileCallGetMobileCallInfo when a
|
|
2241 |
// dial is requested to get the call ID in the CTSY call object to be set
|
|
2242 |
// correctly.
|
|
2243 |
dataPackage.SetCallIdAndMode(aCallId, callInfo.iService);
|
|
2244 |
dataPackage.PackData(&callInfo);
|
|
2245 |
iMessageManagerCallback.Complete(EMobileCallGetMobileCallInfo, &dataPackage, aError);
|
|
2246 |
}
|
|
2247 |
else
|
|
2248 |
{
|
|
2249 |
dataPackage.SetCallIdAndMode(0, callInfo.iService);
|
|
2250 |
dataPackage.PackData(&callInfo);
|
|
2251 |
|
|
2252 |
// CTSY only expects EEtelCallDial IPC on a failure to dial
|
|
2253 |
if (iFdnCheckPerformed)
|
|
2254 |
{
|
|
2255 |
iMessageManagerCallback.Complete(EEtelCallDial, &dataPackage, aError);
|
|
2256 |
}
|
|
2257 |
else
|
|
2258 |
{
|
|
2259 |
iMessageManagerCallback.Complete(EMobileCallDialNoFdnCheck, &dataPackage, aError);
|
|
2260 |
}
|
|
2261 |
}
|
|
2262 |
|
|
2263 |
} // CCallControlDispatcher::DoCallbackDial
|
|
2264 |
|
|
2265 |
void CCallControlDispatcher::CallbackNotifyIccCallForwardingStatusChange(TInt aError,
|
|
2266 |
const RMobilePhone::TMobileAddress& aCallForwardingNo,
|
|
2267 |
RMobilePhone::TCFUIndicatorStatusFlags aCallForwardingStatusFlags,
|
|
2268 |
RMmCustomAPI::TMultipleSubscriberProfileID aMultipleSubscriberProfileId
|
|
2269 |
)
|
|
2270 |
/**
|
|
2271 |
* Callback function to be used by the request to complete
|
|
2272 |
* CCtsyDispatcherCallback::CallbackCallControlNotifyIccCallForwardingStatusChangeInd().
|
|
2273 |
*
|
|
2274 |
* @param aError The error code to be returned to the CTSY Dispatcher.
|
|
2275 |
* @param aCallForwardingNo the number that is being forwarded.
|
|
2276 |
* @param aCallForwardingStatusFlags flags defined in RMobilePhone::TCFUIndicatorStatus.
|
|
2277 |
* @param aMultipleSubscriberProfileId the Profile ID, in the case of Multiple Subscribers (SIM).
|
|
2278 |
*/
|
|
2279 |
{
|
|
2280 |
TSYLOGENTRYEXITARGS(_L8("aError=%d"), aError);
|
|
2281 |
// Pack the data to return to the Common TSY
|
|
2282 |
RMmCustomAPI::TCFIndicators callForwardingIndicator;
|
|
2283 |
callForwardingIndicator.iCFNumber = aCallForwardingNo;
|
|
2284 |
callForwardingIndicator.iIndicator = aCallForwardingStatusFlags;
|
|
2285 |
callForwardingIndicator.iMultipleSubscriberProfileID = aMultipleSubscriberProfileId;
|
|
2286 |
|
|
2287 |
CMmDataPackage dataPackage;
|
|
2288 |
dataPackage.PackData(const_cast<RMmCustomAPI::TCFIndicators*>(&callForwardingIndicator));
|
|
2289 |
|
|
2290 |
iMessageManagerCallback.Complete(ECustomNotifyIccCallForwardingStatusChangeIPC, &dataPackage, aError);
|
|
2291 |
|
|
2292 |
} // CSimDispatcher::CallbackNotifyIccCallForwardingStatusChange
|
|
2293 |
|
|
2294 |
void CCallControlDispatcher::CallbackSync(CRequestQueueOneShot::TIpcDataPackage& aIpcDataPackage)
|
|
2295 |
/**
|
|
2296 |
* Part of the MDispatcherCallback interface. Used to complete requests handled
|
|
2297 |
* synchronously by the Licensee LTSY asynchronously back to the Common TSY.
|
|
2298 |
*
|
|
2299 |
* @param aIpcDataPackage Package encapsulating the request.
|
|
2300 |
*
|
|
2301 |
* @see MDispatcherCallback::CallbackSync()
|
|
2302 |
*/
|
|
2303 |
{
|
|
2304 |
TSYLOGENTRYEXIT;
|
|
2305 |
|
|
2306 |
switch (aIpcDataPackage.iIpc)
|
|
2307 |
{
|
|
2308 |
case ECustomCheckEmergencyNumberIPC:
|
|
2309 |
CallbackQueryIsEmergencyNumber(&aIpcDataPackage);
|
|
2310 |
break;
|
|
2311 |
default:
|
|
2312 |
LOG(_L8("WARNING: CCallControlDispatcher::CallbackSync unhandled IPC=%d"), aIpcDataPackage.iIpc);
|
|
2313 |
__ASSERT_DEBUG(NULL, CtsyDispatcherPanic(EUnhandledCtsyIpc));
|
|
2314 |
break;
|
|
2315 |
} // switch (aIpcDataPackage.iIpc)
|
|
2316 |
|
|
2317 |
} // CCallControlDispatcher::CallbackSync
|
|
2318 |
|