My Project
|
Manager for volumes. More...
#include <VolumeManager.h>
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. |
Manager for volumes.
void CVolumeManager::DeleteInstance | ( | ) | [static] |
Deletes an instance.
Gets the instance of the VolumeManger.
int CVolumeManager::GetVolume | ( | ) |
Gets the current volume. Value from 0 to 1000.
bool CVolumeManager::IsMuted | ( | ) |
Checks if the volume is muted.
Queries if the windows vista volume manager is available.
void CVolumeManager::OnVolumeChange | ( | ) |
Called from VolumenNotification calls when the volume is changed. It will than send a message to all registered listeners (MS_SALLY_VOLUME_CHANGED)
void CVolumeManager::RegisterListener | ( | SallyAPI::GUI::CControl * | control | ) |
Register listener.
[in,out] | control | If non-null, the control. |
void CVolumeManager::SetMuted | ( | bool | muted | ) |
Sets a muted.
muted | true to muted. |
void CVolumeManager::SetVolume | ( | int | volume | ) |
Sets a volume.
volume | The volume. |
void CVolumeManager::UnregisterListener | ( | SallyAPI::GUI::CControl * | control | ) |
Unregister listener.
[in,out] | control | If non-null, the control. |