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
@@ -7,61 +7,57 @@
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14**********************************************************************/ 14**********************************************************************/
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
23class QString; 26class QString;
24class ManufacturerDB;
25
26class MScanListItem; 27class MScanListItem;
27 28
28class MScanListView: public OListView 29class MScanListView: public OListView
29{ 30{
30 Q_OBJECT 31 Q_OBJECT
31 32
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 ****************************************************************
60 56
61class MScanListItem: public OListViewItem 57class MScanListItem: public OListViewItem
62{ 58{
63 public: 59 public:
64 MScanListItem::MScanListItem( QListView* parent, 60 MScanListItem::MScanListItem( QListView* parent,
65 QString type = "unknown", 61 QString type = "unknown",
66 QString essid = "unknown", 62 QString essid = "unknown",
67 QString macaddr = "unknown", 63 QString macaddr = "unknown",