Bug #63346 --> add open and open folder APIs for the OS.

Bug #61947 --> pass in the initial time
when we started the download via getDownloadInfo so
the progress dialog can use this information.
This commit is contained in:
mscott%netscape.com 2001-01-25 06:47:12 +00:00
Родитель a34deec8ad
Коммит d6bd863761
2 изменённых файлов: 16 добавлений и 2 удалений

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

@ -96,6 +96,7 @@ interface nsIHelperAppLauncher : nsISupports
void closeProgressWindow();
// aSourceUrl--> the url we are downloading....and the file we are saving too
nsIFile getDownloadInfo(out nsIURI aSourceUrl);
// aTimeDownloadStarted --> time in ms that the download actually began
nsIFile getDownloadInfo(out nsIURI aSourceUrl, out long long aTimeDownloadStarted);
};

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

@ -31,6 +31,7 @@
#include "nsISupports.idl"
interface nsIURI;
interface nsIFile;
[scriptable, uuid(100FD4B3-4557-11d4-98D0-001083010E9B)]
interface nsIExternalProtocolService : nsISupports
@ -42,4 +43,16 @@ interface nsIExternalProtocolService : nsISupports
// used to load a url via an external protocol handler (if one exists)
// aURL --> the url to load
void loadUrl (in nsIURI aURL);
};
// i may need to find a better interface for the following two methods. I'm not sure yet
// (mscott)
// open --> Ask the operating system to attempt to open aFile. This is used as a quick
// and easy way for one to automatically open a file using the application associated
// with that file.
void open(in nsIFile aFile);
// openFolder --> Ask the operating system to open the folder and select the file
// specified by aFile. If aFile doesn't include the actual file and is just a folder
// name then we'll just open that folder. this routine only works on platforms which
// support the ability to open a folder...
void openFolder(in nsIFile aFile);
};