Landing Address book LDAP replication, bug # 128086

these files define the CID and ContractID for new LDAP replication interfaces
and their implementation and make them part of Addressbook module using the factory.
makefile changes for uriloader dependency for nsIWebProgressListener.

r=sspitzer, sr=bienvenu, a=asa.
This commit is contained in:
rdayal%netscape.com 2002-03-26 10:08:06 +00:00
parent 45650cd2c2
commit ccc7af8b80
4 changed files with 60 additions and 1 deletions

View File

@ -56,7 +56,9 @@ CPPSRCS = nsAbFactory.cpp
EXPORTS = nsAbBaseCID.h
ifdef MOZ_LDAP_XPCOM
REQUIRES += mozldap
REQUIRES += mozldap \
uriloader \
$(NULL)
DEFINES += -DMOZ_LDAP_XPCOM
endif

View File

@ -39,6 +39,7 @@ REQUIRES = xpcom \
dom \
widget \
locale \
uriloader \
mork \
appcomps \
mozldap \

View File

@ -379,6 +379,41 @@
#define NS_ABLDAPAUTOCOMPFORMATTER_CONTRACTID \
"@mozilla.org/ldap-autocomplete-formatter;1?type=addrbook"
// nsAbLDAPReplicationService
//
// {ece81280-2639-11d6-b791-00b0d06e5f27}
//
#define NS_ABLDAP_REPLICATIONSERVICE_CID \
{0xece81280, 0x2639, 0x11d6, \
{ 0xb7, 0x91, 0x00, 0xb0, 0xd0, 0x6e, 0x5f, 0x27 }}
#define NS_ABLDAP_REPLICATIONSERVICE_CONTRACTID \
"@mozilla.org/addressbook/ldap-replication-service;1"
// nsAbLDAPReplicationQuery
//
// {5414fff0-263b-11d6-b791-00b0d06e5f27}
//
#define NS_ABLDAP_REPLICATIONQUERY_CID \
{0x5414fff0, 0x263b, 0x11d6, \
{ 0xb7, 0x91, 0x00, 0xb0, 0xd0, 0x6e, 0x5f, 0x27 }}
#define NS_ABLDAP_REPLICATIONQUERY_CONTRACTID \
"@mozilla.org/addressbook/ldap-replication-query;1"
// nsAbLDAPProcessReplicationData
//
// {5414fff1-263b-11d6-b791-00b0d06e5f27}
//
#define NS_ABLDAP_PROCESSREPLICATIONDATA_CID \
{0x5414fff1, 0x263b, 0x11d6, \
{ 0xb7, 0x91, 0x00, 0xb0, 0xd0, 0x6e, 0x5f, 0x27 }}
#define NS_ABLDAP_PROCESSREPLICATIONDATA_CONTRACTID \
"@mozilla.org/addressbook/ldap-process-replication-data;1"
// nsABView
#define NS_ABVIEW_CID \

View File

@ -79,6 +79,9 @@
#include "nsAbLDAPCard.h"
#include "nsAbLDAPDirFactory.h"
#include "nsAbLDAPAutoCompFormatter.h"
#include "nsAbLDAPReplicationService.h"
#include "nsAbLDAPReplicationQuery.h"
#include "nsAbLDAPReplicationData.h"
#endif
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAddressBook)
@ -113,6 +116,9 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbLDAPDirectory)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbLDAPCard)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbLDAPDirFactory)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbLDAPAutoCompFormatter)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbLDAPReplicationService)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbLDAPReplicationQuery)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbLDAPProcessReplicationData)
#endif
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbDirectoryQueryProxy)
@ -250,6 +256,21 @@ static const nsModuleComponentInfo components[] =
NS_ABLDAPDIRFACTORY_CONTRACTID,
nsAbLDAPDirFactoryConstructor },
{"Address LDAP Replication Service Interface",
NS_ABLDAP_REPLICATIONSERVICE_CID,
NS_ABLDAP_REPLICATIONSERVICE_CONTRACTID,
nsAbLDAPReplicationServiceConstructor },
{"Address LDAP Replication Query Interface",
NS_ABLDAP_REPLICATIONQUERY_CID,
NS_ABLDAP_REPLICATIONQUERY_CONTRACTID,
nsAbLDAPReplicationQueryConstructor },
{"Address LDAP Replication Processor Interface",
NS_ABLDAP_PROCESSREPLICATIONDATA_CID,
NS_ABLDAP_PROCESSREPLICATIONDATA_CONTRACTID,
nsAbLDAPProcessReplicationDataConstructor },
{ "Address LDAP autocomplete factory Interface",
NS_ABLDAPDIRFACTORY_CID,
NS_ABLDAPACDIRFACTORY_CONTRACTID,