32 #include "nsISupports.idl"
45 [scriptable,
uuid(6b0f6a50-07c9-40e1-9392-2714b9bf2fa3)]
59 [scriptable,
uuid(3ef6dd65-aa7f-4e05-b6db-f355dfeff7f3)]
65 readonly attribute
unsigned short length;
82 unsigned short appendSearch([
array, size_is(aPropertyArrayCount)] in wstring aPropertyArray,
83 in
unsigned long aPropertyArrayCount);
89 void remove(in
unsigned short aIndex);
96 void changeFilter(in
unsigned short aIndex, in AString aProperty);
107 void set(in
unsigned short aIndex,
108 [
array, size_is(aValueArrayCount)] in wstring aValueArray,
109 in
unsigned long aValueArrayCount);
116 nsIArray
get(in
unsigned short aIndex);
136 AString
getValueAt(in
unsigned short aIndex, in
unsigned long aValueIndex);
155 [optional] in
boolean aUseCache);
169 boolean isSearch(in
unsigned short aIndex);
unsigned long getValueCount(in unsigned short aIndex, [optional] in boolean aUseCache)
Get the number of possible values for a filter.
unsigned short appendFilter(in AString aProperty)
Add a new property value filter to the end of the cascade.
void addListener(in sbICascadeFilterSetListener aListener)
Add a listener to get notified of filter configuration changes.
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.
Cascade filter management for a media list.
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 do...
boolean isSearch(in unsigned short aIndex)
Determine if the filter at a given index is a search filter.
nsITreeView getTreeView(in unsigned short aIndex)
Get a nsITreeView to display the specified filter's contents.
void onValuesChanged(in unsigned short aIndex)
nsIStringEnumerator getValues(in unsigned short aIndex)
Get the list of possible values for a filter.
readonly attribute unsigned short length
AString getValueAt(in unsigned short aIndex, in unsigned long aValueIndex)
Get a single value of a filter list.
AString getProperty(in unsigned short aIndex)
Get the property for a filter by index.
Listener interface for sbICascadeFilterSet.
void clearAll()
Clear the configuration of all filters.
void changeFilter(in unsigned short aIndex, in AString aProperty)
Change the property used on a filter.
void removeListener(in sbICascadeFilterSetListener aListener)
Remove listener from notification list.