equal
deleted
inserted
replaced
388 iFsSession( aFsSession ), |
388 iFsSession( aFsSession ), |
389 iResourceManager( aResourceManager ), |
389 iResourceManager( aResourceManager ), |
390 iDeviceDialog( NULL ), |
390 iDeviceDialog( NULL ), |
391 iDCS ( KPhCltDcsUnknown ), |
391 iDCS ( KPhCltDcsUnknown ), |
392 iReturnResultPckg ( iReturnResult ), |
392 iReturnResultPckg ( iReturnResult ), |
393 iTextResolver ( EFalse ), |
|
394 iTextBuffer ( NULL ) |
393 iTextBuffer ( NULL ) |
395 { |
394 { |
396 CActiveScheduler::Add( this ); |
395 CActiveScheduler::Add( this ); |
397 } |
396 } |
398 |
397 |
458 // ----------------------------------------------------------------------------- |
457 // ----------------------------------------------------------------------------- |
459 // |
458 // |
460 void CPhSrvUssdManager::ConstructL( MPhSrvPhoneInterface& aPhoneInterface ) |
459 void CPhSrvUssdManager::ConstructL( MPhSrvPhoneInterface& aPhoneInterface ) |
461 { |
460 { |
462 _DPRINT( 4, "PhSrv.ConstructL.Start" ); |
461 _DPRINT( 4, "PhSrv.ConstructL.Start" ); |
463 iTextResolver = HbTextResolverSymbian::Init( |
462 const TBool textResolver = HbTextResolverSymbian::Init( |
464 KUssdLocFilename, KLocPath ); |
463 KUssdLocFilename, KLocPath ); |
465 _DDPRINT( 4, "PhSrv.ConstructL.ussd loc:", iTextResolver ); |
464 _DDPRINT( 4, "PhSrv.ConstructL.ussd loc:", textResolver ); |
466 User::LeaveIfError( iTimer.CreateLocal() ); |
465 User::LeaveIfError( iTimer.CreateLocal() ); |
467 |
466 |
468 User::LeaveIfError( iMobileUssdMessaging.Open( aPhoneInterface.PhSrvMobilePhone() ) ); |
467 User::LeaveIfError( iMobileUssdMessaging.Open( aPhoneInterface.PhSrvMobilePhone() ) ); |
469 |
468 |
470 // Check support |
469 // Check support |
865 iDeviceDialog = CHbDeviceMessageBoxSymbian::NewL( |
864 iDeviceDialog = CHbDeviceMessageBoxSymbian::NewL( |
866 CHbDeviceMessageBoxSymbian::EInformation ); |
865 CHbDeviceMessageBoxSymbian::EInformation ); |
867 iDeviceDialog->SetObserver( this ); |
866 iDeviceDialog->SetObserver( this ); |
868 iDeviceDialog->SetTimeout( KPhSrvUssdTimeout ); |
867 iDeviceDialog->SetTimeout( KPhSrvUssdTimeout ); |
869 iDeviceDialog->SetDismissPolicy ( KPhSrvUssdPopupDismissPolicy ); |
868 iDeviceDialog->SetDismissPolicy ( KPhSrvUssdPopupDismissPolicy ); |
|
869 iDeviceDialog->SetIconVisible(EFalse); |
870 |
870 |
871 // Show left key with empty string accoring to ui concept |
871 // Show left key with empty string accoring to ui concept |
872 iDeviceDialog->SetButton( |
872 iDeviceDialog->SetButton( |
873 CHbDeviceMessageBoxSymbian::EAcceptButton, EFalse ); |
873 CHbDeviceMessageBoxSymbian::EAcceptButton, EFalse ); |
874 // Show Exit Key always |
874 // Show Exit Key always |
1423 LoadDefaultString( KUssdExit ) ); |
1423 LoadDefaultString( KUssdExit ) ); |
1424 _DPRINT( 4, "PhSrv.LGMQ.onlyExit" ); |
1424 _DPRINT( 4, "PhSrv.LGMQ.onlyExit" ); |
1425 } |
1425 } |
1426 if ( iClearArray ) |
1426 if ( iClearArray ) |
1427 { |
1427 { |
1428 iTextResolver = HbTextResolverSymbian::Init( |
1428 HbTextResolverSymbian::Init( KCommonLocFilename, KLocPath ); |
1429 KCommonLocFilename, KLocPath ); |
|
1430 _DPRINT( 4, "PhSrv.LGMQ.use common loc file" ); |
1429 _DPRINT( 4, "PhSrv.LGMQ.use common loc file" ); |
1431 // Yes, No |
1430 // Yes, No |
1432 iDeviceDialog->SetButton( |
1431 iDeviceDialog->SetButton( |
1433 CHbDeviceMessageBoxSymbian::EAcceptButton, ETrue ); |
1432 CHbDeviceMessageBoxSymbian::EAcceptButton, ETrue ); |
1434 iDeviceDialog->SetButtonTextL( |
1433 iDeviceDialog->SetButtonTextL( |
1438 CHbDeviceMessageBoxSymbian::ERejectButton, ETrue ); |
1437 CHbDeviceMessageBoxSymbian::ERejectButton, ETrue ); |
1439 iDeviceDialog->SetButtonTextL( |
1438 iDeviceDialog->SetButtonTextL( |
1440 CHbDeviceMessageBoxSymbian::ERejectButton, |
1439 CHbDeviceMessageBoxSymbian::ERejectButton, |
1441 LoadDefaultString( KUssdNo ) ); |
1440 LoadDefaultString( KUssdNo ) ); |
1442 _DPRINT( 4, "PhSrv.LGMQ.Yes&No" ); |
1441 _DPRINT( 4, "PhSrv.LGMQ.Yes&No" ); |
1443 iTextResolver = HbTextResolverSymbian::Init( |
1442 HbTextResolverSymbian::Init( KUssdLocFilename, KLocPath ); |
1444 KUssdLocFilename, KLocPath ); |
|
1445 _DPRINT( 4, "PhSrv.LGMQ.back up to use ussd loc file" ); |
1443 _DPRINT( 4, "PhSrv.LGMQ.back up to use ussd loc file" ); |
1446 } |
1444 } |
1447 iReceivedMessage.Zero(); |
1445 iReceivedMessage.Zero(); |
1448 iReceivedMessage = (*iNotifyArray)[0]; |
1446 iReceivedMessage = (*iNotifyArray)[0]; |
1449 } |
1447 } |
2173 iTextBuffer = NULL; |
2171 iTextBuffer = NULL; |
2174 _DPRINT( 4, "PhSrv.LoadDefaultString.Clear" ); |
2172 _DPRINT( 4, "PhSrv.LoadDefaultString.Clear" ); |
2175 } |
2173 } |
2176 TInt err = KErrNone; |
2174 TInt err = KErrNone; |
2177 TPtrC ptr( aText ); |
2175 TPtrC ptr( aText ); |
2178 if ( iTextResolver && ptr.Length() ) |
2176 if ( ptr.Length() ) |
2179 { |
2177 { |
2180 TRAP( err, iTextBuffer = HbTextResolverSymbian::LoadL( ptr ) ); |
2178 TRAP( err, iTextBuffer = HbTextResolverSymbian::LoadL( ptr ) ); |
2181 _DDPRINT( 4, "PhSrv.LoadDefaultString.LoadL.%d", err ); |
2179 _DDPRINT( 4, "PhSrv.LoadDefaultString.LoadL.%d", err ); |
2182 if ( iTextBuffer ) |
2180 if ( iTextBuffer ) |
2183 { |
2181 { |