phonebookengines/VirtualPhonebook/VPbkEng/src/TVPbkStoreContactAnalyzer.cpp
branchRCL_3
changeset 3 04ab22b956c2
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
0:e686773b3f54 3:04ab22b956c2
   272 template<class T> TBool t_IsFieldTypeIncludedL(
   272 template<class T> TBool t_IsFieldTypeIncludedL(
   273                            const MVPbkBaseContactField& aField,
   273                            const MVPbkBaseContactField& aField,
   274                            T aSelector,
   274                            T aSelector,
   275                            const CVPbkContactManager& aClassContactManager )
   275                            const CVPbkContactManager& aClassContactManager )
   276     {
   276     {
       
   277     TBool ret = EFalse;
   277     // Get the field type
   278     // Get the field type
   278     const MVPbkFieldType* fieldType =
   279     const MVPbkFieldType* fieldType =
   279         VPbkUtils::MatchFieldType( aClassContactManager.FieldTypes(), aField );
   280         VPbkUtils::MatchFieldType( aClassContactManager.FieldTypes(), aField );
   280     CVPbkFieldTypeSelector* selector = CreateSelectorLC( aSelector, aClassContactManager );
   281   
   281     TBool ret = selector->IsFieldTypeIncluded( *fieldType );
   282     if ( fieldType )
   282     CleanupStack::PopAndDestroy( );
   283         {
       
   284         CVPbkFieldTypeSelector* selector = CreateSelectorLC( aSelector,
       
   285             aClassContactManager );
       
   286         ret = selector->IsFieldTypeIncluded( *fieldType );
       
   287         CleanupStack::PopAndDestroy();
       
   288         }
   283     return ret;
   289     return ret;
   284     }
   290     }
   285 
   291 
   286 // --------------------------------------------------------------------------
   292 // --------------------------------------------------------------------------
   287 // CreateSelectorLC
   293 // CreateSelectorLC