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