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 16:47, 23 June 2008.

How to get IMEI on 7710

From Forum Nokia Wiki

We could use PlpVariant to get imei in S60 2nd Edition development.

#if !defined(__WINS__) && !defined( __WINSCW__ )
PlpVariant::GetMachineIdL( iImei );
#else
iImei.Copy( KDefaultIMEI );
#endif

But it cannot work on 7710. We should use Etel3rdParty to read IMEI.

/* Declare the client class */ 
class CClientApp : public CActive
{
 
public:
 
   // Construction
 
   void ConstructL();    
 
   // Destruction
 
   ~CClientApp();
 
   // Issue request: retrieve IMEI
 
   void GetIMEI();
 
   // Cancel request
 
   void DoCancel();
 
   // Service completed request
 
   void RunL(); 
 
private:
 
   CTelephony* iTelephony; // telephony object we own
 
   CTelephony::TPhoneIdV1 iV1;
 
   CTelephony::TPhoneIdV1Pckg* iPkg;
   };
 
 
 
/* Define the client class */
 
void CClientApp::ConstructL()
   {
   iPkg = new (ELeave) CTelephony::TPhoneIdV1Pckg(iV1);
   iTelephony = CTelephony::NewL();
   CActiveScheduler::Add(this);
   }
 
CClientApp::~CClientApp()
   {
   Cancel();   // if any request outstanding, calls DoCancel() to cleanup
   delete iTelephony;
   delete iPkg;
   }
 
void CClientApp::GetIMEI()
{
   iTelephony->GetPhoneId(iStatus,*iPkg );
   SetActive();
   CActiveScheduler::Start();
}
 
void CClientApp::RunL()
{
   TBuf<50> retrievedIMEI;
   if ( (iStatus == KErrNone) )
   {
      retrievedIMEI = (*iPkg)().iSerialNumber;
    }
   CActiveScheduler::Stop();
}
 
void CClientApp::DoCancel()
{
   Cancel();
}


Internal links

Related Discussions
Thread Thread Starter Forum Replies Last Post
Searching function for IMEI alwin2 Symbian Tools & SDKs 7 2006-02-21 13:55
7710: Task list silverparasol General Symbian C++ 1 2005-06-12 16:12
How to get IMEI on Symbian 3rd? oslario General Symbian C++ 25 2006-11-29 07:51
How to add txt file extension (RFileLogger)? EtsiEtsi General Symbian C++ 6 2006-02-01 19:06
getting IMEI badappleFG Mobile Java General 1 2003-02-21 05:14
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZhardwareQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX