My Project
SallyAPI::Sound::Volume::CVolumeManager Class Reference

Manager for volumes. More...

#include <VolumeManager.h>

List of all members.

Public Member Functions

int GetVolume ()
 Gets the current volume. Value from 0 to 1000.
bool IsMuted ()
 Checks if the volume is muted.
void SetMuted (bool muted)
 Sets a muted.
void SetVolume (int volume)
 Sets a volume.
void RegisterListener (SallyAPI::GUI::CControl *control)
 Register listener.
void UnregisterListener (SallyAPI::GUI::CControl *control)
 Unregister listener.
void OnVolumeChange ()
 Called from VolumenNotification calls when the volume is changed. It will than send a message to all registered listeners (MS_SALLY_VOLUME_CHANGED)
bool IsWindowsVistaVolumeManagerAvailable ()
 Queries if the windows vista volume manager is available.

Static Public Member Functions

static
SallyAPI::Sound::Volume::CVolumeManager
GetInstance ()
 Gets the instance of the VolumeManger.
static void DeleteInstance ()
 Deletes an instance.

Detailed Description

Manager for volumes.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

void CVolumeManager::DeleteInstance ( ) [static]

Deletes an instance.

Author:
Christian Knobloch
Date:
19.04.2010

Gets the instance of the VolumeManger.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
null if it fails, else the instance.

Gets the current volume. Value from 0 to 1000.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The volume.

Checks if the volume is muted.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
true if the sound is muted, false if not.

Queries if the windows vista volume manager is available.

Author:
Christian Knobloch
Date:
06.01.2011
Returns:
true if the windows vista volume manager is available, false if not.

Called from VolumenNotification calls when the volume is changed. It will than send a message to all registered listeners (MS_SALLY_VOLUME_CHANGED)

Author:
Christian Knobloch
Date:
06.01.2011

Register listener.

Author:
Christian Knobloch
Date:
05.05.2010
Parameters:
[in,out]controlIf non-null, the control.
void CVolumeManager::SetMuted ( bool  muted)

Sets a muted.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
mutedtrue to muted.
void CVolumeManager::SetVolume ( int  volume)

Sets a volume.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
volumeThe volume.

Unregister listener.

Author:
Christian Knobloch
Date:
05.05.2010
Parameters:
[in,out]controlIf non-null, the control.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines