MProEngEngine Class Reference
API published in: S60 3rd Ed FP 1
Link against: profileengine.lib
Capability Information
Required Capabilities
WriteDeviceData
Exceptions
No capabilities needed for reading profiles.
#include <mproengengine.h>
Detailed Description
Profile engine interface.
This class offers methods to get active profile, active profile ID, profile names array and set active profile. How to use:
MProEngEngine* profileEngine = NewEngineL();
profileEngine->Release();
if( iEngine )
{
iEngine->Release();
}
CleanupReleasePushL( *profileEngine );
Constructor & Destructor Documentation
virtual MProEngEngine::~MProEngEngine | ( | | ) | [inline, virtual] |
|
Member Function Documentation
virtual TInt MProEngEngine::ActiveProfileId | ( | | ) | [pure virtual] |
|
|
Return active profile ID or system error code.
- Returns:
- Active profile ID or system error code.
|
virtual MProEngProfile* MProEngEngine::ActiveProfileL | ( | | ) | [pure virtual] |
|
|
Return active profile, ownership transferred.
- Returns:
- Instance of the MProfile
|
virtual MProEngProfile* MProEngEngine::ActiveProfileLC | ( | | ) | [pure virtual] |
|
|
Return active profile, ownership transferred.
- Returns:
- Instance of the MProfile
|
virtual MProEngProfile* MProEngEngine::ProfileL | ( | TInt | aId | ) | [pure virtual] |
|
|
Return the settings of the profile with the given ID, the ownership of the created object is transferred.
Leave with KErrNotFound if a profile with the given ID can not be found. - Parameters:
-
- Returns:
- Instance of the MProEngProfile
|
virtual MProEngProfile* MProEngEngine::ProfileLC | ( | TInt | aId | ) | [pure virtual] |
|
|
Return the settings of the profile with the given ID.
The created object is pushed in the cleanup stack and the ownership is transferred. Leave with KErrNotFound if a profile with the given ID can not be found. - Parameters:
-
- Returns:
- Instance of the MProEngProfile
|
|
Return profile name array, ownership transferred.
- Returns:
- Instance of the profile name array
|
virtual void MProEngEngine::Release | ( | | ) | [pure virtual] |
|
|
Free resources of MProEngEngine.
|
virtual void MProEngEngine::SetActiveProfileL | ( | TInt | aId | ) | [pure virtual] |
|
|
Set the active profile, if ID is incorrect then leave with KErrNotFound.
This method can be called only by processes having WriteDeviceData capability. - Parameters:
-
|
The documentation for this class was generated from the following file: