Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 "450cf0ba-de90-4f86-85bf-e10cc8b8713f"
20 :
21 : #define NS_IDOMNODELIST_IID \
22 : {0x450cf0ba, 0xde90, 0x4f86, \
23 : { 0x85, 0xbf, 0xe1, 0x0c, 0xc8, 0xb8, 0x71, 0x3f }}
24 :
25 35 : class NS_NO_VTABLE nsIDOMNodeList : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMNODELIST_IID)
29 :
30 : /* nsIDOMNode item (in unsigned long index); */
31 : NS_IMETHOD Item(uint32_t index, nsIDOMNode * *_retval) = 0;
32 :
33 : /* readonly attribute unsigned long length; */
34 : NS_IMETHOD GetLength(uint32_t *aLength) = 0;
35 :
36 : };
37 :
38 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMNodeList, NS_IDOMNODELIST_IID)
39 :
40 : /* Use this macro when declaring classes that implement this interface. */
41 : #define NS_DECL_NSIDOMNODELIST \
42 : NS_IMETHOD Item(uint32_t index, nsIDOMNode * *_retval) override; \
43 : NS_IMETHOD GetLength(uint32_t *aLength) override;
44 :
45 : /* Use this macro when declaring the members of this interface when the
46 : class doesn't implement the interface. This is useful for forwarding. */
47 : #define NS_DECL_NON_VIRTUAL_NSIDOMNODELIST \
48 : nsresult Item(uint32_t index, nsIDOMNode * *_retval); \
49 : nsresult GetLength(uint32_t *aLength);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIDOMNODELIST(_to) \
53 : NS_IMETHOD Item(uint32_t index, nsIDOMNode * *_retval) override { return _to Item(index, _retval); } \
54 : NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); }
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
57 : #define NS_FORWARD_SAFE_NSIDOMNODELIST(_to) \
58 : NS_IMETHOD Item(uint32_t index, nsIDOMNode * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
59 : NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsDOMNodeList : public nsIDOMNodeList
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSIDOMNODELIST
70 :
71 : nsDOMNodeList();
72 :
73 : private:
74 : ~nsDOMNodeList();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS(nsDOMNodeList, nsIDOMNodeList)
82 :
83 : nsDOMNodeList::nsDOMNodeList()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsDOMNodeList::~nsDOMNodeList()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* nsIDOMNode item (in unsigned long index); */
94 : NS_IMETHODIMP nsDOMNodeList::Item(uint32_t index, nsIDOMNode * *_retval)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* readonly attribute unsigned long length; */
100 : NS_IMETHODIMP nsDOMNodeList::GetLength(uint32_t *aLength)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* End of implementation class template. */
106 : #endif
107 :
108 :
109 : #endif /* __gen_nsIDOMNodeList_h__ */
|