499 iPreviousSimState == EPESimNotReady ) |
499 iPreviousSimState == EPESimNotReady ) |
500 { |
500 { |
501 __PHONELOG( EBasic, EPhoneControl, "SIM card was removed" ); |
501 __PHONELOG( EBasic, EPhoneControl, "SIM card was removed" ); |
502 |
502 |
503 TPhoneCmdParamGlobalNote globalNoteParam; |
503 TPhoneCmdParamGlobalNote globalNoteParam; |
504 globalNoteParam.SetType( EAknGlobalInformationNote ); |
504 globalNoteParam.SetType( EPhoneMessageBoxInformation ); |
505 globalNoteParam.SetTone( EAvkonSIDNoSound ); |
|
506 |
505 |
507 globalNoteParam.SetTextResourceId( |
506 globalNoteParam.SetTextResourceId( |
508 CPhoneMainResourceResolver::Instance()-> |
507 CPhoneMainResourceResolver::Instance()-> |
509 ResolveResourceID( EPhoneSimRemoved ) ); |
508 ResolveResourceID( EPhoneSimRemoved ) ); |
510 |
509 |
2123 AknTextUtils::DisplayTextLanguageSpecificNumberConversion( timeString ); |
2122 AknTextUtils::DisplayTextLanguageSpecificNumberConversion( timeString ); |
2124 |
2123 |
2125 noteText.Append( timeString ); |
2124 noteText.Append( timeString ); |
2126 |
2125 |
2127 TPhoneCmdParamGlobalNote globalNoteParam; |
2126 TPhoneCmdParamGlobalNote globalNoteParam; |
2128 globalNoteParam.SetType( EAknGlobalInformationNote ); |
2127 globalNoteParam.SetType( EPhoneMessageBoxInformation ); |
2129 globalNoteParam.SetText( noteText ); |
2128 globalNoteParam.SetText( noteText ); |
2130 globalNoteParam.SetTone( CAknNoteDialog::ENoTone ); |
2129 |
2131 iViewCommandHandle->ExecuteCommandL( |
2130 iViewCommandHandle->ExecuteCommandL( |
2132 EPhoneViewShowGlobalNote, &globalNoteParam ); |
2131 EPhoneViewShowGlobalNote, &globalNoteParam ); |
2133 } |
2132 } |
2134 } |
2133 } |
2135 |
2134 |
2150 globalNotifierParam.SetBoolean( EFalse ); |
2149 globalNotifierParam.SetBoolean( EFalse ); |
2151 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
2150 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
2152 &globalNotifierParam ); |
2151 &globalNotifierParam ); |
2153 |
2152 |
2154 TPhoneCmdParamGlobalNote globalNoteParam; |
2153 TPhoneCmdParamGlobalNote globalNoteParam; |
2155 |
2154 PhoneNotificationType type = aNotificationDialog ? |
2156 globalNoteParam.SetType( EAknGlobalInformationNote ); |
2155 EPhoneNotificationDialog : EPhoneMessageBoxInformation; |
|
2156 globalNoteParam.SetType( type ); |
2157 globalNoteParam.SetTextResourceId( |
2157 globalNoteParam.SetTextResourceId( |
2158 CPhoneMainResourceResolver::Instance()-> |
2158 CPhoneMainResourceResolver::Instance()-> |
2159 ResolveResourceID( aResourceId ) ); |
2159 ResolveResourceID( aResourceId ) ); |
2160 globalNoteParam.SetTone( EAvkonSIDInformationTone ); |
2160 |
2161 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
2161 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
2162 |
2162 |
2163 iViewCommandHandle->ExecuteCommandL( |
2163 iViewCommandHandle->ExecuteCommandL( |
2164 EPhoneViewShowGlobalNote, &globalNoteParam ); |
2164 EPhoneViewShowGlobalNote, &globalNoteParam ); |
2165 } |
2165 } |
2183 globalNotifierParam.SetBoolean( EFalse ); |
2183 globalNotifierParam.SetBoolean( EFalse ); |
2184 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
2184 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
2185 &globalNotifierParam ); |
2185 &globalNotifierParam ); |
2186 |
2186 |
2187 TPhoneCmdParamGlobalNote globalNoteParam; |
2187 TPhoneCmdParamGlobalNote globalNoteParam; |
2188 globalNoteParam.SetType( EAknGlobalWarningNote ); |
2188 PhoneNotificationType type = aNotificationDialog ? |
|
2189 EPhoneNotificationDialog : EPhoneMessageBoxWarning; |
|
2190 globalNoteParam.SetType( type ); |
2189 globalNoteParam.SetTextResourceId( |
2191 globalNoteParam.SetTextResourceId( |
2190 CPhoneMainResourceResolver::Instance()-> |
2192 CPhoneMainResourceResolver::Instance()-> |
2191 ResolveResourceID( aResourceId ) ); |
2193 ResolveResourceID( aResourceId ) ); |
2192 globalNoteParam.SetTone( EAvkonSIDWarningTone ); |
2194 |
2193 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
2195 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
2194 |
2196 |
2195 iViewCommandHandle->ExecuteCommandL( |
2197 iViewCommandHandle->ExecuteCommandL( |
2196 EPhoneViewShowGlobalNote, &globalNoteParam ); |
2198 EPhoneViewShowGlobalNote, &globalNoteParam ); |
2197 } |
2199 } |
2214 globalNotifierParam.SetBoolean( EFalse ); |
2216 globalNotifierParam.SetBoolean( EFalse ); |
2215 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
2217 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
2216 &globalNotifierParam ); |
2218 &globalNotifierParam ); |
2217 |
2219 |
2218 TPhoneCmdParamGlobalNote globalNoteParam; |
2220 TPhoneCmdParamGlobalNote globalNoteParam; |
2219 globalNoteParam.SetType( EAknGlobalErrorNote ); |
2221 PhoneNotificationType type = aNotificationDialog ? |
|
2222 EPhoneNotificationDialog : EPhoneMessageBoxInformation; |
|
2223 globalNoteParam.SetType( type ); |
|
2224 |
2220 globalNoteParam.SetTextResourceId( |
2225 globalNoteParam.SetTextResourceId( |
2221 CPhoneMainResourceResolver::Instance()-> |
2226 CPhoneMainResourceResolver::Instance()-> |
2222 ResolveResourceID( aResourceId ) ); |
2227 ResolveResourceID( aResourceId ) ); |
2223 globalNoteParam.SetTone( CAknNoteDialog::EErrorTone ); |
|
2224 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
2228 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
2225 |
2229 |
2226 iViewCommandHandle->ExecuteCommandL( |
2230 iViewCommandHandle->ExecuteCommandL( |
2227 EPhoneViewShowGlobalNote, &globalNoteParam ); |
2231 EPhoneViewShowGlobalNote, &globalNoteParam ); |
2228 } |
2232 } |
2816 { |
2820 { |
2817 // Get customized text resource for busy note |
2821 // Get customized text resource for busy note |
2818 resource = iCustomization->CustomizeBusyNoteText(); |
2822 resource = iCustomization->CustomizeBusyNoteText(); |
2819 } |
2823 } |
2820 |
2824 |
2821 // Show number busy note |
2825 // Show number busy notification |
2822 TPhoneCmdParamGlobalNote globalNoteParam; |
2826 TPhoneCmdParamGlobalNote globalNoteParam; |
2823 globalNoteParam.SetType( EAknGlobalInformationNote ); |
2827 globalNoteParam.SetType( EPhoneNotificationDialog ); |
2824 globalNoteParam.SetTextResourceId( |
2828 globalNoteParam.SetTextResourceId( |
2825 CPhoneMainResourceResolver::Instance()-> |
2829 CPhoneMainResourceResolver::Instance()-> |
2826 ResolveResourceID( resource ) ); |
2830 ResolveResourceID( resource ) ); |
2827 globalNoteParam.SetTone( EAvkonSIDInformationTone ); |
2831 |
2828 globalNoteParam.SetNotificationDialog( ETrue ); |
2832 globalNoteParam.SetNotificationDialog( ETrue ); |
2829 iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, |
2833 iViewCommandHandle->ExecuteCommandL( EPhoneViewShowGlobalNote, |
2830 &globalNoteParam ); |
2834 &globalNoteParam ); |
2831 } |
2835 } |
2832 |
2836 |
3158 callText = iStateMachine->PhoneEngineInfo()->RemoteCompanyName( aCallId ); |
3162 callText = iStateMachine->PhoneEngineInfo()->RemoteCompanyName( aCallId ); |
3159 } |
3163 } |
3160 |
3164 |
3161 TPhoneCmdParamGlobalNote globalNoteParam; |
3165 TPhoneCmdParamGlobalNote globalNoteParam; |
3162 globalNoteParam.SetText( callText ); |
3166 globalNoteParam.SetText( callText ); |
3163 globalNoteParam.SetType( EAknGlobalInformationNote ); |
3167 globalNoteParam.SetType( EPhoneNotificationDialog ); |
3164 globalNoteParam.SetTone( EAvkonSIDInformationTone ); |
3168 |
3165 globalNoteParam.SetTextResourceId( |
3169 globalNoteParam.SetTextResourceId( |
3166 CPhoneMainResourceResolver::Instance()-> |
3170 CPhoneMainResourceResolver::Instance()-> |
3167 ResolveResourceID( EPhoneCallWaitingWithLabel ) ); |
3171 ResolveResourceID( EPhoneCallWaitingWithLabel ) ); |
3168 globalNoteParam.SetNotificationDialog( ETrue ); |
3172 globalNoteParam.SetNotificationDialog( ETrue ); |
3169 |
3173 |
3300 ResolveResourceID( |
3304 ResolveResourceID( |
3301 EPhoneInfoCugInUse ), cugIndex ); |
3305 EPhoneInfoCugInUse ), cugIndex ); |
3302 |
3306 |
3303 TPhoneCmdParamGlobalNote globalNoteParam; |
3307 TPhoneCmdParamGlobalNote globalNoteParam; |
3304 globalNoteParam.SetText( *buf ); |
3308 globalNoteParam.SetText( *buf ); |
3305 globalNoteParam.SetType( EAknGlobalInformationNote ); |
3309 globalNoteParam.SetType( EPhoneMessageBoxInformation ); |
3306 globalNoteParam.SetTone( EAvkonSIDInformationTone ); |
3310 |
3307 |
|
3308 iViewCommandHandle->ExecuteCommandL( |
3311 iViewCommandHandle->ExecuteCommandL( |
3309 EPhoneViewShowGlobalNote, &globalNoteParam ); |
3312 EPhoneViewShowGlobalNote, &globalNoteParam ); |
3310 |
3313 |
3311 CleanupStack::PopAndDestroy( buf ); |
3314 CleanupStack::PopAndDestroy( buf ); |
3312 } |
3315 } |