Archived:Retrieving profile information on S60 3rd Edition

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

Article Metadata
Platform(s): S60 3rd Edition,
S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Created: User:Technical writer 2 (20 Aug 2007)
Last edited: lpvalente (09 Nov 2012)


Retrieving profile information on S60 3rd Edition


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.


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