view dwt/internal/mozilla/nsIHelperAppLauncher.d @ 341:942da4b6558a

Ongoing fixup for compile
author John Reimer <terminal.node@gmail.com>
date Sun, 26 Oct 2008 21:19:51 -0700
parents eec6ddb07873
children 9a4d7706df52
line wrap: on
line source

module dwt.internal.mozilla.nsIHelperAppLauncher;

private import dwt.internal.mozilla.Common;
private import dwt.internal.mozilla.nsID;
private import dwt.internal.mozilla.nsISupports;
private import dwt.internal.mozilla.nsIURI;
private import dwt.internal.mozilla.nsIMIMEInfo;
private import dwt.internal.mozilla.nsIFile;
private import dwt.internal.mozilla.nsIWebProgressListener;
private import dwt.internal.mozilla.nsStringAPI;
private import dwt.internal.mozilla.prtime;

const char[] NS_IHELPERAPPLAUNCHER_IID_STR = "9503d0fe-4c9d-11d4-98d0-001083010e9b";

const nsIID NS_IHELPERAPPLAUNCHER_IID= 
  {0x9503d0fe, 0x4c9d, 0x11d4, 
    [ 0x98, 0xd0, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b ]};

//extern(System)

interface nsIHelperAppLauncher : nsISupports {

  static const char[] IID_STR = NS_IHELPERAPPLAUNCHER_IID_STR;
  static const nsIID IID = NS_IHELPERAPPLAUNCHER_IID;

  nsresult GetMIMEInfo(nsIMIMEInfo  *aMIMEInfo);
  nsresult GetSource(nsIURI  *aSource);
  nsresult GetSuggestedFileName(nsAString * aSuggestedFileName);
  nsresult SaveToDisk(nsIFile aNewFileLocation, PRBool aRememberThisPreference);
  nsresult LaunchWithApplication(nsIFile aApplication, PRBool aRememberThisPreference);
  nsresult Cancel();
  nsresult SetWebProgressListener(nsIWebProgressListener aWebProgressListener);
  nsresult CloseProgressWindow();
  nsresult GetDownloadInfo( nsIURI* aSourceUrl, PRTime* aTimeDownloadStarted, nsIFile* result);

}