The mobile phone model can be read from the following files:
Z: esourceversionsmodel.txt
The model name is in the following format:
"Nokia 3250"
RelatedCode:
_ Partition (kfilename, "Z: \ resource \ versions \ model.txt"); \\\ rfile file; User: leaveiferror (file. open (ccoeenv: static ()-> fssession (), kfilename, efileread); cleanupclosepushl (File );
Tfiletext text;
Text. Set (File );
Tbuf16 <128> szmodelname;
User: leaveiferror (text. Read (szmodelname ));
Cleanupstack: popanddestroy (& file );
Cakninformationnote * Note = new (eleave) cakninformationnote (etrue );
Note-> executeld (szmodelname );
All series60 devices have a unique identifier assigned by the manufacturer-The machine uid. Therefore, you can use this UID to obtain the mobile phone model.
Common s60 Models and Their machine uid:
S60 1st edition (0.9 ):
Nokia 7650 0x101f4fc3
S60 1st edition, FP1 (1.2 ):
Nokia 3650 0x101f466a
Nokia 3660 0x101f466a
SENDO-x 0x101fa031
Siemens SX-1 0x101f9071
S60 2nd Edition:
Nokia 6600 0x101fb3dd
S60 2nd edition, FP1:
Nokia 3230 0x10200f97
Nokia 6260 0x101fb3f4
Nokia 6620 0x101f3ee3
Nokia 6670 0x101fb3f3
Nokia 7610 0x101fb3f3
S60 2nd edition, fp2:
Nokia 6630 0x101fbb55
Nokia 6680 0x10200f99
Nokia 6681 0x10200f9c
Nokia 6682 0x10200f9b
S60 2nd edition, fp3:
Nokia N70 0x10200f9a
Nokia N90 0x10200f98
Other
Nokia N-gage 0x101f8c19
Nokia N-gage QD 0x101fb2b1
You can use the following code to obtain the mobile phone model:
Void getphonemodel ()
{
Tint machineuid = 0;
HAL: Get (haldata: emachineuid, machineuid );
Switch (machineuid)
{
Case 0x101f9071:
{
// Siemens SX1
Break;
}
Case 0x101f466a:
{
// Nokia 3650
Break;
}
Case 0x101f4fc3:
{
// Nokia 7650
Break;
}
Case 0x101fb3dd:
{
// Nokia 6600
Break;
}
//......
}
}
The mobile phone model can be read from the following files:
Z: esourceversionsmodel.txt
The model name is in the following format:
"Nokia 3250"
Related code:
_ Partition (kfilename, "Z: \ resource \ versions \ model.txt"); \\\ rfile file; User: leaveiferror (file. open (ccoeenv: static ()-> fssession (), kfilename, efileread ));
Cleanupclosepushl (File );
Tfiletext text;
Text. Set (File );
Tbuf16 <128> szmodelname;
User: leaveiferror (text. Read (szmodelname ));
Cleanupstack: popanddestroy (& file );
_ Partition (kfilename, "Z: \ resource \ versions \ model.txt"); \ rfile file; User: leaveiferror (file. open (ccoeenv: static ()-> fssession (), kfilename, efileread ));
Cleanupclosepushl (File );
Tfiletext text;
Text. Set (File );
Tbuf16 <128> szmodelname;
User: leaveiferror (text. Read (szmodelname ));
Cleanupstack: popanddestroy (& file );
_ Partition (kfilename, "Z: \ resource \ versions \ model.txt"); \ rfile file;
User: leaveiferror (file. Open (ccoeenv: static ()-> fssession (), kfilename, efileread ));
Cleanupclosepushl (File );
Tfiletext text;
Text. Set (File );
Tbuf16 <128> szmodelname;
User: leaveiferror (text. Read (szmodelname ));
Cleanupstack: popanddestroy (& file );