зеркало из https://github.com/mozilla/pjs.git
Adding addbook: URL support
This commit is contained in:
Родитель
bf02af838a
Коммит
8e529ac72a
|
@ -166,4 +166,26 @@
|
|||
{0xa5, 0x63, 0x00, 0x60, 0xb0, 0xfc, 0x4, 0xb7} \
|
||||
}
|
||||
|
||||
//
|
||||
// addbook URL
|
||||
//
|
||||
#define NS_ADDBOOKURL_PROGID \
|
||||
"component://netscape/addressbook/services/addbookurl"
|
||||
#define NS_ADDBOOKURL_CID \
|
||||
{ /* ff04c8e6-501e-11d3-a527-0060b0fc0444 */ \
|
||||
0xff04c8e6, 0x501e, 0x11d3, \
|
||||
{0xa5, 0x27, 0x0, 0x60, 0xb0, 0xfc, 0x4, 0x44} \
|
||||
}
|
||||
|
||||
//
|
||||
// addbook Protocol Handler
|
||||
//
|
||||
#define NS_ADDBOOK_HANDLER_PROGID \
|
||||
"component://netscape/addressbook/services/addbook"
|
||||
#define NS_ADDBOOK_HANDLER_CID \
|
||||
{ /* ff04c8e6-501e-11d3-ffcc-0060b0fc0444 */ \
|
||||
0xff04c8e6, 0x501e, 0x11d3, \
|
||||
{0xff, 0xcc, 0x0, 0x60, 0xb0, 0xfc, 0x4, 0x44} \
|
||||
}
|
||||
|
||||
#endif // nsAbBaseCID_h__
|
||||
|
|
|
@ -46,6 +46,8 @@
|
|||
#include "nsAbDirProperty.h"
|
||||
#include "nsAbAutoCompleteSession.h"
|
||||
#include "nsAbAddressCollecter.h"
|
||||
#include "nsAddbookProtocolHandler.h"
|
||||
#include "nsAddbookUrl.h"
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAddressBook)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsAbDirectoryDataSource,Init)
|
||||
|
@ -58,6 +60,9 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbDirProperty)
|
|||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAddrBookSession)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbAutoCompleteSession)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAbAddressCollecter)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAddbookUrl)
|
||||
|
||||
//NS_GENERIC_FACTORY_CONSTRUCTOR(nsAddbookProtocolHandler)
|
||||
|
||||
static nsModuleComponentInfo components[] =
|
||||
{
|
||||
|
@ -110,8 +115,15 @@ static nsModuleComponentInfo components[] =
|
|||
{ "Address Book Address Collector",
|
||||
NS_ABADDRESSCOLLECTER_CID,
|
||||
NS_ABADDRESSCOLLECTER_PROGID,
|
||||
nsAbAddressCollecterConstructor }
|
||||
nsAbAddressCollecterConstructor },
|
||||
{ "The addbook URL Interface",
|
||||
NS_ADDBOOKURL_CID,
|
||||
NS_ADDBOOKURL_PROGID,
|
||||
nsAddbookUrlConstructor },
|
||||
{ "The addbook Protocol Handler",
|
||||
NS_ADDBOOK_HANDLER_CID,
|
||||
NS_NETWORK_PROTOCOL_PROGID_PREFIX "addbook",
|
||||
nsAddbookProtocolHandler::Create }
|
||||
};
|
||||
|
||||
|
||||
NS_IMPL_NSGETMODULE("nsAbModule", components)
|
||||
|
|
|
@ -42,6 +42,7 @@ XPIDLSRCS = \
|
|||
nsIAutoCompleteSession.idl \
|
||||
nsIAbAddressCollecter.idl \
|
||||
nsIAbUpgrader.idl \
|
||||
nsIAddbookUrl.idl \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -36,6 +36,7 @@ XPIDLSRCS = \
|
|||
.\nsIAutoCompleteListener.idl \
|
||||
.\nsIAbAddressCollecter.idl \
|
||||
.\nsIAbUpgrader.idl \
|
||||
.\nsIAddbookUrl.idl \
|
||||
$(NULL)
|
||||
|
||||
|
||||
|
|
|
@ -44,6 +44,8 @@ CPPSRCS = \
|
|||
nsAbDirProperty.cpp \
|
||||
nsAbAutoCompleteSession.cpp \
|
||||
nsAbAddressCollecter.cpp \
|
||||
nsAddbookProtocolHandler.cpp \
|
||||
nsAddbookUrl.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS = \
|
||||
|
@ -61,6 +63,8 @@ EXPORTS = \
|
|||
nsAbDirProperty.h \
|
||||
nsAbAutoCompleteSession.h \
|
||||
nsAbAddressCollecter.h \
|
||||
nsAddbookProtocolHandler.h \
|
||||
nsAddbookUrl.h \
|
||||
$(NULL)
|
||||
|
||||
# we don't want the shared lib, but we want to force the creation of a static lib.
|
||||
|
|
|
@ -42,6 +42,8 @@ EXPORTS= \
|
|||
nsAbDirProperty.h \
|
||||
nsAbAutoCompleteSession.h \
|
||||
nsAbAddressCollecter.h \
|
||||
nsAddbookProtocolHandler.h \
|
||||
nsAddbookUrl.h \
|
||||
$(NULL)
|
||||
|
||||
################################################################################
|
||||
|
@ -64,6 +66,8 @@ CPP_OBJS= \
|
|||
.\$(OBJDIR)\nsAbDirProperty.obj \
|
||||
.\$(OBJDIR)\nsAbAutoCompleteSession.obj \
|
||||
.\$(OBJDIR)\nsAbAddressCollecter.obj \
|
||||
.\$(OBJDIR)\nsAddbookProtocolHandler.obj \
|
||||
.\$(OBJDIR)\nsAddbookUrl.obj \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "nsIAddrDatabase.h"
|
||||
|
||||
typedef struct {
|
||||
char *abField;
|
||||
const char *abField;
|
||||
PRBool includeIt;
|
||||
} reportColumnStruct;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче