Namespaces
Variants
Actions

Archived:Retrieving profile information on S60 3rd Edition

Jump to: navigation, search
Archived.png
Archived: 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

Compatibility
Platform(s): S60 3rd Edition,
S60 3rd Edition, FP1

Article
Created: User:Technical writer 2 (20 Aug 2007)
Last edited: lpvalente (09 Nov 2012)

Overview

Retrieving profile information on S60 3rd Edition

Description

Detailed information about profiles, such as the number of defined profiles and their names can be retrieved with the Profiles Engine API, included in the Extensions plug-in package for S60 3rd Edition SDK.

Solution

The following code example can be used for finding out the name of every profile in a device

    #include <mprofileengine.h>         // link against ProfileEng.lib
#include <MProfilesNamesArray.h>
MProfileEngine* profileEngine = CreateProfileEngineL();
CleanupReleasePushL( *profileEngine );
MProfilesNamesArray* profileNames =
profileEngine->ProfilesNamesArrayLC();
for( TInt i = 0; i < profileNames->MdcaCount(); ++i )
{
// Name of each profile is returned by
// profileNames->ProfileName(i)->Name();
}
CleanupStack::PopAndDestroy(2); // profileNames, profileEngine
This page was last modified on 9 November 2012, at 19:46.
207 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved