summaryrefslogtreecommitdiff
path: root/libopie2/opienet/onetwork.h
Unidiff
Diffstat (limited to 'libopie2/opienet/onetwork.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opienet/onetwork.h7
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
@@ -139,21 +139,24 @@ class ONetworkInterface
139 139
140class OChannelHopper : public QObject 140class OChannelHopper : public QObject
141{ 141{
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;
148 150
149 private: 151 private:
150 OWirelessNetworkInterface* _iface; 152 OWirelessNetworkInterface* _iface;
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
157/*====================================================================================== 160/*======================================================================================
158 * OWirelessNetworkInterface 161 * OWirelessNetworkInterface
159 *======================================================================================*/ 162 *======================================================================================*/
@@ -181,13 +184,13 @@ class OWirelessNetworkInterface : public ONetworkInterface
181 virtual void setMode( Mode ) {}; 184 virtual void setMode( Mode ) {};
182 virtual bool mode() const {}; 185 virtual bool mode() const {};
183 186
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& ) {};
191 virtual QString nickName() const; 194 virtual QString nickName() const;
192 195
193 virtual bool isAssociated() const {}; 196 virtual bool isAssociated() const {};
@@ -204,13 +207,13 @@ class OWirelessNetworkInterface : public ONetworkInterface
204 virtual void init(); 207 virtual void init();
205 iwreqstruct& iwr() const; 208 iwreqstruct& iwr() const;
206 bool wioctl( int call ) const; 209 bool wioctl( int call ) const;
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
214/*====================================================================================== 217/*======================================================================================
215 * OMonitoringInterface 218 * OMonitoringInterface
216 *======================================================================================*/ 219 *======================================================================================*/