×
Namespaces

Variants
Actions

Using Symbian Access points settings dialog in 3rd-party applications

From Nokia Developer Wiki
Jump to: navigation, search

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

The article is believed to be still valid for the original topic scope.


Article Metadata
Compatibility
Platform(s): S60 2nd Edition
S60 2nd Edition (initial release)
Article
Created: User:Technical writer 2 (21 Sep 2006)
Last edited: lpvalente (28 Jun 2014)

Contents

Overview

Using S60 Access points settings dialog in 3rd-party applications

Description

Sometimes 3rd-party applications would want to provide the end users the ability to change the settings for access points. Instead of creating a custom dialog, the existing S60 CApSettingsHandler class can be used.

Solution

The CApSettingsHandler class in ApSettingsHandlerUI.h can be used to launch the standard access point settings dialog.
    CApSettingsHandler *settings =
      CApSettingsHandler::NewLC(
        EFalse, // aStartsWithSelection
        EApSettingsSelListIsListPane, // aListType
        EApSettingsSelMenuNormal,  // aSelMenuType
        0,  // aIspFilter
        0,  // aBearerFilter
        0); // aSortType
    // id (TUint32) is the AP Id to launch for editing
    // RunSettingsL returns after completion
    settings->RunSettingsL(id, id);
    CleanupStack::PopAndDestroy(); // settings

NOTES

Capabilities required to run CApSettingsHandler in S60 3rd Edition:
ReadUserData, WriteUserData, ReadDeviceData, WriteDeviceData
RunSettingsL() may panic with KERN-EXEC 3 if stack size is low. The stack size for the application can be increased by adding the following line to MMP:
EPOCSTACKSIZE   0x5000 // use 20kB stack (default: 8kB)

This page was last modified on 28 June 2014, at 00:27.
51 page views in the last 30 days.
×