e-mail-data-store.xml 4.06 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
<?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"/>
    </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"/>
      <arg name="info" type="a(sssuii)" direction="out"/>	    
    </method>
    <signal name="FolderCreated">
    	<arg name="info" type="a(sssuii)"/>
    </signal>

    <method name="deleteFolder">
      <arg name="folder_name" type="s" direction="in"/>
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <signal name="FolderDeleted">
    	<arg name="info" type="a(sssuii)"/>
    </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">
    	<arg name="old_name" type="s"/>	    
    	<arg name="info" type="a(sssuii)"/>
    </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">
    	<arg name="info" type="a(sssuii)"/>
    </signal>    
    <method name="unsubscribeFolder">
      <arg name="folder_name" type="s" direction="in"/>
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <signal name="FolderUnsubscribed">
    	<arg name="info" type="a(sssuii)"/>
    </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"/>	    
    </method>
      
  </interface>

</node>