×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Location Settings Launch Symbian API

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Merge KB into wiki)
Line 1: Line 1:
 +
{{Archived|timestamp=20120313122051|user=roy.debjit| }}
 
[[Category:Symbian C++]][[Category:S60 3rd Edition FP2]][[Category:Code Examples]][[Category:Code Snippet]]
 
[[Category:Symbian C++]][[Category:S60 3rd Edition FP2]][[Category:Code Examples]][[Category:Code Snippet]]
__NOTOC__
+
{{ArticleMetaData <!-- v1.2 -->
__NOEDITSECTION__
+
|sourcecode= [[Media:LocalSettingUi.zip]]  
{{KBCS}}
+
{{ArticleMetaData
+
|id=CS001035
+
|platform=S60 3rd Edition, FP2
+
|devices=
+
|category=Symbian C++
+
|subcategory=Location
+
|creationdate=June 13, 2008
+
|keywords=Location Settings Launch API
+
 
+
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.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= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
|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, FP2
|capabilities=<!-- Capabilities required (e.g. Location, NetworkServices. -->)
+
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
|author=[[User:Technical writer 1]]
+
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= Location Settings Launch API
 +
|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= 20080613
 +
|author= [[User:Technical writer 1]]
 +
<!-- The following are not in current metadata -->
 +
|subcategory= Location
 +
|id= CS001035
 
}}
 
}}
  
Line 25: Line 31:
 
:This API is not part of the public SDK. It can be found in the [[SDK API Plug-in]].  
 
:This API is not part of the public SDK. It can be found in the [[SDK API Plug-in]].  
 
}}
 
}}
{{Archived|timestamp=20120313122051|user=roy.debjit| }}
 
 
    
 
    
 
==Purpose==
 
==Purpose==
Line 42: Line 47:
 
==Code examples==
 
==Code examples==
  
The client-side resource class to launch the Location settings UI is done using the <tt>CLocSettingsUiClient</tt> class. The following code is used to initialize the class.
+
The client-side resource class to launch the Location settings UI is done using the {{Icode|CLocSettingsUiClient}} class. The following code is used to initialize the class.
  
 
<code cpp>
 
<code cpp>
Line 52: Line 57:
 
<code cpp>
 
<code cpp>
 
  // UID for launching Position Method Settings  
 
  // UID for launching Position Method Settings  
  // const TInt KLocPsySettingsUID  = 0x10275062;
+
  // const TInt KLocPsySettingsUID  = 0x10275062;
 
  TRAPD(err, iLocSettingsUi->LaunchSettingsUiAsEmbeddedAppL(TUid::Uid
 
  TRAPD(err, iLocSettingsUi->LaunchSettingsUiAsEmbeddedAppL(TUid::Uid
 
  (KLocPsySettingsUID),KDefaultParamValue,iStatus));
 
  (KLocPsySettingsUID),KDefaultParamValue,iStatus));
Line 61: Line 66:
 
<code cpp>
 
<code cpp>
 
  // UID for launching Location Notation Prefences Settings UI is  
 
  // UID for launching Location Notation Prefences Settings UI is  
  // const TInt KLocNotPrefSettingsUID = 0x1020690F;
+
  // const TInt KLocNotPrefSettingsUID = 0x1020690F;
 
  TRAPD(err, iLocSettingsUi->LaunchSettingsUiAsEmbeddedAppL(  
 
  TRAPD(err, iLocSettingsUi->LaunchSettingsUiAsEmbeddedAppL(  
 
  TUid::Uid(KLocNotPrefSettingsUID), KDefaultParamValue, iStatus ));
 
  TUid::Uid(KLocNotPrefSettingsUID), KDefaultParamValue, iStatus ));
Line 79: Line 84:
  
 
==Example project==
 
==Example project==
[[Image:LocalSettingUi.zip]]
+
[[File:LocalSettingUi.zip]]

Revision as of 09:03, 13 June 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}}.

Article Metadata
Code ExampleCompatibility
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Article
Keywords: Location Settings Launch API
Created: User:Technical writer 1 (13 Jun 2008)
Last edited: hamishwillee (13 Jun 2012)


Note.pngNote: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.

Contents

Purpose

The Location Settings Launch API is used for launching the Location Notation Prefences Settings UI and the Position Method Settings UI.

Header files

 locsettingsuiclient.h

Link against

 locsettingsuiclient.lib


Code examples

The client-side resource class to launch the Location settings UI is done using the CLocSettingsUiClient class. The following code is used to initialize the class.

 CLocSettingsUiClient* iLocSettingsUi = CLocSettingsUiClient::NewL();

Launching the Position Method Settings UI:

 // UID for launching Position Method Settings 
// const TInt KLocPsySettingsUID = 0x10275062;
TRAPD(err, iLocSettingsUi->LaunchSettingsUiAsEmbeddedAppL(TUid::Uid
(KLocPsySettingsUID),KDefaultParamValue,iStatus));

Launching the Location Notation Preferences Setting UI:

 // UID for launching Location Notation Prefences Settings UI is 
// const TInt KLocNotPrefSettingsUID = 0x1020690F;
TRAPD(err, iLocSettingsUi->LaunchSettingsUiAsEmbeddedAppL(
TUid::Uid(KLocNotPrefSettingsUID), KDefaultParamValue, iStatus ));

Canceling an already launched settings UI:

 iLocSettingsUi->CancelLaunchedSettingsUi();

Releasing code:

 delete iLocSettingsUi;


Example project

File:LocalSettingUi.zip

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

×