sbPlayQueueExternalLibraryListener Class Reference

Class to allow items in a "master" internal library to stay in sync with duplicates in other libraries. More...

#include <sbPlayQueueExternalLibraryListener.h>

Inheritance diagram for sbPlayQueueExternalLibraryListener:
[legend]
Collaboration diagram for sbPlayQueueExternalLibraryListener:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIMEDIALISTLISTENER 
sbPlayQueueExternalLibraryListener ()
 
nsresult SetMasterLibrary (sbILibrary *aLibrary)
 Set the master library. Items that are in this library with duplicates in external libraries, and items in external libraries with duplicates in this library, will be kept in sync. More...
 
nsresult AddExternalLibrary (sbILibrary *aLibrary)
 Add an external library to listen to. More...
 
nsresult SetPropertiesNoSync (sbIMediaItem *aMediaItem, sbIPropertyArray *aProperties)
 Set properties on an item, but don't synchronize to duplicates in other libraries. More...
 
nsresult RemoveListeners ()
 Removes all listeners so the libraries can shut down. More...
 
- Public Member Functions inherited from sbIMediaListListener
boolean onItemAdded (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called when a media item is added to the list. More...
 
boolean onBeforeItemRemoved (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called before a media item is removed from the list. More...
 
boolean onAfterItemRemoved (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called after a media item is removed from the list. More...
 
boolean onItemUpdated (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in sbIPropertyArray aProperties)
 Called when a media item is changed. More...
 
boolean onItemMoved (in sbIMediaList aMediaList, in unsigned long aFromIndex, in unsigned long aToIndex)
 Called when a media item is moved. More...
 
boolean onBeforeListCleared (in sbIMediaList aMediaList, in boolean aExcludeLists)
 
boolean onListCleared (in sbIMediaList aMediaList, in boolean aExcludeLists)
 
void onBatchBegin (in sbIMediaList aMediaList)
 Called when the library is about to perform multiple operations at once. More...
 
void onBatchEnd (in sbIMediaList aMediaList)
 Called when the library has finished performing multiple operations at once. More...
 

Detailed Description

Class to allow items in a "master" internal library to stay in sync with duplicates in other libraries.

Definition at line 69 of file sbPlayQueueExternalLibraryListener.h.

Constructor & Destructor Documentation

sbPlayQueueExternalLibraryListener::sbPlayQueueExternalLibraryListener ( )

Definition at line 111 of file sbPlayQueueExternalLibraryListener.cpp.

Member Function Documentation

nsresult sbPlayQueueExternalLibraryListener::AddExternalLibrary ( sbILibrary aLibrary)

Add an external library to listen to.

Definition at line 172 of file sbPlayQueueExternalLibraryListener.cpp.

nsresult sbPlayQueueExternalLibraryListener::RemoveListeners ( )

Removes all listeners so the libraries can shut down.

Definition at line 137 of file sbPlayQueueExternalLibraryListener.cpp.

nsresult sbPlayQueueExternalLibraryListener::SetMasterLibrary ( sbILibrary aLibrary)

Set the master library. Items that are in this library with duplicates in external libraries, and items in external libraries with duplicates in this library, will be kept in sync.

Definition at line 156 of file sbPlayQueueExternalLibraryListener.cpp.

nsresult sbPlayQueueExternalLibraryListener::SetPropertiesNoSync ( sbIMediaItem aMediaItem,
sbIPropertyArray aProperties 
)

Set properties on an item, but don't synchronize to duplicates in other libraries.

Definition at line 190 of file sbPlayQueueExternalLibraryListener.cpp.


The documentation for this class was generated from the following files: