author | mickeyl <mickeyl> | 2004-01-07 22:42:35 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-07 22:42:35 (UTC) |
commit | 872dc276a047a289561779fb59ab4ce45aaa9062 (patch) (unidiff) | |
tree | daa13890125d0a6498a006787c273a73180827b5 | |
parent | 6a5c0635fdc3053bdcded01a7477ad96d4690b4a (diff) | |
download | opie-872dc276a047a289561779fb59ab4ce45aaa9062.zip opie-872dc276a047a289561779fb59ab4ce45aaa9062.tar.gz opie-872dc276a047a289561779fb59ab4ce45aaa9062.tar.bz2 |
add status output
-rw-r--r-- | libopie2/opienet/omanufacturerdb.cpp | 15 |
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 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "omanufacturerdb.h" | 31 | #include "omanufacturerdb.h" |
32 | 32 | ||
33 | /* OPIE CORE */ | 33 | #define OPIE_IMPROVE_GUI_LATENCY 1 |
34 | |||
35 | /* OPIE */ | ||
34 | #include <opie2/odebug.h> | 36 | #include <opie2/odebug.h> |
37 | #ifdef OPIE_IMPROVE_GUI_LATENCY | ||
38 | #include <qpe/global.h> | ||
39 | #endif | ||
35 | 40 | ||
36 | /* QT */ | 41 | /* QT */ |
37 | #include <qapplication.h> | 42 | #include <qapplication.h> |
38 | #include <qstring.h> | 43 | #include <qstring.h> |
39 | #include <qfile.h> | 44 | #include <qfile.h> |
40 | #include <qtextstream.h> | 45 | #include <qtextstream.h> |
41 | 46 | ||
42 | #define OPIE_IMPROVE_GUI_LATENCY 1 | ||
43 | |||
44 | OManufacturerDB* OManufacturerDB::_instance = 0; | 47 | OManufacturerDB* OManufacturerDB::_instance = 0; |
45 | 48 | ||
46 | OManufacturerDB* OManufacturerDB::instance() | 49 | OManufacturerDB* OManufacturerDB::instance() |
47 | { | 50 | { |
@@ -55,8 +58,11 @@ OManufacturerDB* OManufacturerDB::instance() | |||
55 | 58 | ||
56 | 59 | ||
57 | OManufacturerDB::OManufacturerDB() | 60 | OManufacturerDB::OManufacturerDB() |
58 | { | 61 | { |
62 | #ifdef OPIE_IMPROVE_GUI_LATENCY | ||
63 | Global::statusMessage( "Reading Manufacturers..." ); | ||
64 | #endif | ||
59 | QString filename( "/etc/manufacturers" ); | 65 | QString filename( "/etc/manufacturers" ); |
60 | odebug << "OManufacturerDB: trying to read " << filename << oendl; | 66 | odebug << "OManufacturerDB: trying to read " << filename << oendl; |
61 | if ( !QFile::exists( filename ) ) | 67 | if ( !QFile::exists( filename ) ) |
62 | { | 68 | { |
@@ -103,8 +109,11 @@ OManufacturerDB::OManufacturerDB() | |||
103 | } | 109 | } |
104 | #endif | 110 | #endif |
105 | } | 111 | } |
106 | odebug << "OManufacturerDB: manufacturer list completed." << oendl; | 112 | odebug << "OManufacturerDB: manufacturer list completed." << oendl; |
113 | #ifdef OPIE_IMPROVE_GUI_LATENCY | ||
114 | Global::statusMessage( "Manufacturers Complete..." ); | ||
115 | #endif | ||
107 | } | 116 | } |
108 | } | 117 | } |
109 | 118 | ||
110 | 119 | ||