htiui/HtiServicePlugins/HtiPIMServicePlugin/src/HtiSimDirHandlerVPbk.cpp
changeset 11 4df3a095718c
parent 0 d6fe6244b863
equal deleted inserted replaced
10:e6e3e87d58b4 11:4df3a095718c
    65 _LIT8( KErrorDeleteFailed, "Failed to delete contact" );
    65 _LIT8( KErrorDeleteFailed, "Failed to delete contact" );
    66 _LIT8( KErrorSimCardInfoFailed, "Failed to get SIM card info" );
    66 _LIT8( KErrorSimCardInfoFailed, "Failed to get SIM card info" );
    67 _LIT8( KErrorSimStoreOpenFailed, "Failed to open SIM contact store" );
    67 _LIT8( KErrorSimStoreOpenFailed, "Failed to open SIM contact store" );
    68 _LIT8( KErrorSimStoreUnavailable, "SIM contact store unavailable" );
    68 _LIT8( KErrorSimStoreUnavailable, "SIM contact store unavailable" );
    69 
    69 
       
    70 _LIT8( KErrorContactOperationFailed, "SIM contact operation failed" );
       
    71 
    70 // MODULE DATA STRUCTURES
    72 // MODULE DATA STRUCTURES
    71 
    73 
    72 // LOCAL FUNCTION PROTOTYPES
    74 // LOCAL FUNCTION PROTOTYPES
    73 
    75 
    74 // FORWARD DECLARATIONS
    76 // FORWARD DECLARATIONS
   418 // ----------------------------------------------------------------------------
   420 // ----------------------------------------------------------------------------
   419 // CHtiSimDirHandlerVPbk::ContactOperationFailed
   421 // CHtiSimDirHandlerVPbk::ContactOperationFailed
   420 // Called when a contact operation has failed.
   422 // Called when a contact operation has failed.
   421 // From MVPbkContactObserver
   423 // From MVPbkContactObserver
   422 // ----------------------------------------------------------------------------
   424 // ----------------------------------------------------------------------------
   423 void CHtiSimDirHandlerVPbk::ContactOperationFailed( TContactOp /*aOpCode*/,
   425 void CHtiSimDirHandlerVPbk::ContactOperationFailed( TContactOp aOpCode,
   424                                                     TInt /*aErrorCode*/,
   426                                                     TInt aErrorCode,
   425                                                     TBool /*aErrorNotified*/ )
   427                                                     TBool aErrorNotified )
   426     {
   428     {
   427 
   429 
   428     HTI_LOG_FUNC_IN( "CHtiSimDirHandlerVPbk::ContactOperationFailed" );
   430     HTI_LOG_FUNC_IN( "CHtiSimDirHandlerVPbk::ContactOperationFailed" );
   429 
   431     HTI_LOG_FORMAT( "aOpCode: %d", aOpCode );
       
   432     HTI_LOG_FORMAT( "aErrorCode: %d", aErrorCode );
       
   433     HTI_LOG_FORMAT( "aErrorNotified: %d", aErrorNotified );
       
   434     TRAP_IGNORE( SendErrorMessageL( aErrorCode, KErrorContactOperationFailed ) );
   430     HTI_LOG_FUNC_OUT( "CHtiSimDirHandlerVPbk::ContactOperationFailed" );
   435     HTI_LOG_FUNC_OUT( "CHtiSimDirHandlerVPbk::ContactOperationFailed" );
   431     }
   436     }
   432 
   437 
   433 
   438 
   434 // ----------------------------------------------------------------------------
   439 // ----------------------------------------------------------------------------
   765                 prop.SetParameters( param );
   770                 prop.SetParameters( param );
   766                 fieldType = iContactManager->FieldTypes().FindMatch( prop, 0 );
   771                 fieldType = iContactManager->FieldTypes().FindMatch( prop, 0 );
   767                 break;
   772                 break;
   768             case EAdditNumberField:
   773             case EAdditNumberField:
   769                 param.Add( EVPbkVersitParamCELL );
   774                 param.Add( EVPbkVersitParamCELL );
       
   775                 param.Add( EVPbkVersitParamHOME );
   770                 prop.SetName( EVPbkVersitNameTEL );
   776                 prop.SetName( EVPbkVersitNameTEL );
   771                 prop.SetParameters( param );
   777                 prop.SetParameters( param );
   772                 fieldType = iContactManager->FieldTypes().FindMatch( prop, 0 );
   778                 fieldType = iContactManager->FieldTypes().FindMatch( prop, 0 );
   773                 break;
   779                 break;
   774             default:
   780             default: