Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

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:

-
Related Discussions
Thread Thread Starter Forum Replies Last Post
Cannot show application icon tarn Carbide.c++ and CodeWarrior Tools 5 2007-08-13 19:50
Some doubts on sending a ringing tones to NOKIA HP mrfriend82 Smart Messaging 1 2002-08-27 07:08
SyncMl Api Information needed bharatuppal General Symbian C++ 4 2008-05-14 08:28
3510 "Unable to open file" davefarthing Digital Rights Management & Content Downloading 8 2003-11-04 16:33
Problem with svg icon patrickfrei Symbian Media (Graphics & Sounds) 30 2007-02-15 06:13
 
Powered by MediaWiki