class CGlobalAudioSettings : public CBase |
API for accessing global settings that affects Audio behavior.
This is API is intended to be used by Adaptation to read system attributes that affect audio behavior. This API also provides notification when any of these attribute values change.
Public Member Functions | |
---|---|
~CGlobalAudioSettings () | |
IMPORT_C TInt | GetAudioClientsList ( TAudioClientListType , RArray < TProcessId > &) |
IMPORT_C TBool | IsMessageTonesEnabled () |
IMPORT_C TBool | IsPublicSilenceEnabled () |
IMPORT_C TBool | IsSilentProfileEnabled () |
IMPORT_C TBool | IsVibraEnabled () |
IMPORT_C TBool | IsWarningTonesEnabled () |
IMPORT_C CGlobalAudioSettings * | NewL ( MAudioSettingsObserver &) |
IMPORT_C TInt | RegisterAudioClientsListObserver ( MAudioClientsListObserver &) |
IMPORT_C TInt | UnregisterAudioClientsListObserver ( MAudioClientsListObserver &) |
Private Member Functions | |
---|---|
CGlobalAudioSettings () | |
void | ConstructL ( MAudioSettingsObserver &) |
Public Member Enumerations | |
---|---|
enum | TAudioClientListType { EActiveAudioClients , EPausedAudioClients } |
Private Attributes | |
---|---|
CGlobalAudioSettingsImpl * | iBody |
void | ConstructL | ( | MAudioSettingsObserver & | aAudioSettingsObserver | ) | [private] |
MAudioSettingsObserver & aAudioSettingsObserver |
IMPORT_C TInt | GetAudioClientsList | ( | TAudioClientListType | aType, |
RArray < TProcessId > & | aList | |||
) |
Gets audio clients list.
On return of this function, the parameter aList will contain active audio client application process ids.
The parameter aList will be reset in the case
TAudioClientListType aType | |
RArray < TProcessId > & aList |
IMPORT_C TBool | IsMessageTonesEnabled | ( | ) |
Returns message tones status set in the current profile.
If message tones are disabled in the current profile, Adaptation should reject play requests having preferences mapped to message tones.
IMPORT_C TBool | IsPublicSilenceEnabled | ( | ) |
Returns PublicSilence feature.
If PublicSilence feature is enabled and if current profile is Silent Profile, For all play requests having preferences mapped to Public Silence setting, audio should only be played out via private accessory. If no private accessory is connected, then playback should be rejected.
IMPORT_C TBool | IsSilentProfileEnabled | ( | ) |
Returns current silent profile status.
IMPORT_C TBool | IsVibraEnabled | ( | ) |
Returns vibra status set in the current profile..
If vibra is enabled in the current profile and vibra is not part of the content, Adaptation should play vibra periodically for play requests having preferences mapped to vibra settings.
IMPORT_C TBool | IsWarningTonesEnabled | ( | ) |
Returns warning tones status set in the current profile.
If warning tones are disabled in the current profile, Adaptation should reject play requests having preferences mapped to warning tones.
IMPORT_C CGlobalAudioSettings * | NewL | ( | MAudioSettingsObserver & | aAudioSettingsObserver | ) | [static] |
function for creating the GlobalAudioSettings
MAudioSettingsObserver & aAudioSettingsObserver |
IMPORT_C TInt | RegisterAudioClientsListObserver | ( | MAudioClientsListObserver & | aObserver | ) |
Registers audio clients list observer.
When registered successfully, the observer will start receiveing callback defined in MAudioClientsListObserver when audio clients list changes.
MAudioClientsListObserver & aObserver |
IMPORT_C TInt | UnregisterAudioClientsListObserver | ( | MAudioClientsListObserver & | aObserver | ) |
Unregisters audio clients list observer.
When unregistered, the observer will no longer receive callback when audio clients list changes.
MAudioClientsListObserver & aObserver |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.