Archived:Reading IMSI in Qt for Symbian

From Qt Wiki
Jump to navigation Jump to search

Template:Archived

Template:ArticleMetaData


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]

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