Home · All Namespaces · All Classes
Public Slots | Public Member Functions

VolumeBarLogic Class Reference

Provides informations and actions on PulseAudio MainVolume API. More...

#include <volumebarlogic.h>

Collaboration diagram for VolumeBarLogic:
Collaboration graph
[legend]

List of all members.

Public Slots

void setVolume (quint32 value)
void stepsUpdated (quint32 value, quint32 maxvalue)

Public Member Functions

 VolumeBarLogic (QObject *parent=NULL)
 Construct a VolumeBarLogic instance.
virtual ~VolumeBarLogic ()
 Destructs a VolumeBarLogic instance.
quint32 volume ()
 get the current volume-level value
quint32 maxVolume ()
 get the current volume-level stepcount

Detailed Description

Provides informations and actions on PulseAudio MainVolume API.


Constructor & Destructor Documentation

VolumeBarLogic::VolumeBarLogic ( QObject *  parent = NULL  ) 

Construct a VolumeBarLogic instance.

VolumeBarLogic::~VolumeBarLogic (  )  [virtual]

Destructs a VolumeBarLogic instance.


Member Function Documentation

quint32 VolumeBarLogic::maxVolume (  ) 

get the current volume-level stepcount

void VolumeBarLogic::setVolume ( quint32  value  )  [slot]

a method for change the volume-level

Parameters:
value The desired volume-level (valid range: [0 - maxvalue-1])
void VolumeBarLogic::stepsUpdated ( quint32  value,
quint32  maxvalue 
) [slot]

an internal slot whats stores the actual volume values and emits the volumeChanged signal [this is public because it called from a C callback function...]

Parameters:
value The new volume-level what we got from PulseAudio
maxvalue The new stepcount what we got from PulseAudio
quint32 VolumeBarLogic::volume (  ) 

get the current volume-level value


The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Tue Aug 30 2011 16:38:13
Doxygen 1.7.1
MeeGo Touch