×
Namespaces

Variants
Actions

Retrieving Phone's Manufacturer ,Model & IMEI number in Symbian

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: bharatuppal (18 Jul 2007)
Last edited: hamishwillee (26 Jul 2012)
/* pointer to the telephony*/
CTelephony* iTel;
 
/* For holding information */
CTelephony:: TPhoneIdV1Pckg iInfoPkg;
CTelephony:: TPhoneIdV1 iInfo;
 
//Async request for retrieving phone information
iTel=CTelephony::NewL();
iTel->GetPhoneId(iStatus,iInfoPkg);
SetActive();
 
 
void CPhoneInfo :: RunL()
{
switch(iStatus.Int())
{
case KErrNone:
{
//All information recieved
TBuf<CTelephony::KPhoneManufacturerIdSize +
CTelephony::KPhoneModelIdSize + CTelephony::KPhoneSerialNumberSize> phoneInfo;
phoneInfo.Copy(iInfo.iManufacturer);
phoneInfo.Append(iInfo.iModel);
phoneInfo.Append(iInfo.iSerialNumber);
}
break;
default:
{
//Return error
}
break;
}
}
This page was last modified on 26 July 2012, at 08:01.
34 page views in the last 30 days.