contentstorage/srvsrc/castorageproxy.cpp
changeset 109 e0aa398e6810
parent 104 9b022b1f357c
equal deleted inserted replaced
104:9b022b1f357c 109:e0aa398e6810
   271     id.AppendL( entryId );
   271     id.AppendL( entryId );
   272     touchQuery->SetIdsL( id );
   272     touchQuery->SetIdsL( id );
   273     RPointerArray<CCaInnerEntry> resultArray;
   273     RPointerArray<CCaInnerEntry> resultArray;
   274     CleanupResetAndDestroyPushL( resultArray );
   274     CleanupResetAndDestroyPushL( resultArray );
   275     iStorage->GetEntriesL( touchQuery, resultArray );
   275     iStorage->GetEntriesL( touchQuery, resultArray );
   276     iStorage->TouchL( entryId );
   276     iStorage->TouchL( entryId, aEntry->GetFlags() & ERemovable );
   277     for( TInt i = 0; i < iHandlerNotifier.Count(); i++ )
   277     for( TInt i = 0; i < iHandlerNotifier.Count(); i++ )
   278         {
   278         {
   279         iHandlerNotifier[i]->EntryTouched( entryId );
   279         iHandlerNotifier[i]->EntryTouched( entryId );
   280         }
   280         }
   281     if( resultArray.Count() > 0 )
   281     if( resultArray.Count() > 0 )
   361     iStorage->CustomSortL( aEntryIds, aGroupId );
   361     iStorage->CustomSortL( aEntryIds, aGroupId );
   362 
   362 
   363     RArray<TInt> parentArray;
   363     RArray<TInt> parentArray;
   364     CleanupClosePushL( parentArray );
   364     CleanupClosePushL( parentArray );
   365     parentArray.AppendL( aGroupId );
   365     parentArray.AppendL( aGroupId );
       
   366     iStorage->GetParentsIdsL( parentArray, parentArray );
   366     for( TInt i = 0; i < iHandlerNotifier.Count(); i++ )
   367     for( TInt i = 0; i < iHandlerNotifier.Count(); i++ )
   367         {
   368         {
   368         iHandlerNotifier[i]->GroupContentChanged( parentArray );
   369         iHandlerNotifier[i]->GroupContentChanged( parentArray );
   369         }
   370         }
   370     CleanupStack::PopAndDestroy( &parentArray );
   371     CleanupStack::PopAndDestroy( &parentArray );
   371     }
   372     }
   372 
   373 
       
   374 // ---------------------------------------------------------------------------
       
   375 //
       
   376 // ---------------------------------------------------------------------------
       
   377 //
   373 #ifdef COVERAGE_MEASUREMENT
   378 #ifdef COVERAGE_MEASUREMENT
   374 #pragma CTC SKIP
   379 #pragma CTC SKIP
   375 #endif //COVERAGE_MEASUREMENT (calls another method)
   380 #endif //COVERAGE_MEASUREMENT (calls another method)
   376 // ---------------------------------------------------------------------------
   381 
   377 //
   382 EXPORT_C void CCaStorageProxy::SaveDatabaseL()
   378 // ---------------------------------------------------------------------------
   383     {
   379 //
   384     iStorage->SaveDatabaseL();
       
   385     }
       
   386 #ifdef COVERAGE_MEASUREMENT
       
   387 #pragma CTC ENDSKIP
       
   388 #endif //COVERAGE_MEASUREMENT
       
   389 
       
   390 
       
   391 // ---------------------------------------------------------------------------
       
   392 //
       
   393 // ---------------------------------------------------------------------------
       
   394 //
       
   395 #ifdef COVERAGE_MEASUREMENT
       
   396 #pragma CTC SKIP
       
   397 #endif //COVERAGE_MEASUREMENT (calls another method)
       
   398 
       
   399 EXPORT_C void CCaStorageProxy::RestoreDatabaseL()
       
   400     {
       
   401     iStorage->RestoreDatabaseL();
       
   402     }
       
   403 #ifdef COVERAGE_MEASUREMENT
       
   404 #pragma CTC ENDSKIP
       
   405 #endif //COVERAGE_MEASUREMENT
       
   406 
       
   407 
       
   408 // ---------------------------------------------------------------------------
       
   409 //
       
   410 // ---------------------------------------------------------------------------
       
   411 //
       
   412 #ifdef COVERAGE_MEASUREMENT
       
   413 #pragma CTC SKIP
       
   414 #endif //COVERAGE_MEASUREMENT (calls another method)
       
   415 
   380 EXPORT_C void CCaStorageProxy::LoadDataBaseFromRomL()
   416 EXPORT_C void CCaStorageProxy::LoadDataBaseFromRomL()
   381     {
   417     {
   382     iStorage->LoadDataBaseFromRomL();
   418     iStorage->LoadDataBaseFromRomL();
   383     }
   419     }
   384 #ifdef COVERAGE_MEASUREMENT
   420 #ifdef COVERAGE_MEASUREMENT