sbLocalDatabaseMediaListListener Class Reference

#include <sbLocalDatabaseMediaListListener.h>

Inheritance diagram for sbLocalDatabaseMediaListListener:
[legend]

Public Member Functions

 sbLocalDatabaseMediaListListener ()
 
virtual ~sbLocalDatabaseMediaListListener ()
 

Protected Member Functions

nsresult Init ()
 
nsresult AddListener (sbLocalDatabaseMediaListBase *aList, sbIMediaListListener *aListener, PRBool aOwnsWeak=PR_FALSE, PRUint32 aFlags=sbIMediaList::LISTENER_FLAGS_ALL, sbIPropertyArray *aPropertyFilter=nsnull)
 
nsresult RemoveListener (sbLocalDatabaseMediaListBase *aList, sbIMediaListListener *aListener)
 
PRUint32 ListenerCount ()
 
void NotifyListenersItemAdded (sbIMediaList *aList, sbIMediaItem *aItem, PRUint32 aIndex)
 Notifies all listeners that an item has been added to the list. More...
 
void NotifyListenersBeforeItemRemoved (sbIMediaList *aList, sbIMediaItem *aItem, PRUint32 aIndex)
 Notifies all listeners that an item is about to be removed from the list. More...
 
void NotifyListenersAfterItemRemoved (sbIMediaList *aList, sbIMediaItem *aItem, PRUint32 aIndex)
 Notifies all listeners that an item has been removed from the list. More...
 
void NotifyListenersItemUpdated (sbIMediaList *aList, sbIMediaItem *aItem, sbIPropertyArray *aProperties)
 Notifies all listeners that an item has been updated. More...
 
void NotifyListenersItemMoved (sbIMediaList *aList, PRUint32 aFromIndex, PRUint32 aToIndex)
 Notifies all listeners that an item has been moved. More...
 
void NotifyListenersBeforeListCleared (sbIMediaList *aList, PRBool aExcludeLists)
 Notifies all listeners before the list has been cleared. More...
 
void NotifyListenersListCleared (sbIMediaList *aList, PRBool aExcludeLists)
 Notifies all listeners that the list has been cleared. More...
 
void NotifyListenersBatchBegin (sbIMediaList *aList)
 Notifies all listeners that multiple items are about to be changed. More...
 
void NotifyListenersBatchEnd (sbIMediaList *aList)
 Notifies all listeners that multiple items have been changed. More...
 

Friends

class sbAutoBatchHelper
 

Detailed Description

Definition at line 103 of file sbLocalDatabaseMediaListListener.h.

Constructor & Destructor Documentation

sbLocalDatabaseMediaListListener::sbLocalDatabaseMediaListListener ( )

Definition at line 71 of file sbLocalDatabaseMediaListListener.cpp.

sbLocalDatabaseMediaListListener::~sbLocalDatabaseMediaListListener ( )
virtual

Definition at line 84 of file sbLocalDatabaseMediaListListener.cpp.

Member Function Documentation

nsresult sbLocalDatabaseMediaListListener::AddListener ( sbLocalDatabaseMediaListBase aList,
sbIMediaListListener aListener,
PRBool  aOwnsWeak = PR_FALSE,
PRUint32  aFlags = sbIMediaList::LISTENER_FLAGS_ALL,
sbIPropertyArray aPropertyFilter = nsnull 
)
protected

Definition at line 110 of file sbLocalDatabaseMediaListListener.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseMediaListListener::Init ( )
protected

Definition at line 94 of file sbLocalDatabaseMediaListListener.cpp.

Here is the caller graph for this function:

PRUint32 sbLocalDatabaseMediaListListener::ListenerCount ( )
protected

Definition at line 296 of file sbLocalDatabaseMediaListListener.cpp.

void sbLocalDatabaseMediaListListener::NotifyListenersAfterItemRemoved ( sbIMediaList aList,
sbIMediaItem aItem,
PRUint32  aIndex 
)
protected

Notifies all listeners that an item has been removed from the list.

Definition at line 480 of file sbLocalDatabaseMediaListListener.cpp.

Here is the caller graph for this function:

void sbLocalDatabaseMediaListListener::NotifyListenersBatchBegin ( sbIMediaList aList)
protected

Notifies all listeners that multiple items are about to be changed.

Definition at line 582 of file sbLocalDatabaseMediaListListener.cpp.

Here is the caller graph for this function:

void sbLocalDatabaseMediaListListener::NotifyListenersBatchEnd ( sbIMediaList aList)
protected

Notifies all listeners that multiple items have been changed.

Definition at line 605 of file sbLocalDatabaseMediaListListener.cpp.

Here is the caller graph for this function:

void sbLocalDatabaseMediaListListener::NotifyListenersBeforeItemRemoved ( sbIMediaList aList,
sbIMediaItem aItem,
PRUint32  aIndex 
)
protected

Notifies all listeners that an item is about to be removed from the list.

Definition at line 461 of file sbLocalDatabaseMediaListListener.cpp.

Here is the caller graph for this function:

void sbLocalDatabaseMediaListListener::NotifyListenersBeforeListCleared ( sbIMediaList aList,
PRBool  aExcludeLists 
)
protected

Notifies all listeners before the list has been cleared.

Definition at line 553 of file sbLocalDatabaseMediaListListener.cpp.

Here is the caller graph for this function:

void sbLocalDatabaseMediaListListener::NotifyListenersItemAdded ( sbIMediaList aList,
sbIMediaItem aItem,
PRUint32  aIndex 
)
protected

Notifies all listeners that an item has been added to the list.

Definition at line 444 of file sbLocalDatabaseMediaListListener.cpp.

Here is the caller graph for this function:

void sbLocalDatabaseMediaListListener::NotifyListenersItemMoved ( sbIMediaList aList,
PRUint32  aFromIndex,
PRUint32  aToIndex 
)
protected

Notifies all listeners that an item has been moved.

Definition at line 534 of file sbLocalDatabaseMediaListListener.cpp.

void sbLocalDatabaseMediaListListener::NotifyListenersItemUpdated ( sbIMediaList aList,
sbIMediaItem aItem,
sbIPropertyArray aProperties 
)
protected

Notifies all listeners that an item has been updated.

Definition at line 499 of file sbLocalDatabaseMediaListListener.cpp.

void sbLocalDatabaseMediaListListener::NotifyListenersListCleared ( sbIMediaList aList,
PRBool  aExcludeLists 
)
protected

Notifies all listeners that the list has been cleared.

Definition at line 568 of file sbLocalDatabaseMediaListListener.cpp.

Here is the caller graph for this function:

nsresult sbLocalDatabaseMediaListListener::RemoveListener ( sbLocalDatabaseMediaListBase aList,
sbIMediaListListener aListener 
)
protected

Definition at line 220 of file sbLocalDatabaseMediaListListener.cpp.

Friends And Related Function Documentation

friend class sbAutoBatchHelper
friend

Definition at line 105 of file sbLocalDatabaseMediaListListener.h.


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