phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchercontacthandler.cpp
branchRCL_3
changeset 5 81f8547efd4f
parent 0 e686773b3f54
child 9 0d28c1c5b6dd
--- a/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchercontacthandler.cpp	Fri Feb 19 22:40:27 2010 +0200
+++ b/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchercontacthandler.cpp	Fri Mar 12 15:41:25 2010 +0200
@@ -148,6 +148,7 @@
     if ( MCCAppContactFieldDataObserver::TParameter::EContactInfoAvailable 
         == aParameter.iType && NULL != aParameter.iContactInfo )
         {
+        iDynamicAddressGroupSet = EFalse;
         ContactInfoFetchedNotifyL( *aParameter.iContactInfo );
         }
     else if ( MCCAppContactFieldDataObserver::TParameter::EContactDataFieldAvailable 
@@ -163,6 +164,7 @@
     else if ( MCCAppContactFieldDataObserver::TParameter::EContactsChanged 
         == aParameter.iType )
         {
+        iDynamicAddressGroupSet = EFalse;
         iObserver.ContactsChangedL();
         }
     else if (MCCAppContactFieldDataObserver::TParameter::EContactPresenceChanged == aParameter.iType)
@@ -464,10 +466,10 @@
         {
         case VPbkFieldTypeSelectorFactory::EVOIPCallSelector: 
             {
-            if ( !iDynamicAddressGroupSet & EDynamicVoipAddressGroupSet )
+            if ( !iDynamicAddressGroupSet )
                 {
                 CreateDynamicVoipAddressGroup( IsServiceAvailable( aContactAction ));
-                iDynamicAddressGroupSet |= EDynamicVoipAddressGroupSet;
+                iDynamicAddressGroupSet = ETrue;
                 }
             }
             break;
@@ -547,4 +549,13 @@
     iCmsWrapper->AddObserverL( *this );
     }
 
+// --------------------------------------------------------------------------
+// CCCAppCommLauncherContactHandler::IsTopContact
+// --------------------------------------------------------------------------
+// 
+TBool CCCAppCommLauncherContactHandler::IsTopContact()
+    {
+    return iCmsWrapper->IsTopContact();
+    }
+
 // End of file