From f49ad5cf3bdc1d1c06be4615a649b6be6f179b83 Mon Sep 17 00:00:00 2001 From: sandman Date: Mon, 30 Sep 2002 21:10:05 +0000 Subject: - small cleanup - changed to work with the new ODevice API --- (limited to 'core/applets/volumeapplet/volume.cpp') diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp index eedc749..aec346b 100644 --- a/core/applets/volumeapplet/volume.cpp +++ b/core/applets/volumeapplet/volume.cpp @@ -45,6 +45,8 @@ #include "oledbox.h" +using namespace Opie; + #define RATE_TIMER_INTERVAL 100 // Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time // results in "hanging" buttons on the iPAQ due to quite high CPU consumption. @@ -186,9 +188,11 @@ VolumeControl::VolumeControl ( VolumeApplet *icon, bool /*showMic*/, QWidget *pa bool has_wav_alarm = true; switch ( ODevice::inst ( )-> model ( )) { // we need to add other devices eventually - case OMODEL_Zaurus_SL5000: + case Model_Zaurus_SL5000: has_wav_alarm = false; //poor guys probably feeling left out... break; + default: + break; } @@ -457,7 +461,7 @@ void VolumeControl::readConfig ( bool force ) } -void VolumeControl::volumeChanged ( bool nowMuted ) +void VolumeControl::volumeChanged ( bool /*nowMuted*/ ) { int prevVol = m_vol_percent; bool prevMute = m_vol_muted; -- cgit v0.9.0.2