not part of build. Still broken, but a little closer to resurrection

This commit is contained in:
dveditz%netscape.com 1999-07-16 03:01:25 +00:00
parent 455d8411ca
commit 673b40763b
3 changed files with 9 additions and 3 deletions

View File

@ -72,6 +72,12 @@ nsSimpleNotifier::FinalStatus(const PRUnichar *URL, PRInt32 status)
printf("Installation aborted.\n");
}
NS_IMETHODIMP
nsSimpleNotifier::LogComment(const PRUnichar *message)
{
printf("**NOTE: %s\n",message);
}
NS_IMETHOD
nsSimpleNotifier::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{

View File

@ -42,6 +42,7 @@ class nsSimpleNotifier : public nsIXPINotifier
NS_IMETHOD ItemScheduled(const PRUnichar *message);
NS_IMETHOD FinalizeProgress(const PRUnichar *message, PRInt32 itemNum, PRInt32 totNum);
NS_IMETHOD FinalStatus(const PRUnichar* URL, PRInt32 status);
NS_IMETHOD LogComment(const PRUnichar* message);
NS_IMETHOD QueryInterface(REFNSIID aIID, void** aInstancePtr);
NS_IMETHOD_(nsrefcnt) AddRef(void);
NS_IMETHOD_(nsrefcnt) Release(void);

View File

@ -101,15 +101,14 @@ main(int argc, char **argv)
nsSimpleNotifier *progress = new nsSimpleNotifier();
softwareUpdate->RegisterNotifier(progress);
nsFileSpec jarFile(argv[i]);
nsFileURL jarFileURL(jarFile);
softwareUpdate->InstallJar( nsString( jarFileURL.GetAsString() ) ,
nsString( nsNSPRPath(jarFile) ),
0x00000001);
0x0000FFFF,
progress);
}