<?php
/**
 * Horde_ActiveSync_Interface_Imap_Factory::
 *
 * @license   http://www.horde.org/licenses/gpl GPLv2
 *
 * @copyright 2012-2020 Horde LLC (http://www.horde.org)
 * @author    Michael J Rubinsky <mrubinsk@horde.org>
 * @package   ActiveSync
 */
/**
 * Horde_ActiveSync_Interface_ImapFactory:: Defines an interface for a factory
 * object that knows how to provide an appropriate Horde_ActiveSync_Imap_Adapter
 * object and mailbox lists.
 *
 * @license   http://www.horde.org/licenses/gpl GPLv2
 *
 * @copyright 2012-2020 Horde LLC (http://www.horde.org)
 * @author    Michael J Rubinsky <mrubinsk@horde.org>
 * @package   ActiveSync
 */
interface Horde_ActiveSync_Interface_ImapFactory
{
    /**
     * Return an imap client object.
     *
     * @return mixed  An object capable of communicating with an IMAP server.
     */
    public function getImapOb();

    /**
     * Return the list of IMAP mailboxes
     *
     * @param boolean $force  If true, force a refresh of the list.
     *
     * @return array  An array of mailbox names.
     */
    public function getMailboxes($force = false);

    /**
     * Return the list of "special" mailboxes such as Trash/Sent
     *
     * @return array  An array of mailbox names, keyed by the special type.
     */
    public function getSpecialMailboxes();
}
