Diffstat (limited to 'libopie2/opiecore/device/odevice_simpad.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_simpad.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
@@ -272,25 +272,25 @@ bool SIMpad::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, | |||
272 | return false; | 272 | return false; |
273 | } | 273 | } |
274 | 274 | ||
275 | void SIMpad::timerEvent ( QTimerEvent * ) | 275 | void SIMpad::timerEvent ( QTimerEvent * ) |
276 | { | 276 | { |
277 | killTimer ( m_power_timer ); | 277 | killTimer ( m_power_timer ); |
278 | m_power_timer = 0; | 278 | m_power_timer = 0; |
279 | QWSServer::sendKeyEvent ( -1, HardKey_Backlight, 0, true, false ); | 279 | QWSServer::sendKeyEvent ( -1, HardKey_Backlight, 0, true, false ); |
280 | QWSServer::sendKeyEvent ( -1, HardKey_Backlight, 0, false, false ); | 280 | QWSServer::sendKeyEvent ( -1, HardKey_Backlight, 0, false, false ); |
281 | } | 281 | } |
282 | 282 | ||
283 | 283 | ||
284 | void SIMpad::alarmSound() | 284 | void SIMpad::playAlarmSound() |
285 | { | 285 | { |
286 | #ifndef QT_NO_SOUND | 286 | #ifndef QT_NO_SOUND |
287 | static Sound snd ( "alarm" ); | 287 | static Sound snd ( "alarm" ); |
288 | int fd; | 288 | int fd; |
289 | int vol; | 289 | int vol; |
290 | bool vol_reset = false; | 290 | bool vol_reset = false; |
291 | 291 | ||
292 | if (( fd = ::open ( "/dev/sound/mixer", O_RDWR )) >= 0 ) { | 292 | if (( fd = ::open ( "/dev/sound/mixer", O_RDWR )) >= 0 ) { |
293 | if ( ::ioctl ( fd, MIXER_READ( 0 ), &vol ) >= 0 ) { | 293 | if ( ::ioctl ( fd, MIXER_READ( 0 ), &vol ) >= 0 ) { |
294 | Config cfg ( "qpe" ); | 294 | Config cfg ( "qpe" ); |
295 | cfg. setGroup ( "Volume" ); | 295 | cfg. setGroup ( "Volume" ); |
296 | 296 | ||