messagingfw/msgsrvnstore/server/src/msvdbadapter.cpp
branchRCL_3
changeset 23 d51193d814ea
parent 22 d2c4c66342f3
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1249 	   aEntry->Entry().Visible() 		&&
  1249 	   aEntry->Entry().Visible() 		&&
  1250 	   !IsStandardId(aEntry->GetId()) 	&&
  1250 	   !IsStandardId(aEntry->GetId()) 	&&
  1251 	   KUidMsvFolderEntryValue == aEntry->Entry().iType.iUid
  1251 	   KUidMsvFolderEntryValue == aEntry->Entry().iType.iUid
  1252 	  )
  1252 	  )
  1253 		{
  1253 		{
  1254 		CMsvEntryFreePool::Instance()->ReleaseEntryL(aEntry);
  1254 		CMsvEntryFreePool::Instance()->ReleaseEntry(aEntry);
  1255 		User::Leave(KErrNotFound);
  1255 		User::Leave(KErrNotFound);
  1256 		}
  1256 		}
  1257 	
  1257 	
  1258 	// Unmask iId's of standard Ids.
  1258 	// Unmask iId's of standard Ids.
  1259 	if(IsStandardId(aEntry->GetId()))
  1259 	if(IsStandardId(aEntry->GetId()))
  1375 	
  1375 	
  1376 		//Add the child entry to the array given
  1376 		//Add the child entry to the array given
  1377 		aChildArray.AppendL(cacheEntry);
  1377 		aChildArray.AppendL(cacheEntry);
  1378 		CleanupStack::Pop(cacheEntry);
  1378 		CleanupStack::Pop(cacheEntry);
  1379 		}
  1379 		}
       
  1380 	
  1380 	CleanupStack::PopAndDestroy(2); //getStmt, queryBuf
  1381 	CleanupStack::PopAndDestroy(2); //getStmt, queryBuf
  1381 	}
  1382 	}
  1382 
  1383 
  1383 
  1384 
  1384 
  1385 
  4306 	
  4307 	
  4307 	TInt Idindex = GetColumnIndexL(Idquerystatement, KMsgColumnId());
  4308 	TInt Idindex = GetColumnIndexL(Idquerystatement, KMsgColumnId());
  4308 	
  4309 	
  4309 	while(KSqlAtRow == Idquerystatement.Next())
  4310 	while(KSqlAtRow == Idquerystatement.Next())
  4310 		{
  4311 		{
  4311 		aIdArray.AppendL(ColumnInt(Idquerystatement, Idindex));
  4312 		aIdArray.Append(ColumnInt(Idquerystatement, Idindex));
  4312 		}
  4313 		}
  4313 		
  4314 		
  4314 	CleanupStack::PopAndDestroy(2);  //buf,Idquerystatement
  4315 	CleanupStack::PopAndDestroy(2);  //buf,Idquerystatement
  4315 	}
  4316 	}
  4316 
  4317 
  4356 			type == KUidMsvEmailTextEntryValue ||
  4357 			type == KUidMsvEmailTextEntryValue ||
  4357 			type == KUidMsvEmailHtmlEntryValue ||
  4358 			type == KUidMsvEmailHtmlEntryValue ||
  4358 			type == KUidMsvEmailRtfEntryValue
  4359 			type == KUidMsvEmailRtfEntryValue
  4359 			)
  4360 			)
  4360 			{
  4361 			{
  4361 			aIdArray.AppendL(childId);
  4362 			aIdArray.Append(childId);
  4362 			}
  4363 			}
  4363 		// Recursion for alternate folders
  4364 		// Recursion for alternate folders
  4364 		else if(type == KUidMsvFolderEntryValue)
  4365 		else if(type == KUidMsvFolderEntryValue)
  4365 			{
  4366 			{
  4366 			aIdArray.AppendL(childId);
  4367 			aIdArray.Append(childId);
  4367 			// also get the childs for these messages
  4368 			// also get the childs for these messages
  4368 			GetAllMimeIdsL(childId, aIdArray);
  4369 			GetAllMimeIdsL(childId, aIdArray);
  4369 			}
  4370 			}
  4370 		}
  4371 		}
  4371 		
  4372