Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index cd74bed..43a04e3 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp | |||
@@ -1,91 +1,86 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | ||
4 | ** This file is part of Opie Environment. | ||
5 | ** | 3 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 4 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 5 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 6 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 7 | ** packaging of this file. |
10 | ** | 8 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 9 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 10 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 11 | ** |
14 | ***********************************************************************/ | 12 | ***********************************************************************/ |
15 | 13 | ||
16 | // Local | 14 | // Local |
17 | 15 | ||
18 | #include "gps.h" | 16 | #include "gps.h" |
19 | #include "wellenreiter.h" | 17 | #include "wellenreiter.h" |
20 | #include "scanlist.h" | 18 | #include "scanlist.h" |
21 | #include "logwindow.h" | 19 | #include "logwindow.h" |
22 | #include "hexwindow.h" | 20 | #include "hexwindow.h" |
23 | #include "configwindow.h" | 21 | #include "configwindow.h" |
24 | #include "statwindow.h" | 22 | #include "statwindow.h" |
25 | #include "graphwindow.h" | 23 | #include "graphwindow.h" |
26 | #include "protolistview.h" | 24 | #include "protolistview.h" |
27 | 25 | ||
28 | // Opie | 26 | // Opie |
29 | 27 | ||
30 | #ifdef QWS | 28 | #ifdef QWS |
31 | #include <opie/odevice.h> | ||
32 | #include <qpe/qcopenvelope_qws.h> | ||
33 | using namespace Opie; | ||
34 | #endif | ||
35 | |||
36 | #ifdef QWS | ||
37 | #include <opie2/oapplication.h> | 29 | #include <opie2/oapplication.h> |
30 | #include <opie2/odevice.h> | ||
38 | #else | 31 | #else |
39 | #include <qapplication.h> | 32 | #include <qapplication.h> |
40 | #endif | 33 | #endif |
41 | #include <opie2/omanufacturerdb.h> | 34 | #include <opie2/omanufacturerdb.h> |
42 | #include <opie2/onetwork.h> | 35 | #include <opie2/onetwork.h> |
43 | #include <opie2/opcap.h> | 36 | #include <opie2/opcap.h> |
37 | #include <qpe/qcopenvelope_qws.h> | ||
38 | using namespace Opie; | ||
44 | 39 | ||
45 | // Qt | 40 | // Qt |
46 | 41 | ||
47 | #include <qcheckbox.h> | 42 | #include <qcheckbox.h> |
48 | #include <qcombobox.h> | 43 | #include <qcombobox.h> |
49 | #include <qdatetime.h> | 44 | #include <qdatetime.h> |
50 | #include <qpushbutton.h> | 45 | #include <qpushbutton.h> |
51 | #include <qlineedit.h> | 46 | #include <qlineedit.h> |
52 | #include <qmessagebox.h> | 47 | #include <qmessagebox.h> |
53 | #include <qobjectlist.h> | 48 | #include <qobjectlist.h> |
54 | #include <qregexp.h> | 49 | #include <qregexp.h> |
55 | #include <qspinbox.h> | 50 | #include <qspinbox.h> |
56 | #include <qtimer.h> | 51 | #include <qtimer.h> |
57 | #include <qtoolbutton.h> | 52 | #include <qtoolbutton.h> |
58 | #include <qmainwindow.h> | 53 | #include <qmainwindow.h> |
59 | 54 | ||
60 | // Standard | 55 | // Standard |
61 | 56 | ||
62 | #include <assert.h> | 57 | #include <assert.h> |
63 | #include <errno.h> | 58 | #include <errno.h> |
64 | #include <unistd.h> | 59 | #include <unistd.h> |
65 | #include <string.h> | 60 | #include <string.h> |
66 | #include <sys/types.h> | 61 | #include <sys/types.h> |
67 | #include <stdlib.h> | 62 | #include <stdlib.h> |
68 | 63 | ||
69 | Wellenreiter::Wellenreiter( QWidget* parent ) | 64 | Wellenreiter::Wellenreiter( QWidget* parent ) |
70 | : WellenreiterBase( parent, 0, 0 ), | 65 | : WellenreiterBase( parent, 0, 0 ), |
71 | sniffing( false ), iface( 0 ), configwindow( 0 ) | 66 | sniffing( false ), iface( 0 ), configwindow( 0 ) |
72 | { | 67 | { |
73 | 68 | ||
74 | logwindow->log( "(i) Wellenreiter has been started." ); | 69 | logwindow->log( "(i) Wellenreiter has been started." ); |
75 | 70 | ||
76 | // | 71 | // |
77 | // detect operating system | 72 | // detect operating system |
78 | // | 73 | // |
79 | 74 | ||
80 | #ifdef QWS | 75 | #ifdef QWS |
81 | QString sys; | 76 | QString sys; |
82 | sys.sprintf( "(i) Running on '%s'.", (const char*) ODevice::inst()->systemString() ); | 77 | sys.sprintf( "(i) Running on '%s'.", (const char*) ODevice::inst()->systemString() ); |
83 | _system = ODevice::inst()->system(); | 78 | _system = ODevice::inst()->system(); |
84 | logwindow->log( sys ); | 79 | logwindow->log( sys ); |
85 | #endif | 80 | #endif |
86 | 81 | ||
87 | netview->setColumnWidthMode( 1, QListView::Manual ); | 82 | netview->setColumnWidthMode( 1, QListView::Manual ); |
88 | connect( netview, SIGNAL( joinNetwork(const QString&,const QString&,int,const QString&) ), | 83 | connect( netview, SIGNAL( joinNetwork(const QString&,const QString&,int,const QString&) ), |
89 | this, SLOT( joinNetwork(const QString&,const QString&,int,const QString&) ) ); | 84 | this, SLOT( joinNetwork(const QString&,const QString&,int,const QString&) ) ); |
90 | pcap = new OPacketCapturer(); | 85 | pcap = new OPacketCapturer(); |
91 | 86 | ||