mtpfws/mtpfw/inc/cmtpobjectstore.h
changeset 25 48a2e0d8a4ce
parent 20 6e82ae192c3a
child 47 63cf70d3ecd8
--- a/mtpfws/mtpfw/inc/cmtpobjectstore.h	Fri May 14 16:42:01 2010 +0300
+++ b/mtpfws/mtpfw/inc/cmtpobjectstore.h	Thu May 27 13:42:43 2010 +0300
@@ -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.
 	 */