API published in: S60 3rd Ed FP 1
Link against: profileengine.lib
Required Capabilities
WriteDeviceData
Exceptions
No capabilities needed for reading profiles.
#include <mproengprofile.h>
MProEngProfile offers methods to get the alert for items, profile settings and profile name interface. How to use:
// Get active profile with MProEngEngine::ActiveProfileL(). MProEngProfile* profile = iProfileEngine->ActiveProfileL(); // Use profile object here... // When you are ready, free resources with MProEngProfile::Release() profile->Release(); // If you release resources in destructor then: if( iProfile ) { iProfile->Release(); } // If you put this class to CleanupStack then use void CleanupReleasePushL() CleanupReleasePushL( *profile );
Public Member Functions |
|
virtual void | Release ()=0 |
Free resources of the profile. |
|
virtual const TArray< TContactItemId > | AlertForL ()=0 |
Return the alert for item array. |
|
virtual TInt | SetAlertForL (const TArray< TContactItemId > &aAlertFor)=0 |
This method set alert for items to the profile. |
|
virtual TBool | IsSilent () const =0 |
Return whether this profile is silent. |
|
virtual MProEngProfileName & | ProfileName () const =0 |
Return profile name interface. |
|
virtual MProEngTones & | ProfileTones () const =0 |
Return profile tones interface. |
|
virtual MProEngToneSettings & | ToneSettings () const =0 |
Returns tone settings of this profile. |
|
virtual void | CommitChangeL ()=0 |
Store profile settings. |
|
Protected Member Functions |
|
virtual | ~MProEngProfile () |
|
|
Return the alert for item array. Only the calls coming from people who belong to one or more "Alert for" groups returned here trigger an audible alert.
|
|
Store profile settings.
Leaves with: KErrAccessDenied if one or more of the settings of this profile is/are read-only, Only processes with WriteDeviceData capability can succesfully call this method. |
|
Return whether this profile is silent. A profile being silent means that either the ringing type is silent or all the alert tones are set to "None".
|
|
Return profile name interface.
|
|
Return profile tones interface.
|
|
Free resources of the profile. |
|
This method set alert for items to the profile. Only the calls coming from people who belong to one or more "Alert for" groups set here trigger an audible alert.
|
|
Returns tone settings of this profile.
|