contentpublishingsrv/contentpublishingserver/cpserver/src/cpserverdatamanager.cpp
branchRCL_3
changeset 64 b276298d5729
parent 59 a0713522ab97
child 74 edd621764147
equal deleted inserted replaced
59:a0713522ab97 64:b276298d5729
   329 void CCPDataManager::RemoveObserver(
   329 void CCPDataManager::RemoveObserver(
   330     CCPNotificationHandler* aNotificationHandler )
   330     CCPNotificationHandler* aNotificationHandler )
   331     {
   331     {
   332     CP_DEBUG( _L8("CCPDataManager::RemoveObserver()") );
   332     CP_DEBUG( _L8("CCPDataManager::RemoveObserver()") );
   333     TInt index = iNotificationsArray.Find( aNotificationHandler );
   333     TInt index = iNotificationsArray.Find( aNotificationHandler );
   334     __ASSERT_DEBUG( index >= 0 , User::Panic( _L("cpserver"), 0 ) );
   334     if (index != KErrNotFound)
   335     iNotificationsArray.Remove( index );
   335         {
   336     if ( iNotificationsArray.Count( ) == 0 )
   336         iNotificationsArray.Remove( index );
   337         {
   337         if ( iNotificationsArray.Count( ) == 0 )
   338         iStorage->SetCallback( 0 );
   338             {
       
   339             iStorage->SetCallback( 0 );
       
   340             }
   339         }
   341         }
   340     }
   342     }
   341 
   343 
   342 // ---------------------------------------------------------------------------
   344 // ---------------------------------------------------------------------------
   343 //
   345 //