-rw-r--r-- | libopie2/opienet/onetwork.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index 9a68a74..936ac85 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h | |||
@@ -142,6 +142,8 @@ class OChannelHopper : public QObject | |||
142 | public: | 142 | public: |
143 | OChannelHopper( OWirelessNetworkInterface* ); | 143 | OChannelHopper( OWirelessNetworkInterface* ); |
144 | virtual ~OChannelHopper(); | 144 | virtual ~OChannelHopper(); |
145 | bool isActive() const; | ||
146 | int channel() const; | ||
145 | virtual void timerEvent( QTimerEvent* ); | 147 | virtual void timerEvent( QTimerEvent* ); |
146 | void setInterval( int ); | 148 | void setInterval( int ); |
147 | int interval() const; | 149 | int interval() const; |
@@ -151,6 +153,7 @@ class OChannelHopper : public QObject | |||
151 | int _interval; | 153 | int _interval; |
152 | int _channel; | 154 | int _channel; |
153 | int _tid; | 155 | int _tid; |
156 | int _maxChannel; | ||
154 | }; | 157 | }; |
155 | 158 | ||
156 | 159 | ||
@@ -184,7 +187,7 @@ class OWirelessNetworkInterface : public ONetworkInterface | |||
184 | virtual void setMonitorMode( bool ); | 187 | virtual void setMonitorMode( bool ); |
185 | virtual bool monitorMode() const; | 188 | virtual bool monitorMode() const; |
186 | 189 | ||
187 | virtual void setChannelHopping( int interval ); | 190 | virtual void setChannelHopping( int interval = 0 ); |
188 | virtual int channelHopping() const; | 191 | virtual int channelHopping() const; |
189 | 192 | ||
190 | virtual void setNickName( const QString& ) {}; | 193 | virtual void setNickName( const QString& ) {}; |
@@ -207,7 +210,7 @@ class OWirelessNetworkInterface : public ONetworkInterface | |||
207 | bool wioctl( int call, iwreqstruct& ) const; | 210 | bool wioctl( int call, iwreqstruct& ) const; |
208 | 211 | ||
209 | private: | 212 | private: |
210 | OChannelHopper _hopper; | 213 | OChannelHopper* _hopper; |
211 | }; | 214 | }; |
212 | 215 | ||
213 | 216 | ||