author | mickeyl <mickeyl> | 2003-03-30 01:51:14 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-03-30 01:51:14 (UTC) |
commit | d11a0154e2d9732854c9a3d598857bc20f359849 (patch) (unidiff) | |
tree | af0e0273d01f4f6c64c9f230f22bb91a7a8a21d8 /noncore/net/wellenreiter/gui/wellenreiter.h | |
parent | 99899abc80a8aa05044eeecd8a061b0a8efaa713 (diff) | |
download | opie-d11a0154e2d9732854c9a3d598857bc20f359849.zip opie-d11a0154e2d9732854c9a3d598857bc20f359849.tar.gz opie-d11a0154e2d9732854c9a3d598857bc20f359849.tar.bz2 |
- the network work for libopie2 pays off...
- good bye to wellenreiterd, t'was fun but always too unstable and too hard to maintain
- good bye to libwellenreiter
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.h | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h index ee9dca9..3ec4021 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.h +++ b/noncore/net/wellenreiter/gui/wellenreiter.h | |||
@@ -20,29 +20,17 @@ | |||
20 | 20 | ||
21 | #ifdef QWS | 21 | #ifdef QWS |
22 | #include <opie/odevice.h> | 22 | #include <opie/odevice.h> |
23 | using namespace Opie; | 23 | using namespace Opie; |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | // ugly... not here! | ||
27 | |||
28 | #include <assert.h> | ||
29 | #include <errno.h> | ||
30 | #include <unistd.h> | ||
31 | #include <string.h> | ||
32 | #include <sys/types.h> | ||
33 | #include <sys/socket.h> | ||
34 | #include <stdlib.h> | ||
35 | #include <fcntl.h> | ||
36 | #include <daemon/source/config.hh> | ||
37 | #include <libwellenreiter/source/wl_types.hh> | ||
38 | #include <libwellenreiter/source/wl_sock.hh> | ||
39 | #include <libwellenreiter/source/wl_proto.hh> | ||
40 | |||
41 | class QTimerEvent; | 26 | class QTimerEvent; |
42 | class QPixmap; | 27 | class QPixmap; |
28 | class OPacket; | ||
29 | class OPacketCapturer; | ||
30 | class OWirelessNetworkInterface; | ||
43 | class ManufacturerDB; | 31 | class ManufacturerDB; |
44 | class WellenreiterConfigWindow; | 32 | class WellenreiterConfigWindow; |
45 | 33 | ||
46 | class Wellenreiter : public WellenreiterBase { | 34 | class Wellenreiter : public WellenreiterBase { |
47 | Q_OBJECT | 35 | Q_OBJECT |
48 | 36 | ||
@@ -50,31 +38,28 @@ class Wellenreiter : public WellenreiterBase { | |||
50 | Wellenreiter( QWidget* parent = 0 ); | 38 | Wellenreiter( QWidget* parent = 0 ); |
51 | ~Wellenreiter(); | 39 | ~Wellenreiter(); |
52 | 40 | ||
53 | void setConfigWindow( WellenreiterConfigWindow* cw ); | 41 | void setConfigWindow( WellenreiterConfigWindow* cw ); |
54 | MScanListView* netView() const { return netview; }; | 42 | MScanListView* netView() const { return netview; }; |
55 | MLogWindow* logWindow() const { return logwindow; }; | 43 | MLogWindow* logWindow() const { return logwindow; }; |
56 | bool isDaemonRunning() const { return daemonRunning; }; | 44 | bool isDaemonRunning() const { return sniffing; }; |
57 | |||
58 | protected: | ||
59 | bool daemonRunning; | ||
60 | 45 | ||
61 | public slots: | 46 | public slots: |
62 | void dataReceived(); | 47 | void receivePacket(OPacket*); |
63 | void startStopClicked(); | 48 | void startStopClicked(); |
64 | 49 | ||
65 | private: | 50 | private: |
66 | int daemon_fd; // socket filedescriptor for udp communication socket | ||
67 | #ifdef QWS | 51 | #ifdef QWS |
68 | OSystem _system; // Opie Operating System identifier | 52 | OSystem _system; // Opie Operating System identifier |
69 | #endif | 53 | #endif |
70 | void handleMessage(); | ||
71 | 54 | ||
55 | bool sniffing; | ||
56 | OWirelessNetworkInterface* iface; | ||
57 | OPacketCapturer* pcap; | ||
72 | ManufacturerDB* manufacturerdb; | 58 | ManufacturerDB* manufacturerdb; |
73 | WellenreiterConfigWindow* configwindow; | 59 | WellenreiterConfigWindow* configwindow; |
74 | struct sockaddr_in sockaddr; | ||
75 | 60 | ||
76 | //void readConfig(); | 61 | //void readConfig(); |
77 | //void writeConfig(); | 62 | //void writeConfig(); |
78 | }; | 63 | }; |
79 | 64 | ||
80 | 65 | ||