125
|
1 module dwt.internal.mozilla.nsICollection;
|
|
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.nsISerializable;
|
|
8 import dwt.internal.mozilla.nsIEnumerator;
|
|
9
|
|
10 const char[] NS_ICOLLECTION_IID_STR = "83b6019c-cbc4-11d2-8cca-0060b0fc14a3";
|
|
11
|
|
12 const nsIID NS_ICOLLECTION_IID=
|
|
13 {0x83b6019c, 0xcbc4, 0x11d2,
|
|
14 [ 0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 ]};
|
|
15
|
|
16 interface nsICollection : nsISerializable {
|
|
17
|
|
18 static const char[] IID_STR = NS_ICOLLECTION_IID_STR;
|
|
19 static const nsIID IID = NS_ICOLLECTION_IID;
|
|
20
|
|
21 extern(System):
|
|
22 nsresult Count(PRUint32 *_retval);
|
|
23 nsresult GetElementAt(PRUint32 index, nsISupports *_retval);
|
|
24 nsresult QueryElementAt(PRUint32 index, nsIID * uuid, void * *result);
|
|
25 nsresult SetElementAt(PRUint32 index, nsISupports item);
|
|
26 nsresult AppendElement(nsISupports item);
|
|
27 nsresult RemoveElement(nsISupports item);
|
|
28 nsresult Enumerate(nsIEnumerator *_retval);
|
|
29 nsresult Clear();
|
|
30
|
|
31 }
|
|
32
|