×
Namespaces

Variants
Actions

Detecting offline mode using Symbian C++

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 3rd Edition
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 2 (04 May 2006)
Last edited: lpvalente (07 May 2014)

Overview

Detecting offline mode

Description

In S60 3rd Edition, offline mode is detected via reading the phone settings from the Central Repository.
To get the active profile setting, only one call to the Central Repository is needed:
#include <centralrepository.h>
#include <ProfileEngineSDKCRKeys.h>
CRepository* cr = CRepository::NewLC( KCRUidProfileEngine );
TInt value;
// Get ID of current profile
User::LeaveIfError( cr->Get( KProEngActiveProfile, value ) );
// Check value to determine the active profile
if ( value == 5 )
{
    // current profile is the offline profile
}
// ...
For more information about the Profile Engine, see the SDK help documentation and "Profiles Engine Active Profile Settings API."

This page was last modified on 7 May 2014, at 15:57.
43 page views in the last 30 days.
×