summaryrefslogtreecommitdiff
path: root/src/nm-active-connection.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-04-22 11:29:09 -0500
committerDan Williams <dcbw@redhat.com>2011-04-22 12:29:07 -0500
commitbb8e9a0b182c8a47df645cd10f3ae3e8fe8a391a (patch)
treeff73439ff9363ea3ccad49abe6ffef78f0d7a740 /src/nm-active-connection.c
parent5f627a52e5ba03981f110263f2e96dda5608a23f (diff)
downloadNetworkManager-bb8e9a0b182c8a47df645cd10f3ae3e8fe8a391a.tar.gz
api: add "Uuid" property to ActiveConnection interface
A convenience so that clients which might key certain operations off which connections are active (checking work mail only when on VPN for example) can more easily get which connections are active. This would allow those apps to store the UUID (which they would already be doing) and not have to create a Connection proxy and then get the connection properties just to retrieve the UUID of the connection. Instead they can now get it from GetAll of the ActiveConnection object, which they would already be doing.
Diffstat (limited to 'src/nm-active-connection.c')
-rw-r--r--src/nm-active-connection.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nm-active-connection.c b/src/nm-active-connection.c
index 2f9a8f97d9..ae2afb0727 100644
--- a/src/nm-active-connection.c
+++ b/src/nm-active-connection.c
@@ -35,6 +35,7 @@ nm_active_connection_get_next_object_path (void)
void
nm_active_connection_install_properties (GObjectClass *object_class,
guint prop_connection,
+ guint prop_uuid,
guint prop_specific_object,
guint prop_devices,
guint prop_state,
@@ -49,6 +50,13 @@ nm_active_connection_install_properties (GObjectClass *object_class,
DBUS_TYPE_G_OBJECT_PATH,
G_PARAM_READABLE));
+ g_object_class_install_property (object_class, prop_uuid,
+ g_param_spec_string (NM_ACTIVE_CONNECTION_UUID,
+ "Connection UUID",
+ "Connection UUID",
+ NULL,
+ G_PARAM_READABLE));
+
g_object_class_install_property (object_class, prop_specific_object,
g_param_spec_boxed (NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT,
"Specific object",