On Fri, 2010-02-19 at 13:54 +0100, Jirka Klimes wrote:
> Hello,
>
> the attached patch adds nm_active_connection_get_vpn() method
> for NMActiveConnection obtaining Vpn property of
> org.freedesktop.NetworkManager.Connection.Active interface.
Actually, this should be handled internally by libnm-glib, so given an
NMActiveConnection object, you can:
if (NM_IS_VPN_CONNECTION (active_connection))
<it's a VPN>
else
<it's not>
since NMVPNConnection is a subclass of NMActiveConnection. The object
cache stuff will automatically figure out what type it should be when
creating the object initially in response to the ActiveConnection
property changes.
Dan
_______________________________________________
NetworkManager-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/networkmanager-list