diff -r 8d701d3fdee0 -r 35ca36ca93d1 mtpfws/mtpfw/inc/cmtpobjectstore.h --- a/mtpfws/mtpfw/inc/cmtpobjectstore.h Fri Jun 11 16:26:25 2010 +0100 +++ b/mtpfws/mtpfw/inc/cmtpobjectstore.h Thu Jul 22 16:43:05 2010 +0100 @@ -27,7 +27,7 @@ #include "mtpframeworkconst.h" #include "rmtpframework.h" #include "mtpdebug.h" - +#include "cmtpreferencemgr.h" class CFileStore; class CMTPHandleAllocator; class CMTPObjectMetaData; @@ -155,6 +155,8 @@ } void DoL(RDbTable& aTable) { + //no need to call GetL already all it in TraverseL + iStore.ReferenceMgr().RemoveReferencesL(aTable.ColUint32(EObjectStoreHandleId)); aTable.DeleteL(); iStore.IncTranOpsNumL(); } @@ -200,6 +202,7 @@ void MarkNonPersistentObjectsL(TUint aDataProviderId, TUint32 aStorageId); void EstablishDBSnapshotL(TUint32 aStorageId); void CleanDBSnapshotL(TBool aOnlyRoot = EFalse); + void RemoveUndefinedObjectsL(); void ObjectsEnumComplete(); void MarkDPLoadedL(TUint aDataProviderId, TBool aFlag); @@ -364,6 +367,7 @@ TInt iSnapshotCleanPos; CSnapshotWorker* iSnapshotWorker; mutable TFileName iSuidBuf; + TBool iCleanUndefined; /** FLOGGER debug trace member variable. */