~ubuntu-branches/ubuntu/saucy/geary/saucy-updates

« back to all changes in this revision

Viewing changes to src/dbusservice/geary.xml

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-10-10 17:40:37 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20131010174037-5p5o4dlsoewek2kg
Tags: 0.4.0-0ubuntu1
New stable version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
2
 
<node>
3
 
    
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">
9
 
        </signal>
10
 
        <signal name="ScanError">
11
 
        </signal>
12
 
        <signal name="ScanCompleted">
13
 
        </signal>
14
 
        
15
 
        <signal name="ConversationsAdded">
16
 
            <!-- Type: array of Conversation objects -->
17
 
            <arg name="conversations" type="ao" direction="out"/>
18
 
        </signal>
19
 
        <signal name="ConversationRemoved">
20
 
            <!-- Type: a Conversation object -->
21
 
            <arg name="conversation" type="o" direction="out"/>
22
 
        </signal>
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"/>
28
 
        </signal>
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"/>
34
 
        </signal>
35
 
        
36
 
        <!-- Begins the scan, fetching the number of messages provided.
37
 
             -->
38
 
        <method name="FetchMessages">
39
 
            <arg name="num_messages" type="i" direction="in"/>
40
 
        </method>
41
 
        
42
 
    </interface>
43
 
    
44
 
    <!-- Represents a single conversation, used for managing groups of emails.
45
 
         -->
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"/>
51
 
        </method>
52
 
    </interface>
53
 
    
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"/>
65
 
        
66
 
        <method name="GetBody">
67
 
            <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
68
 
            <arg type="s" direction="out"/>
69
 
        </method>
70
 
        
71
 
        <method name="Remove">
72
 
            <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
73
 
        </method>
74
 
    </interface>
75
 
    
76
 
</node>