sbLibraryUtils.jsm File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://app/jsmodules/sbProperties.jsm")
 
 if (!originGUID)
 
 catch (e)
 

Variables

 EXPORTED_SYMBOLS = ["LibraryUtils"]
 
const Cc = Components.classes
 
const Ci = Components.interfaces
 
const Cr = Components.results
 
var LibraryUtils
 
var getMainLibraryOriginItem
 Find an item in the main library whose guid matches the originItemGuid of the param aMediaItem and return it, or null if not found. More...
 
 try
 
return foundItem
 

Function Documentation

catch (   e)

Definition at line 280 of file sbLibraryUtils.jsm.

if ( originGUID)

Definition at line 273 of file sbLibraryUtils.jsm.

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

Variable Documentation

const Cc = Components.classes

Definition at line 31 of file sbLibraryUtils.jsm.

Definition at line 32 of file sbLibraryUtils.jsm.

const Cr = Components.results

Definition at line 33 of file sbLibraryUtils.jsm.

EXPORTED_SYMBOLS = ["LibraryUtils"]

Definition at line 29 of file sbLibraryUtils.jsm.

return foundItem

Definition at line 278 of file sbLibraryUtils.jsm.

var getMainLibraryOriginItem

Find an item in the main library whose guid matches the originItemGuid of the param aMediaItem and return it, or null if not found.

Parameters
aMediaItemRetrieve an item from the mainLibrary whose guid matches the originItemGuid of this mediaitem
Returns
The mediaitem from the mainLibrary whose guid matches the originItemGuid of aMediaItem. null if none was found.

Definition at line 39 of file sbLibraryUtils.jsm.

Definition at line 39 of file sbLibraryUtils.jsm.

try
Initial value:
{
var foundItem = this.mainLibrary.getMediaItem(originGUID)
return foundItem

Definition at line 276 of file sbLibraryUtils.jsm.