comparison dwt/internal/mozilla/nsISupportsArray.d @ 327:b0d7eb5bd76c

Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
author John Reimer <terminal.node@gmail.com>
date Fri, 02 Jan 2009 17:45:10 -0800
parents
children
comparison
equal deleted inserted replaced
326:e4d29367b1fa 327:b0d7eb5bd76c
1 module dwt.internal.mozilla.nsISupportsArray;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsISupports;
6
7 import dwt.internal.mozilla.nsICollection;
8
9 typedef PRBool function(nsISupports, void*) nsISupportsArrayEnumFunc;
10
11 const char[] NS_ISUPPORTSARRAY_IID_STR = "791eafa0-b9e6-11d1-8031-006008159b5a";
12
13 const nsIID NS_ISUPPORTSARRAY_IID=
14 {0x791eafa0, 0xb9e6, 0x11d1,
15 [ 0x80, 0x31, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a ]};
16
17 interface nsISupportsArray : nsICollection {
18
19 static const char[] IID_STR = NS_ISUPPORTSARRAY_IID_STR;
20 static const nsIID IID = NS_ISUPPORTSARRAY_IID;
21
22 extern(System):
23 PRBool Equals(nsISupportsArray other);
24 nsISupports ElementAt(PRUint32 aIndex);
25 PRInt32 IndexOf(nsISupports aPossibleElement);
26 PRInt32 IndexOfStartingAt(nsISupports aPossibleElement, PRUint32 aStartIndex);
27 PRInt32 LastIndexOf(nsISupports aPossibleElement);
28 nsresult GetIndexOf(nsISupports aPossibleElement, PRInt32 *_retval);
29 nsresult GetIndexOfStartingAt(nsISupports aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval);
30 nsresult GetLastIndexOf(nsISupports aPossibleElement, PRInt32 *_retval);
31 PRBool InsertElementAt(nsISupports aElement, PRUint32 aIndex);
32 PRBool ReplaceElementAt(nsISupports aElement, PRUint32 aIndex);
33 PRBool RemoveElementAt(PRUint32 aIndex);
34 PRBool RemoveLastElement(nsISupports aElement);
35 nsresult DeleteLastElement(nsISupports aElement);
36 nsresult DeleteElementAt(PRUint32 aIndex);
37 PRBool AppendElements(nsISupportsArray aElements);
38 nsresult Compact();
39 PRBool EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void * aData);
40 PRBool EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void * aData);
41 nsresult Clone(nsISupportsArray *_retval);
42 PRBool MoveElement(PRInt32 aFrom, PRInt32 aTo);
43 PRBool InsertElementsAt(nsISupportsArray aOther, PRUint32 aIndex);
44 PRBool RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount);
45 PRBool SizeTo(PRInt32 aSize);
46
47 }
48