sbDownloadDeviceHelper.js File Reference

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 Documentation

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.

Returns
The name of the OS platform. (ie. Windows).
Return values
Windows_NTRunning under Windows.
DarwinRunning under Darwin/OS X.
LinuxRunning under Linux.
SunOSRunning under Solaris.

Definition at line 54 of file sbDownloadDeviceHelper.js.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

function makeFileURL (   path)

Returns a file url for the path.

Definition at line 115 of file sbDownloadDeviceHelper.js.

Here is the call graph for this function:

function sbDownloadDeviceHelper ( )

Definition at line 130 of file sbDownloadDeviceHelper.js.

Variable Documentation

const _MFM_GET_MANAGED_PATH_OPTIONS
Initial value:
= Ci.sbIMediaFileManager.MANAGE_MOVE |
Ci.sbIMediaFileManager.MANAGE_COPY |
Ci.sbIMediaFileManager.MANAGE_RENAME
const Ci

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.

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
Initial value:
= {audio: "songbird.download.music.alwaysPrompt",
video: "songbird.download.video.alwaysPrompt"}

Definition at line 40 of file sbDownloadDeviceHelper.js.

const PREF_DOWNLOAD_FOLDER
Initial value:
= {audio: "songbird.download.music.folder",
video: "songbird.download.video.folder"}

Definition at line 38 of file sbDownloadDeviceHelper.js.