2025-04-25 18:02:54 -07:00
|
|
|
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
|
|
|
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
|
|
|
|
<node>
|
|
|
|
|
<interface name="net.buzzert.kordophone.Repository">
|
2025-02-11 23:15:24 -08:00
|
|
|
<method name="GetVersion">
|
|
|
|
|
<arg type="s" name="version" direction="out" />
|
2025-04-27 22:44:05 -07:00
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Returns the version of the client daemon."/>
|
2025-02-11 23:15:24 -08:00
|
|
|
</method>
|
2025-02-12 00:26:32 -08:00
|
|
|
|
2025-04-28 16:00:04 -07:00
|
|
|
<!-- Conversations -->
|
|
|
|
|
|
2025-02-12 00:26:32 -08:00
|
|
|
<method name="GetConversations">
|
|
|
|
|
<arg type="aa{sv}" direction="out" name="conversations">
|
|
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Array of dictionaries. Each dictionary has keys:
|
|
|
|
|
'id' (string): Unique identifier
|
2025-04-28 18:39:52 -07:00
|
|
|
'display_name' (string): Display name
|
|
|
|
|
'last_message_preview' (string): Preview text
|
2025-04-27 18:07:58 -07:00
|
|
|
'is_unread' (boolean): Unread status
|
|
|
|
|
'date' (int64): Date of last message
|
|
|
|
|
'participants' (array of strings): List of participants
|
|
|
|
|
'unread_count' (int32): Number of unread messages"/>
|
2025-02-12 00:26:32 -08:00
|
|
|
</arg>
|
|
|
|
|
</method>
|
2025-04-25 18:02:54 -07:00
|
|
|
|
2025-05-01 20:36:43 -07:00
|
|
|
<method name="SyncConversationList">
|
|
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Initiates a background sync of the conversation list with the server."/>
|
|
|
|
|
</method>
|
|
|
|
|
|
2025-04-25 18:02:54 -07:00
|
|
|
<method name="SyncAllConversations">
|
2025-04-27 22:44:05 -07:00
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Initiates a background sync of all conversations with the server."/>
|
2025-04-25 18:02:54 -07:00
|
|
|
</method>
|
2025-04-27 22:44:05 -07:00
|
|
|
|
2025-04-28 18:39:52 -07:00
|
|
|
<method name="SyncConversation">
|
|
|
|
|
<arg type="s" name="conversation_id" direction="in"/>
|
|
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Initiates a background sync of a single conversation with the server."/>
|
|
|
|
|
</method>
|
|
|
|
|
|
2025-04-27 22:44:05 -07:00
|
|
|
<signal name="ConversationsUpdated">
|
|
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Emitted when the list of conversations is updated."/>
|
|
|
|
|
</signal>
|
2025-04-28 16:00:04 -07:00
|
|
|
|
2025-05-01 01:08:13 -07:00
|
|
|
<method name="DeleteAllConversations">
|
|
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Deletes all conversations from the database."/>
|
|
|
|
|
</method>
|
|
|
|
|
|
2025-04-28 16:00:04 -07:00
|
|
|
<!-- Messages -->
|
|
|
|
|
|
|
|
|
|
<method name="GetMessages">
|
|
|
|
|
<arg type="s" name="conversation_id" direction="in"/>
|
|
|
|
|
<arg type="s" name="last_message_id" direction="in"/>
|
|
|
|
|
<arg type="aa{sv}" direction="out" name="messages"/>
|
|
|
|
|
</method>
|
|
|
|
|
|
2025-05-02 14:22:43 -07:00
|
|
|
<method name="SendMessage">
|
|
|
|
|
<arg type="s" name="conversation_id" direction="in"/>
|
|
|
|
|
<arg type="s" name="text" direction="in"/>
|
|
|
|
|
<arg type="s" name="outgoing_message_id" direction="out"/>
|
|
|
|
|
|
|
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Sends a message to the server. Returns the outgoing message ID."/>
|
|
|
|
|
</method>
|
|
|
|
|
|
2025-04-28 16:00:04 -07:00
|
|
|
<signal name="MessagesUpdated">
|
2025-04-28 18:39:52 -07:00
|
|
|
<arg type="s" name="conversation_id" direction="in"/>
|
2025-04-28 16:00:04 -07:00
|
|
|
<annotation name="org.freedesktop.DBus.DocString"
|
|
|
|
|
value="Emitted when the list of messages is updated."/>
|
|
|
|
|
</signal>
|
|
|
|
|
|
2025-04-25 18:02:54 -07:00
|
|
|
</interface>
|
|
|
|
|
|
|
|
|
|
<interface name="net.buzzert.kordophone.Settings">
|
|
|
|
|
<!-- editable properties -->
|
|
|
|
|
<property name="ServerURL" type="s" access="readwrite"/>
|
|
|
|
|
<property name="Username" type="s" access="readwrite"/>
|
|
|
|
|
|
|
|
|
|
<!-- Secret-Service handle (object path) -->
|
|
|
|
|
<property name="CredentialItem" type="o" access="readwrite">
|
|
|
|
|
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
|
|
|
|
|
value="true"/>
|
|
|
|
|
</property>
|
|
|
|
|
|
|
|
|
|
<!-- helpers for atomic updates -->
|
|
|
|
|
<method name="SetServer">
|
|
|
|
|
<arg name="url" type="s" direction="in"/>
|
|
|
|
|
<arg name="user" type="s" direction="in"/>
|
|
|
|
|
</method>
|
|
|
|
|
|
|
|
|
|
<!-- emitted when anything changes -->
|
|
|
|
|
<signal name="ConfigChanged"/>
|
2025-02-11 23:15:24 -08:00
|
|
|
</interface>
|
|
|
|
|
</node>
|