GNOME Bugzilla – Bug 348915
Add an API to inform about VPN status
Last modified: 2008-04-27 21:32:50 UTC
It would be good if the libnm API allowed to query the status of the VPN connection. It would allow applications to have VPN specific accounts and behaviours. For example, it could enable/disable your work/uni IM/mail accounts when you are using the VPN for that target. That might mean you have to be able to differentiate VPN access points, and what sort of resource they connect to, eg: - Work (New York) - Work (London) - Uni (Cambridge) - Uni (Cambridge 2) Whether we want to support that is another question...
Present in trunk; you'll be notified of new ActiveConnection objects via the 'active-connections' property of the NMClient object. VPNConnection objects are subclasses of ActiveConnection. You can then grab the NMConnection path from the VPNConnection, and ask its settings service for the full NMConnection, thus getting the connection ID and name.