Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:28, 20 December 2007.

How to get Subscriber identification

From Forum Nokia Wiki

This is done using CTelephony using CTelephony::GetSubscriberId().

  • Libraries Needed: Etel3rdParty.lib and euser.lib
  • Asynchronous call

Since, this is done using an asynchronous call, one can cancel this using CTelephony::EGetSubscriberIdCancel.


#include <e32base.h>
#include <Etel3rdParty.h>
 
class CClientApp : public CActive
    {
 
private:
    CTelephony* iTelephony;
    CTelephony::TSubscriberIdV1 iSubscriberIdV1;
    CTelephony::TSubscriberIdV1Pckg iSubscriberIdV1Pckg;
 
public:
    CClientApp(CTelephony* aTelephony);
    void SomeFunction();
 
private:
    void RunL();
    void DoCancel();
    };
 
CClientApp:: CClientApp(CTelephony* aTelephony)
    : CActive(EPriorityStandard),
      iTelephony(aTelephony),
      iSubscriberIdV1Pckg(iSubscriberIdV1)
    {
    //Constructor
    }
 
void CClientApp::SomeFunction()
    {
    iTelephony->GetSubscriberId(iStatus, iSubscriberIdV1Pckg);
    SetActive();
    }
 
void CClientApp::RunL()
    {
    if(iStatus==KErrNone)
       {
       TBuf<CTelephony::KIMSISize> suscriberId = iSubscriberIdV1.iSubscriberId;
       }
    }
 
void CClientApp::DoCancel()
    {
    iTelephony->CancelAsync(CTelephony::EGetSubscriberIdCancel);
    }


Wiki Internal Links

Related Discussions
Thread Thread Starter Forum Replies Last Post
IMEI or Secure Unique ID earamsey Mobile Java General 14 2006-12-21 23:53
BIOMETRICS TECHNOLOGY IN CELLPHONES (mini fingerprint scanner) riez_n General Discussion 3 2003-07-09 13:08
S60下,如何获得手机sim卡的imsi号? superrookie Symbian 9 2006-12-02 11:13
Nokia 8310 AT / SDK Commands Nokia_Archived PC Suite API and PC Connectivity SDK 2 2002-05-23 13:04
strange textfield input diplm Mobile Java General 5 2004-05-29 15:07
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX