mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
39 lines
815 B
Plaintext
39 lines
815 B
Plaintext
interface SilentDownloadTask
|
|
{
|
|
/* IID: { 0x18c2f980, 0xb09f, 0x11d2, \
|
|
{0xbc, 0xde, 0x00, 0x80, 0x5f, 0x0e, 0x13, 0x53}} */
|
|
|
|
const int SDL_NOT_INITED = -2;
|
|
const int SDL_NOT_ADDED = -1;
|
|
const int SDL_STARTED = 0;
|
|
const int SDL_SUSPENDED = 1;
|
|
const int SDL_COMPLETED = 2;
|
|
const int SDL_DOWNLOADING_NOW = 3;
|
|
const int SDL_ERROR = 4;
|
|
|
|
|
|
readonly attribute wstring id;
|
|
readonly attribute wstring url;
|
|
readonly attribute wstring script;
|
|
|
|
attribute long state;
|
|
attribute wstring errorMsg;
|
|
attribute long nextByte;
|
|
|
|
readonly attribute wstring outFile;
|
|
|
|
void SilentDownloadTask();
|
|
void Init(in wstring id, in wstring url, in wstring script);
|
|
|
|
void Remove();
|
|
void Suspend();
|
|
void Resume();
|
|
void DownloadNow();
|
|
|
|
|
|
void DownloadSelf(in long range);
|
|
|
|
};
|
|
|
|
|