Skip to content

Commit

Permalink
data: Add missing Qt type annotations and move them to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
swick committed Nov 28, 2024
1 parent 51b43bd commit 92cf870
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 6 deletions.
4 changes: 3 additions & 1 deletion data/org.freedesktop.background.Monitor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
Status message reported by the application. Optional.
-->
<property name="BackgroundApps" type="aa{sv}" access="read"/>
<property name="BackgroundApps" type="aa{sv}" access="read">
<annotation name="org.qtproject.QtDBus.QtTypeName" value="QList&lt;QVariantMap&gt;"/>
</property>

<property name="version" type="u" access="read"/>
</interface>
Expand Down
4 changes: 2 additions & 2 deletions data/org.freedesktop.impl.portal.GlobalShortcuts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@
<method name="BindShortcuts">
<arg type="o" name="handle" direction="in"/>
<arg type="o" name="session_handle" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QList&lt;QPair&lt;QString,QVariantMap&gt;&gt;"/>
<arg type="a(sa{sv})" name="shortcuts" direction="in"/>
<arg type="s" name="parent_window" direction="in"/>
<arg type="a{sv}" name="options" direction="in"/>
<arg type="u" name="response" direction="out"/>
<arg type="a{sv}" name="results" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QList&lt;QPair&lt;QString,QVariantMap&gt;&gt;"/>
</method>

<!--
Expand Down Expand Up @@ -145,8 +145,8 @@
-->
<signal name="ShortcutsChanged">
<arg type="o" name="session_handle" direction="out"/>
<arg type="a(sa{sv})" name="shortcuts" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QList&lt;QPair&lt;QString,QVariantMap&gt;&gt;"/>
<arg type="a(sa{sv})" name="shortcuts" direction="out"/>
</signal>

<property name="version" type="u" access="read"/>
Expand Down
1 change: 1 addition & 0 deletions data/org.freedesktop.impl.portal.InputCapture.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
<arg type="o" name="session_handle" direction="in"/>
<arg type="s" name="app_id" direction="in"/>
<arg type="a{sv}" name="options" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QList&lt;QVariantMap&gt;"/>
<arg type="aa{sv}" name="barriers" direction="in"/>
<arg type="u" name="zone_set" direction="in"/>
<arg type="u" name="response" direction="out"/>
Expand Down
3 changes: 3 additions & 0 deletions data/org.freedesktop.impl.portal.PermissionStore.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<method name="Lookup">
<arg name='table' type='s' direction='in'/>
<arg name='id' type='s' direction='in'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QMap&lt;QString,QStringList&gt;"/>
<arg name='permissions' type='a{sas}' direction='out'/>
<arg name='data' type='v' direction='out'/>
</method>
Expand All @@ -79,6 +80,7 @@
<arg name='table' type='s' direction='in'/>
<arg name='create' type='b' direction='in'/>
<arg name='id' type='s' direction='in'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QMap&lt;QString,QStringList&gt;"/>
<arg name='app_permissions' type='a{sas}' direction='in'/>
<arg name='data' type='v' direction='in'/>
</method>
Expand Down Expand Up @@ -194,6 +196,7 @@
<arg name='id' type='s' direction='out'/>
<arg name='deleted' type='b' direction='out'/>
<arg name='data' type='v' direction='out'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out4" value="QMap&lt;QString,QStringList&gt;"/>
<arg name='permissions' type='a{sas}' direction='out'/>
</signal>
</interface>
Expand Down
1 change: 1 addition & 0 deletions data/org.freedesktop.impl.portal.Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
-->
<method name='ReadAll'>
<arg name='namespaces' type='as'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QMap&lt;QString,QVariantMap&gt;"/>
<arg name='value' direction='out' type='a{sa{sv}}'/>
</method>

Expand Down
5 changes: 5 additions & 0 deletions data/org.freedesktop.portal.Documents.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
<method name="AddNamed">
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/>
<arg type='h' name='o_path_parent_fd' direction='in'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QByteArray"/>
<arg type='ay' name='filename' direction='in'/>
<arg type='b' name='reuse_existing' direction='in'/>
<arg type='b' name='persistent' direction='in'/>
Expand Down Expand Up @@ -135,6 +136,7 @@
-->
<method name="AddFull">
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QList&lt;QDBusUnixFileDescriptor&gt;"/>
<arg type='ah' name='o_path_fds' direction='in'/>
<arg type='u' name='flags' direction='in'/>
<arg type='s' name='app_id' direction='in'/>
Expand Down Expand Up @@ -258,6 +260,7 @@
<method name="Info">
<arg type='s' name='doc_id' direction='in'/>
<arg type='ay' name='path' direction='out'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QMap&lt;QString,QStringList&gt;"/>
<arg type='a{sas}' name='apps' direction='out'/>
</method>

Expand All @@ -273,6 +276,7 @@
-->
<method name="List">
<arg type='s' name='app_id' direction='in'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QMap&lt;QString,QByteArray&gt;"/>
<arg type='a{say}' name='docs' direction='out'/>
</method>

Expand All @@ -291,6 +295,7 @@
-->
<method name="GetHostPaths">
<arg type='as' name='doc_ids' direction='in'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QMap&lt;QString,QByteArray&gt;"/>
<arg type='a{say}' name='paths' direction='out'/>
</method>
</interface>
Expand Down
1 change: 1 addition & 0 deletions data/org.freedesktop.portal.FileTransfer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
<method name="AddFiles">
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/>
<arg type="s" name="key" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QList&lt;QDBusUnixFileDescriptor&gt;"/>
<arg type="ah" name="fds" direction="in"/>
<arg type="a{sv}" name="options" direction="in"/>
</method>
Expand Down
5 changes: 2 additions & 3 deletions data/org.freedesktop.portal.GlobalShortcuts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,11 @@
-->
<method name="BindShortcuts">
<arg type="o" name="session_handle" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QList&lt;QPair&lt;QString,QVariantMap&gt;&gt;"/>
<arg type="a(sa{sv})" name="shortcuts" direction="in"/>
<arg type="s" name="parent_window" direction="in"/>
<arg type="a{sv}" name="options" direction="in"/>
<arg type="o" name="request_handle" direction="out"/>

<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QList&lt;QPair&lt;QString,QVariantMap&gt;&gt;"/>
</method>

<!--
Expand Down Expand Up @@ -226,8 +225,8 @@
-->
<signal name="ShortcutsChanged">
<arg type="o" name="session_handle" direction="out"/>
<arg type="a(sa{sv})" name="shortcuts" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QList&lt;QPair&lt;QString,QVariantMap&gt;&gt;"/>
<arg type="a(sa{sv})" name="shortcuts" direction="out"/>
</signal>

<property name="version" type="u" access="read"/>
Expand Down
1 change: 1 addition & 0 deletions data/org.freedesktop.portal.InputCapture.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
<method name="SetPointerBarriers">
<arg type="o" name="session_handle" direction="in"/>
<arg type="a{sv}" name="options" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QList&lt;QVariantMap&gt;"/>
<arg type="aa{sv}" name="barriers" direction="in"/>
<arg type="u" name="zone_set" direction="in"/>
<arg type="o" name="handle" direction="out"/>
Expand Down
1 change: 1 addition & 0 deletions data/org.freedesktop.portal.Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
-->
<method name='ReadAll'>
<arg name='namespaces' type='as'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QMap&lt;QString,QVariantMap&gt;"/>
<arg name='value' direction='out' type='a{sa{sv}}'/>
</method>

Expand Down

0 comments on commit 92cf870

Please sign in to comment.