sbLocalDatabaseCascadeFilterSet Class Reference

#include <sbLocalDatabaseCascadeFilterSet.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBICASCADEFILTERSET
NS_DECL_SBIMEDIALISTLISTENER 
sbLocalDatabaseCascadeFilterSet (sbLocalDatabaseMediaListView *aMediaListView)
 
 ~sbLocalDatabaseCascadeFilterSet ()
 
nsresult Init (sbLocalDatabaseLibrary *aLibrary, sbILocalDatabaseAsyncGUIDArray *aProtoArray, sbLocalDatabaseCascadeFilterSetState *aState)
 
nsresult AddConfiguration (sbILocalDatabaseGUIDArray *aArray)
 
nsresult AddFilters (sbILibraryConstraintBuilder *aBuilder, PRBool *aChanged)
 
nsresult AddSearches (sbILibraryConstraintBuilder *aBuilder, PRBool *aChanged)
 
nsresult ClearFilters ()
 
nsresult ClearSearches ()
 
void ClearMediaListView ()
 
nsresult OnGetLength (PRUint32 aIndex, PRUint32 aLength)
 
nsresult GetState (sbLocalDatabaseCascadeFilterSetState **aState)
 
- Public Member Functions inherited from sbSupportsWeakReference
 sbSupportsWeakReference ()
 
- Public Member Functions inherited from sbICascadeFilterSet
unsigned short appendFilter (in AString aProperty)
 Add a new property value filter to the end of the cascade. More...
 
unsigned short appendSearch ([array, size_is(aPropertyArrayCount)] in wstring aPropertyArray, in unsigned long aPropertyArrayCount)
 Add a new text search filter to the end of the cascade. More...
 
void remove (in unsigned short aIndex)
 Remove a filter from the cascade. More...
 
void changeFilter (in unsigned short aIndex, in AString aProperty)
 Change the property used on a filter. More...
 
void set (in unsigned short aIndex, [array, size_is(aValueArrayCount)] in wstring aValueArray, in unsigned long aValueArrayCount)
 Set the configuration of a filter. Note that changing a filter will clear the configuration of all downstream filters. More...
 
nsIArray get (in unsigned short aIndex)
 Get the configuration of a filter. More...
 
void clearAll ()
 Clear the configuration of all filters. More...
 
nsIStringEnumerator getValues (in unsigned short aIndex)
 Get the list of possible values for a filter. More...
 
AString getValueAt (in unsigned short aIndex, in unsigned long aValueIndex)
 Get a single value of a filter list. More...
 
nsITreeView getTreeView (in unsigned short aIndex)
 Get a nsITreeView to display the specified filter's contents. More...
 
unsigned long getValueCount (in unsigned short aIndex, [optional] in boolean aUseCache)
 Get the number of possible values for a filter. More...
 
AString getProperty (in unsigned short aIndex)
 Get the property for a filter by index. More...
 
boolean isSearch (in unsigned short aIndex)
 Determine if the filter at a given index is a search filter. More...
 
void addListener (in sbICascadeFilterSetListener aListener)
 Add a listener to get notified of filter configuration changes. More...
 
void removeListener (in sbICascadeFilterSetListener aListener)
 Remove listener from notification list. 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...
 

Additional Inherited Members

- Public Attributes inherited from sbICascadeFilterSet
readonly attribute unsigned short length
 
- Protected Member Functions inherited from sbSupportsWeakReference
 ~sbSupportsWeakReference ()
 
void ClearWeakReferences ()
 
PRBool HasWeakReferences () const
 

Detailed Description

Definition at line 66 of file sbLocalDatabaseCascadeFilterSet.h.

Constructor & Destructor Documentation

sbLocalDatabaseCascadeFilterSet::sbLocalDatabaseCascadeFilterSet ( sbLocalDatabaseMediaListView aMediaListView)

Definition at line 95 of file sbLocalDatabaseCascadeFilterSet.cpp.

sbLocalDatabaseCascadeFilterSet::~sbLocalDatabaseCascadeFilterSet ( )

Definition at line 108 of file sbLocalDatabaseCascadeFilterSet.cpp.

Member Function Documentation

nsresult sbLocalDatabaseCascadeFilterSet::AddConfiguration ( sbILocalDatabaseGUIDArray aArray)

Definition at line 703 of file sbLocalDatabaseCascadeFilterSet.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseCascadeFilterSet::AddFilters ( sbILibraryConstraintBuilder aBuilder,
PRBool *  aChanged 
)

Definition at line 788 of file sbLocalDatabaseCascadeFilterSet.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseCascadeFilterSet::AddSearches ( sbILibraryConstraintBuilder aBuilder,
PRBool *  aChanged 
)

Definition at line 819 of file sbLocalDatabaseCascadeFilterSet.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseCascadeFilterSet::ClearFilters ( )

Definition at line 856 of file sbLocalDatabaseCascadeFilterSet.cpp.

Here is the call graph for this function:

void sbLocalDatabaseCascadeFilterSet::ClearMediaListView ( )

Definition at line 884 of file sbLocalDatabaseCascadeFilterSet.cpp.

nsresult sbLocalDatabaseCascadeFilterSet::ClearSearches ( )

Definition at line 870 of file sbLocalDatabaseCascadeFilterSet.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseCascadeFilterSet::GetState ( sbLocalDatabaseCascadeFilterSetState **  aState)

Definition at line 890 of file sbLocalDatabaseCascadeFilterSet.cpp.

nsresult sbLocalDatabaseCascadeFilterSet::Init ( sbLocalDatabaseLibrary aLibrary,
sbILocalDatabaseAsyncGUIDArray aProtoArray,
sbLocalDatabaseCascadeFilterSetState aState 
)

Definition at line 124 of file sbLocalDatabaseCascadeFilterSet.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseCascadeFilterSet::OnGetLength ( PRUint32  aIndex,
PRUint32  aLength 
)

Definition at line 938 of file sbLocalDatabaseCascadeFilterSet.cpp.


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