From b7580c03be552675c19b9096b4094eecf1076c70 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 19 Nov 2008 09:27:20 +0100 Subject: [PATCH] Update manager interface documentation --- doc/manager-api.txt | 87 +++++++++++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 39 deletions(-) diff --git a/doc/manager-api.txt b/doc/manager-api.txt index 03b39a5..ac00c65 100644 --- a/doc/manager-api.txt +++ b/doc/manager-api.txt @@ -1,46 +1,55 @@ Manager hierarchy -***************** +================= -Service name org.moblin.connman -Interface name org.moblin.connman.Manager +Service org.moblin.connman +Interface org.moblin.connman.Manager Object path / -Methods array{object} ListElements() +Methods dict GetProperties() + + Returns all global system properties. See the + properties section for available properties. + + Possible Errors: [service].Error.InvalidArguments + [service].Error.DoesNotExist + + void SetProperty(string name, variant value) + + Changes the value of the specified property. Only + properties that are listed as read-write are + changeable. On success a PropertyChanged signal + will be emitted. + + Possible Errors: [service].Error.InvalidArguments + [service].Error.DoesNotExist + void RegisterAgent(object path) + + Register new agent for handling user requests. + + Possible Errors: [service].Error.InvalidArguments + void UnregisterAgent(object path) -Signals ElementAdded(object) - ElementRemoved(object) - - -Method: ListElements -==================== -This method lists all available interfaces. The return value is an array of -object paths. Every attached network interface (eth0, wlan0 etc.) of the -system is presented by an object path with additional interfaces on it. The -main interface is org.freedesktop.connman.Interface. - -Method: RegisterAgent -===================== -This method allows the user interace to register an agent. There can be only -one agent registered at a time. The parameter of the method is the object -path the agent has been registered for the callback method. The agent has -to implement org.moblin.connman.Agent interface on this object path. - -Method: UnregisterAgent -======================= -This method unregisters a previously registered agent. In case the agent -application exits the core will automatically unregister the agent. However -for a clean agent application it is important to call the unregister method. - -Signal: ElementAdded -==================== -This signal is emitted every time a new element has been added by the -core and successfully activated. The signal is also emitted on startup -or at anytime at runtime in case of hotplug devices. - -Signal: ElementRemoved -====================== -This signal is emitted every time an element has been removed. This can -happen at any time in case of hotplug devices. When the system shuts down, -this signal is also emitted. + Unregister an existing agent. + + Possible Errors: [service].Error.InvalidArguments + +Signals PropertyChanged(string name, variant value) + + This signal indicates a changed value of the given + property. + +Properties string State [readonly] + + The global connection state of a system. Possible + values are "online" if at least one connection exists + and "offline" if no device is connected. + + array{object} Devices [readonly] + + List of device object paths. + + array{object} Connections [readonly] + + List of active connection object paths. -- 2.7.4