1999-03-24 05:31:49 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The contents of this file are subject to the Netscape 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/NPL/
|
1999-03-24 05:31:49 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* 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.
|
1999-03-24 05:31:49 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-03-24 05:31:49 +03:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-03-24 05:31:49 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
1999-10-21 02:30:02 +04:00
|
|
|
#include "nsIFactory.h"
|
|
|
|
#include "nsIModule.h"
|
|
|
|
#include "nsIGenericFactory.h"
|
|
|
|
|
1999-03-24 05:31:49 +03:00
|
|
|
#include "msgCore.h"
|
|
|
|
#include "pratom.h"
|
|
|
|
#include "nsIComponentManager.h"
|
|
|
|
#include "nsIServiceManager.h"
|
|
|
|
#include "nsCRT.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
1999-04-20 23:08:10 +04:00
|
|
|
#include "nsNewsFolder.h"
|
|
|
|
#include "nsMsgNewsCID.h"
|
1999-03-24 05:31:49 +03:00
|
|
|
|
|
|
|
/* Include all of the interfaces our factory can generate components for */
|
|
|
|
#include "nsNntpUrl.h"
|
1999-03-25 07:47:12 +03:00
|
|
|
#include "nsNntpService.h"
|
1999-04-21 06:55:48 +04:00
|
|
|
#include "nsNntpIncomingServer.h"
|
1999-04-25 00:46:07 +04:00
|
|
|
#include "nsNewsMessage.h"
|
1999-06-03 06:24:08 +04:00
|
|
|
#include "nsNNTPNewsgroup.h"
|
|
|
|
#include "nsNNTPNewsgroupPost.h"
|
|
|
|
#include "nsNNTPNewsgroupList.h"
|
|
|
|
#include "nsNNTPArticleList.h"
|
1999-06-03 22:09:54 +04:00
|
|
|
#include "nsNNTPHost.h"
|
1999-03-24 05:31:49 +03:00
|
|
|
|
1999-10-21 02:30:02 +04:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNntpUrl)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNntpService)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNntpIncomingServer)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNNTPArticleList)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNNTPHost)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNNTPNewsgroup)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNNTPNewsgroupPost)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNNTPNewsgroupList)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNewsMessage)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgNewsFolder)
|
|
|
|
|
1999-11-02 04:12:32 +03:00
|
|
|
static nsModuleComponentInfo components[] =
|
1999-03-24 05:31:49 +03:00
|
|
|
{
|
1999-11-12 12:07:26 +03:00
|
|
|
{ "NNTP URL",
|
|
|
|
NS_NNTPURL_CID,
|
|
|
|
NS_NNTPURL_PROGID,
|
|
|
|
nsNntpUrlConstructor },
|
|
|
|
{ "NNTP Service",
|
|
|
|
NS_NNTPSERVICE_CID,
|
|
|
|
NS_NNTPSERVICE_PROGID,
|
2000-02-05 02:11:19 +03:00
|
|
|
nsNntpServiceConstructor,
|
|
|
|
nsNntpService::RegisterProc,
|
|
|
|
nsNntpService::UnregisterProc },
|
1999-11-12 12:07:26 +03:00
|
|
|
{ "NNTP Protocol Info",
|
|
|
|
NS_NNTPSERVICE_CID,
|
|
|
|
NS_NNTPPROTOCOLINFO_PROGID,
|
|
|
|
nsNntpServiceConstructor },
|
|
|
|
{ "NNTP Message Service",
|
|
|
|
NS_NNTPSERVICE_CID,
|
|
|
|
NS_NNTPMESSAGESERVICE_PROGID,
|
|
|
|
nsNntpServiceConstructor },
|
|
|
|
{ "News Message Service",
|
|
|
|
NS_NNTPSERVICE_CID,
|
|
|
|
NS_NEWSMESSAGESERVICE_PROGID,
|
|
|
|
nsNntpServiceConstructor },
|
|
|
|
{ "News Protocol Handler",
|
|
|
|
NS_NNTPSERVICE_CID,
|
|
|
|
NS_NEWSPROTOCOLHANDLER_PROGID,
|
|
|
|
nsNntpServiceConstructor },
|
|
|
|
{ "News Folder Resource",
|
|
|
|
NS_NEWSFOLDERRESOURCE_CID,
|
|
|
|
NS_NEWSFOLDERRESOURCE_PROGID,
|
|
|
|
nsMsgNewsFolderConstructor },
|
|
|
|
{ "News Message Resource",
|
|
|
|
NS_NEWSMESSAGERESOURCE_CID,
|
|
|
|
NS_NEWSMESSAGERESOURCE_PROGID,
|
|
|
|
nsNewsMessageConstructor },
|
|
|
|
{ "NNTP Incoming Servier",
|
|
|
|
NS_NNTPINCOMINGSERVER_CID,
|
|
|
|
NS_NNTPINCOMINGSERVER_PROGID,
|
|
|
|
nsNntpIncomingServerConstructor },
|
|
|
|
{ "NNTP Newsgroup",
|
|
|
|
NS_NNTPNEWSGROUP_CID,
|
|
|
|
NS_NNTPNEWSGROUP_PROGID,
|
|
|
|
nsNNTPNewsgroupConstructor },
|
|
|
|
{ "NNTP Newsgroup Post",
|
|
|
|
NS_NNTPNEWSGROUPPOST_CID,
|
|
|
|
NS_NNTPNEWSGROUP_PROGID,
|
|
|
|
nsNNTPNewsgroupPostConstructor },
|
|
|
|
{ "NNTP Newsgroup List",
|
|
|
|
NS_NNTPNEWSGROUPLIST_CID,
|
|
|
|
NS_NNTPNEWSGROUPLIST_PROGID,
|
|
|
|
nsNNTPNewsgroupListConstructor },
|
|
|
|
{ "NNTP Article List",
|
|
|
|
NS_NNTPARTICLELIST_CID,
|
|
|
|
NS_NNTPARTICLELIST_PROGID,
|
|
|
|
nsNNTPArticleListConstructor },
|
|
|
|
{ "NNTP Host",
|
|
|
|
NS_NNTPHOST_CID,
|
|
|
|
NS_NNTPHOST_PROGID,
|
|
|
|
nsNNTPHostConstructor }
|
1999-10-21 02:30:02 +04:00
|
|
|
};
|
|
|
|
|
1999-11-12 12:07:26 +03:00
|
|
|
NS_IMPL_NSGETMODULE("nsMsgNewsModule", components)
|
1999-06-03 22:09:54 +04:00
|
|
|
|
1999-03-24 05:31:49 +03:00
|
|
|
|