Archived:Retrieving profile information on S60 3rd Edition
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
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


(no comments yet)