Archived:Reading IMSI in Qt for Symbian
Jump to navigation
Jump to search
Overview[edit | edit source]
Template:Abstract. 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 (Symbian Signed) is needed.
Preconditions[edit | edit source]
- Download and Install the Qt SDK
- Go through this article: How to use Mobile Extension APIs in Qt for Symbian
Headers required[edit | edit source]
#include <XQSysInfo>
.pro file[edit | edit source]
symbian:LIBS += -letel3rdparty \
-lsysutil \
-lefsrv \
-lfeatdiscovery
symbian:TARGET.CAPABILITY = ReadDeviceData
Source[edit | edit source]
XQSysInfo *sysInfo = new XQSysInfo();
/* show IMSI on label */
QLabel *IMSI = new QLabel("IMSI: "+sysInfo->imsi());
Code Example[edit | edit source]
- The Code Example will show IMSI on screen and is tested on Nokia 5800 XpressMusic.
pt:Archived:Leitura de IMSI, em Qt para Symbian