phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchercontacthandler.cpp
branchRCL_3
changeset 14 81f8547efd4f
parent 0 e686773b3f54
child 26 0d28c1c5b6dd
equal deleted inserted replaced
3:04ab22b956c2 14:81f8547efd4f
   146         MCCAppContactFieldDataObserver::TParameter& aParameter )
   146         MCCAppContactFieldDataObserver::TParameter& aParameter )
   147     {
   147     {
   148     if ( MCCAppContactFieldDataObserver::TParameter::EContactInfoAvailable 
   148     if ( MCCAppContactFieldDataObserver::TParameter::EContactInfoAvailable 
   149         == aParameter.iType && NULL != aParameter.iContactInfo )
   149         == aParameter.iType && NULL != aParameter.iContactInfo )
   150         {
   150         {
       
   151         iDynamicAddressGroupSet = EFalse;
   151         ContactInfoFetchedNotifyL( *aParameter.iContactInfo );
   152         ContactInfoFetchedNotifyL( *aParameter.iContactInfo );
   152         }
   153         }
   153     else if ( MCCAppContactFieldDataObserver::TParameter::EContactDataFieldAvailable 
   154     else if ( MCCAppContactFieldDataObserver::TParameter::EContactDataFieldAvailable 
   154         == aParameter.iType && NULL != aParameter.iContactField )
   155         == aParameter.iType && NULL != aParameter.iContactField )
   155         {
   156         {
   161             }
   162             }
   162         }
   163         }
   163     else if ( MCCAppContactFieldDataObserver::TParameter::EContactsChanged 
   164     else if ( MCCAppContactFieldDataObserver::TParameter::EContactsChanged 
   164         == aParameter.iType )
   165         == aParameter.iType )
   165         {
   166         {
       
   167         iDynamicAddressGroupSet = EFalse;
   166         iObserver.ContactsChangedL();
   168         iObserver.ContactsChangedL();
   167         }
   169         }
   168     else if (MCCAppContactFieldDataObserver::TParameter::EContactPresenceChanged == aParameter.iType)
   170     else if (MCCAppContactFieldDataObserver::TParameter::EContactPresenceChanged == aParameter.iType)
   169         {
   171         {
   170         iObserver.ContactPresenceChangedL(*aParameter.iContactField);
   172         iObserver.ContactPresenceChangedL(*aParameter.iContactField);
   462     
   464     
   463     switch( aContactAction )
   465     switch( aContactAction )
   464         {
   466         {
   465         case VPbkFieldTypeSelectorFactory::EVOIPCallSelector: 
   467         case VPbkFieldTypeSelectorFactory::EVOIPCallSelector: 
   466             {
   468             {
   467             if ( !iDynamicAddressGroupSet & EDynamicVoipAddressGroupSet )
   469             if ( !iDynamicAddressGroupSet )
   468                 {
   470                 {
   469                 CreateDynamicVoipAddressGroup( IsServiceAvailable( aContactAction ));
   471                 CreateDynamicVoipAddressGroup( IsServiceAvailable( aContactAction ));
   470                 iDynamicAddressGroupSet |= EDynamicVoipAddressGroupSet;
   472                 iDynamicAddressGroupSet = ETrue;
   471                 }
   473                 }
   472             }
   474             }
   473             break;
   475             break;
   474         default:
   476         default:
   475             break;
   477             break;
   545     {
   547     {
   546     iCmsWrapper->RefetchContactL();
   548     iCmsWrapper->RefetchContactL();
   547     iCmsWrapper->AddObserverL( *this );
   549     iCmsWrapper->AddObserverL( *this );
   548     }
   550     }
   549 
   551 
       
   552 // --------------------------------------------------------------------------
       
   553 // CCCAppCommLauncherContactHandler::IsTopContact
       
   554 // --------------------------------------------------------------------------
       
   555 // 
       
   556 TBool CCCAppCommLauncherContactHandler::IsTopContact()
       
   557     {
       
   558     return iCmsWrapper->IsTopContact();
       
   559     }
       
   560 
   550 // End of file
   561 // End of file