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