Overview:
Profiles Engine API, part of the Extension plug-in package for S60 3rd Edition, provides the class MProEngEngine that can be used changd the active profile.
Description:
headerfiles
mproengengine.h, proengfactory.h, profile.hrh
library: ProfileEngine.lib
Code:
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
TInt Activeprofile = engine->ActiveProfileId(); //Return the active profiles value
engine->SetActiveProfileL(EProfileSilentId); //changes the active profile to Silentmode
CleanupStack::PopAndDestroy(1);
Note:
SetActiveProfileL method can be called only by processes having WriteDeviceData capability.
Profiles Engine API, part of the Extension plug-in package for S60 3rd Edition, provides the class MProEngEngine that can be used changd the active profile.
Description:
headerfiles
mproengengine.h, proengfactory.h, profile.hrh
library: ProfileEngine.lib
Code:
MProEngEngine* engine = ProEngFactory::NewEngineL();
CleanupReleasePushL(*engine);
TInt Activeprofile = engine->ActiveProfileId(); //Return the active profiles value
engine->SetActiveProfileL(EProfileSilentId); //changes the active profile to Silentmode
CleanupStack::PopAndDestroy(1);
Note:
SetActiveProfileL method can be called only by processes having WriteDeviceData capability.
0 comments:
Post a Comment