Go to the source code of this file.
Functions | |
| Components utils | import ("resource://gre/modules/XPCOMUtils.jsm") |
| function | getPlatformString () |
| Get the name of the platform we are running on. More... | |
| function | folderIsValid (folder) |
| function | makeFile (path) |
| function | makeFileURL (path) |
| function | sbDownloadDeviceHelper () |
Variables | |
| const | Ci = Components.interfaces |
| const | Cc = Components.classes |
| const | Cr = Components.results |
| const | Cu = Components.utils |
| const | CE = Components.Exception |
| const | PREF_DOWNLOAD_FOLDER |
| const | PREF_DOWNLOAD_ALWAYSPROMPT |
| const | _MFM_GET_MANAGED_PATH_OPTIONS |
| function folderIsValid | ( | folder | ) |
Our super-smart heuristic for determining if the download folder is valid.
Definition at line 80 of file sbDownloadDeviceHelper.js.
| function getPlatformString | ( | ) |
Get the name of the platform we are running on.
| Windows_NT | Running under Windows. |
| Darwin | Running under Darwin/OS X. |
| Linux | Running under Linux. |
| SunOS | Running under Solaris. |
Definition at line 54 of file sbDownloadDeviceHelper.js.
| Components utils import | ( | "resource://gre/modules/XPCOMUtils.jsm" | ) |
| function makeFile | ( | path | ) |
Returns an nsILocalFile or null if the path is bad.
Definition at line 92 of file sbDownloadDeviceHelper.js.
| function makeFileURL | ( | path | ) |
Returns a file url for the path.
Definition at line 115 of file sbDownloadDeviceHelper.js.
| function sbDownloadDeviceHelper | ( | ) |
Definition at line 130 of file sbDownloadDeviceHelper.js.
| const _MFM_GET_MANAGED_PATH_OPTIONS |
Definition at line 42 of file sbDownloadDeviceHelper.js.
| const Cc = Components.classes |
Definition at line 33 of file sbDownloadDeviceHelper.js.
| const CE = Components.Exception |
Definition at line 36 of file sbDownloadDeviceHelper.js.
| const Ci = Components.interfaces |
Definition at line 32 of file sbDownloadDeviceHelper.js.
| const Cr = Components.results |
Definition at line 34 of file sbDownloadDeviceHelper.js.
| const Cu = Components.utils |
Definition at line 35 of file sbDownloadDeviceHelper.js.
| const PREF_DOWNLOAD_ALWAYSPROMPT |
Definition at line 40 of file sbDownloadDeviceHelper.js.
| const PREF_DOWNLOAD_FOLDER |
Definition at line 38 of file sbDownloadDeviceHelper.js.