You Are Here:

Community: Wiki

This page was last modified on 26 November 2007, at 12:34.

How to get the count of unread messages from Inbox

From Forum Nokia Wiki

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);

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia