summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/scanlistitem.cpp
Unidiff
Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlistitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/scanlistitem.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlistitem.cpp b/noncore/net/wellenreiter/gui/scanlistitem.cpp
index 15aef0c..dd33f5f 100644
--- a/noncore/net/wellenreiter/gui/scanlistitem.cpp
+++ b/noncore/net/wellenreiter/gui/scanlistitem.cpp
@@ -15,6 +15,7 @@
15 15
16#include "scanlistitem.h" 16#include "scanlistitem.h"
17#include <assert.h> 17#include <assert.h>
18#include <qdatetime.h>
18#include <qpixmap.h> 19#include <qpixmap.h>
19 20
20#ifdef QWS 21#ifdef QWS
@@ -31,6 +32,8 @@ const int col_channel = 3;
31const int col_wep = 4; 32const int col_wep = 4;
32const int col_traffic = 5; 33const int col_traffic = 5;
33const int col_manuf = 6; 34const int col_manuf = 6;
35const int col_firstseen = 7;
36const int col_lastseen = 8;
34 37
35MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QString macaddr, 38MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QString macaddr,
36 bool wep, int channel, int signal ) 39 bool wep, int channel, int signal )
@@ -65,7 +68,7 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr,
65 68
66 // set icon for wep (wireless encryption protocol) 69 // set icon for wep (wireless encryption protocol)
67 if ( wep ) 70 if ( wep )
68 setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); // rename the pixmap! 71 setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); //FIXME: rename the pixmap!
69 72
70 // set channel and signal text 73 // set channel and signal text
71 74
@@ -74,6 +77,9 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr,
74 if ( channel != -1 ) 77 if ( channel != -1 )
75 setText( col_channel, QString::number( channel ) ); 78 setText( col_channel, QString::number( channel ) );
76 79
80 setText( col_firstseen, QTime::currentTime().toString() );
81 //setText( col_lastseen, QTime::currentTime().toString() );
82
77 listView()->triggerUpdate(); 83 listView()->triggerUpdate();
78 84
79 this->type = type; 85 this->type = type;
@@ -92,5 +98,5 @@ void MScanListItem::receivedBeacon()
92 qDebug( "MScanListItem %s: received beacon #%d", (const char*) _macaddr, _beacons ); 98 qDebug( "MScanListItem %s: received beacon #%d", (const char*) _macaddr, _beacons );
93 #endif 99 #endif
94 setText( col_sig, QString::number( _beacons ) ); 100 setText( col_sig, QString::number( _beacons ) );
101 setText( col_lastseen, QTime::currentTime().toString() );
95} 102}
96