Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlist.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.h | 24 |
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 | |||
@@ -15,15 +15,16 @@ | |||
15 | 15 | ||
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 | ||
23 | class QString; | 26 | class QString; |
24 | class ManufacturerDB; | ||
25 | |||
26 | class MScanListItem; | 27 | class MScanListItem; |
27 | 28 | ||
28 | class MScanListView: public OListView | 29 | class MScanListView: public OListView |
29 | { | 30 | { |
@@ -32,28 +33,23 @@ class MScanListView: public OListView | |||
32 | public: | 33 | public: |
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 | ||
59 | //****************************** MScanListItem **************************************************************** | 55 | //****************************** MScanListItem **************************************************************** |