1
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
4
<!-- The main API. Eventually we'll need an Engine interface and a Folder
5
interface, but for now we're only concerned with fetching conversations
6
from whatever account and inbox the D-Bus server is providing. -->
7
<interface name="org.yorba.Geary.Conversations">
8
<signal name="ScanStarted">
10
<signal name="ScanError">
12
<signal name="ScanCompleted">
15
<signal name="ConversationsAdded">
16
<!-- Type: array of Conversation objects -->
17
<arg name="conversations" type="ao" direction="out"/>
19
<signal name="ConversationRemoved">
20
<!-- Type: a Conversation object -->
21
<arg name="conversation" type="o" direction="out"/>
23
<signal name="ConversationAppended">
24
<!-- Type: a Conversation object -->
25
<arg name="conversation" type="o" direction="out"/>
26
<!-- Type: array of email objects -->
27
<arg name="emails" type="ao" direction="out"/>
29
<signal name="ConversationTrimmed">
30
<!-- Type: a Conversation object -->
31
<arg name="conversation" type="o" direction="out"/>
32
<!-- Type: an email object -->
33
<arg name="email" type="o" direction="out"/>
36
<!-- Begins the scan, fetching the number of messages provided.
38
<method name="FetchMessages">
39
<arg name="num_messages" type="i" direction="in"/>
44
<!-- Represents a single conversation, used for managing groups of emails.
46
<interface name="org.yorba.Geary.Conversation">
47
<method name="GetEmails">
48
<annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
49
<!-- Type: array of emails -->
50
<arg type="ao" direction="out"/>
54
<!-- This represents a single email. The properties may be squished into
55
a D-Bus struct if they turns out to be expensive. Additionally, we may
56
want to add functions for marking an email read, adding/removing a flag,
57
and perhaps other feature for the demo -->
58
<interface name="org.yorba.Geary.Email">
59
<property name="To" type="s" access="read"/>
60
<property name="From" type="s" access="read"/>
61
<property name="Cc" type="s" access="read"/>
62
<property name="Subject" type="s" access="read"/>
63
<property name="Date" type="x" access="read"/>
64
<property name="Read" type="b" access="read"/>
66
<method name="GetBody">
67
<annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
68
<arg type="s" direction="out"/>
71
<method name="Remove">
72
<annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>