Namespaces
Variants
Actions

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

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.
84 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved