How to get the count of unread messages from Inbox
CMsvEntry* entry = CMsvEntry::NewL(*iMsvSession, KMsvGlobalInBoxIndexEntryId, TMsvSelectionOrdering());
CleanupStack::PushL(entry);
CMsvEntrySelection* entries = entry->ChildrenL();
CleanupStack::PushL(entries);
TInt nUnreadCount;
for(TInt i=0;i<entries->Count();i++)
{
entry->SetEntryL(entries->At(i));
TMsvEntry msvEntry(entry->Entry());
if( msvEntry.Unread())
nUnreadCount++;
}
CleanupStack::PopAndDestroy(2);
This page was last modified on 26 July 2012, at 06:19.
82 page views in the last 30 days.
(no comments yet)