[xml] In `Accessible.xml` return or expect `i` where `u` is stronger.
ChildCount
could, and if at all possible, should be typed stronger with an unsigned 'u' integer as negative child counts are erroneous.
<!--
ChildCount: number of accessible children for this object.
-->
<property name="ChildCount" type="i" access="read"/>
In GetChildAtIndex
, the argument index
is typed as an i
which certainly causes sorrow with the 'type system gods'.
Luckily, we can improve our ways easily!
```XML
<!--
GetChildAtIndex:
@index: 0-based index of the child to query.
Queries the Nth accessible child of the current object. It is expected that this
will correspond to the order that the GetChildren method would return.
Returns: The (so) is a string for the application name, and an object path.
Notes: implementations vary in their behavior when the index is out of range.
GTK4 returns an error, while atk-adaptor returns the null object path
"/org/a11y/atspi/null". To keep the type system gods happy, you should probably
return a DBus error in that case.
-->
<method name="GetChildAtIndex">
<arg direction="in" name="index" type="i"/>
<arg direction="out" type="(so)"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QSpiObjectReference"/>
</method>
```
The method GetIndexInParent
also tells us to expect a signed integer whereas indices start at zero - as underlined in the comment.
As such, if at all possible, we should type it as unsigned.
```XML
<!--
GetIndexInParent:
Returns the 0-based index at which the object would be returned by calling
GetChildren on its parent.
-->
<method name="GetIndexInParent">
<arg direction="out" type="i"/>
</method>