Re: changing ip addresses using nm dbus with qt



Hi,
first of all, you have to get connection which you want to change. ip
addresses are set for connection not for device.
You can use ListConnections() method of
org.freedesktop.NetworkManager.Settings
(http://projects.gnome.org/NetworkManager/developers/migrating-to-09/spec.html#org.freedesktop.NetworkManager.Settings) for this. And then you would have to get connection settings with GetSettings() method of org.freedesktop.NetworkManager.Settings.Connection (http://projects.gnome.org/NetworkManager/developers/migrating-to-09/spec.html#org.freedesktop.NetworkManager.Settings.Connection)
You can then change settings as you need and then use Update() (just
above GetSettings() on the latter link).

I don't know Qt--D-Bus, so I can't give you exact example.
Vratislav Podzimek

On Mon, 2011-06-06 at 15:37 +0530, Savio Sebastian wrote:
> Hi all,
> I am trying to change the ip addresses(switching between DHCP and
> manual) using nm dbus with the qt
> i am able to get the devices list  but how can i change the ip
> addresses
> any examples available
> Thanks
> 
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]