sbIOrderableMediaList.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 
33 #include "nsISupports.idl"
34 
35 interface nsISimpleEnumerator;
36 interface sbIMediaItem;
37 interface sbIMediaList;
39 
45 [scriptable, uuid(77468450-da16-11df-937b-0800200c9a66)]
47 {
53  void insertBefore(in unsigned long aIndex,
54  in sbIMediaItem aMediaItem);
55 
61  void insertAllBefore(in unsigned long aIndex,
62  in sbIMediaList aMediaList);
63 
69  void moveBefore(in unsigned long aFromIndex,
70  in unsigned long aToIndex);
71 
76  void moveLast(in unsigned long aIndex);
77 
83  void insertSomeBefore(in unsigned long aIndex,
84  in nsISimpleEnumerator aMediaItems);
85 
93  void insertSomeBeforeAsync(in unsigned long aIndex,
94  in nsISimpleEnumerator aMediaItems,
95  in sbIMediaListAsyncListener aListener);
96 
102  void moveSomeBefore([array, size_is(aFromIndexArrayCount)] in unsigned long aFromIndexArray,
103  in unsigned long aFromIndexArrayCount,
104  in unsigned long aToIndex);
105 
110  void moveSomeLast([array, size_is(aIndexArrayCount)] in unsigned long aIndexArray,
111  in unsigned long aIndexArrayCount);
112 };
113 
inArray array
void moveLast(in unsigned long aIndex)
Move a media item to the end of the list.
void insertSomeBeforeAsync(in unsigned long aIndex, in nsISimpleEnumerator aMediaItems, in sbIMediaListAsyncListener aListener)
Insert many media items before the specified media item asynchronously.
var uuid
A brief description of the contents of this interface.
void insertBefore(in unsigned long aIndex, in sbIMediaItem aMediaItem)
Insert a media item before the specified media item.
Media lists that implement this interface support custom ordering.
Interface for use with async methods on sbIMediaList. NOTE: this interface is now deprecated...
void insertSomeBefore(in unsigned long aIndex, in nsISimpleEnumerator aMediaItems)
Insert many media items before the specified media item.
void insertAllBefore(in unsigned long aIndex, in sbIMediaList aMediaList)
Insert a media list before the specified media item.
void moveSomeLast([array, size_is(aIndexArrayCount)] in unsigned long aIndexArray, in unsigned long aIndexArrayCount)
Move a list of media items to the end of the list.
Interface that defines a single item of media in the system.
void moveBefore(in unsigned long aFromIndex, in unsigned long aToIndex)
Move a media item from one position to another in the list.
void moveSomeBefore([array, size_is(aFromIndexArrayCount)] in unsigned long aFromIndexArray, in unsigned long aFromIndexArrayCount, in unsigned long aToIndex)
Move a list of media items from one position to another in the list.