summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter
authorzecke <zecke>2004-03-14 13:22:42 (UTC)
committer zecke <zecke>2004-03-14 13:22:42 (UTC)
commit0f7217afa7cdcb108dd2afba0ff6b42c97ab6f44 (patch) (side-by-side diff)
treef6a68afa76a9be4099c3de7a286caeadd250c966 /noncore/net/wellenreiter
parentd9d68663164078b8dbdbfe70d291291b9fd5aacf (diff)
downloadopie-0f7217afa7cdcb108dd2afba0ff6b42c97ab6f44.zip
opie-0f7217afa7cdcb108dd2afba0ff6b42c97ab6f44.tar.gz
opie-0f7217afa7cdcb108dd2afba0ff6b42c97ab6f44.tar.bz2
Convert net to ODP and QtAUX
Diffstat (limited to 'noncore/net/wellenreiter') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configwindow.cpp6
-rw-r--r--noncore/net/wellenreiter/gui/main.cpp3
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp5
-rw-r--r--noncore/net/wellenreiter/gui/packetview.cpp3
-rw-r--r--noncore/net/wellenreiter/gui/packetview.h6
-rw-r--r--noncore/net/wellenreiter/gui/scanlist.cpp6
-rw-r--r--noncore/net/wellenreiter/gui/scanlist.h26
-rw-r--r--noncore/net/wellenreiter/gui/statwindow.cpp3
-rw-r--r--noncore/net/wellenreiter/gui/statwindow.h4
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp10
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.h56
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiterbase.cpp3
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiterbase.h2
13 files changed, 84 insertions, 49 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp
index 95b03d0..da39113 100644
--- a/noncore/net/wellenreiter/gui/configwindow.cpp
+++ b/noncore/net/wellenreiter/gui/configwindow.cpp
@@ -45,2 +45,8 @@ using namespace Opie;
+using namespace Opie::Core;
+using namespace Opie::Net;
+using namespace Opie::Core;
+using namespace Opie::Net;
+using namespace Opie::Core;
+using namespace Opie::Net;
WellenreiterConfigWindow* WellenreiterConfigWindow::_instance = 0;
diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp
index 7dcc583..6bbc39b 100644
--- a/noncore/net/wellenreiter/gui/main.cpp
+++ b/noncore/net/wellenreiter/gui/main.cpp
@@ -31,2 +31,5 @@
+using namespace Opie::Core;
+using namespace Opie::Core;
+using namespace Opie::Core;
int main( int argc, char **argv )
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp
index 5cc0daf..7add6cd 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.cpp
+++ b/noncore/net/wellenreiter/gui/mainwindow.cpp
@@ -53,2 +53,7 @@ using namespace Opie;
+using namespace Opie::Ui;
+using namespace Opie::Net;
+using namespace Opie::Ui;
+using namespace Opie::Net;
+using namespace Opie::Net;
WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * name, WFlags f )
diff --git a/noncore/net/wellenreiter/gui/packetview.cpp b/noncore/net/wellenreiter/gui/packetview.cpp
index ef5d020..8312e71 100644
--- a/noncore/net/wellenreiter/gui/packetview.cpp
+++ b/noncore/net/wellenreiter/gui/packetview.cpp
@@ -27,2 +27,5 @@
+using namespace Opie::Net;
+using namespace Opie::Net;
+using namespace Opie::Net;
PacketView::PacketView( QWidget * parent, const char * name, WFlags f )
diff --git a/noncore/net/wellenreiter/gui/packetview.h b/noncore/net/wellenreiter/gui/packetview.h
index b5f2b26..1ac19bb 100644
--- a/noncore/net/wellenreiter/gui/packetview.h
+++ b/noncore/net/wellenreiter/gui/packetview.h
@@ -25,3 +25,3 @@ class QLabel;
class QTextView;
-class OPacket;
+namespace Opie {namespace Net {class Opie::Net::OPacket;}}
@@ -33,3 +33,3 @@ class PacketView: public QFrame
- void add( OPacket* p );
+ void add( Opie::Net::OPacket* p );
const QString getLog() const;
@@ -43,3 +43,3 @@ class PacketView: public QFrame
QTextView* _hex;
- QList<OPacket> _packets;
+ QList<Opie::Net::OPacket> _packets;
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp
index 6005818..3b7120a 100644
--- a/noncore/net/wellenreiter/gui/scanlist.cpp
+++ b/noncore/net/wellenreiter/gui/scanlist.cpp
@@ -48,2 +48,8 @@ const int col_location = 10;
+using namespace Opie::Net;
+using namespace Opie::Ui;
+using namespace Opie::Net;
+using namespace Opie::Ui;
+using namespace Opie::Ui;
+using namespace Opie::Net;
MScanListView::MScanListView( QWidget* parent, const char* name )
diff --git a/noncore/net/wellenreiter/gui/scanlist.h b/noncore/net/wellenreiter/gui/scanlist.h
index ab870c2..6a80f70 100644
--- a/noncore/net/wellenreiter/gui/scanlist.h
+++ b/noncore/net/wellenreiter/gui/scanlist.h
@@ -30,3 +30,3 @@ class MScanListItem;
-class MScanListView: public OListView
+class MScanListView: public Opie::Ui::OListView
{
@@ -38,3 +38,3 @@ class MScanListView: public OListView
- virtual OListViewItem* childFactory();
+ virtual Opie::Ui::OListViewItem* childFactory();
virtual void serializeTo( QDataStream& s ) const;
@@ -43,11 +43,11 @@ class MScanListView: public OListView
public slots:
- void addNewItem( const QString& type, const QString&, const OMacAddress&, bool, int, int, const GpsLocation&, bool = false );
- void addService( const QString& name, const OMacAddress& macaddr, const QString& ip );
+ void addNewItem( const QString& type, const QString&, const Opie::Net::OMacAddress&, bool, int, int, const GpsLocation&, bool = false );
+ void addService( const QString& name, const Opie::Net::OMacAddress& macaddr, const QString& ip );
- void fromDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
- void toDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
- void WDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& viaFrom, const OMacAddress& viaTo );
- void IBSStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
+ void fromDStraffic( const Opie::Net::OMacAddress& from, const Opie::Net::OMacAddress& to, const Opie::Net::OMacAddress& via );
+ void toDStraffic( const Opie::Net::OMacAddress& from, const Opie::Net::OMacAddress& to, const Opie::Net::OMacAddress& via );
+ void WDStraffic( const Opie::Net::OMacAddress& from, const Opie::Net::OMacAddress& to, const Opie::Net::OMacAddress& viaFrom, const Opie::Net::OMacAddress& viaTo );
+ void IBSStraffic( const Opie::Net::OMacAddress& from, const Opie::Net::OMacAddress& to, const Opie::Net::OMacAddress& via );
- void identify( const OMacAddress&, const QString& ipaddr );
+ void identify( const Opie::Net::OMacAddress&, const QString& ipaddr );
@@ -60,3 +60,3 @@ class MScanListView: public OListView
protected:
- void addIfNotExisting( MScanListItem* parent, const OMacAddress& addr, const QString& type = "station" );
+ void addIfNotExisting( MScanListItem* parent, const Opie::Net::OMacAddress& addr, const QString& type = "station" );
@@ -66,3 +66,3 @@ class MScanListView: public OListView
-class MScanListItem: public OListViewItem
+class MScanListItem: public Opie::Ui::OListViewItem
{
@@ -108,3 +108,3 @@ class MScanListItem: public OListViewItem
- virtual OListViewItem* childFactory();
+ virtual Opie::Ui::OListViewItem* childFactory();
virtual void serializeTo( QDataStream& s ) const;
@@ -127,3 +127,3 @@ class MScanListItem: public OListViewItem
-class MScanListViewFactory : public OListViewFactory
+class MScanListViewFactory : public Opie::Ui::OListViewFactory
{
diff --git a/noncore/net/wellenreiter/gui/statwindow.cpp b/noncore/net/wellenreiter/gui/statwindow.cpp
index 48e4847..e3c6bbe 100644
--- a/noncore/net/wellenreiter/gui/statwindow.cpp
+++ b/noncore/net/wellenreiter/gui/statwindow.cpp
@@ -18,2 +18,5 @@
+using namespace Opie::Ui;
+using namespace Opie::Ui;
+using namespace Opie::Ui;
MStatWindow::MStatWindow( QWidget * parent, const char * name, WFlags f )
diff --git a/noncore/net/wellenreiter/gui/statwindow.h b/noncore/net/wellenreiter/gui/statwindow.h
index b9057e7..e11247b 100644
--- a/noncore/net/wellenreiter/gui/statwindow.h
+++ b/noncore/net/wellenreiter/gui/statwindow.h
@@ -21,3 +21,3 @@
class QString;
-class OListView;
+namespace Opie {namespace Ui {class Opie::Ui::OListView;}}
@@ -37,3 +37,3 @@ class MStatWindow: public QVBox
protected:
- OListView* table;
+ Opie::Ui::OListView* table;
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index ce416e5..e8d9de7 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -63,2 +63,8 @@ using namespace Opie;
+using namespace Opie::Core;
+using namespace Opie::Net;
+using namespace Opie::Net;
+using namespace Opie::Core;
+using namespace Opie::Net;
+using namespace Opie::Core;
Wellenreiter::Wellenreiter( QWidget* parent )
@@ -448,3 +454,3 @@ void Wellenreiter::stopClicked()
{
- disconnect( SIGNAL( receivedPacket(OPacket*) ), this, SLOT( receivePacket(OPacket*) ) );
+ disconnect( SIGNAL( receivedPacket(Opie::Net::OPacket*) ), this, SLOT( receivePacket(Opie::Net::OPacket*) ) );
disconnect( SIGNAL( hopped(int) ), this, SLOT( channelHopped(int) ) );
@@ -613,3 +619,3 @@ void Wellenreiter::startClicked()
// connect socket notifier and start channel hopper
- connect( pcap, SIGNAL( receivedPacket(OPacket*) ), this, SLOT( receivePacket(OPacket*) ) );
+ connect( pcap, SIGNAL( receivedPacket(Opie::Net::OPacket*) ), this, SLOT( receivePacket(Opie::Net::OPacket*) ) );
connect( iface->channelHopper(), SIGNAL( hopped(int) ), this, SLOT( channelHopped(int) ) );
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h
index d02813b..83299c9 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.h
+++ b/noncore/net/wellenreiter/gui/wellenreiter.h
@@ -20,3 +20,2 @@
#include <opie2/odevice.h>
-using namespace Opie;
#endif
@@ -25,12 +24,13 @@ class QTimerEvent;
class QPixmap;
-class OPacket;
-class OWaveLanManagementPacket;
-class OWaveLanControlPacket;
-class OWaveLanDataPacket;
-class OEthernetPacket;
-class OARPPacket;
-class OMacAddress;
-class OIPPacket;
-class OPacketCapturer;
-class OWirelessNetworkInterface;
+namespace Opie {namespace Net {class Opie::Net::OPacket;}}
+namespace Opie {namespace Net {class Opie::Net::OWaveLanManagementPacket;}}
+namespace Opie {namespace Net {class Opie::Net::OWaveLanControlPacket;}}
+namespace Opie {namespace Net {class Opie::Net::OWaveLanDataPacket;}}
+namespace Opie {namespace Net {class Opie::Net::OEthernetPacket;}}
+namespace Opie {namespace Net {class Opie::Net::OARPPacket;}}
+namespace Opie {namespace Net {class Opie::Net::OMacAddress;}}
+namespace Opie {namespace Net {class Opie::Net::OIPPacket;}}
+namespace Opie {namespace Net {class Opie::Net::OPacket;}}
+namespace Opie {namespace Net {class Opie::Net::OWirelessNetworkInterface;}}
+namespace Opie {namespace Net {class Opie::Net::OPacketCapturer;}}
class PacketView;
@@ -64,3 +64,3 @@ class Wellenreiter : public WellenreiterBase {
void channelHopped(int);
- void receivePacket(OPacket*);
+ void receivePacket(Opie::Net::OPacket*);
void startClicked();
@@ -75,15 +75,15 @@ class Wellenreiter : public WellenreiterBase {
private:
- void handleManagementFrame( OPacket* p, OWaveLanManagementPacket* );
- void handleManagementFrameBeacon( OPacket* p, OWaveLanManagementPacket* );
- void handleManagementFrameProbeRequest( OPacket* p, OWaveLanManagementPacket* );
- void handleManagementFrameProbeResponse( OPacket* p, OWaveLanManagementPacket* );
- void handleControlFrame( OPacket* p, OWaveLanControlPacket* control );
- void handleWlanData( OPacket* p, OWaveLanDataPacket* data, OMacAddress& from, OMacAddress& to );
- void handleEthernetData( OPacket* p, OEthernetPacket* data, OMacAddress& from, OMacAddress& to );
- void handleARPData( OPacket* p, OARPPacket* arp, OMacAddress& from, OMacAddress& to );
- void handleIPData( OPacket* p, OIPPacket* ip, OMacAddress& from, OMacAddress& to );
- void handleNotification( OPacket* p );
- void doAction( const QString& action, const QString& protocol, OPacket* p );
- QObject* childIfToParse( OPacket* p, const QString& protocol );
- bool checkDumpPacket( OPacket* p );
+ void handleManagementFrame( Opie::Net::OPacket* p, Opie::Net::OWaveLanManagementPacket* );
+ void handleManagementFrameBeacon( Opie::Net::OPacket* p, Opie::Net::OWaveLanManagementPacket* );
+ void handleManagementFrameProbeRequest( Opie::Net::OPacket* p, Opie::Net::OWaveLanManagementPacket* );
+ void handleManagementFrameProbeResponse( Opie::Net::OPacket* p, Opie::Net::OWaveLanManagementPacket* );
+ void handleControlFrame( Opie::Net::OPacket* p, Opie::Net::OWaveLanControlPacket* control );
+ void handleWlanData( Opie::Net::OPacket* p, Opie::Net::OWaveLanDataPacket* data, Opie::Net::OMacAddress& from, Opie::Net::OMacAddress& to );
+ void handleEthernetData( Opie::Net::OPacket* p, Opie::Net::OEthernetPacket* data, Opie::Net::OMacAddress& from, Opie::Net::OMacAddress& to );
+ void handleARPData( Opie::Net::OPacket* p, Opie::Net::OARPPacket* arp, Opie::Net::OMacAddress& from, Opie::Net::OMacAddress& to );
+ void handleIPData( Opie::Net::OPacket* p, Opie::Net::OIPPacket* ip, Opie::Net::OMacAddress& from, Opie::Net::OMacAddress& to );
+ void handleNotification( Opie::Net::OPacket* p );
+ void doAction( const QString& action, const QString& protocol, Opie::Net::OPacket* p );
+ QObject* childIfToParse( Opie::Net::OPacket* p, const QString& protocol );
+ bool checkDumpPacket( Opie::Net::OPacket* p );
@@ -91,3 +91,3 @@ class Wellenreiter : public WellenreiterBase {
#ifdef QWS
- OSystem _system; // Opie Operating System identifier
+ Opie::Core::OSystem _system; // Opie Operating System identifier
#endif
@@ -95,4 +95,4 @@ class Wellenreiter : public WellenreiterBase {
QString dumpname;
- OWirelessNetworkInterface* iface;
- OPacketCapturer* pcap;
+ Opie::Net::OWirelessNetworkInterface* iface;
+ Opie::Net::OPacketCapturer* pcap;
WellenreiterConfigWindow* configwindow;
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
index 3d0595d..f035e89 100644
--- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp
@@ -40,2 +40,5 @@ using namespace Opie;
*/
+using namespace Opie::Ui;
+using namespace Opie::Ui;
+using namespace Opie::Ui;
WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl )
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.h b/noncore/net/wellenreiter/gui/wellenreiterbase.h
index 126aad2..e40b699 100644
--- a/noncore/net/wellenreiter/gui/wellenreiterbase.h
+++ b/noncore/net/wellenreiter/gui/wellenreiterbase.h
@@ -48,3 +48,3 @@ public:
#ifdef QWS
- OTabWidget* TabWidget;
+ Opie::Ui::OTabWidget* TabWidget;
#else