×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Get network and operator name in Qt on Symbian

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot change of template (Template:CodeSnippet) - now using Template:ArticleMetaData)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Fix ReviewerApproval and ArticleMetaData etc)
Line 1: Line 1:
 
[[Category:Qt]][[Category:Symbian]]
 
[[Category:Qt]][[Category:Symbian]]
 
{{Archived|timestamp=20110405021858|This article uses a Symbian-specific Qt Mobility Extension which has been superceded by the Qt Mobility API [http://doc.qt.nokia.com/qtmobility-1.0/qsystemnetworkinfo.html QSystemNetworkInfo]. See [[Get Network information using Qt]] for an alternative approach}}
 
{{Archived|timestamp=20110405021858|This article uses a Symbian-specific Qt Mobility Extension which has been superceded by the Qt Mobility API [http://doc.qt.nokia.com/qtmobility-1.0/qsystemnetworkinfo.html QSystemNetworkInfo]. See [[Get Network information using Qt]] for an alternative approach}}
{{ReviewerApproved}}
 
{{ArticleMetaData
 
|id=...
 
|platform=S60 3rd Edition, FP1, FP2<br>S60 5th Edition
 
|devices= Nokia 5800 XpressMusic
 
|category=Qt for Symbian
 
|subcategory=
 
|creationdate=June 26, 2009
 
|keywords= XQSysInfo::network(), XQSysInfo::operatorName()
 
  
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
+
{{ArticleMetaData <!-- v1.1 -->
 +
|sourcecode= [[Media:ExtXQSysInfo2.zip]] [[Media:ExtXQSysInfo2.zip]] [[Media:QtNetworkOperator.zip]]  
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
|sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
+
|devices= Nokia 5800 XpressMusic
|devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) -->
+
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
|signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
+
|platform= S60 3rd Edition, FP1, FP2<br>S60 5th Edition
|capabilities=<!-- Capabilities required (e.g. Location, NetworkServices.) -->
+
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
|author=[[User:Savaj]]
+
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required (e.g. Location, NetworkServices.) -->
 +
|keywords= XQSysInfo::network(), XQSysInfo::operatorName()
 +
|id= ...
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20090626
 +
|author= [[User:Savaj]]
 +
<!-- The following are not in current metadata -->
 +
|subcategory=
 +
|category= Qt for Symbian
 
}}
 
}}
 
==Overview==
 
==Overview==
Line 23: Line 32:
 
{{Abstract|visible=true|Deprecated: This code snippets shows how to get Network name and Operator name using a Qt Mobility Extension}}
 
{{Abstract|visible=true|Deprecated: This code snippets shows how to get Network name and Operator name using a Qt Mobility Extension}}
  
This snippet requires ReadDeviceData capabilities. Self-signing is not possible because a [[Developer certificate]] is needed.
+
This snippet requires ReadDeviceData capabilities. Self-signing is not possible because a [[Developer Certificate (Symbian Signed)|Developer certificate]] is needed.
  
 
==Prerequisite==
 
==Prerequisite==
  
* Install Qt for S60:[[Installing Qt on S60]]
+
* Install Qt for S60:[[How to Install Qt]]
 
* Download [[Media:ExtXQSysInfo2.zip|ExtXQSysInfo2.zip]].
 
* Download [[Media:ExtXQSysInfo2.zip|ExtXQSysInfo2.zip]].
 
* Extracting [[Media:ExtXQSysInfo2.zip|ExtXQSysInfo2.zip]] and place all the file in your project directory.
 
* Extracting [[Media:ExtXQSysInfo2.zip|ExtXQSysInfo2.zip]] and place all the file in your project directory.

Revision as of 07:08, 13 February 2012

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}}.

This article uses a Symbian-specific Qt Mobility Extension which has been superceded by the Qt Mobility API QSystemNetworkInfo. See Get Network information using Qt for an alternative approach

Article Metadata
Code ExampleTested with
Devices(s): Nokia 5800 XpressMusic
Compatibility
Platform(s): S60 3rd Edition, FP1, FP2
S60 5th Edition
Symbian
Article
Keywords: XQSysInfo::network(), XQSysInfo::operatorName()
Created: savaj (26 Jun 2009)
Last edited: hamishwillee (13 Feb 2012)

Contents

Overview

Deprecated: This code snippets shows how to get Network name and Operator name using a Qt Mobility Extension

This snippet requires ReadDeviceData capabilities. Self-signing is not possible because a Developer certificate is needed.

Prerequisite

Note: These files are extended from source file of XQSysInfo API. More clearly , i have just edited some file of XQSysInfo API to get Network name and Operator name. XQSysInfo::network() gives network name and XQSysInfo::operatorName() gives operator name.

Headers required

 #include <XQSysInfo>

.pro file

All source files are automatically added to .pro file by carbide, so need to add the libraries and capability only.

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

Source

XQSysInfo* sysInfo = new XQSysInfo(this);
/* show network name on label */
ui.label->setText("Network Name: " + sysInfo->network());
/* show operator name on label */
ui.label_2->setText("Operator Name: " + sysInfo->operatorName());

Postconditions

The code snippet is expected to show Network name and Operator name on screen as showm bellow.

ImgNetworkOperator.jpg

Download Code Example

  • The Code Example will show network name and operator name on screen and is tested on Nokia 5800 XpressMusic.
127 page views in the last 30 days.
×