搜尋此網誌

2009年6月12日 星期五

symbian-修改來電模式篇

詳細用法 請參考Setting the profile tones in active profile using Profile Engine Wrapper API
特別注意
Capability以及Library

Library Files 在資料夾group中的XXX.mmp(XXX指的是檔名),點兩下打開,找下方標籤library 就可以增加了

Capability 則是同樣在此處,請看下方option的標籤,左上方就可以選擇Capability

更改來電模式方法 如下:
//standard
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
engine->SetActiveProfileL(0);
CleanupStack::PopAndDestroy(1);

//silent

MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
engine->SetActiveProfileL(1);
CleanupStack::PopAndDestroy(1);

//meeting
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
engine->SetActiveProfileL(2);
CleanupStack::PopAndDestroy(1);


//outdoor
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
engine->SetActiveProfileL(3);
CleanupStack::PopAndDestroy(1);






沒有留言:

張貼留言