phoneengine/PhoneCntFinder/ContactService/src/CPhCntContactManager.cpp
changeset 0 5f000ab63145
child 31 ba54057fe027
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Contact manager
       
    15 *
       
    16 */
       
    17 
       
    18 #include <CVPbkContactManager.h>
       
    19 #include <CVPbkContactStoreUriArray.h>
       
    20 #include <TVPbkContactStoreUriPtr.h>
       
    21 #include <MVPbkContactStoreList.h>
       
    22 #include <MPbk2ContactNameFormatter.h>
       
    23 #include <CPbk2SortOrderManager.h>
       
    24 #include <Pbk2ContactNameFormatterFactory.h>
       
    25 #include <CVPbkContactIdConverter.h>
       
    26 #include <MVPbkContactStore.h>
       
    27 #include <MVPbkContactLink.h>
       
    28 #include <CVPbkContactLinkArray.h>
       
    29 #include <MVPbkContactAttributeManager.h>
       
    30 #include <CVPbkSpeedDialAttribute.h>
       
    31 #include <CPbk2ImageManager.h>
       
    32 #include <MVPbkStoreContact.h>
       
    33 #include <VPbkContactStoreUris.h>
       
    34 #include <MVPbkFieldType.h>
       
    35 #include <CVPbkFieldTypeRefsList.h>
       
    36 #include <VPbkEng.rsg>
       
    37 #include <MVPbkContactStoreProperties.h>
       
    38 #include <CVPbkFieldTypeSelector.h>
       
    39 #include <VPbkContactViewFilterBuilder.h>
       
    40 #include <talogger.h>
       
    41 
       
    42 #include "cphcntcontactmatchstrategy.h"
       
    43 #include "CPhCntContactManager.h"
       
    44 #include "CPhCntContact.h"
       
    45 #include "cphcntcontactstoreuris.h"
       
    46 #include "mphcntstoreloaderobserver.h"
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // Static constructor
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 CPhCntContactManager* CPhCntContactManager::NewL()
       
    53     {
       
    54     CPhCntContactManager* self = new( ELeave )CPhCntContactManager();
       
    55     CleanupStack::PushL( self );
       
    56     self->ConstructL();
       
    57     CleanupStack::Pop( self );
       
    58     return self;
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------------------------
       
    62 // Destructor
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 CPhCntContactManager::~CPhCntContactManager()
       
    66     {
       
    67     delete iVoipFieldTypeList;
       
    68     delete iImageManager;
       
    69     delete iSpeedDialAttribute;
       
    70     delete iContactIdConverter;
       
    71     delete iContactNameFormatter;
       
    72     delete iSortOrder;
       
    73     if( iContactManager )
       
    74         {
       
    75         TRAP_IGNORE( iContactManager->ContactStoresL().CloseAll( *this ) );
       
    76         }
       
    77     delete iContactManager;
       
    78     delete iContactStoreUris;
       
    79     }
       
    80 
       
    81 // ---------------------------------------------------------------------------
       
    82 // Gives contact manager.
       
    83 // ---------------------------------------------------------------------------
       
    84 //
       
    85 CVPbkContactManager& CPhCntContactManager::ContactManager() const
       
    86     {
       
    87     return *iContactManager;
       
    88     }
       
    89 
       
    90 // ---------------------------------------------------------------------------
       
    91 // From MPhCntContactManager
       
    92 // Retrieves contact from contact stores.
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 MVPbkContactOperationBase* CPhCntContactManager::RetrieveContactL(
       
    96     const MVPbkContactLink& aLink,
       
    97     MVPbkSingleContactOperationObserver& aObserver)
       
    98     {
       
    99     return iContactManager->RetrieveContactL( aLink, aObserver );
       
   100     }
       
   101 
       
   102 // ---------------------------------------------------------------------------
       
   103 // From MPhCntContactManager
       
   104 // Gives contact stores.
       
   105 // ---------------------------------------------------------------------------
       
   106 //
       
   107 MVPbkContactStoreList& CPhCntContactManager::ContactStoresL() const
       
   108     {
       
   109     return iContactManager->ContactStoresL();
       
   110     }
       
   111 
       
   112 // ---------------------------------------------------------------------------
       
   113 // From MPhCntContactManager
       
   114 // Creates contact match strategy.
       
   115 // ---------------------------------------------------------------------------
       
   116 //
       
   117 MPhCntContactMatchStrategy* CPhCntContactManager::CreateContactMatchStrategyL(
       
   118     MVPbkContactFindObserver& aObserver,
       
   119     TBool aRemoveDuplicates )
       
   120     {
       
   121     return CPhCntContactMatchStrategy::NewL(
       
   122         *iContactManager,
       
   123         *iContactStoreUris,
       
   124         aObserver,
       
   125         aRemoveDuplicates ?
       
   126         CVPbkPhoneNumberMatchStrategy::EVPbkDuplicatedContactsMatchFlag :
       
   127         CVPbkPhoneNumberMatchStrategy::EVPbkMatchFlagsNone );
       
   128     }
       
   129 
       
   130 // ---------------------------------------------------------------------------
       
   131 // From MPhCntContactManager
       
   132 // Converts contact ids to contact links.
       
   133 // ---------------------------------------------------------------------------
       
   134 //
       
   135 MVPbkContactLinkArray* CPhCntContactManager::ConvertContactIdsToLinksL(
       
   136         const CArrayFix<TContactItemId>& aContactId ) const
       
   137     {
       
   138     CVPbkContactLinkArray* contactLinks = CVPbkContactLinkArray::NewLC();
       
   139 
       
   140     const TInt contactIdCount( aContactId.Count() );
       
   141     for( TInt i = 0; i < contactIdCount; i++ )
       
   142         {
       
   143         MVPbkContactLink* link =
       
   144             ConvertContactIdToLinkL( aContactId.At( i ) );
       
   145 
       
   146         if( link )
       
   147             {
       
   148             contactLinks->AppendL( link );
       
   149             }
       
   150         }
       
   151     CleanupStack::Pop( contactLinks );
       
   152     return contactLinks;
       
   153     }
       
   154 
       
   155 // ---------------------------------------------------------------------------
       
   156 // From MPhCntContactManager
       
   157 // Converts contact id to contact link.
       
   158 // ---------------------------------------------------------------------------
       
   159 //
       
   160 MVPbkContactLink* CPhCntContactManager::ConvertContactIdToLinkL(
       
   161     TContactItemId aContactId ) const
       
   162     {
       
   163     MVPbkContactLink* link = NULL;
       
   164     if( aContactId != KNullContactId )
       
   165         {
       
   166         link = iContactIdConverter->IdentifierToLinkLC( aContactId );
       
   167         CleanupStack::Pop(); // link
       
   168         }
       
   169     return link;
       
   170     }
       
   171 
       
   172 // ---------------------------------------------------------------------------
       
   173 // From MPhCntContactManager
       
   174 // Converts contact link to contact id.
       
   175 // ---------------------------------------------------------------------------
       
   176 //
       
   177 TContactItemId CPhCntContactManager::ConvertContactLinkToContactId(
       
   178     const MVPbkContactLink& aContactLink ) const
       
   179     {
       
   180     return iContactIdConverter->LinkToIdentifier( aContactLink );
       
   181     }
       
   182 
       
   183 // ---------------------------------------------------------------------------
       
   184 // From MPhCntContactManager
       
   185 // Converts contact link descriptor to contact link.
       
   186 // ---------------------------------------------------------------------------
       
   187 //
       
   188 MVPbkContactLink* CPhCntContactManager::ConvertDescriptorToLinkL(
       
   189     const TDesC8& aPackedLink ) const
       
   190     {
       
   191     MVPbkContactLink* link = NULL;
       
   192     if( aPackedLink.Length() > 0 )
       
   193         {
       
   194         MVPbkContactLinkArray* links =
       
   195             iContactManager->CreateLinksLC( aPackedLink );
       
   196         if( links && links->Count() > 0 )
       
   197             {
       
   198             link = links->At( 0 ).CloneLC();
       
   199             CleanupStack::Pop(); // Link from CloneLC
       
   200             }
       
   201         CleanupStack::PopAndDestroy(); // Links
       
   202         }
       
   203     return link;
       
   204     }
       
   205 
       
   206 // ---------------------------------------------------------------------------
       
   207 // From MPhCntContactManager
       
   208 // Retrieves speed dial contact link.
       
   209 // ---------------------------------------------------------------------------
       
   210 //
       
   211 MVPbkContactOperationBase* CPhCntContactManager::RetrieveSpeedDialContactLinkL(
       
   212         const TInt aSpeedDialPosition,
       
   213         MVPbkContactFindObserver& aObserver )
       
   214     {
       
   215     MVPbkContactAttributeManager& attributeManager =
       
   216         iContactManager->ContactAttributeManagerL();
       
   217 
       
   218     iSpeedDialAttribute->SetIndex( aSpeedDialPosition );
       
   219 
       
   220 
       
   221     return attributeManager.ListContactsL(
       
   222                 *iSpeedDialAttribute,
       
   223                 aObserver );
       
   224     }
       
   225 
       
   226 // ---------------------------------------------------------------------------
       
   227 // From MPhCntContactManager
       
   228 // Indicates whether the field had a speed dial attribute set.
       
   229 // ---------------------------------------------------------------------------
       
   230 //
       
   231 TBool CPhCntContactManager::HasSpeedDialL(
       
   232 		const TInt aSpeedDialPosition,
       
   233 		const MVPbkStoreContactField& aField )
       
   234     {
       
   235     TBool result = EFalse;
       
   236 
       
   237     MVPbkContactAttributeManager& attributeManager =
       
   238         iContactManager->ContactAttributeManagerL();
       
   239 
       
   240 	CVPbkSpeedDialAttribute* attr = CVPbkSpeedDialAttribute::NewL( aSpeedDialPosition );
       
   241     CleanupStack::PushL( attr );
       
   242 
       
   243     result = attributeManager.HasFieldAttributeL(
       
   244     			*attr,
       
   245     			aField );
       
   246 
       
   247 	CleanupStack::PopAndDestroy( attr );
       
   248 
       
   249 	return result;
       
   250     }
       
   251 
       
   252 // ---------------------------------------------------------------------------
       
   253 // From MPhCntContactManager
       
   254 // Retrieves contacts image.
       
   255 // ---------------------------------------------------------------------------
       
   256 //
       
   257 MPbk2ImageOperation* CPhCntContactManager::RetrieveImageL(
       
   258     MVPbkStoreContact& aStoreContact,
       
   259     const MVPbkFieldType& aFieldType,
       
   260     MPbk2ImageGetObserver& aObserver )
       
   261     {
       
   262 
       
   263     return iImageManager->GetImageAsyncL(
       
   264         	NULL,
       
   265             aStoreContact,
       
   266             aFieldType,
       
   267             aObserver );
       
   268     }
       
   269 
       
   270 // ---------------------------------------------------------------------------
       
   271 // From MPhCntContactManager
       
   272 // Creates field type selector.
       
   273 // ---------------------------------------------------------------------------
       
   274 //
       
   275 CVPbkFieldTypeSelector* CPhCntContactManager::CreateFieldTypeSelectorL() const
       
   276     {
       
   277     return CVPbkFieldTypeSelector::NewL( iContactManager->FieldTypes() );
       
   278     }
       
   279 
       
   280 // ---------------------------------------------------------------------------
       
   281 // From MPhCntContactManager
       
   282 // Appends filter to selector.
       
   283 // ---------------------------------------------------------------------------
       
   284 //
       
   285 void CPhCntContactManager::AppendFilterToSelectorL(
       
   286     CVPbkFieldTypeSelector& aSelector,
       
   287     TVPbkContactViewFilter aFilter )
       
   288     {
       
   289     VPbkContactViewFilterBuilder::BuildContactViewFilterL(
       
   290 		aSelector,
       
   291 		aFilter,
       
   292 		*iContactManager );
       
   293     }
       
   294 
       
   295 
       
   296 //-----------------------------------------------------------------------------
       
   297 // From base class MPhCntContactFinder.
       
   298 // Loads the contact store specified in the given contact link.
       
   299 //-----------------------------------------------------------------------------
       
   300 //
       
   301 void CPhCntContactManager::LoadContactStoreL( const TDesC8& aContactLink,
       
   302         MPhCntStoreLoaderObserver& aObserver )
       
   303     {
       
   304     __ASSERT_ALWAYS( NULL == iStoreLoaderObserver, User::Leave( KErrInUse ) );
       
   305 
       
   306     MVPbkContactLink* link = ConvertDescriptorToLinkL( aContactLink );
       
   307 
       
   308     // Link conversion has a side effect of loading store plug-in, but
       
   309     // make sure that store really gets loaded.
       
   310     const TVPbkContactStoreUriPtr uri
       
   311         = link->ContactStore().StoreProperties().Uri();
       
   312     delete link;
       
   313     iContactManager->LoadContactStoreL( uri );
       
   314 
       
   315     // Start asynchronous opening of the store.
       
   316     MVPbkContactStore* store = iContactManager->ContactStoresL().Find( uri );
       
   317     __ASSERT_ALWAYS( NULL != store, User::Leave( KErrNotFound ) );
       
   318 
       
   319     store->OpenL( *this );
       
   320     iStoreLoaderObserver = &aObserver;
       
   321     }
       
   322 
       
   323 //-----------------------------------------------------------------------------
       
   324 // From base class MPhCntContactManager.
       
   325 //-----------------------------------------------------------------------------
       
   326 //
       
   327 CPhCntContactStoreUris& CPhCntContactManager::ContactStoreUrisL()
       
   328     {
       
   329     TEFLOGSTRING( KTAOBJECT, "CNT CPhCntContactManager::ContactStoreListL" );
       
   330     return *iContactStoreUris;
       
   331     }
       
   332 
       
   333 //-----------------------------------------------------------------------------
       
   334 // From base class MPhCntContactFinder.
       
   335 // Constructs fieldtype list, which identifies voip fields and
       
   336 // performs the find for voip fields.
       
   337 //-----------------------------------------------------------------------------
       
   338 //
       
   339 MVPbkContactOperationBase* CPhCntContactManager::FindVoipContactsL(
       
   340     const TDesC& aSipURI,
       
   341     MVPbkContactFindObserver& aObserver ) const
       
   342     {
       
   343     return iContactManager->FindL( aSipURI, *iVoipFieldTypeList, aObserver );
       
   344     }
       
   345 
       
   346 // ---------------------------------------------------------------------------
       
   347 // From MPhCntContactManager
       
   348 // Gives contact name formatter.
       
   349 // ---------------------------------------------------------------------------
       
   350 //
       
   351 MPbk2ContactNameFormatter& CPhCntContactManager::ContactNameFormatter()
       
   352     {
       
   353     return *iContactNameFormatter;
       
   354     }
       
   355 
       
   356 // ---------------------------------------------------------------------------
       
   357 // From MVPbkContactStoreListObserver
       
   358 // Indication that contact stores has been opened.
       
   359 // ---------------------------------------------------------------------------
       
   360 //
       
   361 void CPhCntContactManager::OpenComplete()
       
   362     {
       
   363     }
       
   364 
       
   365 // ---------------------------------------------------------------------------
       
   366 // From MVPbkContactStoreListObserver
       
   367 // Indication that contact store has been opened.
       
   368 // ---------------------------------------------------------------------------
       
   369 //
       
   370 void CPhCntContactManager::StoreReady(
       
   371     MVPbkContactStore& aContactStore )
       
   372     {
       
   373     TVPbkContactStoreUriPtr uri = aContactStore.StoreProperties().Uri();
       
   374 
       
   375     if ( iStoreLoaderObserver
       
   376             && !iContactStoreUris->ContactStores().IsIncluded( uri ) )
       
   377         {
       
   378         TRAP_IGNORE( iContactStoreUris->AddContactStoreL( uri ) );
       
   379 
       
   380         iStoreLoaderObserver->ContactStoreLoadingCompleted(
       
   381             &aContactStore, KErrNone );
       
   382         iStoreLoaderObserver = NULL;
       
   383         }
       
   384     iContactStoreUris->StoreReady( uri );
       
   385     }
       
   386 
       
   387 // ---------------------------------------------------------------------------
       
   388 // From MVPbkContactStoreListObserver
       
   389 // Indication that contact store has become unavailable.
       
   390 // ---------------------------------------------------------------------------
       
   391 //
       
   392 void CPhCntContactManager::StoreUnavailable(
       
   393     MVPbkContactStore& aContactStore,
       
   394     TInt /*aReason*/ )
       
   395     {
       
   396     TVPbkContactStoreUriPtr uri = aContactStore.StoreProperties().Uri();
       
   397     iContactStoreUris->StoreUnavailable( uri );
       
   398     }
       
   399 
       
   400 // ---------------------------------------------------------------------------
       
   401 // From MVPbkContactStoreListObserver
       
   402 // Contact store event.
       
   403 // ---------------------------------------------------------------------------
       
   404 //
       
   405 void CPhCntContactManager::HandleStoreEventL(
       
   406     MVPbkContactStore& aContactStore,
       
   407     TVPbkContactStoreEvent aStoreEvent )
       
   408     {
       
   409     switch( aStoreEvent.iEventType )
       
   410         {
       
   411         case TVPbkContactStoreEvent::EStoreRestoreBeginning:
       
   412         case TVPbkContactStoreEvent::EStoreBackupBeginning:
       
   413             StoreUnavailable( aContactStore, KErrNone );
       
   414             break;
       
   415 
       
   416         case TVPbkContactStoreEvent::EStoreBackupRestoreCompleted:
       
   417             StoreReady( aContactStore );
       
   418             break;
       
   419         default:
       
   420             break;
       
   421         }
       
   422     }
       
   423 
       
   424 //-----------------------------------------------------------------------------
       
   425 // From base class MPhCntContactFinder.
       
   426 // Loads the contact store specified with URI.
       
   427 //-----------------------------------------------------------------------------
       
   428 void CPhCntContactManager::LoadContactStoreWithUriL(
       
   429     const TDesC& aStoreUri,
       
   430     MPhCntStoreLoaderObserver& aObserver )
       
   431     {
       
   432     __ASSERT_ALWAYS( NULL == iStoreLoaderObserver, User::Leave( KErrInUse ) );
       
   433     iContactManager->LoadContactStoreL( aStoreUri );
       
   434 
       
   435     // Start asynchronous opening of the store.
       
   436     MVPbkContactStore* store = iContactManager->ContactStoresL().Find( aStoreUri );
       
   437     __ASSERT_ALWAYS( NULL != store, User::Leave( KErrNotFound ) );
       
   438 
       
   439     store->OpenL( *this );
       
   440     iStoreLoaderObserver = &aObserver;
       
   441     }
       
   442 
       
   443 // ---------------------------------------------------------------------------
       
   444 // Constructor
       
   445 // ---------------------------------------------------------------------------
       
   446 //
       
   447 CPhCntContactManager::CPhCntContactManager()
       
   448     {
       
   449     }
       
   450 
       
   451 // ---------------------------------------------------------------------------
       
   452 // Second phase constructor
       
   453 // ---------------------------------------------------------------------------
       
   454 //
       
   455 void CPhCntContactManager::ConstructL()
       
   456     {
       
   457     iContactStoreUris = CPhCntContactStoreUris::NewL();
       
   458 
       
   459     iContactManager =
       
   460         CVPbkContactManager::NewL( iContactStoreUris->ContactStores() );
       
   461 
       
   462     // Open stores so that they are accesible.
       
   463     iContactManager->ContactStoresL().OpenAllL( *this );
       
   464 
       
   465     const MVPbkFieldTypeList& fieldTypes = iContactManager->FieldTypes();
       
   466 
       
   467     iSortOrder = CPbk2SortOrderManager::NewL( fieldTypes );
       
   468 
       
   469     iContactNameFormatter = Pbk2ContactNameFormatterFactory::CreateL(
       
   470             KNullDesC, fieldTypes,
       
   471             *iSortOrder );
       
   472     MVPbkContactStoreList& contactStores = iContactManager->ContactStoresL();
       
   473     TVPbkContactStoreUriPtr uri(VPbkContactStoreUris::DefaultCntDbUri() );
       
   474     iContactDBStore = contactStores.Find( uri );
       
   475     iContactIdConverter = CVPbkContactIdConverter::NewL( *iContactDBStore );
       
   476     iSpeedDialAttribute = CVPbkSpeedDialAttribute::NewL();
       
   477 
       
   478     iImageManager = CPbk2ImageManager::NewL( *iContactManager );
       
   479 
       
   480     iVoipFieldTypeList = CVPbkFieldTypeRefsList::NewL();
       
   481     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_VOIPGEN ) );
       
   482     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_VOIPHOME ) );
       
   483     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_VOIPWORK ) );
       
   484     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_MOBILEPHONEHOME ) );
       
   485     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_MOBILEPHONEWORK ) );
       
   486     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_MOBILEPHONEGEN ) );
       
   487     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_LANDPHONEHOME ) );
       
   488     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_LANDPHONEWORK ) );
       
   489     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_LANDPHONEGEN ) );
       
   490     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_CARPHONE ) );
       
   491     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_IMPP ) );
       
   492     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_SIP ) );
       
   493     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_PAGERNUMBER ) );
       
   494     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_FAXNUMBERGEN ) );
       
   495     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_FAXNUMBERHOME ) );
       
   496     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_FAXNUMBERWORK ) );
       
   497     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_VIDEONUMBERHOME ) );
       
   498     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_VIDEONUMBERWORK ) );
       
   499     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_VIDEONUMBERGEN ) );
       
   500     AddVoipFieldTypeL( fieldTypes.Find( R_VPBK_FIELD_TYPE_ASSTPHONE ) );
       
   501     }
       
   502 
       
   503 // ---------------------------------------------------------------------------
       
   504 // Adds voip field type to array.
       
   505 // ---------------------------------------------------------------------------
       
   506 //
       
   507 void CPhCntContactManager::AddVoipFieldTypeL(
       
   508     const MVPbkFieldType* aVoipFieldType )
       
   509     {
       
   510     if( aVoipFieldType )
       
   511         {
       
   512         iVoipFieldTypeList->AppendL( *aVoipFieldType );
       
   513         }
       
   514     }
       
   515 
       
   516 // ---------------------------------------------------------------------------
       
   517 // Return list of additional contact store uris.
       
   518 // ---------------------------------------------------------------------------
       
   519 //
       
   520 const CVPbkContactStoreUriArray& CPhCntContactManager::AdditionalContactStoreUris()
       
   521     {
       
   522     return iContactStoreUris->AdditionalContactStores();
       
   523     }