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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlist.h b/noncore/net/wellenreiter/gui/scanlist.h
index 253c166..5aba0d2 100644
--- a/noncore/net/wellenreiter/gui/scanlist.h
+++ b/noncore/net/wellenreiter/gui/scanlist.h
@@ -38,24 +38,30 @@ class MScanListView: public OListView
38 virtual void serializeTo( QDataStream& s ) const; 38 virtual void serializeTo( QDataStream& s ) const;
39 virtual void serializeFrom( QDataStream& s ); 39 virtual void serializeFrom( QDataStream& s );
40 40
41 public slots: 41 public slots:
42 void addNewItem( const QString& type, const QString& essid, const OMacAddress& 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 );
43 void fromDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via ); 43 void fromDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
44 void toDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via ); 44 void toDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
45 void WDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& viaFrom, const OMacAddress& viaTo ); 45 void WDStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& viaFrom, const OMacAddress& viaTo );
46 void IBSStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via ); 46 void IBSStraffic( const OMacAddress& from, const OMacAddress& to, const OMacAddress& via );
47 47
48 void identify( const OMacAddress&, const QString& ipaddr ); 48 void identify( const OMacAddress&, const QString& ipaddr );
49 49
50 void contextMenuRequested( QListViewItem* item, const QPoint&, int );
51
52 signals:
53 void rightButtonClicked(QListViewItem*,const QPoint&,int);
54 void joinNetwork( const QString&, const QString&, int, const QString& );
55
50 protected: 56 protected:
51 void addIfNotExisting( MScanListItem* parent, const OMacAddress& addr, const QString& type = "station" ); 57 void addIfNotExisting( MScanListItem* parent, const OMacAddress& addr, const QString& type = "station" );
52 58
53}; 59};
54 60
55//****************************** MScanListItem **************************************************************** 61//****************************** MScanListItem ****************************************************************
56 62
57class MScanListItem: public OListViewItem 63class MScanListItem: public OListViewItem
58{ 64{
59 public: 65 public:
60 MScanListItem::MScanListItem( QListView* parent, 66 MScanListItem::MScanListItem( QListView* parent,
61 QString type = "unknown", 67 QString type = "unknown",
@@ -73,25 +79,25 @@ class MScanListItem: public OListViewItem
73 int channel = 0, 79 int channel = 0,
74 int signal = 0 ); 80 int signal = 0 );
75 81
76 82
77 protected: 83 protected:
78 virtual void decorateItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal ); 84 virtual void decorateItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal );
79 85
80 public: 86 public:
81 QString type; 87 QString type;
82 88
83 public: 89 public:
84 //const QString& type() { return _type; }; 90 //const QString& type() { return _type; };
85 const QString& essid() { return _essid; }; 91 const QString& essid() const;
86 const QString& macaddr() { return _macaddr; }; 92 const QString& macaddr() { return _macaddr; };
87 bool wep() { return _wep; }; 93 bool wep() { return _wep; };
88 int channel() { return _channel; }; 94 int channel() { return _channel; };
89 int signal() { return _signal; }; 95 int signal() { return _signal; };
90 int beacons() { return _beacons; }; 96 int beacons() { return _beacons; };
91 97
92 void setSignal( int signal ) { /* TODO */ }; 98 void setSignal( int signal ) { /* TODO */ };
93 void receivedBeacon(); 99 void receivedBeacon();
94 100
95 void setManufacturer( const QString& manufacturer ); 101 void setManufacturer( const QString& manufacturer );
96 102
97 virtual OListViewItem* childFactory(); 103 virtual OListViewItem* childFactory();