-rw-r--r-- | noncore/net/wellenreiter/gui/packetview.cpp | 2 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/packetview.h | 2 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/statwindow.h | 2 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.h | 22 |
4 files changed, 13 insertions, 15 deletions
diff --git a/noncore/net/wellenreiter/gui/packetview.cpp b/noncore/net/wellenreiter/gui/packetview.cpp index 8312e71..e0e626c 100644 --- a/noncore/net/wellenreiter/gui/packetview.cpp +++ b/noncore/net/wellenreiter/gui/packetview.cpp | |||
@@ -13,34 +13,32 @@ | |||
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #include "packetview.h" | 16 | #include "packetview.h" |
17 | 17 | ||
18 | /* OPIE */ | 18 | /* OPIE */ |
19 | #include <opie2/opcap.h> | 19 | #include <opie2/opcap.h> |
20 | 20 | ||
21 | /* QT */ | 21 | /* QT */ |
22 | #include <qtextview.h> | 22 | #include <qtextview.h> |
23 | #include <qspinbox.h> | 23 | #include <qspinbox.h> |
24 | #include <qlabel.h> | 24 | #include <qlabel.h> |
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | #include <qlist.h> | 26 | #include <qlist.h> |
27 | 27 | ||
28 | using namespace Opie::Net; | 28 | using namespace Opie::Net; |
29 | using namespace Opie::Net; | ||
30 | using namespace Opie::Net; | ||
31 | PacketView::PacketView( QWidget * parent, const char * name, WFlags f ) | 29 | PacketView::PacketView( QWidget * parent, const char * name, WFlags f ) |
32 | :QFrame( parent, name, f ) | 30 | :QFrame( parent, name, f ) |
33 | { | 31 | { |
34 | _number = new QSpinBox( this ); | 32 | _number = new QSpinBox( this ); |
35 | _number->setPrefix( "Packet # " ); | 33 | _number->setPrefix( "Packet # " ); |
36 | _label = new QLabel( this ); | 34 | _label = new QLabel( this ); |
37 | _label->setText( "eth0 2004/03/08 - 00:00:21" ); | 35 | _label->setText( "eth0 2004/03/08 - 00:00:21" ); |
38 | _list = new QLabel( this ); | 36 | _list = new QLabel( this ); |
39 | _hex = new QTextView( this ); | 37 | _hex = new QTextView( this ); |
40 | 38 | ||
41 | QVBoxLayout* vb = new QVBoxLayout( this, 2, 2 ); | 39 | QVBoxLayout* vb = new QVBoxLayout( this, 2, 2 ); |
42 | QHBoxLayout* hb = new QHBoxLayout( vb, 2 ); | 40 | QHBoxLayout* hb = new QHBoxLayout( vb, 2 ); |
43 | hb->addWidget( _label ); | 41 | hb->addWidget( _label ); |
44 | hb->addWidget( _number ); | 42 | hb->addWidget( _number ); |
45 | vb->addWidget( _list ); | 43 | vb->addWidget( _list ); |
46 | vb->addWidget( _hex ); | 44 | vb->addWidget( _hex ); |
diff --git a/noncore/net/wellenreiter/gui/packetview.h b/noncore/net/wellenreiter/gui/packetview.h index 1ac19bb..938aa19 100644 --- a/noncore/net/wellenreiter/gui/packetview.h +++ b/noncore/net/wellenreiter/gui/packetview.h | |||
@@ -10,33 +10,33 @@ | |||
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** 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. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #ifndef PACKETVIEW_H | 16 | #ifndef PACKETVIEW_H |
17 | #define PACKETVIEW_H | 17 | #define PACKETVIEW_H |
18 | 18 | ||
19 | #include <qlist.h> | 19 | #include <qlist.h> |
20 | #include <qframe.h> | 20 | #include <qframe.h> |
21 | 21 | ||
22 | class QString; | 22 | class QString; |
23 | class QSpinBox; | 23 | class QSpinBox; |
24 | class QLabel; | 24 | class QLabel; |
25 | class QTextView; | 25 | class QTextView; |
26 | namespace Opie {namespace Net {class Opie::Net::OPacket;}} | 26 | namespace Opie {namespace Net {class OPacket;}} |
27 | 27 | ||
28 | class PacketView: public QFrame | 28 | class PacketView: public QFrame |
29 | { | 29 | { |
30 | 30 | ||
31 | public: | 31 | public: |
32 | PacketView( QWidget * parent = 0, const char * name = "PacketView", WFlags f = 0 ); | 32 | PacketView( QWidget * parent = 0, const char * name = "PacketView", WFlags f = 0 ); |
33 | 33 | ||
34 | void add( Opie::Net::OPacket* p ); | 34 | void add( Opie::Net::OPacket* p ); |
35 | const QString getLog() const; | 35 | const QString getLog() const; |
36 | void clear(); | 36 | void clear(); |
37 | 37 | ||
38 | protected: | 38 | protected: |
39 | 39 | ||
40 | QSpinBox* _number; | 40 | QSpinBox* _number; |
41 | QLabel* _label; | 41 | QLabel* _label; |
42 | QLabel* _list; | 42 | QLabel* _list; |
diff --git a/noncore/net/wellenreiter/gui/statwindow.h b/noncore/net/wellenreiter/gui/statwindow.h index e11247b..c514146 100644 --- a/noncore/net/wellenreiter/gui/statwindow.h +++ b/noncore/net/wellenreiter/gui/statwindow.h | |||
@@ -6,33 +6,33 @@ | |||
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** 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 | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** 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. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #ifndef STATWINDOW_H | 16 | #ifndef STATWINDOW_H |
17 | #define STATWINDOW_H | 17 | #define STATWINDOW_H |
18 | 18 | ||
19 | #include <qvbox.h> | 19 | #include <qvbox.h> |
20 | 20 | ||
21 | class QString; | 21 | class QString; |
22 | namespace Opie {namespace Ui {class Opie::Ui::OListView;}} | 22 | namespace Opie {namespace Ui {class OListView;}} |
23 | 23 | ||
24 | class MStatWindow: public QVBox | 24 | class MStatWindow: public QVBox |
25 | { | 25 | { |
26 | Q_OBJECT | 26 | Q_OBJECT |
27 | 27 | ||
28 | public: | 28 | public: |
29 | MStatWindow( QWidget * parent = 0, const char * name = "MStatWindow", WFlags f = 0 ); | 29 | MStatWindow( QWidget * parent = 0, const char * name = "MStatWindow", WFlags f = 0 ); |
30 | 30 | ||
31 | void log( QString text ); | 31 | void log( QString text ); |
32 | const QString getLog() const; | 32 | const QString getLog() const; |
33 | void clear(); | 33 | void clear(); |
34 | 34 | ||
35 | void updateCounter( const QString&, int ); | 35 | void updateCounter( const QString&, int ); |
36 | 36 | ||
37 | protected: | 37 | protected: |
38 | Opie::Ui::OListView* table; | 38 | Opie::Ui::OListView* table; |
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h index 83299c9..f609ef4 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.h +++ b/noncore/net/wellenreiter/gui/wellenreiter.h | |||
@@ -9,43 +9,43 @@ | |||
9 | ** 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 |
10 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 10 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
11 | ** | 11 | ** |
12 | **********************************************************************/ | 12 | **********************************************************************/ |
13 | 13 | ||
14 | #ifndef WELLENREITER_H | 14 | #ifndef WELLENREITER_H |
15 | #define WELLENREITER_H | 15 | #define WELLENREITER_H |
16 | 16 | ||
17 | #include "wellenreiterbase.h" | 17 | #include "wellenreiterbase.h" |
18 | 18 | ||
19 | #ifdef QWS | 19 | #ifdef QWS |
20 | #include <opie2/odevice.h> | 20 | #include <opie2/odevice.h> |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | class QTimerEvent; | 23 | class QTimerEvent; |
24 | class QPixmap; | 24 | class QPixmap; |
25 | namespace Opie {namespace Net {class Opie::Net::OPacket;}} | 25 | namespace Opie {namespace Net {class OPacket;}} |
26 | namespace Opie {namespace Net {class Opie::Net::OWaveLanManagementPacket;}} | 26 | namespace Opie {namespace Net {class OWaveLanManagementPacket;}} |
27 | namespace Opie {namespace Net {class Opie::Net::OWaveLanControlPacket;}} | 27 | namespace Opie {namespace Net {class OWaveLanControlPacket;}} |
28 | namespace Opie {namespace Net {class Opie::Net::OWaveLanDataPacket;}} | 28 | namespace Opie {namespace Net {class OWaveLanDataPacket;}} |
29 | namespace Opie {namespace Net {class Opie::Net::OEthernetPacket;}} | 29 | namespace Opie {namespace Net {class OEthernetPacket;}} |
30 | namespace Opie {namespace Net {class Opie::Net::OARPPacket;}} | 30 | namespace Opie {namespace Net {class OARPPacket;}} |
31 | namespace Opie {namespace Net {class Opie::Net::OMacAddress;}} | 31 | namespace Opie {namespace Net {class OMacAddress;}} |
32 | namespace Opie {namespace Net {class Opie::Net::OIPPacket;}} | 32 | namespace Opie {namespace Net {class OIPPacket;}} |
33 | namespace Opie {namespace Net {class Opie::Net::OPacket;}} | 33 | namespace Opie {namespace Net {class OPacket;}} |
34 | namespace Opie {namespace Net {class Opie::Net::OWirelessNetworkInterface;}} | 34 | namespace Opie {namespace Net {class OWirelessNetworkInterface;}} |
35 | namespace Opie {namespace Net {class Opie::Net::OPacketCapturer;}} | 35 | namespace Opie {namespace Net {class OPacketCapturer;}} |
36 | class PacketView; | 36 | class PacketView; |
37 | class WellenreiterConfigWindow; | 37 | class WellenreiterConfigWindow; |
38 | class MLogWindow; | 38 | class MLogWindow; |
39 | class GPS; | 39 | class GPS; |
40 | 40 | ||
41 | class Wellenreiter : public WellenreiterBase { | 41 | class Wellenreiter : public WellenreiterBase { |
42 | Q_OBJECT | 42 | Q_OBJECT |
43 | 43 | ||
44 | public: | 44 | public: |
45 | Wellenreiter( QWidget* parent = 0 ); | 45 | Wellenreiter( QWidget* parent = 0 ); |
46 | ~Wellenreiter(); | 46 | ~Wellenreiter(); |
47 | 47 | ||
48 | void setConfigWindow( WellenreiterConfigWindow* cw ); | 48 | void setConfigWindow( WellenreiterConfigWindow* cw ); |
49 | MScanListView* netView() const { return netview; }; | 49 | MScanListView* netView() const { return netview; }; |
50 | MLogWindow* logWindow() const { return logwindow; }; | 50 | MLogWindow* logWindow() const { return logwindow; }; |
51 | PacketView* hexWindow() const { return hexwindow; }; | 51 | PacketView* hexWindow() const { return hexwindow; }; |