зеркало из https://github.com/mozilla/pjs.git
nsCopymessageStreamListener can be created through the factory.
This commit is contained in:
Родитель
c7b736579e
Коммит
0eb045d137
|
@ -94,4 +94,8 @@
|
|||
{ 0x7c601f60, 0x1ef3, 0x11d3, \
|
||||
{ 0x95, 0x74, 0x0, 0x60, 0x97, 0x22, 0x2b, 0x83 } }
|
||||
|
||||
#define NS_COPYMESSAGESTREAMLISTENER_CID \
|
||||
{ 0x7741daed, 0x2125, 0x11d3, \
|
||||
{ 0x8a, 0x90, 0x0, 0x60, 0xb0, 0xfc, 0x4, 0xd2 } }
|
||||
|
||||
#endif // nsMessageBaseCID_h__
|
||||
|
|
|
@ -52,6 +52,8 @@
|
|||
#include "nsMsgBiffManager.h"
|
||||
#include "nsMsgNotificationManager.h"
|
||||
|
||||
#include "nsCopyMessageStreamListener.h"
|
||||
|
||||
#ifdef DEBUG_bienvenu
|
||||
#include "nsMsgFilterService.h"
|
||||
#endif
|
||||
|
@ -91,6 +93,9 @@ static NS_DEFINE_CID(kMsgFilterServiceCID, NS_MSGFILTERSERVICE_CID);
|
|||
static NS_DEFINE_CID(kMsgBiffManagerCID, NS_MSGBIFFMANAGER_CID);
|
||||
static NS_DEFINE_CID(kMsgNotificationManagerCID, NS_MSGNOTIFICATIONMANAGER_CID);
|
||||
|
||||
// Copy
|
||||
static NS_DEFINE_CID(kCopyMessageStreamListenerCID, NS_COPYMESSAGESTREAMLISTENER_CID);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -295,6 +300,9 @@ nsMsgFactory::CreateInstance(nsISupports * /* aOuter */,
|
|||
else if (mClassID.Equals(kMsgNotificationManagerCID)){
|
||||
rv = NS_NewMsgNotificationManager(aIID, aResult);
|
||||
}
|
||||
else if (mClassID.Equals(kCopyMessageStreamListenerCID)){
|
||||
rv = NS_NewCopyMessageStreamListener(aIID, aResult);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
@ -464,6 +472,12 @@ NSRegisterSelf(nsISupports* aServMgr, const char* path)
|
|||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) finalResult = rv;
|
||||
|
||||
rv = compMgr->RegisterComponent(kCopyMessageStreamListenerCID,
|
||||
"Mail/News CopyMessage Stream Listener",
|
||||
"component://netscape/messenger/copymessagestreamlistener",
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) finalResult = rv;
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
printf("mailnews registering from %s\n",path);
|
||||
#endif
|
||||
|
@ -517,6 +531,9 @@ NSUnregisterSelf(nsISupports* aServMgr, const char* path)
|
|||
if (NS_FAILED(rv)) finalResult = rv;
|
||||
rv = compMgr->UnregisterComponent(kMsgNotificationManagerCID, path);
|
||||
if (NS_FAILED(rv)) finalResult = rv;
|
||||
|
||||
rv = compMgr->UnregisterComponent(kCopyMessageStreamListenerCID, path);
|
||||
if (NS_FAILED(rv)) finalResult = rv;
|
||||
return finalResult;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче