equal
deleted
inserted
replaced
336 criteria.iField = EFSMailSortByDate; |
336 criteria.iField = EFSMailSortByDate; |
337 criteria.iOrder = EFSMailDescending; |
337 criteria.iOrder = EFSMailDescending; |
338 RArray<TFSMailSortCriteria> sorting; |
338 RArray<TFSMailSortCriteria> sorting; |
339 CleanupClosePushL(sorting); |
339 CleanupClosePushL(sorting); |
340 sorting.Append(criteria); |
340 sorting.Append(criteria); |
|
341 |
|
342 NM_TIMESTAMP("ListMessagesL in getMessagesFromFolderL start"); |
341 |
343 |
342 // Get the message list from the backend. |
344 // Get the message list from the backend. |
343 MFSMailIterator* iterator(NULL); |
345 MFSMailIterator* iterator(NULL); |
344 iterator = folder->ListMessagesL(details, sorting); |
346 iterator = folder->ListMessagesL(details, sorting); |
|
347 |
|
348 NM_TIMESTAMP("ListMessagesL in getMessagesFromFolderL end"); |
345 |
349 |
346 if (iterator) { |
350 if (iterator) { |
347 CleanupStack::PushL(iterator); |
351 CleanupStack::PushL(iterator); |
348 RPointerArray<CFSMailMessage> messages; |
352 RPointerArray<CFSMailMessage> messages; |
349 CleanupResetAndDestroy<CFSMailMessage>::PushL(messages); |
353 CleanupResetAndDestroy<CFSMailMessage>::PushL(messages); |
354 moreMessagesToFollow = iterator->NextL(TFSMailMsgId(), blockSize, messages); |
358 moreMessagesToFollow = iterator->NextL(TFSMailMsgId(), blockSize, messages); |
355 |
359 |
356 for (int i = blockSize; |
360 for (int i = blockSize; |
357 i < maxItemCount && moreMessagesToFollow; |
361 i < maxItemCount && moreMessagesToFollow; |
358 i += blockSize) { |
362 i += blockSize) { |
|
363 NM_TIMESTAMP(" NextL in getMessagesFromFolderL begins"); |
359 moreMessagesToFollow = |
364 moreMessagesToFollow = |
360 iterator->NextL(messages[i-1]->GetMessageId(), blockSize, messages); |
365 iterator->NextL(messages[i-1]->GetMessageId(), blockSize, messages); |
|
366 NM_TIMESTAMP(" NextL in getMessagesFromFolderL end"); |
361 } |
367 } |
362 |
368 |
363 // Add all the found emails into the result list. |
369 // Add all the found emails into the result list. |
364 const TInt messageCount(messages.Count()); |
370 const TInt messageCount(messages.Count()); |
365 |
371 |
1312 // Mails moved |
1318 // Mails moved |
1313 // param1: RArray<TFSMailMsgId>* aEntries |
1319 // param1: RArray<TFSMailMsgId>* aEntries |
1314 // param2: TFSMailMsgId* aNewParentFolder |
1320 // param2: TFSMailMsgId* aNewParentFolder |
1315 // param3: TFSMailMsgId* aOldParentFolder |
1321 // param3: TFSMailMsgId* aOldParentFolder |
1316 case TFSEventMailMoved: |
1322 case TFSEventMailMoved: |
1317 handleMailMoved(param1, param2, param3, mailbox); |
1323 if(param2 && param3) |
|
1324 { |
|
1325 handleMailMoved(param1, param2, param3, mailbox); |
|
1326 } |
1318 break; |
1327 break; |
1319 |
1328 |
1320 // Mails copied |
1329 // Mails copied |
1321 // param1: RArray<TFSMailMsgId>* aNewEntries |
1330 // param1: RArray<TFSMailMsgId>* aNewEntries |
1322 // param2: TFSMailMsgId* aNewParentFolder |
1331 // param2: TFSMailMsgId* aNewParentFolder |