Namespaces
Variants
Actions

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

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.
53 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved