[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/solid/networkmanager-0.7
From: Will Stephenson <wstephenson () kde ! org>
Date: 2008-06-08 8:08:07
Message-ID: 1212912487.115897.2808.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 818280 by wstephens:
Implement wired PropertiesChanged handler
M +16 -3 wirednetworkinterface.cpp
--- trunk/KDE/kdebase/workspace/solid/networkmanager-0.7/wirednetworkinterface.cpp #818279:818280
@@ -68,19 +68,32 @@
{
Q_D(NMWiredNetworkInterface);
d->carrier = carrier.toBool();
-
}
void NMWiredNetworkInterface::setBitRate(const QVariant& bitrate)
{
Q_D(NMWiredNetworkInterface);
d->bitrate = bitrate.toInt();
+}
-}
void NMWiredNetworkInterface::wiredPropertiesChanged(const QVariantMap &properties)
{
-#warning TODO NMWiredNEtworkINterface::wiredPropertiesChanged() implement
+ Q_D(NMWiredNetworkInterface);
kDebug() << properties.keys();
+ QLatin1String carrierKey("Carrier");
+ QLatin1String hwAddressKey("HwAddress");
+ QLatin1String speedKey("Speed");
+ if (properties.contains(carrierKey)) {
+ d->carrier = properties.value(carrierKey).toBool();
+ emit carrierChanged(d->carrier);
+ }
+ if (properties.contains(speedKey)) {
+ d->bitrate = properties.value(speedKey).toUInt();
+ emit bitRateChanged(d->bitrate);
+ }
+ if (properties.contains(hwAddressKey)) {
+ d->hardwareAddress = properties.value(hwAddressKey).toString();
+ }
}
#include "wirednetworkinterface.moc"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic