00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00033 #include "nsISupports.idl"
00034
00035 interface nsIMutableArray;
00036 interface nsIStringEnumerator;
00037 interface nsITreeView;
00038 interface sbICascadeFilterSet;
00039 interface sbIMediaItem;
00040 interface sbIMediaList;
00041 interface sbIMediaListView;
00042 interface sbIMutablePropertyArray;
00043 interface sbIMediaListViewSelection;
00044
00051 [scriptable, uuid(bb26d18e-8387-4512-9d99-8ce9b18f929b)]
00052 interface sbIMediaListViewState : nsISupports
00053 {
00054 AString toString();
00055 };
00056
00063 [scriptable, uuid(378fc540-9592-43df-908c-ed84ac0e1221)]
00064 interface sbIMediaListViewListener : nsISupports
00065 {
00069 void onFilterChanged(in sbIMediaListView aChangedView);
00070
00074 void onSearchChanged(in sbIMediaListView aChangedView);
00075
00079 void onSortChanged(in sbIMediaListView aChangedView);
00080 };
00081
00088 [scriptable, uuid(53cefc7c-0967-4cab-84bd-11b52b1bf081)]
00089 interface sbIMediaListView : nsISupports
00090 {
00094 readonly attribute sbIMediaList mediaList;
00095
00099 readonly attribute unsigned long length;
00100
00104 readonly attribute nsITreeView treeView;
00105
00109 readonly attribute sbICascadeFilterSet cascadeFilterSet;
00110
00116 sbIMediaItem getItemByIndex(in unsigned long aIndex);
00117
00125 unsigned long getIndexForItem(in sbIMediaItem aMediaItem);
00126
00133 unsigned long getUnfilteredIndex(in unsigned long aIndex);
00134
00143 AString getViewItemUIDForIndex(in unsigned long aIndex);
00144
00152 unsigned long getIndexForViewItemUID(in AString aViewItemUID);
00153
00154
00155
00156
00157
00158
00159 nsIStringEnumerator getDistinctValuesForProperty(in AString aPropertyID);
00160
00166 sbIMediaListView clone();
00167
00174 sbIMediaListViewState getState();
00175
00191 void addListener(in sbIMediaListViewListener aListener,
00192 [optional] in boolean aOwnsWeak);
00193
00207 void removeListener(in sbIMediaListViewListener aListener);
00208
00212 readonly attribute sbIMediaListViewSelection selection;
00213
00217 void removeSelectedMediaItems();
00218 };