mailnews/addrbook/public/nsIAbLDAPReplicationService.idl
author Gervase Markham <gerv@gerv.net>
Wed, 30 May 2012 17:48:24 +0100
changeset 12286 84ac3c71109811da751f0ef2d72108075938f094
parent 0 e4f4569d451a5e0d12a6aa33ebd916f979dd8faa
child 29787 12a18e736fca9a9ac8e0866caf470fa9342af842
permissions -rw-r--r--
Bug 757018 - upgrade license to MPL 2.

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"

interface nsIWebProgressListener;
interface nsIAbLDAPDirectory;

/**
 * this service does replication of an LDAP directory to a local Mork AB Database.
 */
[scriptable, uuid(3f499c70-5ceb-4b91-8b7f-62c366859383)]
interface nsIAbLDAPReplicationService: nsISupports {
   
   /**
     * Start Replication of given LDAP directory represented by the URI
     */
    void startReplication(in nsIAbLDAPDirectory aDirectory,
			  in nsIWebProgressListener progressListener);

   /**
     * Cancel Replication of given LDAP directory represented by the URI
     */
    void cancelReplication(in nsIAbLDAPDirectory aDirectory);
  
   /**
     * callback when replication is done, failure or success
     */
    void done(in boolean aSuccess);
};