You Are Here:

Community: Wiki

This page was last modified on 31 October 2009, at 08:50.

Get model number, manufacturer and software version programmatically in Qt

From Forum Nokia Wiki

Reviewer Approved   


ID ... Creation date June 24, 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::model(),XQSysInfo::manufacturer(),XQSysInfo::softwareVersion()


Overview

This code snippets shows how to get Model number, Manufacturer and Software Version of device in Qt. The XQSysInfo class provides information about the device. model() method of class XQSysInfo return Model number. manufacturer() method of class XQSysInfo return Manufacturer. softwareVersion() method of class XQSysInfo return Software Version.

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(this);
/* show Model, Manufacturer and Software Version on labels*/
ui.label->setText("Model: " + sysInfo->model());
ui.label_2->setText("Manufacturer: " + sysInfo->manufacturer());
ui.label_3->setText("Software Version: " + sysInfo->softwareVersion());


Code Example

  • The Code Example will show Model number, Manufacturer and Software Version on screen and is tested on Nokia 5800 XpressMusic.


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