You Are Here:

Community: Wiki

This page was last modified on 31 October 2009, at 09:42.

Getting IMEI number in Qt

From Forum Nokia Wiki


Reviewer Approved   



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()

Overview

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

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

Mobile Extensions

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
User Rating: qfnZuserE5FratingQNx5E2E0000X