metadataengine/server/src/mdsmanipulationengine.cpp
changeset 3 b73a2e62868f
parent 0 c53acadfccc6
child 14 646a02f170b9
--- a/metadataengine/server/src/mdsmanipulationengine.cpp	Tue Jan 26 12:13:20 2010 +0200
+++ b/metadataengine/server/src/mdsmanipulationengine.cpp	Tue Feb 02 00:24:33 2010 +0200
@@ -1002,6 +1002,20 @@
 	CleanupStack::PopAndDestroy( &transaction );
 	}
 
+void CMdSManipulationEngine::CheckMassStorageMediaIdL( const TUint32 aMediaId )
+    {
+    CMdSSqLiteConnection& connection = MMdSDbConnectionPool::GetDefaultDBL();
+    RMdSTransaction transaction( connection );
+    CleanupClosePushL( transaction );
+    User::LeaveIfError( transaction.Error() );
+    
+    iManipulate->CheckMassStorageMediaIdL( aMediaId );
+    
+    transaction.CommitL();
+
+    CleanupStack::PopAndDestroy( &transaction );
+    }
+
 void CMdSManipulationEngine::AddRelationDefL( TDefId aNamespaceId, const TDesC& aRelationDefName )
 	{
 	CMdsNamespaceDef* namespaceDef = CONST_CAST( CMdsNamespaceDef*, iSchema.GetNamespaceByIdL( aNamespaceId ) );