[Kde-hardware-devel] Review Request: Addition of Disconnect method to Solid::Control and NM backend using org.freedesktop.NetworkManager.Device interface
Gökcen Eraslan
gokcen at pardus.org.tr
Fri Jan 21 09:41:22 CET 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/6393/
-----------------------------------------------------------
Review request for Solid.
Summary
-------
KDE NetworkManagement UI now uses DeactivateConnection method of org.freedesktop.NetworkManager interface[1] to disconnect given interface but this is wrong, because when this method is used, NM tries to reconnect to another autoconnect-enabled connection. Right way of disconnecting is calling Disconnect method of the org.freedesktop.NetworkManager.Device interface[2].
Attached patch adds disconnect method to Solid::Control::NetworkInterface, Solid::Control::Ifaces::NetworkInterface classes and NM backend. Also dummy methods are added to wicd and fakenet backends.
(Thanks to Lamarque for the final fix.)
[1] http://projects.gnome.org/NetworkManager/developers/spec-08.html#org.freedesktop.NetworkManager
[2] http://projects.gnome.org/NetworkManager/developers/spec-08.html#org.freedesktop.NetworkManager.Device
Diffs
-----
/trunk/KDE/kdebase/workspace/libs/solid/control/backends/fakenet/fakenetworkinterface.h 1216076
/trunk/KDE/kdebase/workspace/libs/solid/control/backends/fakenet/fakenetworkinterface.cpp 1216076
/trunk/KDE/kdebase/workspace/libs/solid/control/ifaces/networkinterface.h 1216076
/trunk/KDE/kdebase/workspace/libs/solid/control/networkinterface.h 1216076
/trunk/KDE/kdebase/workspace/libs/solid/control/networkinterface.cpp 1216076
/trunk/KDE/kdebase/workspace/solid/networkmanager-0.7/dbus/nm-deviceinterface.h 1216076
/trunk/KDE/kdebase/workspace/solid/networkmanager-0.7/networkinterface.h 1216076
/trunk/KDE/kdebase/workspace/solid/networkmanager-0.7/networkinterface.cpp 1216076
/trunk/KDE/kdebase/workspace/solid/wicd/networkinterface.h 1216076
/trunk/KDE/kdebase/workspace/solid/wicd/networkinterface.cpp 1216076
Diff: http://svn.reviewboard.kde.org/r/6393/diff
Testing
-------
Thanks,
Gökcen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20110121/399cac3c/attachment.htm
More information about the Kde-hardware-devel
mailing list