| ID | ... | Creation date | June 20, 2009 |
| Platform | S60 3rd Edition, FP1, FP2 S60 5th Edition | Tested on devices | Nokia 5800 XpressMusic |
| Category | Qt for Symbian | Subcategory |
| Keywords (APIs, classes, methods, functions): XQSysInfo::imsi() |
This code snippets shows how to get IMSI number in Qt. The XQSysInfo class provides information about the device. imsi() method of class XQSysInfo return IMSI number.
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();
/* show IMSI on label */
QLabel *IMSI = new QLabel("IMSI: "+sysInfo->imsi());
No related wiki articles found