Archived:Getting/setting the ringing tone 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
(17 Aug 2007)
Last edited: lpvalente
(18 Nov 2012)
Overview
Getting/setting the ringing tone in S60 3rd Edition, FP1 using the Profile Engine Wrapper API
Description
The Profile Engine Wrapper API allows you to get/set the ringing tone in your device.
Solution
Solution for retrieving the ringing tone:
The required library is ProfileEngine.lib The required header files are: mproengengine.h, proengfactory.h, mproengprofile.h, mproengtones.h
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
MProEngProfile* activeProfile = engine->ActiveProfileL();
CleanupReleasePushL(*activeProfile);
MProEngTones& tones = activeProfile->ProfileTones();
// the ringing tone file name can be retrieved from calling tones.RingingTone1();
CleanupStack::PopAndDestroy(2);
Solution for changing the ringing tone:
The required library is ProfileEngine.lib
The required header files are: mproengengine.h, proengfactory.h, mproengprofile.h, mproengtones.h
The required capability is WriteDeviceData
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
MProEngProfile* activeProfile = engine->ActiveProfileL();
CleanupReleasePushL(*activeProfile);
MProEngTones& tones = activeProfile->ProfileTones();
_LIT( KToneName, "C:\\Data\\Sounds\\Digital\\Superman.mp3" );
TInt error = tones.SetRingingTone1L(KToneName);
activeProfile->CommitChangeL();
CleanupStack::PopAndDestroy(2);


(no comments yet)