Back to index

lightning-sunbird  0.9+nobinonly
nsModule.cpp
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is Thunderbird.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * IBM Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 2004
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *  Brian Ryner <bryner@brianryner.com>
00024  *  Asaf Romano <mozilla.mano@sent.com>
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either the GNU General Public License Version 2 or later (the "GPL"), or
00028  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 #include "nsIGenericFactory.h"
00041 #include "nsMailMigrationCID.h"
00042 #include "nsProfileMigrator.h"
00043 #include "nsSeamonkeyProfileMigrator.h"
00044 #include "nsDogbertProfileMigrator.h"
00045 
00046 NS_GENERIC_FACTORY_CONSTRUCTOR(nsProfileMigrator)
00047 NS_GENERIC_FACTORY_CONSTRUCTOR(nsSeamonkeyProfileMigrator)
00048 NS_GENERIC_FACTORY_CONSTRUCTOR(nsDogbertProfileMigrator)
00049 
00050 #ifdef XP_WIN32
00051 
00052 #include "nsOEProfileMigrator.h"
00053 NS_GENERIC_FACTORY_CONSTRUCTOR(nsOEProfileMigrator)
00054 
00055 #include "nsOutlookProfileMigrator.h"
00056 NS_GENERIC_FACTORY_CONSTRUCTOR(nsOutlookProfileMigrator)
00057 
00058 #include "nsMailWinIntegration.h"
00059 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsWindowsShellService, Init)
00060 #endif
00061 
00062 #if defined(XP_WIN32) || defined(XP_MACOSX)
00063 #include "nsEudoraProfileMigrator.h"
00064 NS_GENERIC_FACTORY_CONSTRUCTOR(nsEudoraProfileMigrator)
00065 #endif
00066 #ifdef MOZ_WIDGET_GTK2
00067 #include "nsMailGNOMEIntegration.h"
00068 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsMailGNOMEIntegration, Init)
00069 #endif
00070 #ifdef XP_MACOSX
00071 #include "nsMailMacIntegration.h"
00072 NS_GENERIC_FACTORY_CONSTRUCTOR(nsMailMacIntegration)
00073 #endif
00074 
00075 static const nsModuleComponentInfo components[] = {
00076   { "Profile Importer",
00077     NS_THUNDERBIRD_PROFILEIMPORT_CID,
00078     NS_PROFILEMIGRATOR_CONTRACTID,
00079     nsProfileMigratorConstructor },
00080   { "Seamonkey Profile Migrator",
00081     NS_SEAMONKEYPROFILEMIGRATOR_CID,
00082     NS_MAILPROFILEMIGRATOR_CONTRACTID_PREFIX "seamonkey",
00083     nsSeamonkeyProfileMigratorConstructor },
00084   { "Netscape Communicator 4.x",
00085     NS_DOGBERTPROFILEMIGRATOR_CID,
00086     NS_MAILPROFILEMIGRATOR_CONTRACTID_PREFIX "dogbert",
00087     nsDogbertProfileMigratorConstructor },
00088 #ifdef XP_WIN32
00089   { "Outlook Express Profile Migrator",
00090     NS_OEXPRESSPROFILEMIGRATOR_CID,
00091     NS_MAILPROFILEMIGRATOR_CONTRACTID_PREFIX "oexpress",
00092     nsOEProfileMigratorConstructor },
00093   { "Outlook Profile Migrator",
00094     NS_OUTLOOKPROFILEMIGRATOR_CID,
00095     NS_MAILPROFILEMIGRATOR_CONTRACTID_PREFIX "outlook",
00096     nsOutlookProfileMigratorConstructor },
00097 #endif
00098 #if defined (XP_WIN32) || defined (XP_MACOSX)
00099   { "Eudora Profile Migrator",
00100     NS_EUDORAPROFILEMIGRATOR_CID,
00101     NS_MAILPROFILEMIGRATOR_CONTRACTID_PREFIX "eudora",
00102     nsEudoraProfileMigratorConstructor },
00103 #endif
00104 #ifdef XP_WIN32
00105   { "Mail Windows Integration",
00106     NS_MAILWININTEGRATION_CID,
00107     "@mozilla.org/mail/shell-service;1",
00108     nsWindowsShellServiceConstructor},
00109 #endif
00110 #ifdef MOZ_WIDGET_GTK2
00111   { "Mail GNOME Integration",
00112     NS_MAILGNOMEINTEGRATION_CID,
00113     "@mozilla.org/mail/shell-service;1",
00114     nsMailGNOMEIntegrationConstructor },
00115 #endif
00116 #ifdef XP_MACOSX
00117   { "Mail Mac Integration",
00118     NS_MAILMACINTEGRATION_CID,
00119     "@mozilla.org/mail/shell-service;1",
00120     nsMailMacIntegrationConstructor },
00121 #endif
00122 };
00123 
00124 NS_IMPL_NSGETMODULE(nsMailCompsModule, components)