| ID | ... | Creation date | June 19, 2009 |
| Platform | S60 3rd Edition FP1, S60 3rd Edition FP2, S60 5th Edition | Tested on devices | Nokia 5800 XpressMusic |
| Category | Qt for S60 | Subcategory | Application (Extension) |
| Keywords (APIs, classes, methods, functions): XQSysInfo::imei() |
This code snippet will show how to retrieve the IMEI number of the device. The XQSysInfo class provides information about the device. imei() method of class XQSysInfo return IMEI number of device.
This snippet requires ReadDeviceData capabilities. Self-signing is not possible because a Developer certificate is needed.
#include <XQSysInfo>
symbian:LIBS += -letel3rdparty \
-lsysutil \
-lefsrv \
-lfeatdiscovery
symbian:TARGET.CAPABILITY = ReadDeviceData
XQSysInfo *sysInfo = new XQSysInfo();
QLabel *IMEI = new QLabel("IMEI: "+sysInfo->imei());
No related wiki articles found