You Are Here:

Community: Wiki

This page was last modified on 1 May 2009, at 17:33.

Get SIM status in S60 2nd Edition

From Forum Nokia Wiki

How to get SIM status in S60 2nd Edition

Following example illustrate how to get SIM status in S60 2nd Edition devices.

SIM status information: Indicates current status of SIM card.

Case1: Say SIM card is present in phone and is ok.

Case2: Say SIM card is not present in phone.

Case3: Say SIM card is present in phone but rejected by operator.

Headers required:

#include <saclient.h>
#include <sacls.h>

Library required:

LIBRARY  sysagt.lib

Source code:

void CSimStatusAppUi::SimStatus()
{
RSystemAgent sysAgent;
sysAgent.Connect();
TInt status = sysAgent.GetState(KUidSIMStatus);
 
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
switch(status)
{
case ESASimOk:
{
informationNote->ExecuteLD(_L("Sim present in phone and it is ok"));
break;
}
case ESASimNotPresent:
{
informationNote->ExecuteLD(_L("Sim not present in phone"));
break;
}
case ESASimRejected:
{
informationNote->ExecuteLD(_L("Sim present in phone but rejected by operator"));
break;
}
default:
{
informationNote->ExecuteLD(_L("Info not available"));
}
break;
}
 
}

Related link:

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fThemesE3aHomeE5fScreenX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ