×
Namespaces

Variants
Actions
Revision as of 06:19, 26 July 2012 by hamishwillee (Talk | contribs)

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 (26 Jul 2012)
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);
47 page views in the last 30 days.
×