src/hbwidgets/popups/hbvolumesliderpopup.cpp
changeset 34 ed14f46c0e55
parent 6 c3690ec91ef8
--- a/src/hbwidgets/popups/hbvolumesliderpopup.cpp	Mon Oct 04 17:49:30 2010 +0300
+++ b/src/hbwidgets/popups/hbvolumesliderpopup.cpp	Mon Oct 18 18:23:13 2010 +0300
@@ -230,6 +230,37 @@
       
  }
 
+
+/*!
+    @proto
+
+    Mutes or unmutes the volume output.
+    \sa isMuted()
+*/
+
+
+void HbVolumeSliderPopup::setMuted( bool mute )
+{
+    Q_D( const HbVolumeSliderPopup );
+    if( d->slider ) {
+        HbVolumeSlider* volumeslider = static_cast<HbVolumeSlider *>( d->slider );
+        volumeslider->setIconChecked( mute ) ;
+    }
+}
+
+/*!
+    @proto
+    Returns whether volume is muted or unmuted.
+
+    \sa setMute()
+*/
+
+bool HbVolumeSliderPopup::isMuted( ) const
+{
+    return( value( ) == minimum( ) ? true: false );
+}
+
+
 /*!
    \reimp
     Reimplemented from QGraphicsItem::keyPressEvent().