relanding parts of the folder lookup service, not called yet, r/sr=bienvenu 441437
authorjminta@gmail.com
Mon, 27 Oct 2008 10:37:14 -0700
changeset 730 746364a208e162dc5773d2dc98b3a063e499c408
parent 729 031112deacdfed1b28563e34b46580d0b7a05782
child 731 b9734a0a910b6cc2ee9c77ddf461bead7779ebbe
push idunknown
push userunknown
push dateunknown
bugs441437
relanding parts of the folder lookup service, not called yet, r/sr=bienvenu 441437
mailnews/base/public/Makefile.in
mailnews/base/public/nsIFolderLookupService.idl
--- a/mailnews/base/public/Makefile.in
+++ b/mailnews/base/public/Makefile.in
@@ -54,16 +54,17 @@ EXPORTS		= \
 		$(NULL)
 
 XPIDLSRCS	= \
                 MailNewsTypes2.idl \
 		nsICopyMessageListener.idl \
 		nsICopyMsgStreamListener.idl \
 		nsIMessenger.idl \
 		nsIFolderListener.idl \
+		nsIFolderLookupService.idl \
 		nsIMsgAccount.idl \
 		nsIMsgAccountManager.idl \
 		nsIMsgFolder.idl \
 		nsIMsgFolderCache.idl \
 		nsIMsgFolderCacheElement.idl \
 		nsIMsgFolderCompactor.idl \
 		nsIMsgIdentity.idl \
 		nsIMsgIncomingServer.idl \
new file mode 100644
--- /dev/null
+++ b/mailnews/base/public/nsIFolderLookupService.idl
@@ -0,0 +1,54 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mailnews code.
+ *
+ * The Initial Developer of the Original Code is
+ *   Joey Minta <jminta@gmail.com>
+ * Portions created by the Initial Developer are Copyright (C) 2008
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#include "nsISupports.idl"
+
+interface nsIMsgFolder;
+
+[scriptable,uuid(a1aaa404-9be7-461f-a715-e92512729923)]
+interface nsIFolderLookupService : nsISupports
+{
+  /**
+   * Returns a folder with the given id. If the folder does not exist, but an
+   * identifiable parent does, we'll create it and then return that folder. If
+   * no parent exists, this will return null.
+   *
+   * @note For the moment, the id is the URI property of the folder.  This may
+   *       change
+   */
+  nsIMsgFolder getFolderById(in ACString id);
+};
+