phoneengine/phonemodel/src/cpeparserphonenumberhandler.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 30 ebdbd102c78a
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
   183             if ( i < stripStart || stripStart == KErrNotFound )
   183             if ( i < stripStart || stripStart == KErrNotFound )
   184                 {
   184                 {
   185                 stripStart = i;
   185                 stripStart = i;
   186                 }
   186                 }
   187             }
   187             }
       
   188         input.Inc();
   188         }
   189         }
   189     if ( stripStart != KErrNotFound )
   190     if ( stripStart != KErrNotFound )
   190         {
   191         {
   191         return aPostfix.Left( stripStart );
   192         return aPostfix.Left( stripStart );
   192         }
   193         }
   203 TBool CPEParserPhoneNumberHandler::IsPhoneOffline()
   204 TBool CPEParserPhoneNumberHandler::IsPhoneOffline()
   204     {
   205     {
   205     TBool isPhoneOffline( EFalse );
   206     TBool isPhoneOffline( EFalse );
   206 
   207 
   207     if( FeatureManager::FeatureSupported( KFeatureIdOfflineMode )
   208     if( FeatureManager::FeatureSupported( KFeatureIdOfflineMode )
   208         && ( iDataStore.ProfileId() == EProfileOffLineId ) )
   209         && ( EFalse == iOwner.IsNetworkConnectionAllowed() ) )
   209         {
   210         {
   210         isPhoneOffline = ETrue;
   211         isPhoneOffline = ETrue;
   211         }
   212         }
   212     
   213     
   213     TNWNetworkRegistrationStatus networkRegStatus
   214     TNWNetworkRegistrationStatus networkRegStatus