×
Namespaces

Variants
Actions

How to get the count of unread messages from Inbox

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: User:Kanu123 (30 Jun 2007)
Last edited: hamishwillee (14 Jun 2013)
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 14 June 2013, at 09:28.
45 page views in the last 30 days.
×