mtpfws/mtpfw/src/cmtpobjectstore.cpp
branchRCL_3
changeset 5 3673b591050c
parent 4 60a94a45d437
child 11 f5809cfbf6d5
equal deleted inserted replaced
4:60a94a45d437 5:3673b591050c
   494 				needToInsert = ETrue;
   494 				needToInsert = ETrue;
   495 				}
   495 				}
   496 			else
   496 			else
   497 				{
   497 				{
   498 				aObject.SetUint(CMTPObjectMetaData::EHandle, handle);
   498 				aObject.SetUint(CMTPObjectMetaData::EHandle, handle);
       
   499 				needUpdateOwner = ETrue;
   499 				//while enumerating, we ignore the repeatedly INSERT operations.
   500 				//while enumerating, we ignore the repeatedly INSERT operations.
   500 				//User::Leave(KErrAlreadyExists);
   501 				//User::Leave(KErrAlreadyExists);
   501 				}
   502 				}
   502 			__FLOG_VA(_L8("Not Found in Snapshot"));
   503 			__FLOG_VA(_L8("Not Found in Snapshot"));
   503 			}
   504 			}
   945 
   946 
   946 	User::LeaveIfError(iDatabase.Replace(iSingletons.Fs(), aFileName, KMTPFormat));
   947 	User::LeaveIfError(iDatabase.Replace(iSingletons.Fs(), aFileName, KMTPFormat));
   947 	// Create table and index
   948 	// Create table and index
   948 	CreateHandleTableL();
   949 	CreateHandleTableL();
   949 	CreateHandleIndexL();
   950 	CreateHandleIndexL();
   950 	//This is the very very 1st time of MTP server running, therefore, all of the objects in the HandleStore should be added items
   951 	iUpdateDeltaDataTable = ETrue;
   951 	//roundtrip table will fetch the added items directly from the handlestore, do not popluate the added items to round-trip table
       
   952 	//until the enumeration is finished.
       
   953 	iUpdateDeltaDataTable = EFalse;
       
   954 	}
   952 	}
   955 
   953 
   956 /**
   954 /**
   957  Open the database with the specified database name
   955  Open the database with the specified database name
   958  @param aFileName    The name of the database to open
   956  @param aFileName    The name of the database to open