author | mickeyl <mickeyl> | 2003-02-24 21:37:49 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-02-24 21:37:49 (UTC) |
commit | d14b92ef8984ae654ff187bf6c8f5946d3ba218d (patch) (unidiff) | |
tree | fd209280150b48eb137315d9bfe693892525697e /noncore/net/wellenreiter/gui/scanlistitem.cpp | |
parent | 93151a1467b45759d320ce6673160190d6ab8872 (diff) | |
download | opie-d14b92ef8984ae654ff187bf6c8f5946d3ba218d.zip opie-d14b92ef8984ae654ff187bf6c8f5946d3ba218d.tar.gz opie-d14b92ef8984ae654ff187bf6c8f5946d3ba218d.tar.bz2 |
- work around yet another g++ 2.x bug
- started work on saving session to xml
[ any classes from libopie I can reuse without too much effort? ]
Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlistitem.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlistitem.cpp b/noncore/net/wellenreiter/gui/scanlistitem.cpp index bfa7aa9..4aecd2b 100644 --- a/noncore/net/wellenreiter/gui/scanlistitem.cpp +++ b/noncore/net/wellenreiter/gui/scanlistitem.cpp | |||
@@ -80,13 +80,18 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr, | |||
80 | setText( col_firstseen, QTime::currentTime().toString() ); | 80 | setText( col_firstseen, QTime::currentTime().toString() ); |
81 | //setText( col_lastseen, QTime::currentTime().toString() ); | 81 | //setText( col_lastseen, QTime::currentTime().toString() ); |
82 | 82 | ||
83 | listView()->triggerUpdate(); | 83 | listView()->triggerUpdate(); |
84 | 84 | ||
85 | this->type = type; | 85 | this->type = type; |
86 | 86 | _type = type; | |
87 | _essid = essid; | ||
88 | _macaddr = macaddr; | ||
89 | _channel = channel; | ||
90 | _beacons = 0; | ||
91 | _signal = 0; | ||
87 | } | 92 | } |
88 | 93 | ||
89 | void MScanListItem::setManufacturer( const QString& manufacturer ) | 94 | void MScanListItem::setManufacturer( const QString& manufacturer ) |
90 | { | 95 | { |
91 | setText( col_manuf, manufacturer ); | 96 | setText( col_manuf, manufacturer ); |
92 | } | 97 | } |
@@ -97,6 +102,20 @@ void MScanListItem::receivedBeacon() | |||
97 | #ifdef DEBUG | 102 | #ifdef DEBUG |
98 | qDebug( "MScanListItem %s: received beacon #%d", (const char*) _macaddr, _beacons ); | 103 | qDebug( "MScanListItem %s: received beacon #%d", (const char*) _macaddr, _beacons ); |
99 | #endif | 104 | #endif |
100 | setText( col_sig, QString::number( _beacons ) ); | 105 | setText( col_sig, QString::number( _beacons ) ); |
101 | setText( col_lastseen, QTime::currentTime().toString() ); | 106 | setText( col_lastseen, QTime::currentTime().toString() ); |
102 | } | 107 | } |
108 | |||
109 | void MScanListItem::dump( QTextStream& t ) const | ||
110 | { | ||
111 | qDebug( "dumping scanlistitem at <%d>", this ); | ||
112 | t << "<ITEM type=" << _type; | ||
113 | t << " ESSID='" << _essid; | ||
114 | t << "' MAC=" << _macaddr; | ||
115 | t << " WEP=" << _wep; | ||
116 | t << " CHANNEL=" << _channel; | ||
117 | t << " SIGNAL=" << _signal; | ||
118 | t << " BEACONS=" << _beacons; | ||
119 | t << ">\n"; | ||
120 | } | ||
121 | |||