[at-spi2-core: 10/11] Application.xml: document the properties of the Application interface




commit ee21630f9b758560a768de4ef062174de79b2bc8
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jul 13 21:15:42 2022 -0500

    Application.xml: document the properties of the Application interface

 xml/Application.xml | 39 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)
---
diff --git a/xml/Application.xml b/xml/Application.xml
index 75518e5f..9e92d7af 100644
--- a/xml/Application.xml
+++ b/xml/Application.xml
@@ -1,12 +1,49 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<node>
+<node xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd";>
+  <!--
+      org.a11y.atspi.Application:
+      @short_description: Interface that must be implemented by the root object of an application.
+  -->
   <interface name="org.a11y.atspi.Application">
 
+    <!--
+        ToolkitName: name of the toolkit used to implement the application's user interface.
+    -->
     <property name="ToolkitName" type="s" access="read"/>
 
+    <!--
+        Version: version of the toolkit used to implement the application's user interface.
+    -->
     <property name="Version" type="s" access="read"/>
 
+    <!--
+        AtspiVersion: You should return "2.1" here.
+
+        This was intended to be the version of the atspi interfaces
+        that the application supports, but atspi will probably move to
+        using versioned interface names instead.  Just return "2.1" here.
+    -->
     <property name="AtspiVersion" type="s" access="read"/>
+
+    <!--
+        Id: set to an arbitrary numerical id when an application registers with the registry.
+
+        When a freshly-started application uses the
+        org.a11y.atspi.Socket.Embed method to register with the
+        accessibility registry, the registry will set a numerical id
+        on the application.
+
+        Per https://gitlab.gnome.org/GNOME/at-spi2-core/-/issues/82 it
+        may turn out that this id is not actually used subsequently.
+        This is a remnant of the time when registryd actually had to
+        make up identifiers for each application.  With DBus, however,
+        it is the bus that assigns unique names to applications that
+        connect to it.
+
+        Your application or toolkit can remember the Id passed when
+        the accessibility registry sets this property, and return it
+        back when the property is read.
+    -->
     <property name="Id" type="i" access="readwrite"/>
 
     <method name="GetLocale">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]