summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/scanlist.h
Unidiff
Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlist.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/scanlist.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlist.h b/noncore/net/wellenreiter/gui/scanlist.h
index 4cb9216..253c166 100644
--- a/noncore/net/wellenreiter/gui/scanlist.h
+++ b/noncore/net/wellenreiter/gui/scanlist.h
@@ -16,13 +16,14 @@
16#ifndef SCANLIST_H 16#ifndef SCANLIST_H
17#define SCANLIST_H 17#define SCANLIST_H
18 18
19/* OPIE */
19#include <opie2/olistview.h> 20#include <opie2/olistview.h>
21#include <opie2/onetutils.h>
20 22
23/* QT */
21#include <qtextstream.h> 24#include <qtextstream.h>
22 25
23class QString; 26class QString;
24class ManufacturerDB;
25
26class MScanListItem; 27class MScanListItem;
27 28
28class MScanListView: public OListView 29class MScanListView: public OListView
@@ -33,26 +34,21 @@ class MScanListView: public OListView
33 MScanListView( QWidget* parent = 0, const char* name = 0 ); 34 MScanListView( QWidget* parent = 0, const char* name = 0 );
34 virtual ~MScanListView(); 35 virtual ~MScanListView();
35 36
36 void setManufacturerDB( ManufacturerDB* manufacturerdb );
37
38 virtual OListViewItem* childFactory(); 37 virtual OListViewItem* childFactory();
39 virtual void serializeTo( QDataStream& s ) const; 38 virtual void serializeTo( QDataStream& s ) const;
40 virtual void serializeFrom( QDataStream& s ); 39 virtual void serializeFrom( QDataStream& s );
41 40
42 public slots: 41 public slots:
43 void addNewItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal ); 42 void addNewItem( const QString& type, const QString& essid, const OMacAddress& macaddr, bool wep, int channel, int signal );
44 void fromDStraffic( QString from, QString to, QString via ); // NYI 43 void fromDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
45 void toDStraffic( QString from, QString to, QString via ); 44 void toDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
46 void WDStraffic( QString from, QString to, QString viaFrom, QString viaTo ); 45 void WDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& viaFrom, const OMacAddress& viaTo );
47 void IBSStraffic( QString from, QString to, QString via ); // NYI 46 void IBSStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
48 47
49 void identify( const QString& macaddr, const QString& ipaddr ); 48 void identify( const OMacAddress&, const QString& ipaddr );
50 49
51 protected: 50 protected:
52 void addIfNotExisting( MScanListItem* parent, QString addr, const QString& type = "station" ); 51 void addIfNotExisting( MScanListItem* parent, const OMacAddress& addr, const QString& type = "station" );
53
54 private:
55 ManufacturerDB* _manufacturerdb;
56 52
57}; 53};
58 54