author | mickeyl <mickeyl> | 2002-12-31 14:59:35 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2002-12-31 14:59:35 (UTC) |
commit | 76ec681931f01609969b92e75908418d9e8e92d5 (patch) (unidiff) | |
tree | 8230634998f17c66ebb4eb1acd82112cdb77c944 /noncore/net/wellenreiter/gui/scanlistitem.cpp | |
parent | 3f35e5918b5f508139e189d2428d01d6c2933a50 (diff) | |
download | opie-76ec681931f01609969b92e75908418d9e8e92d5.zip opie-76ec681931f01609969b92e75908418d9e8e92d5.tar.gz opie-76ec681931f01609969b92e75908418d9e8e92d5.tar.bz2 |
- catch with latest changes in libwellenreiter
- GUI now identifies and displays device manufacturers
- GUI now displays the number of received beacons for each device
Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlistitem.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlistitem.cpp b/noncore/net/wellenreiter/gui/scanlistitem.cpp index f4b43a6..15aef0c 100644 --- a/noncore/net/wellenreiter/gui/scanlistitem.cpp +++ b/noncore/net/wellenreiter/gui/scanlistitem.cpp | |||
@@ -30,10 +30,13 @@ const int col_ap = 2; | |||
30 | const int col_channel = 3; | 30 | const int col_channel = 3; |
31 | const int col_wep = 4; | 31 | const int col_wep = 4; |
32 | const int col_traffic = 5; | 32 | const int col_traffic = 5; |
33 | const int col_manuf = 6; | ||
33 | 34 | ||
34 | MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QString macaddr, | 35 | MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QString macaddr, |
35 | bool wep, int channel, int signal ) | 36 | bool wep, int channel, int signal ) |
36 | :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ) | 37 | :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ), |
38 | _type( type ), _essid( essid ), _macaddr( macaddr ), _wep( wep ), | ||
39 | _channel( channel ), _signal( signal ), _beacons( 0 ) | ||
37 | { | 40 | { |
38 | qDebug( "creating scanlist item" ); | 41 | qDebug( "creating scanlist item" ); |
39 | decorateItem( type, essid, macaddr, wep, channel, signal ); | 42 | decorateItem( type, essid, macaddr, wep, channel, signal ); |
@@ -77,3 +80,17 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr, | |||
77 | 80 | ||
78 | } | 81 | } |
79 | 82 | ||
83 | void MScanListItem::setManufacturer( const QString& manufacturer ) | ||
84 | { | ||
85 | setText( col_manuf, manufacturer ); | ||
86 | } | ||
87 | |||
88 | void MScanListItem::receivedBeacon() | ||
89 | { | ||
90 | _beacons++; | ||
91 | #ifdef DEBUG | ||
92 | qDebug( "MScanListItem %s: received beacon #%d", (const char*) _macaddr, _beacons ); | ||
93 | #endif | ||
94 | setText( col_sig, QString::number( _beacons ) ); | ||
95 | } | ||
96 | |||