зеркало из https://github.com/mozilla/pjs.git
Added BiffManager.
This commit is contained in:
Родитель
0df31b53d0
Коммит
3e13a07e0b
|
@ -87,6 +87,7 @@ LLIBS= \
|
||||||
$(DIST)\lib\msgcore.lib \
|
$(DIST)\lib\msgcore.lib \
|
||||||
$(DIST)\lib\appcores.lib \
|
$(DIST)\lib\appcores.lib \
|
||||||
$(DIST)\lib\netlib.lib \
|
$(DIST)\lib\netlib.lib \
|
||||||
|
$(DIST)\lib\raptorgfxwin.lib \
|
||||||
$(LIBNSPR) \
|
$(LIBNSPR) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
|
|
@ -84,4 +84,9 @@
|
||||||
{ 0xd5124441, 0xd59e, 0x11d2, \
|
{ 0xd5124441, 0xd59e, 0x11d2, \
|
||||||
{ 0x80, 0x6a, 0x0, 0x60, 0x8, 0x12, 0x8c, 0x4e } }
|
{ 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__
|
#endif // nsMessageBaseCID_h__
|
||||||
|
|
|
@ -49,6 +49,8 @@
|
||||||
#include "nsMsgServerDataSource.h"
|
#include "nsMsgServerDataSource.h"
|
||||||
#include "nsMsgIdentityDataSource.h"
|
#include "nsMsgIdentityDataSource.h"
|
||||||
|
|
||||||
|
#include "nsMsgBiffManager.h"
|
||||||
|
|
||||||
#ifdef DEBUG_bienvenu
|
#ifdef DEBUG_bienvenu
|
||||||
#include "nsMsgFilterService.h"
|
#include "nsMsgFilterService.h"
|
||||||
#endif
|
#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(kMsgSearchSessionCID, NS_MSGSEARCHSESSION_CID);
|
||||||
static NS_DEFINE_CID(kMsgFilterServiceCID, NS_MSGFILTERSERVICE_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);
|
rv = NS_NewMsgFilterService(aIID, aResult);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
else if (mClassID.Equals(kMsgBiffManagerCID)){
|
||||||
|
rv = NS_NewMsgBiffManager(aIID, aResult);
|
||||||
|
}
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -450,6 +459,13 @@ NSRegisterSelf(nsISupports* aServMgr, const char* path)
|
||||||
if (NS_FAILED(rv)) goto done;
|
if (NS_FAILED(rv)) goto done;
|
||||||
#endif
|
#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
|
#ifdef NS_DEBUG
|
||||||
printf("mailnews registering from %s\n",path);
|
printf("mailnews registering from %s\n",path);
|
||||||
#endif
|
#endif
|
||||||
|
@ -506,6 +522,10 @@ NSUnregisterSelf(nsISupports* aServMgr, const char* path)
|
||||||
if(NS_FAILED(rv)) goto done;
|
if(NS_FAILED(rv)) goto done;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//Biff
|
||||||
|
rv = compMgr->UnregisterComponent(kMsgBiffManagerCID, path);
|
||||||
|
if(NS_FAILED(rv)) goto done;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
|
(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
|
||||||
return rv;
|
return rv;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче