Add API documentation for network interface
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 12:36:22 +0000 (13:36 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 12:36:22 +0000 (13:36 +0100)
doc/Makefile.am
doc/network-api.txt [new file with mode: 0644]

index 6d35116..636600f 100644 (file)
@@ -50,5 +50,5 @@ endif
 EXTRA_DIST += dbus-introspection.dtd dbus-introspection.xsl \
                                                dbus-manager.xml
 
-EXTRA_DIST += manager-api.txt device-api.txt \
+EXTRA_DIST += manager-api.txt device-api.txt network-api.txt \
                                element-api.txt agent-api.txt plugin-api.txt
diff --git a/doc/network-api.txt b/doc/network-api.txt
new file mode 100644 (file)
index 0000000..eb7b40c
--- /dev/null
@@ -0,0 +1,60 @@
+Network hierarchy
+=================
+
+Service                org.moblin.connman
+Interface      org.moblin.connman.Network
+Object path    [variable prefix]/{network0,network1,...}
+
+Methods                dict GetProperties()
+
+                       Returns properties for the network object. 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
+
+Signals                PropertyChanged(string name, variant value)
+
+                       This signal indicates a changed value of the given
+                       property.
+
+Properties     string WiFi.Name [readonly]
+
+                       If the network type is WiFi, then this property is
+                       present and contains the network name.
+
+               array{byte} WiFi.SSID [readonly]
+
+                       If the network type is WiFi, then this property is
+                       present and contains the binary SSID value.
+
+               string WiFi.Security [readonly, readwrite]
+
+                       If the network type is WiFi, then this property is
+                       present and contains the security method or key
+                       management setting.
+
+                       For scanned networks this value is read only, but in
+                       case the network was manually created it is also
+                       changeable.
+
+                       Possible values are NONE, WPA and WPA2.
+
+               string WiFi.Passphrase [readwrite]
+
+                       If the network type is WiFi and a passhrase is
+                       requires, then this property is present and contains
+                       the passphrase in clear text.
+
+                       For system using PolicyKit, the access to this value
+                       will be protected by the security policy.