How to set the ringing tone 3rd edition, FP1 using the Profile Engine Wrapper API?
Header Requierd:
#include <mproengengine.h>
#include <proengfactory.h>
#include <mproengprofile.h>
#include <mproengtones.h>
Library Needed:
LIBRARY ProfileEngine.lib
Capability Required:
Capability WriteDeviceData
Source:
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
MProEngProfile* activeProfile = engine->ActiveProfileL();
CleanupReleasePushL(*activeProfile);
MProEngTones& tones = activeProfile->ProfileTones();
_LIT( KToneName, "C://Data//Sounds//Digital//Pokiri.mp3" );
TInt error = tones.SetRingingTone1L(KToneName);
activeProfile->CommitChangeL();
CleanupStack::PopAndDestroy(2);