Register the new nsMsgMessageService which is supported by the mailbox service. Add progids for both the mailbox version of the message service and for the mailbox service.
git-svn-id: svn://10.0.0.236/trunk@28360 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -77,8 +77,8 @@ nsMsgLocalFactory::nsMsgLocalFactory(const nsCID &aClass, const char* aClassName
|
||||
nsMsgLocalFactory::~nsMsgLocalFactory()
|
||||
{
|
||||
NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction");
|
||||
PL_strfree(mClassName);
|
||||
PL_strfree(mProgID);
|
||||
PL_strfree(mClassName);
|
||||
PL_strfree(mProgID);
|
||||
}
|
||||
|
||||
nsresult nsMsgLocalFactory::QueryInterface(const nsIID &aIID, void **aResult)
|
||||
@@ -246,7 +246,13 @@ NSRegisterSelf(nsISupports* aServMgr, const char* path)
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
|
||||
rv = compMgr->RegisterComponent(kMailboxServiceCID, nsnull, nsnull,
|
||||
rv = compMgr->RegisterComponent(kMailboxServiceCID, nsnull,
|
||||
"component://netscape/messenger/mailboxservice",
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
|
||||
rv = compMgr->RegisterComponent(kMailboxServiceCID, nsnull,
|
||||
"component://netscape/messenger/messageservice;type=mailbox",
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
|
||||
@@ -258,7 +264,8 @@ NSRegisterSelf(nsISupports* aServMgr, const char* path)
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
|
||||
rv = compMgr->RegisterComponent(kPop3ServiceCID, nsnull, nsnull,
|
||||
rv = compMgr->RegisterComponent(kPop3ServiceCID, nsnull,
|
||||
"component://netscape/messenger/popservice",
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user