|
|
|
@ -53,21 +53,29 @@ class NetworkListViewItem : public TDEListViewItem
|
|
|
|
|
, _net(net)
|
|
|
|
|
{
|
|
|
|
|
TQ_UINT8 strength = net.getStrength();
|
|
|
|
|
if (strength > 80)
|
|
|
|
|
if (strength > 80) {
|
|
|
|
|
setPixmap(1, TDEGlobal::iconLoader()->loadIcon("nm_signal_100", TDEIcon::Small));
|
|
|
|
|
else if (strength > 55)
|
|
|
|
|
}
|
|
|
|
|
else if (strength > 55) {
|
|
|
|
|
setPixmap(1, TDEGlobal::iconLoader()->loadIcon("nm_signal_75", TDEIcon::Small));
|
|
|
|
|
else if (strength > 30)
|
|
|
|
|
}
|
|
|
|
|
else if (strength > 30) {
|
|
|
|
|
setPixmap(1, TDEGlobal::iconLoader()->loadIcon("nm_signal_50", TDEIcon::Small));
|
|
|
|
|
else if (strength > 5)
|
|
|
|
|
}
|
|
|
|
|
else if (strength > 5) {
|
|
|
|
|
setPixmap(1, TDEGlobal::iconLoader()->loadIcon("nm_signal_25", TDEIcon::Small));
|
|
|
|
|
else
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
setPixmap(1, TDEGlobal::iconLoader()->loadIcon("nm_signal_00", TDEIcon::Small));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (net.isEncrypted())
|
|
|
|
|
if (net.isEncrypted()) {
|
|
|
|
|
setPixmap(2, TDEGlobal::iconLoader()->loadIcon("lock", TDEIcon::Small));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setText(3, TQString("%1").arg(net.getAPCount()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
WirelessNetwork _net;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|