From 872dc276a047a289561779fb59ab4ce45aaa9062 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 07 Jan 2004 22:42:35 +0000 Subject: add status output --- diff --git a/libopie2/opienet/omanufacturerdb.cpp b/libopie2/opienet/omanufacturerdb.cpp index f61270b..2da549c 100644 --- a/libopie2/opienet/omanufacturerdb.cpp +++ b/libopie2/opienet/omanufacturerdb.cpp @@ -30,8 +30,13 @@ #include "omanufacturerdb.h" -/* OPIE CORE */ +#define OPIE_IMPROVE_GUI_LATENCY 1 + +/* OPIE */ #include +#ifdef OPIE_IMPROVE_GUI_LATENCY +#include +#endif /* QT */ #include @@ -39,8 +44,6 @@ #include #include -#define OPIE_IMPROVE_GUI_LATENCY 1 - OManufacturerDB* OManufacturerDB::_instance = 0; OManufacturerDB* OManufacturerDB::instance() @@ -56,6 +59,9 @@ OManufacturerDB* OManufacturerDB::instance() OManufacturerDB::OManufacturerDB() { + #ifdef OPIE_IMPROVE_GUI_LATENCY + Global::statusMessage( "Reading Manufacturers..." ); + #endif QString filename( "/etc/manufacturers" ); odebug << "OManufacturerDB: trying to read " << filename << oendl; if ( !QFile::exists( filename ) ) @@ -104,6 +110,9 @@ OManufacturerDB::OManufacturerDB() #endif } odebug << "OManufacturerDB: manufacturer list completed." << oendl; + #ifdef OPIE_IMPROVE_GUI_LATENCY + Global::statusMessage( "Manufacturers Complete..." ); + #endif } } -- cgit v0.9.0.2