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) (side-by-side diff)
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) (ignore whitespace changes)
-rw-r--r--core/launcher/taskbar.cpp47
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
@@ -37,6 +37,8 @@
#include <qpe/custom.h>
#endif
+#include <opie/odevice.h>
+
#include <qlabel.h>
#include <qlayout.h>
#include <qtimer.h>
@@ -253,29 +255,28 @@ void TaskBar::calcMaxWindowRect()
void TaskBar::receive( const QCString &msg, const QByteArray &data )
{
- QDataStream stream( data, IO_ReadOnly );
- if ( msg == "message(QString)" ) {
- QString text;
- stream >> text;
- setStatusMessage( text );
- } else if ( msg == "hideInputMethod()" ) {
- inputMethods->hideInputMethod();
- } else if ( msg == "showInputMethod()" ) {
- inputMethods->showInputMethod();
- } else if ( msg == "reloadInputMethods()" ) {
- inputMethods->loadInputMethods();
- } else if ( msg == "reloadApplets()" ) {
- sysTray->loadApplets();
- } else if ( msg == "soundAlarm()" ) {
- Desktop::soundAlarm();
- }
-#ifdef CUSTOM_LEDS
- else if ( msg == "setLed(int,bool)" ) {
- int led, status;
- stream >> led >> status;
- CUSTOM_LEDS( led, status );
- }
-#endif
+ QDataStream stream( data, IO_ReadOnly );
+ if ( msg == "message(QString)" ) {
+ QString text;
+ stream >> text;
+ setStatusMessage( text );
+ } else if ( msg == "hideInputMethod()" ) {
+ inputMethods->hideInputMethod();
+ } else if ( msg == "showInputMethod()" ) {
+ inputMethods->showInputMethod();
+ } else if ( msg == "reloadInputMethods()" ) {
+ inputMethods->loadInputMethods();
+ } else if ( msg == "reloadApplets()" ) {
+ sysTray->loadApplets();
+ } else if ( msg == "soundAlarm()" ) {
+ Desktop::soundAlarm();
+ }
+ else if ( msg == "setLed(int,bool)" ) {
+ int led, status;
+ stream >> led >> status;
+
+ ODevice::inst ( )-> setLed ( led, status ? OLED_BlinkSlow : OLED_Off );
+ }
}
QWidget *TaskBar::calibrate(bool)