28 #include "nsISupports.idl"
45 [scriptable,
uuid(b97b4384-b3c6-4418-5fd5-7553859aad22)]
85 in
unsigned long aIndex);
99 in
unsigned long aIndex);
113 in
unsigned long aIndex);
125 in
boolean aExcludeLists);
137 in
boolean aExcludeLists);
163 in
unsigned long aFromIndex,
164 in
unsigned long aToIndex);
186 [optional] in
boolean aAllowDuplicates);
224 [scriptable,
uuid(e40c58fa-5adf-434c-79a4-27c153101c9e)]
289 in nsIArray aFolderList);
boolean onBeforeAdd(in sbIMediaItem aMediaItem)
Called before an item is added.
void onItemCopied(in sbIMediaItem aSourceItem, in sbIMediaItem aDestItem)
Called when a media item has been copied.
Definition of the sbILibrary interface.
boolean onListCleared(in sbIMediaList aMediaList, in boolean aExcludeLists)
boolean onBeforeAddAll(in sbIMediaList aMediaList)
Called before all item from a list are added.
void setSyncFolderListByType(in unsigned long aContentType, in nsIArray aFolderList)
Set the list of folders with content type aContentType the user wants to sync from his disk to the de...
const unsigned long MEDIATYPE_UNKNOWN
boolean onItemAdded(in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
Called when a media item is added to a list, through add or addAll.
Interface used to listen to changes to a device library.
const unsigned long MEDIATYPE_AUDIO
void onBatchBegin(in sbIMediaList aMediaList)
Called when the library is about to perform multiple operations at once.
const unsigned long MGMT_PREF_UNINITIALIZED
const unsigned long MEDIATYPE_IMAGE
const unsigned long MEDIATYPE_VIDEO
boolean onBeforeCreateMediaItem(in nsIURI aContentUri, [optional] in sbIPropertyArray aProperties, [optional] in boolean aAllowDuplicates)
Called before a media item is going to be created.
boolean onAfterItemRemoved(in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
Called after a media item has been removed from a list, through remove, removeAll or removeByIndex...
void addDeviceLibraryListener(in sbIDeviceLibraryListener aListener)
Add a listener to this device library.
void sync()
Initiates a sync operation on this library.
void initialize(in AString aLibraryId)
Initialize the device library.
boolean onBeforeCreateMediaList(in AString aType, [optional] in sbIPropertyArray aProperties)
Called before a media list is going to be created.
nsIArray getSyncFolderListByType(in unsigned long aContentType)
Return the list of folders with content type aContentType the user wants to sync from his disk to the...
boolean onBeforeItemRemoved(in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
Called before a media item is removed from a list, through remove, removeAll or removeByIndex.
boolean onItemMoved(in sbIMediaList aMediaList, in unsigned long aFromIndex, in unsigned long aToIndex)
Called when a media item is moved.
boolean onBeforeAddSome(in nsISimpleEnumerator aMediaItems)
Called before some items are added.
void onBatchEnd(in sbIMediaList aMediaList)
Called when the library has finished performing multiple operations at once.
Media library abstraction.
attribute sbIDeviceLibrarySyncSettings syncSettings
boolean onItemUpdated(in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in sbIPropertyArray aProperties)
Called when a media item is changed.
boolean onBeforeClear()
Called before the device is cleared.
boolean onBeforeListCleared(in sbIMediaList aMediaList, in boolean aExcludeLists)
void removeDeviceLibraryListener(in sbIDeviceLibraryListener aListener)
Remove a listener from this device library.
An interface to carry around arrays of nsIProperty instances. Users of this interface should only QI ...
const unsigned long MEDIATYPE_COUNT
void finalize()
Finalize the device library.