This tutorial describes how to identify a phone using multimode phone sub-sessions. Phone identity information are the phone manufacturer, model, revision, serial number and subscriber ID.
The serial number is called the IMEI for GSM and ESN for non-GSM. The subscriber ID is a unique number called the IMSI.
The function returns the information to identify the device.
The following code checks if phone model information can be obtained, and if so, gets the model information. The code assumes iMobilePhone is an RMobilePhone object.
TUint32 identityCaps; User::LeaveIfError(iMobilePhone.GetIdentityCaps(identityCaps)); TBuf<RMobilePhone::KPhoneModelIdSize> model; if (identityCaps & RMobilePhone::KCapsGetModel) { TRequestStatus status; RMobilePhone::TMobilePhoneIdentityV1 mobilePhoneIdentity; iMobilePhone.GetPhoneId(status, mobilePhoneIdentity); User::WaitForRequest(status); User::LeaveIfError(status.Int()); model = mobilePhoneIdentity.iModel; }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.