diff options
author | Markus Brueffer <markus@FreeBSD.org> | 2005-01-22 01:39:05 +0000 |
---|---|---|
committer | Markus Brueffer <markus@FreeBSD.org> | 2005-01-22 01:39:05 +0000 |
commit | 9c29f9eabbe0fd2bb8bbcba4b1ad7cbc099e4425 (patch) | |
tree | bb7bbe3a431fe7b2c4d4e1b2ea420285023c6d33 /net/knemo-kde4/files/patch-knemod-interfacetooltip.cpp | |
parent | Disable H.264 encoder support unless WITH_H264 is defined (diff) |
Add knemo 0.3.1, a network monitor for KDE.
KNemo offers a network monitor similar to the one found in Windows.
For every network interface it displays an icon in the systray.
http://www.kde-apps.org/content/show.php?content=12956
Note: There are two extensions to the original KNemo:
1. Multiple IPs on devices are supported
2. The semantics of not available devices were changed
from: "device is not up"
to: "device is not up" or "device is up but has no carrier/is not
associated"
which mimics the behaviour of the Windows counterpart more closely
Bugs: The stats page for wireless specific statistics doesn't work, yet
Notes
Notes:
svn path=/head/; revision=127069
Diffstat (limited to 'net/knemo-kde4/files/patch-knemod-interfacetooltip.cpp')
-rw-r--r-- | net/knemo-kde4/files/patch-knemod-interfacetooltip.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net/knemo-kde4/files/patch-knemod-interfacetooltip.cpp b/net/knemo-kde4/files/patch-knemod-interfacetooltip.cpp new file mode 100644 index 000000000000..10235e4477c3 --- /dev/null +++ b/net/knemo-kde4/files/patch-knemod-interfacetooltip.cpp @@ -0,0 +1,34 @@ +--- knemod/interfacetooltip.cpp.orig Fri Jan 21 17:51:13 2005 ++++ knemod/interfacetooltip.cpp Fri Jan 21 17:59:47 2005 +@@ -99,6 +99,23 @@ + + if ( data.available ) + { ++#ifdef Q_OS_FREEBSD ++ QDictIterator<AddrData> it( data.addrData ); ++ for( ; it.current(); ++it ) ++ { ++ if ( toolTipContent & IP_ADDRESS ) ++ text += "<tr><td>" + mToolTips[4].first + "</td><td>" + it.currentKey() + "</td></tr>"; ++ if ( toolTipContent & SUBNET_MASK ) ++ text += "<tr><td>" + mToolTips[5].first + "</td><td>" + it.current()->subnetMask + "</td></tr>"; ++ if ( mInterface->getType() == Interface::ETHERNET ) ++ { ++ if ( toolTipContent & BCAST_ADDRESS ) ++ text += "<tr><td>" + mToolTips[18].first + "</td><td>" + it.current()->broadcastAddress + "</td></tr>"; ++ } ++ } ++ if ( mInterface->getType() == Interface::ETHERNET ) ++ { ++#else + if ( toolTipContent & IP_ADDRESS ) + text += "<tr><td>" + mToolTips[4].first + "</td><td>" + data.ipAddress + "</td></tr>"; + if ( toolTipContent & SUBNET_MASK ) +@@ -107,6 +124,7 @@ + { + if ( toolTipContent & BCAST_ADDRESS ) + text += "<tr><td>" + mToolTips[18].first + "</td><td>" + data.broadcastAddress + "</td></tr>"; ++#endif + if ( toolTipContent & GATEWAY ) + text += "<tr><td>" + mToolTips[19].first + "</td><td>" + data.defaultGateway + "</td></tr>"; + if ( toolTipContent & HW_ADDRESS ) |