Archived:Setting the active profile in S60 3rd Edition FP1 using the Profile Engine Wrapper API
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
Tested with
Devices(s): Nokia 6110 Navigator
Compatibility
Platform(s): S60 3rd Edition, FP1
Article
Created: User:Technical writer 2
(16 Apr 2007)
Last edited: lpvalente
(18 Nov 2012)
Overview
Setting the active profile in S60 3rd Edition, FP1 using the Profile Engine Wrapper API.
Description
Profile Engine Wrapper API allows you to set the active profile.
Solution
The code snippets below demonstrate how to set your current profile to Silent.
You need to include the ProfileEngine.lib in your mmp file. The required header files are: mproengengine.h, proengfactory.h, profile.hrh
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
engine->SetActiveProfileL(EProfileSilentId);
CleanupStack::PopAndDestroy(1);


(no comments yet)