summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-12-09 19:24:37 (UTC)
committer mickeyl <mickeyl>2003-12-09 19:24:37 (UTC)
commit04d6caa37743a1957b9ffa061a58a71a3909ea3d (patch) (side-by-side diff)
tree04a692f57263d0573f2b2c704e4a6e1057aa7d40
parent1642df2b072858b5eec9ad007a23475cc5270bfe (diff)
downloadopie-04d6caa37743a1957b9ffa061a58a71a3909ea3d.zip
opie-04d6caa37743a1957b9ffa061a58a71a3909ea3d.tar.gz
opie-04d6caa37743a1957b9ffa061a58a71a3909ea3d.tar.bz2
preload the manufacturer library during startup (nice trick, btw.)
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp12
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 365efb0..1d4a98b 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -38,6 +38,7 @@ using namespace Opie;
#else
#include <qapplication.h>
#endif
+#include <opie2/omanufacturerdb.h>
#include <opie2/onetwork.h>
#include <opie2/opcap.h>
@@ -52,6 +53,7 @@ using namespace Opie;
#include <qobjectlist.h>
#include <qregexp.h>
#include <qspinbox.h>
+#include <qtimer.h>
#include <qtoolbutton.h>
#include <qmainwindow.h>
@@ -88,6 +90,9 @@ Wellenreiter::Wellenreiter( QWidget* parent )
pcap = new OPacketCapturer();
gps = new GPS( this );
+
+ QTimer::singleShot( 1000, this, SLOT( initialTimer() ) );
+
}
@@ -97,6 +102,13 @@ Wellenreiter::~Wellenreiter()
}
+void Wellenreiter::initialTimer()
+{
+ qDebug( "Wellenreiter::preloading manufacturer database..." );
+ OManufacturerDB::instance();
+}
+
+
void Wellenreiter::setConfigWindow( WellenreiterConfigWindow* cw )
{
configwindow = cw;
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h
index 25a5e8d..d882500 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.h
+++ b/noncore/net/wellenreiter/gui/wellenreiter.h
@@ -59,6 +59,8 @@ class Wellenreiter : public WellenreiterBase {
virtual void timerEvent( QTimerEvent* );
public slots:
+ void initialTimer();
+
void channelHopped(int);
void receivePacket(OPacket*);
void startClicked();