37 interface nsIPropertyBag2;
49 [scriptable,
uuid(923514f0-0845-431f-86d4-3a073c6a0a98)]
68 in
unsigned long aResult);
81 [scriptable,
uuid(cf0b3ffd-bdc6-4319-a13a-1ad82560230a)]
159 [optional] in
boolean aAllowDuplicates);
193 in
boolean aDontCopyContent);
250 void optimize([optional] in
boolean aAnalyzeOnly);
271 [optional] in nsIArray aPropertyArrayArray,
272 [optional] in
boolean aAllowDuplicates);
287 (in nsIArray aURIArray,
288 [optional] in nsIArray aPropertyArrayArray,
289 [optional] out nsIArray aResultItemArray);
304 in nsIArray aURIArray,
305 [optional] in nsIArray aPropertyArrayArray,
306 [optional] in
boolean aAllowDuplicates);
readonly attribute nsIStringEnumerator mediaListTypes
A list of available media list types.
void clearItemsByType(in AString aContentType)
Clear items of a certain CONTENT_TYPE (see sbStandardProperties.h).
readonly attribute sbIDevice device
Reference to the device that this library is stored on.
void optimize([optional] in boolean aAnalyzeOnly)
Called when the library should remove unsupported media list types, unknown property types...
Factory for new library instances.
sbIMediaItem getMediaItem(in AString aGuid)
Get a media item.
readonly attribute nsIPropertyBag2 creationParameters
Holds the parameters with which this library was created.
nsIChannel resolve(in nsIURI aUri)
Resolves a songbird schemed URL to a channel. Throws an exception if the item referenced in the URL i...
void registerMediaListFactory(in sbIMediaListFactory aFactory)
Register a new media list type at run time.
nsIArray batchCreateMediaItems(in nsIArray aURIArray, [optional] in nsIArray aPropertyArrayArray, [optional] in boolean aAllowDuplicates)
Create many media items from a list of URIs, and notify their addition.
nsIArray getItemsWithSameIdentity(in sbIMediaItem aMediaItem)
Find mediaitems in the library that have the same identity as aMediaItem. Returns an empty array if n...
boolean createMediaItemIfNotExist(in nsIURI aContentUri, [optional] in sbIPropertyArray aProperties, [optional] out sbIMediaItem aResultItem)
Create a new media item, disallowing duplicates, and return if it did.
void batchCreateMediaItemsAsync(in sbIBatchCreateMediaItemsListener aListener, in nsIArray aURIArray, [optional] in nsIArray aPropertyArrayArray, [optional] in boolean aAllowDuplicates)
Asychronously create many media items from a list of URIs.
Media library abstraction.
void flush()
Called when the library should save any cached data to disk.
sbIMediaItem getDuplicate(in sbIMediaItem aMediaItem)
Search for and return a duplicate of the media item specified by aMediaItem.
readonly attribute boolean supportsForeignMediaItems
Declares if this library will host foreign media items.
boolean containsItemWithSameIdentity(in sbIMediaItem aMediaItem)
Checks if another mediaitem with the same identity as aMediaItem is already present in the library...
void clearItems()
Clear all media items (excluding medialists) from the library.
sbIMediaItem createMediaItem(in nsIURI aContentUri, [optional] in sbIPropertyArray aProperties, [optional] in boolean aAllowDuplicates)
Creates a new media item aContentUri The URI pointing to the content of the new media item...
nsIArray batchCreateMediaItemsIfNotExist(in nsIArray aURIArray, [optional] in nsIArray aPropertyArrayArray, [optional] out nsIArray aResultItemArray)
Create many media items from a list of URIs, disallowing duplicates, and return which items were crea...
An interface to carry around arrays of nsIProperty instances. Users of this interface should only QI ...
readonly attribute sbILibraryFactory factory
Holds the factory that created this library.
sbIMediaList copyMediaList(in AString aType, in sbIMediaList aSource, in boolean aDontCopyContent)
Creates a new media list.
sbIMediaList createMediaList(in AString aType, [optional] in sbIPropertyArray aProperties)
Creates a new media list.