sbBaseDeviceLibraryListener Class Reference

#include <sbLibraryListenerHelpers.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIDEVICELIBRARYLISTENER 
sbBaseDeviceLibraryListener ()
 
virtual ~sbBaseDeviceLibraryListener ()
 
nsresult Init (sbBaseDevice *aDevice)
 
void Destroy ()
 
- Public Member Functions inherited from sbIDeviceLibraryListener
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...
 
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. More...
 
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. More...
 
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. More...
 
boolean onBeforeListCleared (in sbIMediaList aMediaList, in boolean aExcludeLists)
 
boolean onListCleared (in sbIMediaList aMediaList, in boolean aExcludeLists)
 
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...
 
void onItemCopied (in sbIMediaItem aSourceItem, in sbIMediaItem aDestItem)
 Called when a media item has been copied. More...
 
boolean onBeforeCreateMediaItem (in nsIURI aContentUri, [optional] in sbIPropertyArray aProperties, [optional] in boolean aAllowDuplicates)
 Called before a media item is going to be created. More...
 
boolean onBeforeCreateMediaList (in AString aType, [optional] in sbIPropertyArray aProperties)
 Called before a media list is going to be created. More...
 
boolean onBeforeAdd (in sbIMediaItem aMediaItem)
 Called before an item is added. More...
 
boolean onBeforeAddAll (in sbIMediaList aMediaList)
 Called before all item from a list are added. More...
 
boolean onBeforeAddSome (in nsISimpleEnumerator aMediaItems)
 Called before some items are added. More...
 
boolean onBeforeClear ()
 Called before the device is cleared. More...
 
- Public Member Functions inherited from sbSupportsWeakReference
 sbSupportsWeakReference ()
 
- Public Member Functions inherited from sbBaseIgnore
nsresult SetIgnoreListener (PRBool aIgnoreListener)
 
nsresult IgnoreMediaItem (sbIMediaItem *aItem)
 
nsresult UnignoreMediaItem (sbIMediaItem *aItem)
 

Protected Attributes

sbBaseDevicemDevice
 

Additional Inherited Members

- Protected Member Functions inherited from sbSupportsWeakReference
 ~sbSupportsWeakReference ()
 
void ClearWeakReferences ()
 
PRBool HasWeakReferences () const
 
- Protected Member Functions inherited from sbBaseIgnore
PRBool MediaItemIgnored (sbIMediaItem *aItem)
 
 sbBaseIgnore ()
 
 ~sbBaseIgnore ()
 

Detailed Description

Definition at line 90 of file sbLibraryListenerHelpers.h.

Constructor & Destructor Documentation

sbBaseDeviceLibraryListener::sbBaseDeviceLibraryListener ( )

Definition at line 201 of file sbLibraryListenerHelpers.cpp.

sbBaseDeviceLibraryListener::~sbBaseDeviceLibraryListener ( )
virtual

Definition at line 207 of file sbLibraryListenerHelpers.cpp.

Member Function Documentation

void sbBaseDeviceLibraryListener::Destroy ( )

Definition at line 222 of file sbLibraryListenerHelpers.cpp.

nsresult sbBaseDeviceLibraryListener::Init ( sbBaseDevice aDevice)

Definition at line 212 of file sbLibraryListenerHelpers.cpp.

Member Data Documentation

sbBaseDevice* sbBaseDeviceLibraryListener::mDevice
protected

Definition at line 107 of file sbLibraryListenerHelpers.h.


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