e-mail-data-store.xml 4.94 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE node SYSTEM "dbus.dtd">

<!--
  Author: Srinivasa Ragavan <sragavan@gnome.org>
  Copyright (C) 2011 Intel Corporation
-->
<node>

  <interface name="org.gnome.evolution.dataserver.mail.Store">
    <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="EMailDataStore"/>
    <annotation name="org.gtk.GDBus.Name" value="MS"/>


    <method name="getFolder">
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_Mail_Store_getFolder"/>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="full_name" type="s" direction="in"/>
      <arg name="folder" type="o" direction="out"/>
    </method>

    <!--
    GetFolderInfo: returns information about the folder, without opening the actual folder.
                   Helps to keep the unread count shown on the folder tree, without loading
		   the folder contents to memory.

		   It returns the following in the Variant.
		   string:uri,
		   string:folder_name,
		   string:full_name, /* parent/child_name*/
		   uint32:flags,
		   int:unread_count,
		   int:total_mail_count
    -->
    <method name="getFolderInfo">
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_Mail_Store_getFolderInfo"/>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="full_name" type="s" direction="in"/>
      <arg name="flags" type="u" direction="in"/>
      <arg name="infos" type="a(sssuii)" direction="out"/>
41
      <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="CamelFolderInfoArrayVariant"/>            
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
    </method>

    <!-- getInbox isn't implemented by non-local providers. Prevent using it. -->
    <method name="getInbox">
      <arg name="folder" type="o" direction="out"/>
    </method>
    <method name="getJunk">
      <arg name="folder" type="o" direction="out"/>
    </method>
    <method name="getTrash">
      <arg name="folder" type="o" direction="out"/>
    </method>

    <signal name="FolderOpened">
    	<arg name="folder" type="o"/>
    </signal>

    <method name="createFolder">
      <arg name="parent_name" type="s" direction="in"/>
      <arg name="folder_name" type="s" direction="in"/>
62 63
      <arg name="info" type="a(sssuii)" direction="out"/>	
      <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="CamelFolderInfoArrayVariant"/>            
64 65
    </method>
    <signal name="FolderCreated">
66 67
      <arg name="info" type="a(sssuii)"/>
      <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="CamelFolderInfoArrayVariant"/>            
68 69 70 71 72 73 74
    </signal>

    <method name="deleteFolder">
      <arg name="folder_name" type="s" direction="in"/>
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <signal name="FolderDeleted">
75 76
      <arg name="info" type="a(sssuii)"/>
      <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="CamelFolderInfoArrayVariant"/>            	    
77 78 79 80 81 82 83 84
    </signal>
    
    <method name="renameFolder">
      <arg name="old_folder_name" type="s" direction="in"/>
      <arg name="new_folder_name" type="s" direction="in"/>	    
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <signal name="FolderRenamed">
85 86 87
      <arg name="old_name" type="s"/>	    
      <arg name="info" type="a(sssuii)"/>
      <annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="CamelFolderInfoArrayVariant"/>            
88 89 90 91 92 93 94 95 96 97 98 99 100 101
    </signal>

    <method name="supportsSubscriptions">
      <arg name="success" type="b" direction="out"/>	    
    </method>    
    <method name="isFolderSubscribed">
      <arg name="folder_name" type="s" direction="in"/>
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <method name="subscribeFolder">
      <arg name="folder_name" type="s" direction="in"/>
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <signal name="FolderSubscribed">
102 103
      <arg name="info" type="a(sssuii)"/>
      <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="CamelFolderInfoArrayVariant"/>            	    
104 105 106 107 108 109
    </signal>    
    <method name="unsubscribeFolder">
      <arg name="folder_name" type="s" direction="in"/>
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <signal name="FolderUnsubscribed">
110 111
      <arg name="info" type="a(sssuii)"/>
      <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="CamelFolderInfoArrayVariant"/>            
112 113 114 115 116 117 118 119 120 121 122 123
    </signal>

    <method name="sync">
      <arg name="expunge" type="b" direction="in"/>
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <method name="noop">
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <method name="canRefreshFolder">
      <arg name="info" type="a(sssuii)" direction="in"/>	    	    
      <arg name="success" type="b" direction="out"/>	    
124
      <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="CamelFolderInfoArrayVariant"/>                  
125 126 127 128 129
    </method>
      
  </interface>

</node>