1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/svg/nsIDOMSVGStringList.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMSVGStringList_h__
6 : #define __gen_nsIDOMSVGStringList_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: nsIDOMSVGStringList */
19 : #define NS_IDOMSVGSTRINGLIST_IID_STR "481f01a5-0bbb-4abf-8623-f3c2fb5642a9"
20 :
21 : #define NS_IDOMSVGSTRINGLIST_IID \
22 : {0x481f01a5, 0x0bbb, 0x4abf, \
23 : { 0x86, 0x23, 0xf3, 0xc2, 0xfb, 0x56, 0x42, 0xa9 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMSVGStringList : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSVGSTRINGLIST_IID)
29 :
30 : /* readonly attribute unsigned long numberOfItems; */
31 : NS_SCRIPTABLE NS_IMETHOD GetNumberOfItems(PRUint32 *aNumberOfItems) = 0;
32 :
33 : /* readonly attribute unsigned long length; */
34 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
35 :
36 : /* void clear (); */
37 : NS_SCRIPTABLE NS_IMETHOD Clear(void) = 0;
38 :
39 : /* DOMString initialize (in DOMString newItem); */
40 : NS_SCRIPTABLE NS_IMETHOD Initialize(const nsAString & newItem, nsAString & _retval NS_OUTPARAM) = 0;
41 :
42 : /* DOMString getItem (in unsigned long index); */
43 : NS_SCRIPTABLE NS_IMETHOD GetItem(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
44 :
45 : /* DOMString insertItemBefore (in DOMString newItem, in unsigned long index); */
46 : NS_SCRIPTABLE NS_IMETHOD InsertItemBefore(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
47 :
48 : /* DOMString replaceItem (in DOMString newItem, in unsigned long index); */
49 : NS_SCRIPTABLE NS_IMETHOD ReplaceItem(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
50 :
51 : /* DOMString removeItem (in unsigned long index); */
52 : NS_SCRIPTABLE NS_IMETHOD RemoveItem(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
53 :
54 : /* DOMString appendItem (in DOMString newItem); */
55 : NS_SCRIPTABLE NS_IMETHOD AppendItem(const nsAString & newItem, nsAString & _retval NS_OUTPARAM) = 0;
56 :
57 : };
58 :
59 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMSVGStringList, NS_IDOMSVGSTRINGLIST_IID)
60 :
61 : /* Use this macro when declaring classes that implement this interface. */
62 : #define NS_DECL_NSIDOMSVGSTRINGLIST \
63 : NS_SCRIPTABLE NS_IMETHOD GetNumberOfItems(PRUint32 *aNumberOfItems); \
64 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
65 : NS_SCRIPTABLE NS_IMETHOD Clear(void); \
66 : NS_SCRIPTABLE NS_IMETHOD Initialize(const nsAString & newItem, nsAString & _retval NS_OUTPARAM); \
67 : NS_SCRIPTABLE NS_IMETHOD GetItem(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
68 : NS_SCRIPTABLE NS_IMETHOD InsertItemBefore(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM); \
69 : NS_SCRIPTABLE NS_IMETHOD ReplaceItem(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM); \
70 : NS_SCRIPTABLE NS_IMETHOD RemoveItem(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
71 : NS_SCRIPTABLE NS_IMETHOD AppendItem(const nsAString & newItem, nsAString & _retval NS_OUTPARAM);
72 :
73 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
74 : #define NS_FORWARD_NSIDOMSVGSTRINGLIST(_to) \
75 : NS_SCRIPTABLE NS_IMETHOD GetNumberOfItems(PRUint32 *aNumberOfItems) { return _to GetNumberOfItems(aNumberOfItems); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
77 : NS_SCRIPTABLE NS_IMETHOD Clear(void) { return _to Clear(); } \
78 : NS_SCRIPTABLE NS_IMETHOD Initialize(const nsAString & newItem, nsAString & _retval NS_OUTPARAM) { return _to Initialize(newItem, _retval); } \
79 : NS_SCRIPTABLE NS_IMETHOD GetItem(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to GetItem(index, _retval); } \
80 : NS_SCRIPTABLE NS_IMETHOD InsertItemBefore(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to InsertItemBefore(newItem, index, _retval); } \
81 : NS_SCRIPTABLE NS_IMETHOD ReplaceItem(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to ReplaceItem(newItem, index, _retval); } \
82 : NS_SCRIPTABLE NS_IMETHOD RemoveItem(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to RemoveItem(index, _retval); } \
83 : NS_SCRIPTABLE NS_IMETHOD AppendItem(const nsAString & newItem, nsAString & _retval NS_OUTPARAM) { return _to AppendItem(newItem, _retval); }
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
86 : #define NS_FORWARD_SAFE_NSIDOMSVGSTRINGLIST(_to) \
87 : NS_SCRIPTABLE NS_IMETHOD GetNumberOfItems(PRUint32 *aNumberOfItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfItems(aNumberOfItems); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
89 : NS_SCRIPTABLE NS_IMETHOD Clear(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } \
90 : NS_SCRIPTABLE NS_IMETHOD Initialize(const nsAString & newItem, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(newItem, _retval); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetItem(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItem(index, _retval); } \
92 : NS_SCRIPTABLE NS_IMETHOD InsertItemBefore(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertItemBefore(newItem, index, _retval); } \
93 : NS_SCRIPTABLE NS_IMETHOD ReplaceItem(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceItem(newItem, index, _retval); } \
94 : NS_SCRIPTABLE NS_IMETHOD RemoveItem(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItem(index, _retval); } \
95 : NS_SCRIPTABLE NS_IMETHOD AppendItem(const nsAString & newItem, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendItem(newItem, _retval); }
96 :
97 : #if 0
98 : /* Use the code below as a template for the implementation class for this interface. */
99 :
100 : /* Header file */
101 : class nsDOMSVGStringList : public nsIDOMSVGStringList
102 : {
103 : public:
104 : NS_DECL_ISUPPORTS
105 : NS_DECL_NSIDOMSVGSTRINGLIST
106 :
107 : nsDOMSVGStringList();
108 :
109 : private:
110 : ~nsDOMSVGStringList();
111 :
112 : protected:
113 : /* additional members */
114 : };
115 :
116 : /* Implementation file */
117 : NS_IMPL_ISUPPORTS1(nsDOMSVGStringList, nsIDOMSVGStringList)
118 :
119 : nsDOMSVGStringList::nsDOMSVGStringList()
120 : {
121 : /* member initializers and constructor code */
122 : }
123 :
124 : nsDOMSVGStringList::~nsDOMSVGStringList()
125 : {
126 : /* destructor code */
127 : }
128 :
129 : /* readonly attribute unsigned long numberOfItems; */
130 : NS_IMETHODIMP nsDOMSVGStringList::GetNumberOfItems(PRUint32 *aNumberOfItems)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* readonly attribute unsigned long length; */
136 : NS_IMETHODIMP nsDOMSVGStringList::GetLength(PRUint32 *aLength)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void clear (); */
142 : NS_IMETHODIMP nsDOMSVGStringList::Clear()
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* DOMString initialize (in DOMString newItem); */
148 : NS_IMETHODIMP nsDOMSVGStringList::Initialize(const nsAString & newItem, nsAString & _retval NS_OUTPARAM)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* DOMString getItem (in unsigned long index); */
154 : NS_IMETHODIMP nsDOMSVGStringList::GetItem(PRUint32 index, nsAString & _retval NS_OUTPARAM)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* DOMString insertItemBefore (in DOMString newItem, in unsigned long index); */
160 : NS_IMETHODIMP nsDOMSVGStringList::InsertItemBefore(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* DOMString replaceItem (in DOMString newItem, in unsigned long index); */
166 : NS_IMETHODIMP nsDOMSVGStringList::ReplaceItem(const nsAString & newItem, PRUint32 index, nsAString & _retval NS_OUTPARAM)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* DOMString removeItem (in unsigned long index); */
172 : NS_IMETHODIMP nsDOMSVGStringList::RemoveItem(PRUint32 index, nsAString & _retval NS_OUTPARAM)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* DOMString appendItem (in DOMString newItem); */
178 : NS_IMETHODIMP nsDOMSVGStringList::AppendItem(const nsAString & newItem, nsAString & _retval NS_OUTPARAM)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* End of implementation class template. */
184 : #endif
185 :
186 :
187 : #endif /* __gen_nsIDOMSVGStringList_h__ */
|