meetingrequest/mrgui/src/cesmraddressinfohandler.cpp
branchRCL_3
changeset 16 4ce476e64c59
parent 0 8466d47a6819
child 24 b5fbb9b25d57
equal deleted inserted replaced
13:0396474f30f5 16:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    18 // Includes
    18 // Includes
    19 #include "emailtrace.h"
    19 #include "emailtrace.h"
    20 #include "cesmraddressinfohandler.h"
    20 #include "cesmraddressinfohandler.h"
    21 
    21 
    22 #include <eikenv.h>
    22 #include <eikenv.h>
    23 #include <AiwServiceHandler.h>
    23 #include <aiwservicehandler.h>
    24 #include <AiwContactSelectionDataTypes.h>
    24 #include <aiwcontactselectiondatatypes.h>
    25 #include <StringLoader.h>
    25 #include <stringloader.h>
    26 #include <aknnotewrappers.h>
    26 #include <aknnotewrappers.h>
    27 #include <calentry.h>
    27 #include <calentry.h>
    28 #include <esmrgui.rsg>
    28 #include <esmrgui.rsg>
    29 
    29 
    30 //Virtual Phonebook
    30 //Virtual Phonebook
    31 #include <CVPbkContactManager.h>
    31 #include <cvpbkcontactmanager.h>
    32 #include <MVPbkContactOperationBase.h>
    32 #include <mvpbkcontactoperationbase.h>
    33 #include <MVPbkStoreContact.h>
    33 #include <mvpbkstorecontact.h>
    34 #include <MVPbkFieldType.h>
    34 #include <mvpbkfieldtype.h>
    35 #include <VPbkEng.rsg>
    35 #include <vpbkeng.rsg>
    36 #include <CVPbkContactFieldIterator.h>
    36 #include <cvpbkcontactfielditerator.h>
    37 #include <MVPbkContactFieldTextData.h>
    37 #include <mvpbkcontactfieldtextdata.h>
    38 #include <MVPbkContactLink.h>
    38 #include <mvpbkcontactlink.h>
    39 
    39 
    40 #include "cesmrdynamicitemselectionlist.h"
    40 #include "cesmrdynamicitemselectionlist.h"
    41 #include "cesmrlocationpluginhandler.h"
    41 #include "cesmrlocationpluginhandler.h"
    42 
    42 
    43 namespace { //codescanner::namespace
    43 namespace { //codescanner::namespace
   517 void CESMRAddressInfoHandler::UpdateEntryL( TInt aIndex )
   517 void CESMRAddressInfoHandler::UpdateEntryL( TInt aIndex )
   518     {
   518     {
   519     FUNC_LOG;
   519     FUNC_LOG;
   520     TInt offset = iCompleteAddresses[aIndex]->Find( KTab ); //codescanner::accessArrayElementWithoutCheck2
   520     TInt offset = iCompleteAddresses[aIndex]->Find( KTab ); //codescanner::accessArrayElementWithoutCheck2
   521     TPtrC address( iCompleteAddresses[aIndex]->Mid( offset + 1) ); //codescanner::accessArrayElementWithoutCheck2
   521     TPtrC address( iCompleteAddresses[aIndex]->Mid( offset + 1) ); //codescanner::accessArrayElementWithoutCheck2
       
   522     TBool replaced;
   522     iEntryUpdated =
   523     iEntryUpdated =
   523         CESMRLocationPluginHandler::UpdateEntryLocationL( *iEntry, address, EFalse );
   524         CESMRLocationPluginHandler::UpdateEntryLocationL(
       
   525                 *iEntry,
       
   526                 address,
       
   527                 EFalse,
       
   528                 replaced );
   524     }
   529     }
   525 
   530 
   526 //EOF
   531 //EOF
   527 
   532