summaryrefslogtreecommitdiff
path: root/core/launcher/taskbar.cpp
authorsandman <sandman>2002-06-18 12:49:05 (UTC)
committer sandman <sandman>2002-06-18 12:49:05 (UTC)
commitc739f74f910b24884279d34836c1f78a97a7e7ae (patch) (unidiff)
tree432c379c30469e2be9117b4895b345e4947e688a /core/launcher/taskbar.cpp
parent61e2f9e5eb634b17ef480d79bdbcbc3a715990cb (diff)
downloadopie-c739f74f910b24884279d34836c1f78a97a7e7ae.zip
opie-c739f74f910b24884279d34836c1f78a97a7e7ae.tar.gz
opie-c739f74f910b24884279d34836c1f78a97a7e7ae.tar.bz2
Replaced OHwInfo with ODevice and ported from custom-*.h #defines to
ODevice methods
Diffstat (limited to 'core/launcher/taskbar.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/taskbar.cpp7
1 files changed, 4 insertions, 3 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
@@ -34,12 +34,14 @@
34#include <qpe/global.h> 34#include <qpe/global.h>
35 35
36#if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) 36#if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ )
37#include <qpe/custom.h> 37#include <qpe/custom.h>
38#endif 38#endif
39 39
40#include <opie/odevice.h>
41
40#include <qlabel.h> 42#include <qlabel.h>
41#include <qlayout.h> 43#include <qlayout.h>
42#include <qtimer.h> 44#include <qtimer.h>
43#include <qwindowsystem_qws.h> 45#include <qwindowsystem_qws.h>
44#include <qwidgetstack.h> 46#include <qwidgetstack.h>
45 47
@@ -266,19 +268,18 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data )
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
273 else if ( msg == "setLed(int,bool)" ) { 274 else if ( msg == "setLed(int,bool)" ) {
274 int led, status; 275 int led, status;
275 stream >> led >> status; 276 stream >> led >> status;
276 CUSTOM_LEDS( led, status ); 277
278 ODevice::inst ( )-> setLed ( led, status ? OLED_BlinkSlow : OLED_Off );
277 } 279 }
278#endif
279} 280}
280 281
281QWidget *TaskBar::calibrate(bool) 282QWidget *TaskBar::calibrate(bool)
282{ 283{
283#ifdef Q_WS_QWS 284#ifdef Q_WS_QWS
284 Calibrate *c = new Calibrate; 285 Calibrate *c = new Calibrate;