summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/wellenreiter.h
authormickeyl <mickeyl>2004-01-06 20:23:34 (UTC)
committer mickeyl <mickeyl>2004-01-06 20:23:34 (UTC)
commita513de3ae1549428595db1b6c70e4203b0a3dedd (patch) (unidiff)
treebc6838aad156f2cb499ce69d1703d4c33839cfba /noncore/net/wellenreiter/gui/wellenreiter.h
parent543c349726a63798491e85cf0dda89e79c6183d1 (diff)
downloadopie-a513de3ae1549428595db1b6c70e4203b0a3dedd.zip
opie-a513de3ae1549428595db1b6c70e4203b0a3dedd.tar.gz
opie-a513de3ae1549428595db1b6c70e4203b0a3dedd.tar.bz2
display stations sending control frames
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h
index 58dd1fd..5414fda 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.h
+++ b/noncore/net/wellenreiter/gui/wellenreiter.h
@@ -6,96 +6,98 @@
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 WELLENREITER_H 16#ifndef WELLENREITER_H
17#define WELLENREITER_H 17#define WELLENREITER_H
18 18
19#include "wellenreiterbase.h" 19#include "wellenreiterbase.h"
20 20
21#ifdef QWS 21#ifdef QWS
22#include <opie/odevice.h> 22#include <opie/odevice.h>
23using namespace Opie; 23using namespace Opie;
24#endif 24#endif
25 25
26class QTimerEvent; 26class QTimerEvent;
27class QPixmap; 27class QPixmap;
28class OPacket; 28class OPacket;
29class OWaveLanManagementPacket; 29class OWaveLanManagementPacket;
30class OWaveLanControlPacket;
30class OWaveLanDataPacket; 31class OWaveLanDataPacket;
31class OEthernetPacket; 32class OEthernetPacket;
32class OARPPacket; 33class OARPPacket;
33class OMacAddress; 34class OMacAddress;
34class OIPPacket; 35class OIPPacket;
35class OPacketCapturer; 36class OPacketCapturer;
36class OWirelessNetworkInterface; 37class OWirelessNetworkInterface;
37class WellenreiterConfigWindow; 38class WellenreiterConfigWindow;
38class MLogWindow; 39class MLogWindow;
39class MHexWindow; 40class MHexWindow;
40class GPS; 41class GPS;
41 42
42class Wellenreiter : public WellenreiterBase { 43class Wellenreiter : public WellenreiterBase {
43 Q_OBJECT 44 Q_OBJECT
44 45
45 public: 46 public:
46 Wellenreiter( QWidget* parent = 0 ); 47 Wellenreiter( QWidget* parent = 0 );
47 ~Wellenreiter(); 48 ~Wellenreiter();
48 49
49 void setConfigWindow( WellenreiterConfigWindow* cw ); 50 void setConfigWindow( WellenreiterConfigWindow* cw );
50 MScanListView* netView() const { return netview; }; 51 MScanListView* netView() const { return netview; };
51 MLogWindow* logWindow() const { return logwindow; }; 52 MLogWindow* logWindow() const { return logwindow; };
52 MHexWindow* hexWindow() const { return hexwindow; }; 53 MHexWindow* hexWindow() const { return hexwindow; };
53 bool isDaemonRunning() const { return sniffing; }; 54 bool isDaemonRunning() const { return sniffing; };
54 QString captureFileName() const { return dumpname; }; 55 QString captureFileName() const { return dumpname; };
55 56
56 public: 57 public:
57 bool sniffing; 58 bool sniffing;
58 59
59 protected: 60 protected:
60 virtual void timerEvent( QTimerEvent* ); 61 virtual void timerEvent( QTimerEvent* );
61 62
62 public slots: 63 public slots:
63 void initialTimer(); 64 void initialTimer();
64 65
65 void channelHopped(int); 66 void channelHopped(int);
66 void receivePacket(OPacket*); 67 void receivePacket(OPacket*);
67 void startClicked(); 68 void startClicked();
68 void stopClicked(); 69 void stopClicked();
69 70
70 void joinNetwork(const QString&,const QString&,int,const QString&); 71 void joinNetwork(const QString&,const QString&,int,const QString&);
71 72
72 signals: 73 signals:
73 void startedSniffing(); 74 void startedSniffing();
74 void stoppedSniffing(); 75 void stoppedSniffing();
75 76
76 private: 77 private:
77 void handleBeacon( OPacket* p, OWaveLanManagementPacket* beacon ); 78 void handleManagementFrame( OPacket* p, OWaveLanManagementPacket* manage );
79 void handleControlFrame( OPacket* p, OWaveLanControlPacket* control );
78 void handleWlanData( OPacket* p, OWaveLanDataPacket* data, OMacAddress& from, OMacAddress& to ); 80 void handleWlanData( OPacket* p, OWaveLanDataPacket* data, OMacAddress& from, OMacAddress& to );
79 void handleEthernetData( OPacket* p, OEthernetPacket* data, OMacAddress& from, OMacAddress& to ); 81 void handleEthernetData( OPacket* p, OEthernetPacket* data, OMacAddress& from, OMacAddress& to );
80 void handleARPData( OPacket* p, OARPPacket* arp, OMacAddress& from, OMacAddress& to ); 82 void handleARPData( OPacket* p, OARPPacket* arp, OMacAddress& from, OMacAddress& to );
81 void handleIPData( OPacket* p, OIPPacket* ip, OMacAddress& from, OMacAddress& to ); 83 void handleIPData( OPacket* p, OIPPacket* ip, OMacAddress& from, OMacAddress& to );
82 void handleNotification( OPacket* p ); 84 void handleNotification( OPacket* p );
83 void doAction( const QString& action, const QString& protocol, OPacket* p ); 85 void doAction( const QString& action, const QString& protocol, OPacket* p );
84 QObject* childIfToParse( OPacket* p, const QString& protocol ); 86 QObject* childIfToParse( OPacket* p, const QString& protocol );
85 bool checkDumpPacket( OPacket* p ); 87 bool checkDumpPacket( OPacket* p );
86 88
87 private: 89 private:
88 #ifdef QWS 90 #ifdef QWS
89 OSystem _system; // Opie Operating System identifier 91 OSystem _system; // Opie Operating System identifier
90 #endif 92 #endif
91 93
92 QString dumpname; 94 QString dumpname;
93 OWirelessNetworkInterface* iface; 95 OWirelessNetworkInterface* iface;
94 OPacketCapturer* pcap; 96 OPacketCapturer* pcap;
95 WellenreiterConfigWindow* configwindow; 97 WellenreiterConfigWindow* configwindow;
96 GPS* gps; 98 GPS* gps;
97 99
98 //void readConfig(); 100 //void readConfig();
99 //void writeConfig(); 101 //void writeConfig();
100}; 102};
101 103