-rw-r--r-- | libopie2/opienet/onetwork.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index c544454..b57ac3f 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h | |||
@@ -27,24 +27,25 @@ | |||
27 | -- :-=` this library; see the file COPYING.LIB. | 27 | -- :-=` this library; see the file COPYING.LIB. |
28 | If not, write to the Free Software Foundation, | 28 | If not, write to the Free Software Foundation, |
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | 31 | ||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #ifndef ONETWORK_H | 34 | #ifndef ONETWORK_H |
35 | #define ONETWORK_H | 35 | #define ONETWORK_H |
36 | 36 | ||
37 | /* QT */ | 37 | /* QT */ |
38 | 38 | ||
39 | #include <qvaluelist.h> | ||
39 | #include <qdict.h> | 40 | #include <qdict.h> |
40 | #include <qmap.h> | 41 | #include <qmap.h> |
41 | #include <qobject.h> | 42 | #include <qobject.h> |
42 | #include <qhostaddress.h> | 43 | #include <qhostaddress.h> |
43 | 44 | ||
44 | /* OPIE */ | 45 | /* OPIE */ |
45 | 46 | ||
46 | #include <opie2/onetutils.h> | 47 | #include <opie2/onetutils.h> |
47 | 48 | ||
48 | #ifndef IFNAMSIZ | 49 | #ifndef IFNAMSIZ |
49 | #define IFNAMSIZ 16 | 50 | #define IFNAMSIZ 16 |
50 | #endif | 51 | #endif |
@@ -153,27 +154,28 @@ class OChannelHopper : public QObject | |||
153 | public: | 154 | public: |
154 | OChannelHopper( OWirelessNetworkInterface* ); | 155 | OChannelHopper( OWirelessNetworkInterface* ); |
155 | virtual ~OChannelHopper(); | 156 | virtual ~OChannelHopper(); |
156 | bool isActive() const; | 157 | bool isActive() const; |
157 | int channel() const; | 158 | int channel() const; |
158 | virtual void timerEvent( QTimerEvent* ); | 159 | virtual void timerEvent( QTimerEvent* ); |
159 | void setInterval( int ); | 160 | void setInterval( int ); |
160 | int interval() const; | 161 | int interval() const; |
161 | 162 | ||
162 | private: | 163 | private: |
163 | OWirelessNetworkInterface* _iface; | 164 | OWirelessNetworkInterface* _iface; |
164 | int _interval; | 165 | int _interval; |
165 | int _channel; | ||
166 | int _tid; | 166 | int _tid; |
167 | int _maxChannel; | 167 | QValueList<int> _channels; |
168 | QValueList<int>::Iterator _channel; | ||
169 | |||
168 | }; | 170 | }; |
169 | 171 | ||
170 | 172 | ||
171 | /*====================================================================================== | 173 | /*====================================================================================== |
172 | * OWirelessNetworkInterface | 174 | * OWirelessNetworkInterface |
173 | *======================================================================================*/ | 175 | *======================================================================================*/ |
174 | 176 | ||
175 | class OWirelessNetworkInterface : public ONetworkInterface | 177 | class OWirelessNetworkInterface : public ONetworkInterface |
176 | { | 178 | { |
177 | friend class OMonitoringInterface; | 179 | friend class OMonitoringInterface; |
178 | friend class OCiscoMonitoringInterface; | 180 | friend class OCiscoMonitoringInterface; |
179 | friend class OWlanNGMonitoringInterface; | 181 | friend class OWlanNGMonitoringInterface; |