Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h index a55d6a1..61960d2 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.h +++ b/noncore/net/wellenreiter/gui/wellenreiter.h | |||
@@ -6,74 +6,75 @@ | |||
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> |
23 | using namespace Opie; | 23 | using namespace Opie; |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | // ugly... not here! | 26 | // ugly... not here! |
27 | 27 | ||
28 | #include <assert.h> | 28 | #include <assert.h> |
29 | #include <errno.h> | 29 | #include <errno.h> |
30 | #include <unistd.h> | 30 | #include <unistd.h> |
31 | #include <string.h> | 31 | #include <string.h> |
32 | #include <sys/types.h> | 32 | #include <sys/types.h> |
33 | #include <sys/socket.h> | 33 | #include <sys/socket.h> |
34 | #include <stdlib.h> | 34 | #include <stdlib.h> |
35 | #include <fcntl.h> | 35 | #include <fcntl.h> |
36 | #include <daemon/source/config.hh> | 36 | #include <daemon/source/config.hh> |
37 | #include <libwellenreiter/source/wl_types.hh> | 37 | #include <libwellenreiter/source/wl_types.hh> |
38 | #include <libwellenreiter/source/wl_sock.hh> | 38 | #include <libwellenreiter/source/wl_sock.hh> |
39 | #include <libwellenreiter/source/wl_proto.hh> | 39 | #include <libwellenreiter/source/wl_proto.hh> |
40 | 40 | ||
41 | class QTimerEvent; | 41 | class QTimerEvent; |
42 | class QPixmap; | 42 | class QPixmap; |
43 | class ManufacturerDB; | 43 | class ManufacturerDB; |
44 | class WellenreiterConfigWindow; | 44 | class WellenreiterConfigWindow; |
45 | 45 | ||
46 | class Wellenreiter : public WellenreiterBase { | 46 | class Wellenreiter : public WellenreiterBase { |
47 | Q_OBJECT | 47 | Q_OBJECT |
48 | 48 | ||
49 | public: | 49 | public: |
50 | Wellenreiter( QWidget* parent = 0 ); | 50 | Wellenreiter( QWidget* parent = 0 ); |
51 | ~Wellenreiter(); | 51 | ~Wellenreiter(); |
52 | 52 | ||
53 | void setConfigWindow( WellenreiterConfigWindow* cw ); | 53 | void setConfigWindow( WellenreiterConfigWindow* cw ); |
54 | MScanListView* netView() const { return netview; }; | ||
54 | 55 | ||
55 | protected: | 56 | protected: |
56 | bool daemonRunning; | 57 | bool daemonRunning; |
57 | 58 | ||
58 | public slots: | 59 | public slots: |
59 | void dataReceived(); | 60 | void dataReceived(); |
60 | void startStopClicked(); | 61 | void startStopClicked(); |
61 | 62 | ||
62 | private: | 63 | private: |
63 | int daemon_fd; // socket filedescriptor for udp communication socket | 64 | int daemon_fd; // socket filedescriptor for udp communication socket |
64 | #ifdef QWS | 65 | #ifdef QWS |
65 | OSystem _system; // Opie Operating System identifier | 66 | OSystem _system; // Opie Operating System identifier |
66 | #endif | 67 | #endif |
67 | void handleMessage(); | 68 | void handleMessage(); |
68 | 69 | ||
69 | ManufacturerDB* manufacturerdb; | 70 | ManufacturerDB* manufacturerdb; |
70 | WellenreiterConfigWindow* configwindow; | 71 | WellenreiterConfigWindow* configwindow; |
71 | struct sockaddr_in sockaddr; | 72 | struct sockaddr_in sockaddr; |
72 | 73 | ||
73 | //void readConfig(); | 74 | //void readConfig(); |
74 | //void writeConfig(); | 75 | //void writeConfig(); |
75 | }; | 76 | }; |
76 | 77 | ||
77 | 78 | ||
78 | 79 | ||
79 | #endif | 80 | #endif |