sbAddToPlaylist.jsm File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://app/jsmodules/sbProperties.jsm")
 
function createUnwrapper (aSelection)
 Creates a new unwrapper helper object which ensures downloadStatusTarget is always set when adding items to another library or playlist on a device. More...
 
function addToPlaylistHelper ()
 

Variables

const Ci = Components.interfaces
 
const Cc = Components.classes
 
const Cr = Components.results
 
const ADDTOPLAYLIST_MENU_TYPE = "submenu"
 
const ADDTOPLAYLIST_MENU_ID = "library_cmd_addtoplaylist"
 
const ADDTOPLAYLIST_MENU_NAME = "&command.addtoplaylist"
 
const ADDTOPLAYLIST_MENU_TOOLTIP = "&command.tooltip.addtoplaylist"
 
const ADDTOPLAYLIST_MENU_KEY = "&command.shortcut.key.addtoplaylist"
 
const ADDTOPLAYLIST_MENU_KEYCODE = "&command.shortcut.keycode.addtoplaylist"
 
const ADDTOPLAYLIST_MENU_MODIFIERS = "&command.shortcut.modifiers.addtoplaylist"
 
const DOWNLOADTOPLAYLIST_MENU_NAME = "&command.downloadtoplaylist"
 
const DOWNLOADTOPLAYLIST_MENU_TOOLTIP = "&command.tooltip.downloadtoplaylist"
 
const DOWNLOADTOPLAYLIST_MENU_KEY = "&command.shortcut.key.downloadtoplaylist"
 
const DOWNLOADTOPLAYLIST_MENU_KEYCODE = "&command.shortcut.keycode.downloadtoplaylist"
 
const DOWNLOADTOPLAYLIST_MENU_MODIFIERS = "&command.shortcut.modifiers.downloadtoplaylist"
 
const ADDTOPLAYLIST_COMMAND_ID = "library_cmd_addtoplaylist:"
 
const ADDTOPLAYLIST_NEWPLAYLIST_COMMAND_ID = "library_cmd_addtoplaylist_createnew"
 
 EXPORTED_SYMBOLS
 
var SBPlaylistCommand_AddToPlaylist
 
var SBPlaylistCommand_DownloadToPlaylist = SBPlaylistCommand_AddToPlaylist.duplicate()
 
SBPlaylistCommand_DownloadToPlaylist m_root_commands
 
addToPlaylistHelper prototype constructor = addToPlaylistHelper
 
addToPlaylistHelper prototype
 

Function Documentation

function addToPlaylistHelper ( )

Definition at line 388 of file sbAddToPlaylist.jsm.

function createUnwrapper (   aSelection)

Creates a new unwrapper helper object which ensures downloadStatusTarget is always set when adding items to another library or playlist on a device.

Parameters
aSelectionAn sbIMediaListViewSelection.selectedMediaItems enumerator
Returns
A new unwrapper helper object.

Definition at line 63 of file sbAddToPlaylist.jsm.

Components utils import ( "resource://app/jsmodules/sbProperties.jsm"  )

Variable Documentation

const ADDTOPLAYLIST_COMMAND_ID = "library_cmd_addtoplaylist:"

Definition at line 49 of file sbAddToPlaylist.jsm.

const ADDTOPLAYLIST_MENU_ID = "library_cmd_addtoplaylist"

Definition at line 36 of file sbAddToPlaylist.jsm.

const ADDTOPLAYLIST_MENU_KEY = "&command.shortcut.key.addtoplaylist"

Definition at line 39 of file sbAddToPlaylist.jsm.

const ADDTOPLAYLIST_MENU_KEYCODE = "&command.shortcut.keycode.addtoplaylist"

Definition at line 40 of file sbAddToPlaylist.jsm.

const ADDTOPLAYLIST_MENU_MODIFIERS = "&command.shortcut.modifiers.addtoplaylist"

Definition at line 41 of file sbAddToPlaylist.jsm.

const ADDTOPLAYLIST_MENU_NAME = "&command.addtoplaylist"

Definition at line 37 of file sbAddToPlaylist.jsm.

const ADDTOPLAYLIST_MENU_TOOLTIP = "&command.tooltip.addtoplaylist"

Definition at line 38 of file sbAddToPlaylist.jsm.

const ADDTOPLAYLIST_MENU_TYPE = "submenu"

Definition at line 35 of file sbAddToPlaylist.jsm.

const ADDTOPLAYLIST_NEWPLAYLIST_COMMAND_ID = "library_cmd_addtoplaylist_createnew"

Definition at line 50 of file sbAddToPlaylist.jsm.

const Cc = Components.classes

Definition at line 32 of file sbAddToPlaylist.jsm.

Definition at line 31 of file sbAddToPlaylist.jsm.

Definition at line 391 of file sbAddToPlaylist.jsm.

const Cr = Components.results

Definition at line 33 of file sbAddToPlaylist.jsm.

const DOWNLOADTOPLAYLIST_MENU_KEY = "&command.shortcut.key.downloadtoplaylist"

Definition at line 44 of file sbAddToPlaylist.jsm.

const DOWNLOADTOPLAYLIST_MENU_KEYCODE = "&command.shortcut.keycode.downloadtoplaylist"

Definition at line 45 of file sbAddToPlaylist.jsm.

const DOWNLOADTOPLAYLIST_MENU_MODIFIERS = "&command.shortcut.modifiers.downloadtoplaylist"

Definition at line 46 of file sbAddToPlaylist.jsm.

const DOWNLOADTOPLAYLIST_MENU_NAME = "&command.downloadtoplaylist"

Definition at line 42 of file sbAddToPlaylist.jsm.

const DOWNLOADTOPLAYLIST_MENU_TOOLTIP = "&command.tooltip.downloadtoplaylist"

Definition at line 43 of file sbAddToPlaylist.jsm.

EXPORTED_SYMBOLS
Initial value:
= [ "addToPlaylistHelper",
"SBPlaylistCommand_AddToPlaylist",
"SBPlaylistCommand_DownloadToPlaylist" ]

Definition at line 52 of file sbAddToPlaylist.jsm.

Definition at line 340 of file sbAddToPlaylist.jsm.

Definition at line 393 of file sbAddToPlaylist.jsm.

var SBPlaylistCommand_AddToPlaylist

Definition at line 74 of file sbAddToPlaylist.jsm.

var SBPlaylistCommand_DownloadToPlaylist = SBPlaylistCommand_AddToPlaylist.duplicate()

Definition at line 339 of file sbAddToPlaylist.jsm.