20 // Include Files |
20 // Include Files |
21 #include <etelmm.h> |
21 #include <etelmm.h> |
22 #include <e32math.h> |
22 #include <e32math.h> |
23 #include <e32svr.h> |
23 #include <e32svr.h> |
24 #include <badesca.h> |
24 #include <badesca.h> |
25 // <-- QT PHONE START --> |
|
26 //#include <vmnumber.h> |
|
27 // <-- QT PHONE END--> |
|
28 #include <centralrepository.h> |
25 #include <centralrepository.h> |
29 #include <settingsinternalcrkeys.h> |
26 #include <settingsinternalcrkeys.h> |
30 |
27 |
31 #include "psetcalldiverting.h" |
28 #include "psetcalldiverting.h" |
32 #include "psetcontainer.h" |
29 #include "psetcontainer.h" |
33 #include "mpsetdivertobs.h" |
30 #include "mpsetdivertobs.h" |
34 #include "PsetTelephony.h" |
31 #include "psettelephony.h" |
35 #include "PSetPanic.h" |
32 #include "psetpanic.h" |
36 #include "PhoneSettingsLogger.h" |
33 #include "phonesettingslogger.h" |
37 |
34 |
38 #include "PSetCallDivertingCreator.h" |
35 #include "psetcalldivertingcreator.h" |
39 #include "MCallDiverting.h" |
36 #include "mcalldiverting.h" |
40 |
37 |
41 // MEMBER FUNCTIONS |
38 // MEMBER FUNCTIONS |
42 // --------------------------------------------------------------------------- |
39 // --------------------------------------------------------------------------- |
43 // First phase constructor |
40 // First phase constructor |
44 // --------------------------------------------------------------------------- |
41 // --------------------------------------------------------------------------- |
260 // --------------------------------------------------------------------------- |
257 // --------------------------------------------------------------------------- |
261 // |
258 // |
262 EXPORT_C void CPsetCallDiverting::SetRequestObserver( MPsetRequestObserver* aObs ) |
259 EXPORT_C void CPsetCallDiverting::SetRequestObserver( MPsetRequestObserver* aObs ) |
263 { |
260 { |
264 iReqObserver = aObs; |
261 iReqObserver = aObs; |
265 // <-- QT PHONE START --> |
|
266 iDivert->SetRequestObserver(aObs); |
262 iDivert->SetRequestObserver(aObs); |
267 // <-- QT PHONE END --> |
|
268 } |
263 } |
269 |
264 |
270 // --------------------------------------------------------------------------- |
265 // --------------------------------------------------------------------------- |
271 // Queries for voice mail box number |
266 // Queries for voice mail box number |
272 // --------------------------------------------------------------------------- |
267 // --------------------------------------------------------------------------- |
273 // |
268 // |
274 EXPORT_C void CPsetCallDiverting::VoiceMailQueryL( TDes& /*aTelNumber*/ ) |
269 EXPORT_C void CPsetCallDiverting::VoiceMailQueryL( TDes& /*aTelNumber*/ ) |
275 { |
270 { |
276 __PHSLOGSTRING("[PHS]--> CPsetCallDiverting::VoiceMailQueryL" ); |
271 __PHSLOGSTRING("[PHS]--> CPsetCallDiverting::VoiceMailQueryL" ); |
277 // <-- QT PHONE START --> |
|
278 /* |
|
279 RVmbxNumber vmbxConnection; |
|
280 TBool vmbxNrChanged = ETrue; |
|
281 TInt retValue = iDivert->OpenVmbxLC( aTelNumber, vmbxConnection ); |
|
282 __PHSLOGSTRING1("[PHS] CPsetCallDiverting::VoiceMailQueryL: aTelNumber = %S", &aTelNumber ); |
|
283 __PHSLOGSTRING1("[PHS] CPsetCallDiverting::VoiceMailQueryL: retValue = %d", retValue ); |
|
284 |
|
285 if ( retValue == KErrNotFound ) |
|
286 { |
|
287 vmbxNrChanged = vmbxConnection.QueryNumberL( EVmbxNotDefinedQuery, aTelNumber ); |
|
288 } |
|
289 else if ( retValue != KErrNone ) |
|
290 { |
|
291 //Problem with vmbx application, better leave. |
|
292 User::Leave( retValue ); |
|
293 } |
|
294 if ( !vmbxNrChanged ) |
|
295 { |
|
296 User::Leave( KErrCancel ); |
|
297 } |
|
298 CleanupStack::PopAndDestroy(); // vmbxConnection |
|
299 */ |
|
300 // <-- QT PHONE END--> |
|
301 |
272 |
302 __PHSLOGSTRING("[PHS] <--CPsetCallDiverting::VoiceMailQueryL" ); |
273 __PHSLOGSTRING("[PHS] <--CPsetCallDiverting::VoiceMailQueryL" ); |
303 } |
274 } |
304 |
275 |
305 // --------------------------------------------------------------------------- |
276 // --------------------------------------------------------------------------- |
307 // --------------------------------------------------------------------------- |
278 // --------------------------------------------------------------------------- |
308 // |
279 // |
309 EXPORT_C void CPsetCallDiverting::VideoMailQueryL( TDes& /*aTelNumber*/ ) |
280 EXPORT_C void CPsetCallDiverting::VideoMailQueryL( TDes& /*aTelNumber*/ ) |
310 { |
281 { |
311 __PHSLOGSTRING("[PHS]--> CPsetCallDiverting::VideoMailQueryL" ); |
282 __PHSLOGSTRING("[PHS]--> CPsetCallDiverting::VideoMailQueryL" ); |
312 // <-- QT PHONE START --> |
|
313 /* |
|
314 RVmbxNumber vmbxConnection; |
|
315 TBool vmbxNrChanged = ETrue; |
|
316 TInt retValue = OpenVideoMailboxLC( aTelNumber, vmbxConnection ); |
|
317 __PHSLOGSTRING1("[PHS] CPsetCallDiverting::VideoMailQueryL: aTelNumber = %S", &aTelNumber ); |
|
318 __PHSLOGSTRING1("[PHS] CPsetCallDiverting::VideoMailQueryL: retValue = %d", retValue ); |
|
319 |
|
320 if ( retValue == KErrNotFound ) |
|
321 { |
|
322 vmbxNrChanged = vmbxConnection.QueryVideoMbxNumberL( EVmbxNotDefinedQuery, aTelNumber ); |
|
323 } |
|
324 else if ( retValue != KErrNone ) |
|
325 { |
|
326 //Problem with vmbx application, better leave. |
|
327 User::Leave( retValue ); |
|
328 } |
|
329 if ( !vmbxNrChanged ) |
|
330 { |
|
331 User::Leave( KErrCancel ); |
|
332 } |
|
333 CleanupStack::PopAndDestroy(); // vmbxConnection |
|
334 */ |
|
335 // <-- QT PHONE END--> |
|
336 |
283 |
337 __PHSLOGSTRING("[PHS] <--CPsetCallDiverting::VideoMailQueryL" ); |
284 __PHSLOGSTRING("[PHS] <--CPsetCallDiverting::VideoMailQueryL" ); |
338 } |
285 } |
339 |
286 |
340 // --------------------------------------------------------------------------- |
287 // --------------------------------------------------------------------------- |
341 // Opens Vmbx. Leaves vmbx to the stack. |
288 // Opens Vmbx. Leaves vmbx to the stack. |
342 // --------------------------------------------------------------------------- |
289 // --------------------------------------------------------------------------- |
343 // |
290 // |
344 // <-- QT PHONE START --> |
|
345 TInt CPsetCallDiverting::OpenVideoMailboxLC( TDes& /*aTelNumber*/, RVmbxNumber& /*aVmbx*/ ) |
291 TInt CPsetCallDiverting::OpenVideoMailboxLC( TDes& /*aTelNumber*/, RVmbxNumber& /*aVmbx*/ ) |
346 { |
292 { |
347 /* |
|
348 __PHSLOGSTRING("[PHS]--> CPsetCallDiverting::OpenVideoMailboxLC" ); |
|
349 User::LeaveIfError( aVmbx.Open( iPhone ) ); |
|
350 CleanupClosePushL( aVmbx ); |
|
351 __PHSLOGSTRING("[PHS]<-- CPsetCallDiverting::OpenVideoMailboxLC" ); |
|
352 return aVmbx.GetVideoMbxNumber( aTelNumber ); |
|
353 */ |
|
354 return 0; |
293 return 0; |
355 // <-- QT PHONE END --> |
|
356 } |
294 } |
357 |
295 |
358 // End of File |
296 // End of File |