From 4f1d28a25ce6180850c3d26bac9b638f0f25532b Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 07 Apr 2004 13:36:16 +0000 Subject: use Opie debugging framework --- (limited to 'core/launcher/runningappbar.cpp') diff --git a/core/launcher/runningappbar.cpp b/core/launcher/runningappbar.cpp index 2e9d2a9..a25963f 100644 --- a/core/launcher/runningappbar.cpp +++ b/core/launcher/runningappbar.cpp @@ -20,15 +20,19 @@ #define QTOPIA_INTERNAL_PRELOADACCESS +#include "runningappbar.h" +#include "serverinterface.h" -#include +/* OPIE */ +#include +#include +using namespace Opie::Core; +/* QT */ #include -#include - -#include "runningappbar.h" -#include "serverinterface.h" +/* STD */ +#include RunningAppBar::RunningAppBar(QWidget* parent) : QFrame(parent), selectedAppIndex(-1) @@ -51,7 +55,7 @@ void RunningAppBar::received(const QCString& msg, const QByteArray& data) { if ( msg == "fastAppShowing(QString)") { QString appName; stream >> appName; - // qDebug("fastAppShowing %s", appName.data() ); + // odebug << "fastAppShowing " << appName.data() << "" << oendl; const AppLnk* f = ServerInterface::appLnks().findExec(appName); if ( f ) addTask(*f); } else if ( msg == "fastAppHiding(QString)") { @@ -63,7 +67,7 @@ void RunningAppBar::received(const QCString& msg, const QByteArray& data) { } void RunningAppBar::addTask(const AppLnk& appLnk) { - qDebug("Added %s to app list.", appLnk.name().latin1()); + odebug << "Added " << appLnk.name() << " to app list." << oendl; AppLnk* newApp = new AppLnk(appLnk); newApp->setExec(appLnk.exec()); appList.prepend(newApp); @@ -75,7 +79,7 @@ void RunningAppBar::removeTask(const AppLnk& appLnk) { for (; i < appList.count() ; i++) { AppLnk* target = appList.at(i); if (target->exec() == appLnk.exec()) { - qDebug("Removing %s from app list.", appLnk.name().latin1()); + odebug << "Removing " << appLnk.name() << " from app list." << oendl; appList.remove(); delete target; } @@ -135,7 +139,7 @@ void RunningAppBar::paintEvent( QPaintEvent * ) for (; it.current(); i++, ++it ) { if ( x + spacing <= width() ) { curApp = it.current(); - qWarning("Drawing %s", curApp->name().latin1() ); + owarn << "Drawing " << curApp->name() << "" << oendl; if ( (int)i == selectedAppIndex ) p.fillRect( x, y, spacing, curApp->pixmap().height()+1, colorGroup().highlight() ); else @@ -153,7 +157,7 @@ QSize RunningAppBar::sizeHint() const void RunningAppBar::applicationLaunched(const QString &appName) { - qDebug("desktop:: app: %s launched with pid ", appName.data() ); + odebug << "desktop:: app: " << appName.data() << " launched with pid " << oendl; const AppLnk* newGuy = ServerInterface::appLnks().findExec(appName); if ( newGuy && !newGuy->isPreloaded() ) { addTask( *newGuy ); -- cgit v0.9.0.2