Mercurial > projects > dwt-win
comparison dwt/internal/mozilla/nsICollection.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.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 |