sbLibraryUpdateListener Class Reference

#include <sbDeviceLibraryHelpers.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIMEDIALISTLISTENER 
sbLibraryUpdateListener (sbILibrary *aTargetLibrary, bool aIgnorePlaylists, sbIDevice *aDevice)
 
- 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...
 

Protected Member Functions

virtual ~sbLibraryUpdateListener ()
 

Protected Attributes

sbILibrarymTargetLibrary
 
bool mIgnorePlaylists
 
sbIDevicemDevice
 

Detailed Description

bool mSyncPlaylists; Listens to item update events to propagate into a second library The target library must register this listener before going away.

Definition at line 51 of file sbDeviceLibraryHelpers.h.

Constructor & Destructor Documentation

sbLibraryUpdateListener::sbLibraryUpdateListener ( sbILibrary aTargetLibrary,
bool  aIgnorePlaylists,
sbIDevice aDevice 
)

Definition at line 48 of file sbDeviceLibraryHelpers.cpp.

sbLibraryUpdateListener::~sbLibraryUpdateListener ( )
protectedvirtual

Definition at line 58 of file sbDeviceLibraryHelpers.cpp.

Member Data Documentation

sbIDevice* sbLibraryUpdateListener::mDevice
protected

Definition at line 70 of file sbDeviceLibraryHelpers.h.

bool sbLibraryUpdateListener::mIgnorePlaylists
protected

Definition at line 69 of file sbDeviceLibraryHelpers.h.

sbILibrary* sbLibraryUpdateListener::mTargetLibrary
protected

The target library holds a reference to us (to unregister), so it is safe to not own a reference

Definition at line 68 of file sbDeviceLibraryHelpers.h.


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