e-mail-data-folder.xml 6.79 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
<?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.Folder">
    <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="EMailDataFolder"/>
    <annotation name="org.gtk.GDBus.Name" value="CF"/>

    <!-- Sync APIs -->
    <method name="refreshInfo">
      <arg name="success" type="b" direction="out"/>	    	    
    </method>
    <method name="sync">
      <arg name="expunge" type="b" direction="in"/>
      <arg name="success" type="b" direction="out"/>	    
    </method>
    <method name="expunge">
      <arg name="success" type="b" direction="out"/>	    	    
    </method>
    <signal name="FolderChanged">
      <arg name="uids_added" type="as"/>
      <arg name="uids_removed" type="as"/>
      <arg name="uids_changed" type="as"/>
      <arg name="uids_recent" type="as"/>
    </signal>

    <!-- Info on Folder -->
    <method name="getName">
      <arg name="name" type="s" direction="out"/>	    	    
    </method>
    <method name="setName">
      <arg name="name" type="s" direction="in"/>	    	    
    </method>
    <method name="getFullName">
      <arg name="name" type="s" direction="out"/>	    	    
    </method>
    <method name="setFullName">
      <arg name="name" type="s" direction="in"/>	    	    
    </method>
    <method name="getDescription">
      <arg name="desc" type="s" direction="out"/>	    	    
    </method>
    <method name="setDescription">
      <arg name="desc" type="s" direction="in"/>	    	    
    </method>    

    <!-- Folder stuff-->
    <method name="getPermanentFlags">
      <arg name="flags" type="u" direction="out"/>	    	    
    </method>
    <method name="hasSummaryCapability">
      <arg name="summary" type="b" direction="out"/>	    	    
    </method>
    <method name="hasSearchCapability">
      <arg name="search" type="b" direction="out"/>	    	    
    </method>    
    <method name="totalMessageCount">
      <arg name="count" type="i" direction="out"/>	    	    
    </method>
    <method name="unreadMessageCount">
      <arg name="count" type="i" direction="out"/>	    	    
    </method>    
    <method name="deletedMessageCount">
      <arg name="count" type="i" direction="out"/>	    	    
    </method>      

    <!-- Message & UID -->
    <method name="getMessageFlags">
      <arg name="uid" type="s" direction="in"/>	    	    	    
      <arg name="flags" type="u" direction="out"/>	    	    
    </method>    
    <method name="setMessageFlags">
      <arg name="uid" type="s" direction="in"/>	    	    	    
      <arg name="flags" type="u" direction="in"/>	 
      <arg name="set" type="u" direction="in"/>	    	          
      <arg name="success" type="b" direction="out"/>	    	          
    </method>        
    <method name="getMessageUserFlag">
      <arg name="uid" type="s" direction="in"/>	    	    	    
      <arg name="flagname" type="s" direction="in"/>	 
      <arg name="flag" type="b" direction="out"/>	    	    
    </method> 
    <method name="setMessageUserFlag">
      <arg name="uid" type="s" direction="in"/>	    	
      <arg name="flagname" type="s" direction="in"/>	 
      <arg name="set" type="u" direction="in"/>	    	          
    </method>        
    <method name="getMessageUserTag">
      <arg name="uid" type="s" direction="in"/>	   
      <arg name="param" type="s" direction="in"/>	    	    	    	    
      <arg name="value" type="s" direction="out"/>	    	    
    </method> 
    <method name="setMessageUserTag">
      <arg name="uid" type="s" direction="in"/>	    	
      <arg name="param" type="s" direction="in"/>	    	    	    	    
      <arg name="value" type="s" direction="in"/>	    	    	    	    
    </method>        

    <!-- Folder operations -->    
    <method name="getParentStore">
      <arg name="store" type="o" direction="out"/>	    	    	    	    
    </method>        
    <method name="AppendMessage">
      <!-- Structure of CamelMessageInfoBase
110
         sssssss - uid, sub, from, to, cc, mlist, preview
111 112 113 114 115 116 117 118
	 uu - flags, size
	 tt - date_sent, date_received
	 t  - message_id
	 iat - references
	 as - userflags
	 a(ss) - usertags
	 /* We aren't now sending content_info & headers */
      -->
119
      <arg name="info" type="(sssssssuutttiatasa(ss))" direction="in"/>	
120 121 122 123
      <arg name="message" type="s" direction="in"/>	    	          	    
	
      <arg name="appendeduid" type="s" direction="out"/>	    	          	    
      <arg name="success" type="b" direction="out"/>	    	                
124
      <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="CamelMessageInfoVariant"/>                  
125 126 127 128 129 130 131 132
    </method>  
    <method name="getUids">
      <arg name="uids" type="as" direction="out"/>	    	    	    	    
    </method>        
    <method name="getMessage">
      <arg name="uid" type="s" direction="in"/>	    	    	    	    	    
      <arg name="message" type="s" direction="out"/>	    	    	    	    
    </method>        
133 134 135 136
    <method name="fetchOldMessages">
      <arg name="count" type="i" direction="in"/>	    	    
      <arg name="success" type="b" direction="out"/>	    	                
    </method>
137 138 139 140
    <method name="searchByExpression">
      <arg name="expression" type="s" direction="in"/>	    	    	    	    	    
      <arg name="uids" type="as" direction="out"/>	    	    	    	    
    </method>  
141 142 143 144 145 146
    <method name="searchSortByExpression">
      <arg name="expression" type="s" direction="in"/>	    	    	    	    	    
      <arg name="sort" type="s" direction="in"/>	    	    	    	    	    
      <arg name="ascending" type="b" direction="in"/>	    	    	    	    	    
      <arg name="uids" type="as" direction="out"/>	    	    	    	    
    </method>      
147 148 149 150 151 152 153 154
    <method name="searchByUids">
      <arg name="expression" type="s" direction="in"/>	    	    	    	    	    
      <arg name="searchuids" type="as" direction="in"/>	    	    	    	    	    
      <arg name="resultuids" type="as" direction="out"/>	    	    	    	    
    </method>  
    <method name="getMessageInfo">
      <arg name="uid" type="s" direction="in"/>	    	    	    	    	    
      <!-- Structure of CamelMessageInfoBase -->
155
      <arg name="info" type="(sssssssuutttiatasa(ss))" direction="out"/>	
156
      <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="CamelMessageInfoVariant"/>                        
157 158 159 160 161 162 163 164 165 166 167 168 169 170
    </method>        
    <method name="transferMessagesTo">
      <arg name="uids" type="as" direction="in"/>	    	    	    	    	    
      <arg name="destfolder" type="o" direction="in"/>
      <arg name="deleteoriginals" type="b" direction="in"/>	    	    	    	    	    
      <arg name="returnuids" type="as" direction="out"/>	    	    	    	    	    
    </method>        
    <method name="prepareSummary">
    </method>        
    
  </interface>


</node>