×
Namespaces

Variants
Actions

Archived:Getting IMEI number in Qt

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The Mobile Extensions used by this article has been superseded by the Qt Mobility API QSystemDeviceInfo:imei. See Getting started with Qt Mobility APIs for more information about Qt Mobility.

Article Metadata
Code Example
Source file: Media:QtGetIMEI.zip
Tested with
Devices(s): Nokia 5800 XpressMusic
Compatibility
Platform(s): S60 3rd Edition FP1, S60 3rd Edition FP2, S60 5th Edition
Symbian
Article
Keywords: XQSysInfo
Created: mind_freak (18 Jun 2009)
Last edited: hamishwillee (11 Oct 2012)

Contents

Overview

Archived: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.

Preconditions

  • Download and install the Qt SDK

Headers required

 #include <XQSysInfo>

.pro file

symbian:LIBS += -letel3rdparty \
-lsysutil \
-lefsrv \
-lfeatdiscovery
 
symbian:TARGET.CAPABILITY = ReadDeviceData

Source

XQSysInfo *sysInfo = new XQSysInfo();
QLabel *IMEI = new QLabel("IMEI: "+sysInfo->imei());


Code Example

  • The Code Example will show IMEI of device on screen and is tested on Nokia 5800 XpressMusic.

Related links

Archived:Mobile Extensions

This page was last modified on 11 October 2012, at 04:19.
66 page views in the last 30 days.
×