mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
not part of build. Still broken, but a little closer to resurrection
This commit is contained in:
parent
455d8411ca
commit
673b40763b
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user