特別注意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);
//meetingMProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
engine->SetActiveProfileL(2);
CleanupStack::PopAndDestroy(1);
//outdoor
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
engine->SetActiveProfileL(3);
CleanupStack::PopAndDestroy(1);
沒有留言:
張貼留言