equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2010 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()->ReleaseEntry(aEntry); |
1254 CMsvEntryFreePool::Instance()->ReleaseEntryL(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())) |
4306 |
4306 |
4307 TInt Idindex = GetColumnIndexL(Idquerystatement, KMsgColumnId()); |
4307 TInt Idindex = GetColumnIndexL(Idquerystatement, KMsgColumnId()); |
4308 |
4308 |
4309 while(KSqlAtRow == Idquerystatement.Next()) |
4309 while(KSqlAtRow == Idquerystatement.Next()) |
4310 { |
4310 { |
4311 aIdArray.Append(ColumnInt(Idquerystatement, Idindex)); |
4311 aIdArray.AppendL(ColumnInt(Idquerystatement, Idindex)); |
4312 } |
4312 } |
4313 |
4313 |
4314 CleanupStack::PopAndDestroy(2); //buf,Idquerystatement |
4314 CleanupStack::PopAndDestroy(2); //buf,Idquerystatement |
4315 } |
4315 } |
4316 |
4316 |
4356 type == KUidMsvEmailTextEntryValue || |
4356 type == KUidMsvEmailTextEntryValue || |
4357 type == KUidMsvEmailHtmlEntryValue || |
4357 type == KUidMsvEmailHtmlEntryValue || |
4358 type == KUidMsvEmailRtfEntryValue |
4358 type == KUidMsvEmailRtfEntryValue |
4359 ) |
4359 ) |
4360 { |
4360 { |
4361 aIdArray.Append(childId); |
4361 aIdArray.AppendL(childId); |
4362 } |
4362 } |
4363 // Recursion for alternate folders |
4363 // Recursion for alternate folders |
4364 else if(type == KUidMsvFolderEntryValue) |
4364 else if(type == KUidMsvFolderEntryValue) |
4365 { |
4365 { |
4366 aIdArray.Append(childId); |
4366 aIdArray.AppendL(childId); |
4367 // also get the childs for these messages |
4367 // also get the childs for these messages |
4368 GetAllMimeIdsL(childId, aIdArray); |
4368 GetAllMimeIdsL(childId, aIdArray); |
4369 } |
4369 } |
4370 } |
4370 } |
4371 |
4371 |