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/manufacturers.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/manufacturers.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/manufacturers.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/manufacturers.cpp b/noncore/net/wellenreiter/gui/manufacturers.cpp index d235989..dad2753 100644 --- a/noncore/net/wellenreiter/gui/manufacturers.cpp +++ b/noncore/net/wellenreiter/gui/manufacturers.cpp | |||
@@ -40,7 +40,9 @@ ManufacturerDB::ManufacturerDB( const QString& filename ) | |||
40 | s >> addr; | 40 | s >> addr; |
41 | s.skipWhiteSpace(); | 41 | s.skipWhiteSpace(); |
42 | manu = s.readLine(); | 42 | manu = s.readLine(); |
43 | #ifdef DEBUG | ||
43 | qDebug( "ManufacturerDB: read pair %s, %s", (const char*) addr, (const char*) manu ); | 44 | qDebug( "ManufacturerDB: read pair %s, %s", (const char*) addr, (const char*) manu ); |
45 | #endif | ||
44 | manufacturers.insert( addr, manu ); | 46 | manufacturers.insert( addr, manu ); |
45 | 47 | ||
46 | } | 48 | } |
@@ -52,7 +54,7 @@ ManufacturerDB::~ManufacturerDB() | |||
52 | { | 54 | { |
53 | } | 55 | } |
54 | 56 | ||
55 | QString ManufacturerDB::lookup( const QString& macaddr ) | 57 | const QString& ManufacturerDB::lookup( const QString& macaddr ) const |
56 | { | 58 | { |
57 | return manufacturers[macaddr.upper().left(8)]; | 59 | return manufacturers[macaddr.upper().left(8)]; |
58 | } | 60 | } |