-rw-r--r-- | libopie2/opienet/onetwork.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index 93b129f..a953296 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h @@ -53,12 +53,15 @@ #include <qvaluelist.h> #include <qdict.h> #include <qmap.h> #include <qobject.h> #include <qhostaddress.h> +namespace Opie { +namespace Net { + class ONetworkInterface; class OWirelessNetworkInterface; class OChannelHopper; class OMonitoringInterface; /*====================================================================================== @@ -120,12 +123,14 @@ class ONetwork : public QObject protected: ONetwork(); private: static ONetwork* _instance; InterfaceMap _interfaces; + class Private; + Private *d; }; /*====================================================================================== * ONetworkInterface *======================================================================================*/ @@ -231,12 +236,15 @@ class ONetworkInterface : public QObject protected: struct ifreq& ifr() const; virtual void init(); bool ioctl( int call ) const; bool ioctl( int call, struct ifreq& ) const; + private: + class Private; + Private *d; }; /*====================================================================================== * OChannelHopper *======================================================================================*/ @@ -293,12 +301,14 @@ class OChannelHopper : public QObject private: OWirelessNetworkInterface* _iface; int _interval; int _tid; QValueList<int> _channels; QValueList<int>::Iterator _channel; + class Private; + Private *d; }; /*====================================================================================== * OWirelessNetworkInterface *======================================================================================*/ @@ -452,12 +462,14 @@ class OWirelessNetworkInterface : public ONetworkInterface mutable struct iwreq _iwr; QMap<int,int> _channels; struct iw_range _range; private: OChannelHopper* _hopper; + class Private; + Private *d; }; /*====================================================================================== * OMonitoringInterface *======================================================================================*/ @@ -476,12 +488,15 @@ class OMonitoringInterface virtual QString name() const = 0; protected: OWirelessNetworkInterface* _if; bool _prismHeader; + private: + class Private; + Private *d; }; /*====================================================================================== * OCiscoMonitoring @@ -494,12 +509,15 @@ class OCiscoMonitoringInterface : public OMonitoringInterface OCiscoMonitoringInterface( ONetworkInterface*, bool _prismHeader ); virtual ~OCiscoMonitoringInterface(); virtual void setEnabled( bool ); virtual QString name() const; virtual void setChannel( int ); + private: + class Private; + Private *d; }; /*====================================================================================== * OWlanNGMonitoringInterface @@ -513,12 +531,15 @@ class OWlanNGMonitoringInterface : public OMonitoringInterface virtual ~OWlanNGMonitoringInterface(); public: virtual void setEnabled( bool ); virtual QString name() const; virtual void setChannel( int ); + private: + class Private; + Private *d; }; /*====================================================================================== * OHostAPMonitoringInterface @@ -531,12 +552,16 @@ class OHostAPMonitoringInterface : public OMonitoringInterface OHostAPMonitoringInterface( ONetworkInterface*, bool _prismHeader ); virtual ~OHostAPMonitoringInterface(); public: virtual void setEnabled( bool ); virtual QString name() const; + + private: + class Private; + Private *d; }; /*====================================================================================== * OOrinocoMonitoringInterface *======================================================================================*/ @@ -550,10 +575,16 @@ class OOrinocoMonitoringInterface : public OMonitoringInterface public: virtual void setChannel( int ); virtual void setEnabled( bool ); virtual QString name() const; + private: + class Private; + Private *d; }; +} +} + #endif // ONETWORK_H |