comparison dwt/internal/mozilla/nsIEnumerator.d @ 272:dd63eb078d7a

xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author John Reimer<terminal.node@gmail.com>
date Fri, 18 Jul 2008 05:32:53 -0700
parents
children 942da4b6558a
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
1 module dwt.internal.mozilla.nsIEnumerator;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsISupports;
6
7 /******************************************************************************
8
9 ******************************************************************************/
10
11 const char[] NS_IENUMERATOR_IID_STR = "ad385286-cbc4-11d2-8cca-0060b0fc14a3";
12
13 const nsIID NS_IENUMERATOR_IID=
14 {0xad385286, 0xcbc4, 0x11d2,
15 [ 0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 ]};
16
17 extern(System)
18
19 interface nsIEnumerator : nsISupports {
20
21 static const char[] IID_STR = NS_IENUMERATOR_IID_STR;
22 static const nsIID IID = NS_IENUMERATOR_IID;
23
24 nsresult First();
25 nsresult Next();
26 nsresult CurrentItem(nsISupports *_retval);
27 nsresult IsDone();
28
29 }
30
31 /******************************************************************************
32
33 ******************************************************************************/
34
35 const char[] NS_IBIDIRECTIONALENUMERATOR_IID_STR = "75f158a0-cadd-11d2-8cca-0060b0fc14a3";
36
37 const nsIID NS_IBIDIRECTIONALENUMERATOR_IID=
38 {0x75f158a0, 0xcadd, 0x11d2,
39 [ 0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 ]};
40
41 extern(System)
42
43 interface nsIBidirectionalEnumerator : nsIEnumerator {
44
45 static const char[] IID_STR = NS_IBIDIRECTIONALENUMERATOR_IID_STR;
46 static const nsIID IID = NS_IBIDIRECTIONALENUMERATOR_IID;
47
48 nsresult Last();
49 nsresult Prev();
50
51 }
52