This page was last modified 12:43, 24 August 2007.
TSS000624 - Getting/setting the ringing tone in S60 3rd Edition, FP1 using the Profile Engine Wrapper API
From Forum Nokia Wiki
Subject:
|
Getting/setting the ringing tone in S60 3rd Edition, FP1 using the Profile Engine Wrapper API
| TSS000624
|
| Platform(s):
| Device(s), SW version(s):
|
| S60 3rd Edition, FP1
| Nokia 6110 Navigator
|
Category:
| Symbian C++
|
Subcategory:
| Applications and PIM
|
Description:
| Overview: The Profile Engine Wrapper API allows you to get/set the ringing tone in your device. 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);
|
Creation date:
| April 16, 2007
|
Last modified:
| -
|