author | mickeyl <mickeyl> | 2002-12-29 17:28:26 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2002-12-29 17:28:26 (UTC) |
commit | e829097195e5c4b07c79ba22e168d3ae3ded4489 (patch) (unidiff) | |
tree | 166cf184a01806be74f9b3c61c94d9109daf2afc /noncore/net/wellenreiter/gui/wellenreiter.cpp | |
parent | 8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b (diff) | |
download | opie-e829097195e5c4b07c79ba22e168d3ae3ded4489.zip opie-e829097195e5c4b07c79ba22e168d3ae3ded4489.tar.gz opie-e829097195e5c4b07c79ba22e168d3ae3ded4489.tar.bz2 |
added a manufacturer database class
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index 2d9bbee..9068e3a 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp | |||
@@ -54,4 +54,6 @@ using namespace Opie; | |||
54 | #include "configwindow.h" | 54 | #include "configwindow.h" |
55 | 55 | ||
56 | #include "manufacturers.h" | ||
57 | |||
56 | #include <libwellenreiter/source/wl_sock.hh> | 58 | #include <libwellenreiter/source/wl_sock.hh> |
57 | #include <libwellenreiter/source/wl_proto.hh> | 59 | #include <libwellenreiter/source/wl_proto.hh> |
@@ -62,4 +64,16 @@ Wellenreiter::Wellenreiter( QWidget* parent, const char* name, WFlags fl ) | |||
62 | { | 64 | { |
63 | 65 | ||
66 | // | ||
67 | // construct manufacturer database | ||
68 | // | ||
69 | |||
70 | QString manufile; | ||
71 | #ifdef QWS | ||
72 | manufile.sprintf( "%s/share/wellenreiter/manufacturers.dat", (const char*) qApp.qpeDir() ); | ||
73 | #else | ||
74 | manufile.sprintf( "/home/mickey/work/opie/share/wellenreiter/manufacturers.dat" ); | ||
75 | #endif | ||
76 | manufacturerdb = new ManufacturerDB( manufile ); | ||
77 | |||
64 | logwindow->log( "(i) Wellenreiter has been started." ); | 78 | logwindow->log( "(i) Wellenreiter has been started." ); |
65 | 79 | ||
@@ -104,4 +118,6 @@ Wellenreiter::~Wellenreiter() | |||
104 | { | 118 | { |
105 | // no need to delete child widgets, Qt does it all for us | 119 | // no need to delete child widgets, Qt does it all for us |
120 | |||
121 | delete manufacturerdb; | ||
106 | } | 122 | } |
107 | 123 | ||