sbICascadeFilterSet.idl
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
32 #include "nsISupports.idl"
33 
34 interface nsIStringEnumerator;
35 interface nsITreeView;
36 interface nsIArray;
37 interface sbIMediaList;
38 
45 [scriptable, uuid(6b0f6a50-07c9-40e1-9392-2714b9bf2fa3)]
47 {
48  void onChange();
49 
50  void onValuesChanged(in unsigned short aIndex);
51 };
52 
59 [scriptable, uuid(3ef6dd65-aa7f-4e05-b6db-f355dfeff7f3)]
61 {
65  readonly attribute unsigned short length;
66 
72  unsigned short appendFilter(in AString aProperty);
73 
82  unsigned short appendSearch([array, size_is(aPropertyArrayCount)] in wstring aPropertyArray,
83  in unsigned long aPropertyArrayCount);
84 
89  void remove(in unsigned short aIndex);
90 
96  void changeFilter(in unsigned short aIndex, in AString aProperty);
97 
107  void set(in unsigned short aIndex,
108  [array, size_is(aValueArrayCount)] in wstring aValueArray,
109  in unsigned long aValueArrayCount);
110 
116  nsIArray get(in unsigned short aIndex);
117 
121  void clearAll();
122 
128  nsIStringEnumerator getValues(in unsigned short aIndex);
129 
136  AString getValueAt(in unsigned short aIndex, in unsigned long aValueIndex);
137 
143  nsITreeView getTreeView(in unsigned short aIndex);
144 
154  unsigned long getValueCount(in unsigned short aIndex,
155  [optional] in boolean aUseCache);
156 
162  AString getProperty(in unsigned short aIndex);
163 
169  boolean isSearch(in unsigned short aIndex);
170 
175  void addListener(in sbICascadeFilterSetListener aListener);
176 
181  void removeListener(in sbICascadeFilterSetListener aListener);
182 };
183 
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.
inArray array
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)
var uuid
A brief description of the contents of this interface.
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.