×
Namespaces

Variants
Actions

How to set the ringing tone 3rd edition, FP1 using the Profile Engine Wrapper API?

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: eswar_illuri (24 May 2007)
Last edited: hamishwillee (26 Jul 2012)

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);
This page was last modified on 26 July 2012, at 02:37.
29 page views in the last 30 days.
×