From e74082b93d1948385d8d32ed92e61396b74d72f1 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 07 Feb 2004 18:51:44 +0000 Subject: Rename the rest bunch of functions <- fix compiling... Readd the todo mark about constness initButtons is not const... --- diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index 6c8432f..72b9ac7 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp @@ -354,9 +354,9 @@ ODirection ODevice::direction() const } /** -* This plays an alarmSound +* This plays an alarm sound */ -void ODevice::alarmSound() +void ODevice::playAlarmSound() { #ifndef QT_NO_SOUND static Sound snd ( "alarm" ); @@ -369,7 +369,7 @@ void ODevice::alarmSound() /** * This plays a key sound */ -void ODevice::keySound() +void ODevice::playKeySound() { #ifndef QT_NO_SOUND static Sound snd ( "keysound" ); @@ -382,7 +382,7 @@ void ODevice::keySound() /** * This plays a touch sound */ -void ODevice::touchSound() +void ODevice::playTouchSound() { #ifndef QT_NO_SOUND static Sound snd ( "touchsound" ); diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index 8ae7ffa..791ccb3 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h @@ -225,10 +225,9 @@ public: // which is defined below // input / output - //FIXME playAlarmSound and al might be better -zecke - virtual void alarmSound(); - virtual void keySound(); - virtual void touchSound(); + virtual void playAlarmSound(); + virtual void playKeySound(); + virtual void playTouchSound(); virtual QValueList ledList() const; virtual QValueList ledStateList ( OLed led ) const; @@ -250,8 +249,11 @@ public: * of buttons will vary depending on the device. Button numbers will be assigned * by the device manufacturer and will be from most preferred button to least preffered * button. Note that this list only contains "user mappable" buttons. + * + * @todo Make method const and take care of calling initButtons or make that const too + * */ - const QValueList &buttons() /* ### make const */; + const QValueList &buttons(); /** * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp index d68bce1..d20ea4d 100644 --- a/libopie2/opiecore/device/odevice_ipaq.cpp +++ b/libopie2/opiecore/device/odevice_ipaq.cpp @@ -342,7 +342,7 @@ void iPAQ::timerEvent ( QTimerEvent * ) } -void iPAQ::alarmSound() +void iPAQ::playAlarmSound() { #ifndef QT_NO_SOUND static Sound snd ( "alarm" ); diff --git a/libopie2/opiecore/device/odevice_ipaq.h b/libopie2/opiecore/device/odevice_ipaq.h index baf7215..f512344 100644 --- a/libopie2/opiecore/device/odevice_ipaq.h +++ b/libopie2/opiecore/device/odevice_ipaq.h @@ -50,7 +50,7 @@ class iPAQ : public ODevice, public QWSServer::KeyboardFilter virtual bool setDisplayBrightness( int b ); virtual int displayBrightnessResolution() const; - virtual void alarmSound(); + virtual void playAlarmSound(); virtual QValueList ledList() const; virtual QValueList ledStateList( OLed led ) const; diff --git a/libopie2/opiecore/device/odevice_simpad.cpp b/libopie2/opiecore/device/odevice_simpad.cpp index a2cd419..4397b78 100644 --- a/libopie2/opiecore/device/odevice_simpad.cpp +++ b/libopie2/opiecore/device/odevice_simpad.cpp @@ -281,7 +281,7 @@ void SIMpad::timerEvent ( QTimerEvent * ) } -void SIMpad::alarmSound() +void SIMpad::playAlarmSound() { #ifndef QT_NO_SOUND static Sound snd ( "alarm" ); diff --git a/libopie2/opiecore/device/odevice_simpad.h b/libopie2/opiecore/device/odevice_simpad.h index 615effc..3287ee8 100644 --- a/libopie2/opiecore/device/odevice_simpad.h +++ b/libopie2/opiecore/device/odevice_simpad.h @@ -51,7 +51,7 @@ class SIMpad : public ODevice, public QWSServer::KeyboardFilter virtual bool setDisplayBrightness( int b ); virtual int displayBrightnessResolution() const; - virtual void alarmSound(); + virtual void playAlarmSound(); virtual QValueList ledList() const; virtual QValueList ledStateList( OLed led ) const; diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 78bc62e..8bff770 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp @@ -399,17 +399,17 @@ void Zaurus::buzzer ( int sound ) } -void Zaurus::alarmSound() +void Zaurus::playAlarmSound() { buzzer ( SHARP_BUZ_SCHEDULE_ALARM ); } -void Zaurus::touchSound() +void Zaurus::playTouchSound() { buzzer ( SHARP_BUZ_TOUCHSOUND ); } -void Zaurus::keySound() +void Zaurus::playKeySound() { buzzer ( SHARP_BUZ_KEYSOUND ); } diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h index c07fe07..f5c5172 100644 --- a/libopie2/opiecore/device/odevice_zaurus.h +++ b/libopie2/opiecore/device/odevice_zaurus.h @@ -60,9 +60,9 @@ class Zaurus : public ODevice virtual bool setDisplayBrightness ( int b ); virtual int displayBrightnessResolution() const; - virtual void alarmSound(); - virtual void keySound(); - virtual void touchSound(); + virtual void playAlarmSound(); + virtual void playKeySound(); + virtual void playTouchSound(); virtual QValueList ledList() const; virtual QValueList ledStateList ( OLed led ) const; -- cgit v0.9.0.2