OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/dom/public/idl/core/nsIDOMNodeList.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMNodeList_h__ |
| 6 #define __gen_nsIDOMNodeList_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_domstubs_h__ |
| 10 #include "domstubs.h" |
| 11 #endif |
| 12 |
| 13 /* For IDL files that don't want to include root IDL files. */ |
| 14 #ifndef NS_NO_VTABLE |
| 15 #define NS_NO_VTABLE |
| 16 #endif |
| 17 |
| 18 /* starting interface: nsIDOMNodeList */ |
| 19 #define NS_IDOMNODELIST_IID_STR "a6cf907d-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMNODELIST_IID \ |
| 22 {0xa6cf907d, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 class NS_NO_VTABLE nsIDOMNodeList : public nsISupports { |
| 26 public: |
| 27 |
| 28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNODELIST_IID) |
| 29 |
| 30 /** |
| 31 * The nsIDOMNodeList interface provides the abstraction of an ordered |
| 32 * collection of nodes, without defining or constraining how this collection |
| 33 * is implemented. |
| 34 * The items in the list are accessible via an integral index, starting from 0. |
| 35 * |
| 36 * For more information on this interface please see |
| 37 * http://www.w3.org/TR/DOM-Level-2-Core/ |
| 38 * |
| 39 * @status FROZEN |
| 40 */ |
| 41 /* nsIDOMNode item (in unsigned long index); */ |
| 42 NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0; |
| 43 |
| 44 /* readonly attribute unsigned long length; */ |
| 45 NS_IMETHOD GetLength(PRUint32 *aLength) = 0; |
| 46 |
| 47 }; |
| 48 |
| 49 /* Use this macro when declaring classes that implement this interface. */ |
| 50 #define NS_DECL_NSIDOMNODELIST \ |
| 51 NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \ |
| 52 NS_IMETHOD GetLength(PRUint32 *aLength); |
| 53 |
| 54 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 55 #define NS_FORWARD_NSIDOMNODELIST(_to) \ |
| 56 NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index,
_retval); } \ |
| 57 NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } |
| 58 |
| 59 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 60 #define NS_FORWARD_SAFE_NSIDOMNODELIST(_to) \ |
| 61 NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR
_NULL_POINTER : _to->Item(index, _retval); } \ |
| 62 NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetLength(aLength); } |
| 63 |
| 64 #if 0 |
| 65 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 66 |
| 67 /* Header file */ |
| 68 class nsDOMNodeList : public nsIDOMNodeList |
| 69 { |
| 70 public: |
| 71 NS_DECL_ISUPPORTS |
| 72 NS_DECL_NSIDOMNODELIST |
| 73 |
| 74 nsDOMNodeList(); |
| 75 |
| 76 private: |
| 77 ~nsDOMNodeList(); |
| 78 |
| 79 protected: |
| 80 /* additional members */ |
| 81 }; |
| 82 |
| 83 /* Implementation file */ |
| 84 NS_IMPL_ISUPPORTS1(nsDOMNodeList, nsIDOMNodeList) |
| 85 |
| 86 nsDOMNodeList::nsDOMNodeList() |
| 87 { |
| 88 /* member initializers and constructor code */ |
| 89 } |
| 90 |
| 91 nsDOMNodeList::~nsDOMNodeList() |
| 92 { |
| 93 /* destructor code */ |
| 94 } |
| 95 |
| 96 /* nsIDOMNode item (in unsigned long index); */ |
| 97 NS_IMETHODIMP nsDOMNodeList::Item(PRUint32 index, nsIDOMNode **_retval) |
| 98 { |
| 99 return NS_ERROR_NOT_IMPLEMENTED; |
| 100 } |
| 101 |
| 102 /* readonly attribute unsigned long length; */ |
| 103 NS_IMETHODIMP nsDOMNodeList::GetLength(PRUint32 *aLength) |
| 104 { |
| 105 return NS_ERROR_NOT_IMPLEMENTED; |
| 106 } |
| 107 |
| 108 /* End of implementation class template. */ |
| 109 #endif |
| 110 |
| 111 |
| 112 #endif /* __gen_nsIDOMNodeList_h__ */ |
OLD | NEW |