Namespaces
Variants
Actions

How to get the count of unread messages from Inbox

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);
This page was last modified on 26 July 2012, at 06:19.
81 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved