phonebookui/Phonebook2/ServerApplication/src/CPbk2ServerAppStoreManager.cpp
branchRCL_3
changeset 68 9da50d567e3c
parent 63 f4a778e096c2
child 85 38bb213f60ba
--- a/phonebookui/Phonebook2/ServerApplication/src/CPbk2ServerAppStoreManager.cpp	Wed Sep 01 12:29:52 2010 +0100
+++ b/phonebookui/Phonebook2/ServerApplication/src/CPbk2ServerAppStoreManager.cpp	Tue Sep 14 20:54:53 2010 +0300
@@ -219,6 +219,8 @@
             ( aStoreUris, *this, *sortOrder,
               aViewFilter, aFlags );
         
+        iGroupView = result;
+        
         CleanupStack::Pop(); // result
         }
 
@@ -346,10 +348,13 @@
 // --------------------------------------------------------------------------
 //
 void CPbk2ServerAppStoreManager::ContactAddedToView
-        ( MVPbkContactViewBase& /*aView*/, TInt /*aIndex*/,
+        ( MVPbkContactViewBase& aView, TInt /*aIndex*/,
           const MVPbkContactLink& /*aContactLink*/ )
     {
-    // Do nothing
+    if ( iGroupView && aView.Type() == EVPbkContactsView )
+        {
+        iGroupView->RefreshL();
+        }    
     }
 
 // --------------------------------------------------------------------------
@@ -357,10 +362,13 @@
 // --------------------------------------------------------------------------
 //
 void CPbk2ServerAppStoreManager::ContactRemovedFromView
-        ( MVPbkContactViewBase& /*aView*/, TInt /*aIndex*/,
+        ( MVPbkContactViewBase& aView, TInt /*aIndex*/,
           const MVPbkContactLink& /*aContactLink*/ )
     {
-    // Do nothing
+        if ( iGroupView && aView.Type() == EVPbkContactsView )
+            {
+            iGroupView->RefreshL();
+            }
     }
 
 // --------------------------------------------------------------------------