Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStringEnumerator.idl
3 : */
4 :
5 : #ifndef __gen_nsIStringEnumerator_h__
6 : #define __gen_nsIStringEnumerator_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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: nsIStringEnumerator */
19 : #define NS_ISTRINGENUMERATOR_IID_STR "50d3ef6c-9380-4f06-9fb2-95488f7d141c"
20 :
21 : #define NS_ISTRINGENUMERATOR_IID \
22 : {0x50d3ef6c, 0x9380, 0x4f06, \
23 : { 0x9f, 0xb2, 0x95, 0x48, 0x8f, 0x7d, 0x14, 0x1c }}
24 :
25 8 : class NS_NO_VTABLE nsIStringEnumerator : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRINGENUMERATOR_IID)
29 :
30 : /* boolean hasMore (); */
31 : NS_IMETHOD HasMore(bool *_retval) = 0;
32 :
33 : /* AString getNext (); */
34 : NS_IMETHOD GetNext(nsAString & _retval) = 0;
35 :
36 : };
37 :
38 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIStringEnumerator, NS_ISTRINGENUMERATOR_IID)
39 :
40 : /* Use this macro when declaring classes that implement this interface. */
41 : #define NS_DECL_NSISTRINGENUMERATOR \
42 : NS_IMETHOD HasMore(bool *_retval) override; \
43 : NS_IMETHOD GetNext(nsAString & _retval) 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_NSISTRINGENUMERATOR \
48 : nsresult HasMore(bool *_retval); \
49 : nsresult GetNext(nsAString & _retval);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSISTRINGENUMERATOR(_to) \
53 : NS_IMETHOD HasMore(bool *_retval) override { return _to HasMore(_retval); } \
54 : NS_IMETHOD GetNext(nsAString & _retval) override { return _to GetNext(_retval); }
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_NSISTRINGENUMERATOR(_to) \
58 : NS_IMETHOD HasMore(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasMore(_retval); } \
59 : NS_IMETHOD GetNext(nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNext(_retval); }
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 nsStringEnumerator : public nsIStringEnumerator
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSISTRINGENUMERATOR
70 :
71 : nsStringEnumerator();
72 :
73 : private:
74 : ~nsStringEnumerator();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS(nsStringEnumerator, nsIStringEnumerator)
82 :
83 : nsStringEnumerator::nsStringEnumerator()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsStringEnumerator::~nsStringEnumerator()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* boolean hasMore (); */
94 : NS_IMETHODIMP nsStringEnumerator::HasMore(bool *_retval)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* AString getNext (); */
100 : NS_IMETHODIMP nsStringEnumerator::GetNext(nsAString & _retval)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* End of implementation class template. */
106 : #endif
107 :
108 :
109 : /* starting interface: nsIUTF8StringEnumerator */
110 : #define NS_IUTF8STRINGENUMERATOR_IID_STR "9bdf1010-3695-4907-95ed-83d0410ec307"
111 :
112 : #define NS_IUTF8STRINGENUMERATOR_IID \
113 : {0x9bdf1010, 0x3695, 0x4907, \
114 : { 0x95, 0xed, 0x83, 0xd0, 0x41, 0x0e, 0xc3, 0x07 }}
115 :
116 30 : class NS_NO_VTABLE nsIUTF8StringEnumerator : public nsISupports {
117 : public:
118 :
119 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUTF8STRINGENUMERATOR_IID)
120 :
121 : /* boolean hasMore (); */
122 : NS_IMETHOD HasMore(bool *_retval) = 0;
123 :
124 : /* AUTF8String getNext (); */
125 : NS_IMETHOD GetNext(nsACString & _retval) = 0;
126 :
127 : };
128 :
129 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIUTF8StringEnumerator, NS_IUTF8STRINGENUMERATOR_IID)
130 :
131 : /* Use this macro when declaring classes that implement this interface. */
132 : #define NS_DECL_NSIUTF8STRINGENUMERATOR \
133 : NS_IMETHOD HasMore(bool *_retval) override; \
134 : NS_IMETHOD GetNext(nsACString & _retval) override;
135 :
136 : /* Use this macro when declaring the members of this interface when the
137 : class doesn't implement the interface. This is useful for forwarding. */
138 : #define NS_DECL_NON_VIRTUAL_NSIUTF8STRINGENUMERATOR \
139 : nsresult HasMore(bool *_retval); \
140 : nsresult GetNext(nsACString & _retval);
141 :
142 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
143 : #define NS_FORWARD_NSIUTF8STRINGENUMERATOR(_to) \
144 : NS_IMETHOD HasMore(bool *_retval) override { return _to HasMore(_retval); } \
145 : NS_IMETHOD GetNext(nsACString & _retval) override { return _to GetNext(_retval); }
146 :
147 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
148 : #define NS_FORWARD_SAFE_NSIUTF8STRINGENUMERATOR(_to) \
149 : NS_IMETHOD HasMore(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasMore(_retval); } \
150 : NS_IMETHOD GetNext(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNext(_retval); }
151 :
152 : #if 0
153 : /* Use the code below as a template for the implementation class for this interface. */
154 :
155 : /* Header file */
156 : class nsUTF8StringEnumerator : public nsIUTF8StringEnumerator
157 : {
158 : public:
159 : NS_DECL_ISUPPORTS
160 : NS_DECL_NSIUTF8STRINGENUMERATOR
161 :
162 : nsUTF8StringEnumerator();
163 :
164 : private:
165 : ~nsUTF8StringEnumerator();
166 :
167 : protected:
168 : /* additional members */
169 : };
170 :
171 : /* Implementation file */
172 : NS_IMPL_ISUPPORTS(nsUTF8StringEnumerator, nsIUTF8StringEnumerator)
173 :
174 : nsUTF8StringEnumerator::nsUTF8StringEnumerator()
175 : {
176 : /* member initializers and constructor code */
177 : }
178 :
179 : nsUTF8StringEnumerator::~nsUTF8StringEnumerator()
180 : {
181 : /* destructor code */
182 : }
183 :
184 : /* boolean hasMore (); */
185 : NS_IMETHODIMP nsUTF8StringEnumerator::HasMore(bool *_retval)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* AUTF8String getNext (); */
191 : NS_IMETHODIMP nsUTF8StringEnumerator::GetNext(nsACString & _retval)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* End of implementation class template. */
197 : #endif
198 :
199 :
200 : #endif /* __gen_nsIStringEnumerator_h__ */
|