在S60V3 FP1上使用情景模式引擎类改变铃声
2010-03-16 16:47:00 来源:WEB开发网核心提示:How to set the ringing tone 3rd edition, FP1 using the Profile Engine Wrapper API?Header Requierd:#include #include #include #include Library Needed:LIBRARY Pro
How to set the ringing tone 3rd edition, FP1 using the Profile Engine Wrapper API?
Header Requierd:
#include
#include
#include
#include
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);
赞助商链接