author | mickeyl <mickeyl> | 2003-04-09 10:36:30 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-09 10:36:30 (UTC) |
commit | 5cb59a3e8abdbb05fe4bbc9e549f264153168232 (patch) (side-by-side diff) | |
tree | b19a1c6e59b3c75224447409a3cf1eab16626939 | |
parent | 16c67ebbe538493fd330f56b0db30343efe6f0ae (diff) | |
download | opie-5cb59a3e8abdbb05fe4bbc9e549f264153168232.zip opie-5cb59a3e8abdbb05fe4bbc9e549f264153168232.tar.gz opie-5cb59a3e8abdbb05fe4bbc9e549f264153168232.tar.bz2 |
add signal hopped(int) to OChannelHopper
-rw-r--r-- | libopie2/opienet/onetwork.cpp | 7 | ||||
-rw-r--r-- | libopie2/opienet/onetwork.h | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/libopie2/opienet/onetwork.cpp b/libopie2/opienet/onetwork.cpp index e916c44..73b543b 100644 --- a/libopie2/opienet/onetwork.cpp +++ b/libopie2/opienet/onetwork.cpp @@ -351,2 +351,3 @@ void OChannelHopper::timerEvent( QTimerEvent* ) _iface->setChannel( *_channel ); + emit( hopped( *_channel ) ); qDebug( "OChannelHopper::timerEvent(): set channel %d on interface '%s'", @@ -595,2 +596,8 @@ int OWirelessNetworkInterface::channelHopping() const +OChannelHopper* OWirelessNetworkInterface::channelHopper() const +{ + return _hopper; +} + + void OWirelessNetworkInterface::setMonitorMode( bool b ) diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index 10f52b8..d2cc25d 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h @@ -229,2 +229,4 @@ class OChannelHopper : public QObject { + Q_OBJECT + public: @@ -238,2 +240,5 @@ class OChannelHopper : public QObject + signals: + void hopped( int ); + private: @@ -327,2 +332,6 @@ class OWirelessNetworkInterface : public ONetworkInterface /** + * @returns the @ref OChannelHopper of this interface or 0, if channel hopping has not been activated before + */ + virtual OChannelHopper* channelHopper() const; + /** * Set the station @a nickname. |