summaryrefslogtreecommitdiff
authordrw <drw>2004-04-02 21:41:10 (UTC)
committer drw <drw>2004-04-02 21:41:10 (UTC)
commit6f335843b89f60fe009b43a4134e9b3753fff974 (patch) (side-by-side diff)
tree5734d3080e664131cc575038d59858f1b0633af4
parent67cf56e3907fba139e2d1ce612f9df29747b8201 (diff)
downloadopie-6f335843b89f60fe009b43a4134e9b3753fff974.zip
opie-6f335843b89f60fe009b43a4134e9b3753fff974.tar.gz
opie-6f335843b89f60fe009b43a4134e9b3753fff974.tar.bz2
Use ODebug (another 10 down...)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/config.in2
-rw-r--r--core/pim/today/today.cpp22
2 files changed, 13 insertions, 11 deletions
diff --git a/core/pim/today/config.in b/core/pim/today/config.in
index c4377e4..c663fc1 100644
--- a/core/pim/today/config.in
+++ b/core/pim/today/config.in
@@ -2,3 +2,3 @@
boolean "opie-today (today gives an overview of appointments and todos)"
default "y"
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2UI && LIBOPIE2PIM
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2UI && LIBOPIE2PIM
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index ebcd2dd..3ddb88d 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -19,4 +19,6 @@
#include "today.h"
+#include <opie2/odebug.h>
+
#include <qpe/config.h>
#include <qpe/qcopenvelope_qws.h>
@@ -189,5 +191,5 @@ void Today::loadPlugins() {
QString path = QPEApplication::qpeDir() + "/plugins/today";
#ifdef Q_OS_MACX
- qWarning("Searching for Plugins in: %s", path.latin1());
+ Opie::Core::owarn << "Searching for Plugins in: " << path << oendl;
QDir dir( path, "lib*.dylib" );
#else
@@ -204,8 +206,8 @@ void Today::loadPlugins() {
QLibrary *lib = new QLibrary( path + "/" + *it );
- qDebug( "querying: %s", QString( path + "/" + *it ).latin1() );
+ Opie::Core::odebug << "querying: " << path + "/" + *it << oendl;
if ( lib->queryInterface( IID_TodayPluginInterface, (QUnknownInterface**)&iface ) == QS_OK ) {
- qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() );
- qDebug( QString(*it) );
+ Opie::Core::odebug << "accepted: " << path + "/" + *it << oendl;
+ Opie::Core::odebug << *it << oendl;
TodayPlugin plugin;
@@ -221,5 +223,5 @@ void Today::loadPlugins() {
lang = config.readEntry( "Language", "en" );
- qDebug( "Languages: " + lang );
+ Opie::Core::odebug << "Languages: " << lang << oendl;
QTranslator * trans = new QTranslator( qApp );
QString tfn = QPEApplication::qpeDir()+"/i18n/" + lang + "/" + type + ".qm";
@@ -272,5 +274,5 @@ void Today::loadPlugins() {
}
} else {
- qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() );
+ Opie::Core::odebug << "could not recognize " << path + "/" + *it << oendl;
delete lib;
}
@@ -316,8 +318,8 @@ void Today::draw() {
if ( plugin.active ) {
- // qDebug( plugin.name + " is ACTIVE " );
+ //Opie::Core::odebug << plugin.name << " is ACTIVE " << oendl;
plugin.guiBox->show();
} else {
- // qDebug( plugin.name + " is INACTIVE" );
+ //Opie::Core::odebug << plugin.name << " is INACTIVE " << oendl;
plugin.guiBox->hide();
}
@@ -396,5 +398,5 @@ void Today::reinitialize() {
if ( !(*it).excludeRefresh ) {
(*it).guiPart->reinitialize();
- qDebug( "reinit" );
+ Opie::Core::odebug << "reinit" << oendl;
}
@@ -450,5 +452,5 @@ void Today::refresh() {
if ( !(*it).excludeRefresh ) {
(*it).guiPart->refresh();
- qDebug( "refresh" );
+ Opie::Core::odebug << "refresh" << oendl;
}
}