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.