mailnews/addrbook/public/nsIAbDirFactory.idl
author Stefan Sitter <ssitter@gmail.com>
Mon, 29 Jun 2015 16:25:25 +0200
changeset 22819 99d02f70de9aff76228a13857aaf4020863c6974
parent 12286 84ac3c71109811da751f0ef2d72108075938f094
child 29787 12a18e736fca9a9ac8e0866caf470fa9342af842
permissions -rw-r--r--
Bug 1163306 - enable icaljs by default only on comm-central, use libical on comm-aurora. r=philipp

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* 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"
#include "nsISimpleEnumerator.idl"

interface nsIAbDirectory;

[scriptable, uuid(ad61b4fc-d8d8-40b2-b924-4c10f28a8a17)]
interface nsIAbDirFactory : nsISupports
{
    /**
     * Get a top level address book directory and sub directories, given some
     * properties.
     *
     * @param aDirName  Name of the address book
     *
     * @param aURI      URI of the address book
     *
     * @param aPrefName Pref name for the preferences of the address book
     *
     * @return          Enumeration of nsIAbDirectory interfaces
     */
    nsISimpleEnumerator getDirectories(in AString aDirName, in ACString aURI,
                                       in ACString aPrefName);

    /**
     * Delete a top level address book directory
     * 
     */
    void deleteDirectory (in nsIAbDirectory directory);
};