equal
deleted
inserted
replaced
37 #include <bautils.h> |
37 #include <bautils.h> |
38 #include <AknQueryDialog.h> |
38 #include <AknQueryDialog.h> |
39 #include <data_caging_path_literals.hrh> |
39 #include <data_caging_path_literals.hrh> |
40 #include <gulicon.h> // Gul Icon |
40 #include <gulicon.h> // Gul Icon |
41 #include <StringLoader.h> |
41 #include <StringLoader.h> |
|
42 #include <hlplch.h> |
42 |
43 |
43 #include <epos_csuplsettingsconstants.h> |
44 #include <epos_csuplsettingsconstants.h> |
44 #include <epos_csuplsettingparams.h> |
45 #include <epos_csuplsettingparams.h> |
45 |
46 |
46 #include <locsuplsettingsui.rsg> |
47 #include <locsuplsettingsui.rsg> |
227 } |
228 } |
228 break; |
229 break; |
229 } |
230 } |
230 case EAknCmdHelp: |
231 case EAknCmdHelp: |
231 { |
232 { |
|
233 HlpLauncher::LaunchHelpApplicationL( iCoeEnv->WsSession(), |
|
234 iAvkonAppUi->AppHelpContextL() ); |
232 break; |
235 break; |
233 } |
236 } |
234 case EEikCmdExit: |
237 case EEikCmdExit: |
235 { |
238 { |
236 // The Exit is handled by the Application UI |
239 // The Exit is handled by the Application UI |
608 TBuf<KRealWidth> tempString; |
611 TBuf<KRealWidth> tempString; |
609 |
612 |
610 if( !aSeconds ) |
613 if( !aSeconds ) |
611 { |
614 { |
612 tempString.Num(aSeconds); |
615 tempString.Num(aSeconds); |
|
616 AknTextUtils::LanguageSpecificNumberConversion(tempString); |
613 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_MINUTES, tempString ); |
617 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_MINUTES, tempString ); |
614 return; |
618 return; |
615 } |
619 } |
616 |
620 |
617 TReal hrs = TReal(aSeconds)/KHrToSecs; |
621 TReal hrs = TReal(aSeconds)/KHrToSecs; |
620 if( hrs < 1 ) |
624 if( hrs < 1 ) |
621 { |
625 { |
622 TReal mins = TReal(aSeconds)/KMinToSecs; |
626 TReal mins = TReal(aSeconds)/KMinToSecs; |
623 Math::Round( approxValue, mins, 2 ); |
627 Math::Round( approxValue, mins, 2 ); |
624 tempString.Num(approxValue, fmt); |
628 tempString.Num(approxValue, fmt); |
|
629 AknTextUtils::LanguageSpecificNumberConversion(tempString); |
625 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_MINUTES, tempString ); |
630 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_MINUTES, tempString ); |
626 } |
631 } |
627 else if( hrs == 1 ) |
632 else if( hrs == 1 ) |
628 { |
633 { |
629 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_ONEHOUR ); |
634 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_ONEHOUR ); |
633 TReal days = TReal(aSeconds)/KdayToSecs; |
638 TReal days = TReal(aSeconds)/KdayToSecs; |
634 if( days < 1 ) |
639 if( days < 1 ) |
635 { |
640 { |
636 Math::Round( approxValue, hrs, 2 ); |
641 Math::Round( approxValue, hrs, 2 ); |
637 tempString.Num(approxValue, fmt); |
642 tempString.Num(approxValue, fmt); |
|
643 AknTextUtils::LanguageSpecificNumberConversion(tempString); |
638 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_HOURS, tempString ); |
644 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_HOURS, tempString ); |
639 } |
645 } |
640 else if( days == 1 ) |
646 else if( days == 1 ) |
641 { |
647 { |
642 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_ONEDAY ); |
648 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_ONEDAY ); |
643 } |
649 } |
644 else |
650 else |
645 { |
651 { |
646 Math::Round( approxValue, days, 2 ); |
652 Math::Round( approxValue, days, 2 ); |
647 tempString.Num(approxValue, fmt); |
653 tempString.Num(approxValue, fmt); |
648 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_DAYS, tempString ); |
654 AknTextUtils::LanguageSpecificNumberConversion(tempString); |
|
655 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_DAYS, tempString ); |
649 } |
656 } |
650 } |
657 } |
651 } |
658 } |
652 |
659 |
653 // End of file |
660 // End of file |