<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE node PUBLIC
  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
<!--
# $Id$
-->
<node name="/org/clawsmail/contacts/service">

<interface name="org.clawsmail.Contacts">
    <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="abook"/>  
    
    <method name="ShowAddressbook">
    	<arg type="b" name="compose" direction="in" />
    </method>
    
    <method name="Ping">
        <arg type="s" name="reply" direction="out" />
    </method>

    <method name="Commit">
        <arg type="s" name="addressbook" direction="in" />
        <arg type="b" name="succes" direction="out" />
    </method>    
  
	<method name="BookList">
		<arg type="as" name="books" direction="out" />
	</method>
	
    <method name="SearchAddressbook">
        <arg type="s" name="token" direction="in" />
        <!-- if addressbook is NULL search all available books -->
        <arg type="s" name="addressbook" direction="in" /> 
        <arg type="as" name="emails" direction="out" />
    </method>
    
    <method name="AddContact">
        <arg type="s" name="addressbook" direction="in" /> 
	    <arg type="a{ss}" name="contact_data" direction="in" />
	    <arg type="a(sss)" name="contact_emails" direction="in" />
    </method>

    <method name="AddVCard">
        <!-- if addressbook is NULL add to default address book -->
        <arg type="s" name="addressbook" direction="in" /> 
	    <arg type="s" name="vcard" direction="in" />
    </method>

    <method name="GetVCard">
        <arg type="s" name="acount" direction="in" /> 
	    <arg type="s" name="vcard" direction="out" />
    </method>

    <signal name="ContactMailTo">
		<arg type="s" name="contact_add_to" direction="out" />
    </signal>

    <signal name="ContactMailCc">
		<arg type="s" name="contact_add_cc" direction="out" />
    </signal>

    <signal name="ContactMailBcc">
		<arg type="s" name="contact_add_bcc" direction="out" />
    </signal>

</interface>

</node>
