#include <sbLibraryListenerHelpers.h>
Public Member Functions | |
nsresult | SetIgnoreListener (PRBool aIgnoreListener) |
nsresult | IgnoreMediaItem (sbIMediaItem *aItem) |
nsresult | UnignoreMediaItem (sbIMediaItem *aItem) |
Protected Member Functions | |
PRBool | MediaItemIgnored (sbIMediaItem *aItem) |
sbBaseIgnore () | |
~sbBaseIgnore () | |
This class provides the common ignore logic for listener helpers
Definition at line 48 of file sbLibraryListenerHelpers.h.
|
inlineprotected |
Initializes the lock and ignore listener count
Definition at line 72 of file sbLibraryListenerHelpers.h.
|
inlineprotected |
Destroys the lock and various other cleanup
Definition at line 80 of file sbLibraryListenerHelpers.h.
nsresult sbBaseIgnore::IgnoreMediaItem | ( | sbIMediaItem * | aItem | ) |
Sets an ignore for a given item. Returns PR_FALSE if the item is already being ignored
Definition at line 70 of file sbLibraryListenerHelpers.cpp.
|
protected |
Returns PR_TRUE if the item is currently being ignored
Definition at line 92 of file sbLibraryListenerHelpers.cpp.
nsresult sbBaseIgnore::SetIgnoreListener | ( | PRBool | aIgnoreListener | ) |
Ignores all items. This obviously will supersede item specific ignores
Definition at line 60 of file sbLibraryListenerHelpers.cpp.
nsresult sbBaseIgnore::UnignoreMediaItem | ( | sbIMediaItem * | aItem | ) |
Resumes listening for an item if it has been ignored
Definition at line 107 of file sbLibraryListenerHelpers.cpp.