summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-01-07 22:42:35 (UTC)
committer mickeyl <mickeyl>2004-01-07 22:42:35 (UTC)
commit872dc276a047a289561779fb59ab4ce45aaa9062 (patch) (side-by-side diff)
treedaa13890125d0a6498a006787c273a73180827b5
parent6a5c0635fdc3053bdcded01a7477ad96d4690b4a (diff)
downloadopie-872dc276a047a289561779fb59ab4ce45aaa9062.zip
opie-872dc276a047a289561779fb59ab4ce45aaa9062.tar.gz
opie-872dc276a047a289561779fb59ab4ce45aaa9062.tar.bz2
add status output
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opienet/omanufacturerdb.cpp15
1 files changed, 12 insertions, 3 deletions
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
@@ -29,19 +29,22 @@
*/
#include "omanufacturerdb.h"
-/* OPIE CORE */
+#define OPIE_IMPROVE_GUI_LATENCY 1
+
+/* OPIE */
#include <opie2/odebug.h>
+#ifdef OPIE_IMPROVE_GUI_LATENCY
+#include <qpe/global.h>
+#endif
/* QT */
#include <qapplication.h>
#include <qstring.h>
#include <qfile.h>
#include <qtextstream.h>
-#define OPIE_IMPROVE_GUI_LATENCY 1
-
OManufacturerDB* OManufacturerDB::_instance = 0;
OManufacturerDB* OManufacturerDB::instance()
{
@@ -55,8 +58,11 @@ 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 ) )
{
@@ -103,8 +109,11 @@ OManufacturerDB::OManufacturerDB()
}
#endif
}
odebug << "OManufacturerDB: manufacturer list completed." << oendl;
+ #ifdef OPIE_IMPROVE_GUI_LATENCY
+ Global::statusMessage( "Manufacturers Complete..." );
+ #endif
}
}