contentstorage/srvsrc/castorageproxy.cpp
changeset 107 b34d53f6acdf
parent 102 8b8b34fa9751
child 125 26079c1bb561
equal deleted inserted replaced
106:e78d6e055a5b 107:b34d53f6acdf
   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 )
   369         iHandlerNotifier[i]->GroupContentChanged( parentArray );
   369         iHandlerNotifier[i]->GroupContentChanged( parentArray );
   370         }
   370         }
   371     CleanupStack::PopAndDestroy( &parentArray );
   371     CleanupStack::PopAndDestroy( &parentArray );
   372     }
   372     }
   373 
   373 
       
   374 // ---------------------------------------------------------------------------
       
   375 //
       
   376 // ---------------------------------------------------------------------------
       
   377 //
   374 #ifdef COVERAGE_MEASUREMENT
   378 #ifdef COVERAGE_MEASUREMENT
   375 #pragma CTC SKIP
   379 #pragma CTC SKIP
   376 #endif //COVERAGE_MEASUREMENT (calls another method)
   380 #endif //COVERAGE_MEASUREMENT (calls another method)
   377 // ---------------------------------------------------------------------------
   381 
   378 //
   382 EXPORT_C void CCaStorageProxy::SaveDatabaseL()
   379 // ---------------------------------------------------------------------------
   383     {
   380 //
   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 
   381 EXPORT_C void CCaStorageProxy::LoadDataBaseFromRomL()
   416 EXPORT_C void CCaStorageProxy::LoadDataBaseFromRomL()
   382     {
   417     {
   383     iStorage->LoadDataBaseFromRomL();
   418     iStorage->LoadDataBaseFromRomL();
   384     }
   419     }
   385 #ifdef COVERAGE_MEASUREMENT
   420 #ifdef COVERAGE_MEASUREMENT