Symbian Gets the phone number

Source: Internet
Author: User

Recent work needs to get mobile phone model

Found the information on the Internet. Thanks to the author.

Header file:

#include

Library:

Hal.lib

Code:

void GetPhoneModeL(TDes& aModeBuf )
{
TInt machineUid=0;
HAL::Get (HALData::EMachineUid, machineUid );
switch (machineUid )
{
case 0x10200F9B:
{
aModeBuf = _L("Nokia 6682");
break;
}
case 0x10200F9C:
{
aModeBuf = _L("Nokia 6681");
break;
}
case 0x10200F99:
{
aModeBuf = _L("Nokia 6680");
break;
}
case 0x101FBB55:
{
aModeBuf = _L("Nokia 6630 ");
break;
}
case 0x101FB3F3:
{
aModeBuf = _L("Nokia 7610");
break;
}
case 0x101F3EE3:
{
aModeBuf = _L("Nokia 6620");
break;
}
case 0x101FB3F4:
{
aModeBuf = _L("Nokia 6260");
break;
}
case 0x10200F97:
{
aModeBuf = _L("Nokia 3230");
break;
}
case 0x101FB3DD:
{
//Nokia 6600
aModeBuf = _L("Nokia 6600");
break;
}
}
}

But it's best to go straight back to Machineuid and get the server to do the matching. Since the client has been written dead, a new model will not match the number.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.