-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 12 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.h | 2 |
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 | |||
@@ -35,12 +35,13 @@ using namespace Opie; | |||
35 | 35 | ||
36 | #ifdef QWS | 36 | #ifdef QWS |
37 | #include <opie2/oapplication.h> | 37 | #include <opie2/oapplication.h> |
38 | #else | 38 | #else |
39 | #include <qapplication.h> | 39 | #include <qapplication.h> |
40 | #endif | 40 | #endif |
41 | #include <opie2/omanufacturerdb.h> | ||
41 | #include <opie2/onetwork.h> | 42 | #include <opie2/onetwork.h> |
42 | #include <opie2/opcap.h> | 43 | #include <opie2/opcap.h> |
43 | 44 | ||
44 | // Qt | 45 | // Qt |
45 | 46 | ||
46 | #include <qcheckbox.h> | 47 | #include <qcheckbox.h> |
@@ -49,12 +50,13 @@ using namespace Opie; | |||
49 | #include <qpushbutton.h> | 50 | #include <qpushbutton.h> |
50 | #include <qlineedit.h> | 51 | #include <qlineedit.h> |
51 | #include <qmessagebox.h> | 52 | #include <qmessagebox.h> |
52 | #include <qobjectlist.h> | 53 | #include <qobjectlist.h> |
53 | #include <qregexp.h> | 54 | #include <qregexp.h> |
54 | #include <qspinbox.h> | 55 | #include <qspinbox.h> |
56 | #include <qtimer.h> | ||
55 | #include <qtoolbutton.h> | 57 | #include <qtoolbutton.h> |
56 | #include <qmainwindow.h> | 58 | #include <qmainwindow.h> |
57 | 59 | ||
58 | // Standard | 60 | // Standard |
59 | 61 | ||
60 | #include <assert.h> | 62 | #include <assert.h> |
@@ -85,21 +87,31 @@ Wellenreiter::Wellenreiter( QWidget* parent ) | |||
85 | netview->setColumnWidthMode( 1, QListView::Manual ); | 87 | netview->setColumnWidthMode( 1, QListView::Manual ); |
86 | connect( netview, SIGNAL( joinNetwork(const QString&,const QString&,int,const QString&) ), | 88 | connect( netview, SIGNAL( joinNetwork(const QString&,const QString&,int,const QString&) ), |
87 | this, SLOT( joinNetwork(const QString&,const QString&,int,const QString&) ) ); | 89 | this, SLOT( joinNetwork(const QString&,const QString&,int,const QString&) ) ); |
88 | pcap = new OPacketCapturer(); | 90 | pcap = new OPacketCapturer(); |
89 | 91 | ||
90 | gps = new GPS( this ); | 92 | gps = new GPS( this ); |
93 | |||
94 | QTimer::singleShot( 1000, this, SLOT( initialTimer() ) ); | ||
95 | |||
91 | } | 96 | } |
92 | 97 | ||
93 | 98 | ||
94 | Wellenreiter::~Wellenreiter() | 99 | Wellenreiter::~Wellenreiter() |
95 | { | 100 | { |
96 | delete pcap; | 101 | delete pcap; |
97 | } | 102 | } |
98 | 103 | ||
99 | 104 | ||
105 | void Wellenreiter::initialTimer() | ||
106 | { | ||
107 | qDebug( "Wellenreiter::preloading manufacturer database..." ); | ||
108 | OManufacturerDB::instance(); | ||
109 | } | ||
110 | |||
111 | |||
100 | void Wellenreiter::setConfigWindow( WellenreiterConfigWindow* cw ) | 112 | void Wellenreiter::setConfigWindow( WellenreiterConfigWindow* cw ) |
101 | { | 113 | { |
102 | configwindow = cw; | 114 | configwindow = cw; |
103 | } | 115 | } |
104 | 116 | ||
105 | 117 | ||
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 | |||
@@ -56,12 +56,14 @@ class Wellenreiter : public WellenreiterBase { | |||
56 | bool sniffing; | 56 | bool sniffing; |
57 | 57 | ||
58 | protected: | 58 | protected: |
59 | virtual void timerEvent( QTimerEvent* ); | 59 | virtual void timerEvent( QTimerEvent* ); |
60 | 60 | ||
61 | public slots: | 61 | public slots: |
62 | void initialTimer(); | ||
63 | |||
62 | void channelHopped(int); | 64 | void channelHopped(int); |
63 | void receivePacket(OPacket*); | 65 | void receivePacket(OPacket*); |
64 | void startClicked(); | 66 | void startClicked(); |
65 | void stopClicked(); | 67 | void stopClicked(); |
66 | 68 | ||
67 | void joinNetwork(const QString&,const QString&,int,const QString&); | 69 | void joinNetwork(const QString&,const QString&,int,const QString&); |