-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 public: OChannelHopper( OWirelessNetworkInterface* ); virtual ~OChannelHopper(); + bool isActive() const; + int channel() const; virtual void timerEvent( QTimerEvent* ); void setInterval( int ); int interval() const; @@ -151,6 +153,7 @@ class OChannelHopper : public QObject int _interval; int _channel; int _tid; + int _maxChannel; }; @@ -184,7 +187,7 @@ class OWirelessNetworkInterface : public ONetworkInterface virtual void setMonitorMode( bool ); virtual bool monitorMode() const; - virtual void setChannelHopping( int interval ); + virtual void setChannelHopping( int interval = 0 ); virtual int channelHopping() const; virtual void setNickName( const QString& ) {}; @@ -207,7 +210,7 @@ class OWirelessNetworkInterface : public ONetworkInterface bool wioctl( int call, iwreqstruct& ) const; private: - OChannelHopper _hopper; + OChannelHopper* _hopper; }; |