This commit is contained in:
putterman%netscape.com 1999-06-03 22:55:47 +00:00
Родитель 0df31b53d0
Коммит 3e13a07e0b
3 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -87,6 +87,7 @@ LLIBS= \
$(DIST)\lib\msgcore.lib \
$(DIST)\lib\appcores.lib \
$(DIST)\lib\netlib.lib \
$(DIST)\lib\raptorgfxwin.lib \
$(LIBNSPR) \
$(NULL)

Просмотреть файл

@ -84,4 +84,9 @@
{ 0xd5124441, 0xd59e, 0x11d2, \
{ 0x80, 0x6a, 0x0, 0x60, 0x8, 0x12, 0x8c, 0x4e } }
/* 4A374E7E-190F-11d3-8A88-0060B0FC04D2 */
#define NS_MSGBIFFMANAGER_CID \
{ 0x4a374e7e, 0x190f, 0x11d3, \
{ 0x8a, 0x88, 0x0, 0x60, 0xb0, 0xfc, 0x4, 0xd2 } }
#endif // nsMessageBaseCID_h__

Просмотреть файл

@ -49,6 +49,8 @@
#include "nsMsgServerDataSource.h"
#include "nsMsgIdentityDataSource.h"
#include "nsMsgBiffManager.h"
#ifdef DEBUG_bienvenu
#include "nsMsgFilterService.h"
#endif
@ -84,6 +86,9 @@ static NS_DEFINE_CID(kMsgServerDataSourceCID, NS_MSGSERVERDATASOURCE_CID);
static NS_DEFINE_CID(kMsgSearchSessionCID, NS_MSGSEARCHSESSION_CID);
static NS_DEFINE_CID(kMsgFilterServiceCID, NS_MSGFILTERSERVICE_CID);
// Biff
static NS_DEFINE_CID(kMsgBiffManagerCID, NS_MSGBIFFMANAGER_CID);
////////////////////////////////////////////////////////////
//
////////////////////////////////////////////////////////////
@ -282,6 +287,10 @@ nsMsgFactory::CreateInstance(nsISupports * /* aOuter */,
rv = NS_NewMsgFilterService(aIID, aResult);
}
#endif
else if (mClassID.Equals(kMsgBiffManagerCID)){
rv = NS_NewMsgBiffManager(aIID, aResult);
}
return rv;
}
@ -450,6 +459,13 @@ NSRegisterSelf(nsISupports* aServMgr, const char* path)
if (NS_FAILED(rv)) goto done;
#endif
rv = compMgr->RegisterComponent(kMsgBiffManagerCID,
"Messenger Biff Manager",
"component://netscape/messenger/biffManager",
path,
PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) goto done;
#ifdef NS_DEBUG
printf("mailnews registering from %s\n",path);
#endif
@ -506,6 +522,10 @@ NSUnregisterSelf(nsISupports* aServMgr, const char* path)
if(NS_FAILED(rv)) goto done;
#endif
//Biff
rv = compMgr->UnregisterComponent(kMsgBiffManagerCID, path);
if(NS_FAILED(rv)) goto done;
done:
(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
return rv;