×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Get network and operator name in Qt on Symbian

From Nokia Developer Wiki
Jump to: navigation, search
vkmunjpara (Talk | contribs)
hamishwillee (Talk | contribs)
m (Deprecate article)
Line 1: Line 1:
{{ReviewerApproved}}
+
[[Category:Qt]][[Category:Symbian]]
 +
{{Archived|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}}
 
{{ReviewerApproved}}
 
{{CodeSnippet
 
{{CodeSnippet
Line 12: Line 13:
 
==Overview==
 
==Overview==
  
This code snippets shows how to get Network name and Operator name.
+
{{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]] is needed.
Line 63: Line 64:
 
* The [[Media:QtNetworkOperator.zip|Code Example]] will show network name and operator name on screen and is tested on Nokia 5800 XpressMusic.
 
* The [[Media:QtNetworkOperator.zip|Code Example]] will show network name and operator name on screen and is tested on Nokia 5800 XpressMusic.
  
[[Category:Qt]][[Category:Qt for Symbian]][[Category:Code Examples]]
+
[[Category:Code Examples]]

Revision as of 05:11, 5 April 2011

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

{{{width}}}
Article Metadata
Tested 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: (26 Jun 2009)
Last edited: hamishwillee (05 Apr 2011)

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.
124 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×