author | sandman <sandman> | 2002-06-18 12:49:05 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-18 12:49:05 (UTC) |
commit | c739f74f910b24884279d34836c1f78a97a7e7ae (patch) (unidiff) | |
tree | 432c379c30469e2be9117b4895b345e4947e688a /core/launcher/taskbar.cpp | |
parent | 61e2f9e5eb634b17ef480d79bdbcbc3a715990cb (diff) | |
download | opie-c739f74f910b24884279d34836c1f78a97a7e7ae.zip opie-c739f74f910b24884279d34836c1f78a97a7e7ae.tar.gz opie-c739f74f910b24884279d34836c1f78a97a7e7ae.tar.bz2 |
Replaced OHwInfo with ODevice and ported from custom-*.h #defines to
ODevice methods
-rw-r--r-- | core/launcher/taskbar.cpp | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp index 5e95c99..e38b9fe 100644 --- a/core/launcher/taskbar.cpp +++ b/core/launcher/taskbar.cpp | |||
@@ -39,2 +39,4 @@ | |||
39 | 39 | ||
40 | #include <opie/odevice.h> | ||
41 | |||
40 | #include <qlabel.h> | 42 | #include <qlabel.h> |
@@ -255,25 +257,24 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data ) | |||
255 | { | 257 | { |
256 | QDataStream stream( data, IO_ReadOnly ); | 258 | QDataStream stream( data, IO_ReadOnly ); |
257 | if ( msg == "message(QString)" ) { | 259 | if ( msg == "message(QString)" ) { |
258 | QString text; | 260 | QString text; |
259 | stream >> text; | 261 | stream >> text; |
260 | setStatusMessage( text ); | 262 | setStatusMessage( text ); |
261 | } else if ( msg == "hideInputMethod()" ) { | 263 | } else if ( msg == "hideInputMethod()" ) { |
262 | inputMethods->hideInputMethod(); | 264 | inputMethods->hideInputMethod(); |
263 | } else if ( msg == "showInputMethod()" ) { | 265 | } else if ( msg == "showInputMethod()" ) { |
264 | inputMethods->showInputMethod(); | 266 | inputMethods->showInputMethod(); |
265 | } else if ( msg == "reloadInputMethods()" ) { | 267 | } else if ( msg == "reloadInputMethods()" ) { |
266 | inputMethods->loadInputMethods(); | 268 | inputMethods->loadInputMethods(); |
267 | } else if ( msg == "reloadApplets()" ) { | 269 | } else if ( msg == "reloadApplets()" ) { |
268 | sysTray->loadApplets(); | 270 | sysTray->loadApplets(); |
269 | } else if ( msg == "soundAlarm()" ) { | 271 | } else if ( msg == "soundAlarm()" ) { |
270 | Desktop::soundAlarm(); | 272 | Desktop::soundAlarm(); |
271 | } | 273 | } |
272 | #ifdef CUSTOM_LEDS | 274 | else if ( msg == "setLed(int,bool)" ) { |
273 | else if ( msg == "setLed(int,bool)" ) { | 275 | int led, status; |
274 | int led, status; | 276 | stream >> led >> status; |
275 | stream >> led >> status; | 277 | |
276 | CUSTOM_LEDS( led, status ); | 278 | ODevice::inst ( )-> setLed ( led, status ? OLED_BlinkSlow : OLED_Off ); |
277 | } | 279 | } |
278 | #endif | ||
279 | } | 280 | } |