From 6fdaab436d4fa72b3de06a1a9cf9be0bd964677a Mon Sep 17 00:00:00 2001 From: sandman Date: Mon, 30 Sep 2002 22:48:46 +0000 Subject: Changes to use the new ODevice API --- (limited to 'core/launcher/taskbar.cpp') diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp index 1feae4a..46bcdb3 100644 --- a/core/launcher/taskbar.cpp +++ b/core/launcher/taskbar.cpp @@ -51,6 +51,8 @@ #endif +using namespace Opie; + #define FACTORY(T) \ static QWidget *new##T( bool maximized ) { \ QWidget *w = new T( 0, "test", QWidget::WDestructiveClose | QWidget::WGroupLeader ); \ @@ -281,7 +283,13 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data ) int led, status; stream >> led >> status; - ODevice::inst ( )-> setLed ( led, status ? OLED_BlinkSlow : OLED_Off ); + QValueList ll = ODevice::inst ( )-> ledList ( ); + if ( ll. count ( )) { + OLed l = ll. contains ( Led_Mail ) ? Led_Mail : ll [0]; + bool canblink = ODevice::inst ( )-> ledStateList ( l ). contains ( Led_BlinkSlow ); + + ODevice::inst ( )-> setLedState ( l, status ? ( canblink ? Led_BlinkSlow : Led_On ) : Led_Off ); + } } } -- cgit v0.9.0.2