From d0f4dd20b1ec3b12852368bbe037c286daf16f14 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Fri, 26 Jan 2007 01:33:55 +0000 Subject: [PATCH] add new msg+folder notification service geared more to the needs of desktop search indexers, sr=mscott 290057 git-svn-id: svn://10.0.0.236/trunk@218946 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/base/build/nsMsgFactory.cpp | 6 ++++++ mozilla/mailnews/build/nsMailModule.cpp | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/mozilla/mailnews/base/build/nsMsgFactory.cpp b/mozilla/mailnews/base/build/nsMsgFactory.cpp index 32630f24c10..a3391e9ff1f 100644 --- a/mozilla/mailnews/base/build/nsMsgFactory.cpp +++ b/mozilla/mailnews/base/build/nsMsgFactory.cpp @@ -109,6 +109,7 @@ #include "nsMsgContentPolicy.h" #include "nsCidProtocolHandler.h" #include "nsMsgTagService.h" +#include "nsMsgFolderNotificationService.h" #ifdef XP_WIN #include "nsMessengerWinIntegration.h" @@ -173,6 +174,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgProgress) NS_GENERIC_FACTORY_CONSTRUCTOR(nsSpamSettings) NS_GENERIC_FACTORY_CONSTRUCTOR(nsCidProtocolHandler) NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgTagService) +NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgFolderNotificationService) #ifdef XP_WIN NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsMessengerWinIntegration, Init) #endif @@ -427,6 +429,10 @@ static const nsModuleComponentInfo gComponents[] = { NS_MSGTAGSERVICE_CONTRACTID, nsMsgTagServiceConstructor, }, + { "Msg Notification Service", NS_MSGNOTIFICATIONSERVICE_CID, + NS_MSGNOTIFICATIONSERVICE_CONTRACTID, + nsMsgFolderNotificationServiceConstructor, + }, #ifdef XP_WIN { "Windows OS Integration", NS_MESSENGERWININTEGRATION_CID, NS_MESSENGEROSINTEGRATION_CONTRACTID, diff --git a/mozilla/mailnews/build/nsMailModule.cpp b/mozilla/mailnews/build/nsMailModule.cpp index a18beb3272b..00963ffe052 100644 --- a/mozilla/mailnews/build/nsMailModule.cpp +++ b/mozilla/mailnews/build/nsMailModule.cpp @@ -104,6 +104,7 @@ #include "nsRssIncomingServer.h" #include "nsRssService.h" #include "nsMsgTagService.h" +#include "nsMsgFolderNotificationService.h" #include "nsMailDirProvider.h" #ifdef XP_WIN @@ -338,6 +339,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgOfflineManager) NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgProgress) NS_GENERIC_FACTORY_CONSTRUCTOR(nsSpamSettings) NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgTagService) +NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgFolderNotificationService) NS_GENERIC_FACTORY_CONSTRUCTOR(nsCidProtocolHandler) NS_GENERIC_FACTORY_CONSTRUCTOR(nsMailDirProvider) #ifdef XP_WIN @@ -843,6 +845,11 @@ static const nsModuleComponentInfo gComponents[] = { NS_MSGTAGSERVICE_CONTRACTID, nsMsgTagServiceConstructor, }, + { "Msg Notification Service", NS_MSGNOTIFICATIONSERVICE_CID, + NS_MSGNOTIFICATIONSERVICE_CONTRACTID, + nsMsgFolderNotificationServiceConstructor, + }, + { "cid protocol", NS_CIDPROTOCOL_CID, NS_CIDPROTOCOLHANDLER_CONTRACTID, nsCidProtocolHandlerConstructor,