make composer and messenger use the new nsIAppShellComponent to get bootstrapped

This commit is contained in:
alecf%netscape.com 1999-05-05 05:14:16 +00:00
Родитель 5fe17e98f7
Коммит d303136cf4
2 изменённых файлов: 8 добавлений и 6 удалений

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

@ -53,6 +53,7 @@ LINCS=-I$(PUBLIC)\raptor \
-I$(PUBLIC)\intl \
-I$(PUBLIC)\appcores \
-I$(PUBLIC)\walletlib \
-I$(PUBLIC)\xpfe\components \
-I$(PUBLIC)\oji
# -I..\browser

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

@ -27,6 +27,7 @@
#include "nsIAppShell.h"
#include "nsICmdLineService.h"
#include "nsIAppShellService.h"
#include "nsIAppShellComponent.h"
#include "nsAppShellCIDs.h"
#include "prprf.h"
#include "nsCRT.h"
@ -390,7 +391,7 @@ int main(int argc, char* argv[])
/* Comments/questions to alecf@netscape.com */
{
/*MESSENGER*/
nsIAppShellService *messenger;
nsIAppShellComponent *messenger;
//const char *messengerProgID = "component://netscape/messenger";
nsresult result;
@ -404,15 +405,15 @@ int main(int argc, char* argv[])
result = nsComponentManager::CreateInstance(kCMessengerBootstrapCID,
nsnull,
nsIAppShellService::GetIID(),
nsIAppShellComponent::GetIID(),
(void **)&messenger);
if (NS_SUCCEEDED(result)) {
printf("The Messenger component is available. Initializing...\n");
result = messenger->Initialize();
result = messenger->Initialize(appShell, cmdLineArgs);
}
/*COMPOSER*/
nsIAppShellService *composer;
nsIAppShellComponent *composer;
//const char *composerProgID = "component://netscape/composer";
/* this is so ugly, but ProgID->CLSID mapping seems to be broken -alecf */
@ -425,11 +426,11 @@ int main(int argc, char* argv[])
result = nsComponentManager::CreateInstance(kCComposerBootstrapCID,
nsnull,
nsIAppShellService::GetIID(),
nsIAppShellComponent::GetIID(),
(void **)&composer);
if (NS_SUCCEEDED(result)) {
printf("The Composer component is available. Initializing...\n");
result = composer->Initialize();
result = composer->Initialize(appShell, cmdLineArgs);
}
}
/* End of mailhack */