Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDirIndexListener.idl
3 : */
4 :
5 : #ifndef __gen_nsIDirIndexListener_h__
6 : #define __gen_nsIDirIndexListener_h__
7 :
8 :
9 : #ifndef __gen_nsIStreamListener_h__
10 : #include "nsIStreamListener.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 : class nsIDirIndex; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDirIndexListener */
21 : #define NS_IDIRINDEXLISTENER_IID_STR "fae4e9a8-1dd1-11b2-b53c-8f3aa1bbf8f5"
22 :
23 : #define NS_IDIRINDEXLISTENER_IID \
24 : {0xfae4e9a8, 0x1dd1, 0x11b2, \
25 : { 0xb5, 0x3c, 0x8f, 0x3a, 0xa1, 0xbb, 0xf8, 0xf5 }}
26 :
27 0 : class NS_NO_VTABLE nsIDirIndexListener : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRINDEXLISTENER_IID)
31 :
32 : /* void onIndexAvailable (in nsIRequest aRequest, in nsISupports aCtxt, in nsIDirIndex aIndex); */
33 : NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex) = 0;
34 :
35 : /* void onInformationAvailable (in nsIRequest aRequest, in nsISupports aCtxt, in AString aInfo); */
36 : NS_IMETHOD OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirIndexListener, NS_IDIRINDEXLISTENER_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIDIRINDEXLISTENER \
44 : NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex) override; \
45 : NS_IMETHOD OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSIDIRINDEXLISTENER \
50 : nsresult OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex); \
51 : nsresult OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIDIRINDEXLISTENER(_to) \
55 : NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex) override { return _to OnIndexAvailable(aRequest, aCtxt, aIndex); } \
56 : NS_IMETHOD OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo) override { return _to OnInformationAvailable(aRequest, aCtxt, aInfo); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSIDIRINDEXLISTENER(_to) \
60 : NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnIndexAvailable(aRequest, aCtxt, aIndex); } \
61 : NS_IMETHOD OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInformationAvailable(aRequest, aCtxt, aInfo); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsDirIndexListener : public nsIDirIndexListener
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIDIRINDEXLISTENER
72 :
73 : nsDirIndexListener();
74 :
75 : private:
76 : ~nsDirIndexListener();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsDirIndexListener, nsIDirIndexListener)
84 :
85 : nsDirIndexListener::nsDirIndexListener()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsDirIndexListener::~nsDirIndexListener()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void onIndexAvailable (in nsIRequest aRequest, in nsISupports aCtxt, in nsIDirIndex aIndex); */
96 : NS_IMETHODIMP nsDirIndexListener::OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* void onInformationAvailable (in nsIRequest aRequest, in nsISupports aCtxt, in AString aInfo); */
102 : NS_IMETHODIMP nsDirIndexListener::OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 : #define NS_IDIRINDEXLISTENER_KEY "@mozilla.org/dirIndexListener;1"
111 :
112 : /* starting interface: nsIDirIndexParser */
113 : #define NS_IDIRINDEXPARSER_IID_STR "38e3066c-1dd2-11b2-9b59-8be515c1ee3f"
114 :
115 : #define NS_IDIRINDEXPARSER_IID \
116 : {0x38e3066c, 0x1dd2, 0x11b2, \
117 : { 0x9b, 0x59, 0x8b, 0xe5, 0x15, 0xc1, 0xee, 0x3f }}
118 :
119 0 : class NS_NO_VTABLE nsIDirIndexParser : public nsIStreamListener {
120 : public:
121 :
122 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRINDEXPARSER_IID)
123 :
124 : /* attribute nsIDirIndexListener listener; */
125 : NS_IMETHOD GetListener(nsIDirIndexListener * *aListener) = 0;
126 : NS_IMETHOD SetListener(nsIDirIndexListener *aListener) = 0;
127 :
128 : /* readonly attribute string comment; */
129 : NS_IMETHOD GetComment(char * *aComment) = 0;
130 :
131 : /* attribute string encoding; */
132 : NS_IMETHOD GetEncoding(char * *aEncoding) = 0;
133 : NS_IMETHOD SetEncoding(const char * aEncoding) = 0;
134 :
135 : };
136 :
137 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirIndexParser, NS_IDIRINDEXPARSER_IID)
138 :
139 : /* Use this macro when declaring classes that implement this interface. */
140 : #define NS_DECL_NSIDIRINDEXPARSER \
141 : NS_IMETHOD GetListener(nsIDirIndexListener * *aListener) override; \
142 : NS_IMETHOD SetListener(nsIDirIndexListener *aListener) override; \
143 : NS_IMETHOD GetComment(char * *aComment) override; \
144 : NS_IMETHOD GetEncoding(char * *aEncoding) override; \
145 : NS_IMETHOD SetEncoding(const char * aEncoding) override;
146 :
147 : /* Use this macro when declaring the members of this interface when the
148 : class doesn't implement the interface. This is useful for forwarding. */
149 : #define NS_DECL_NON_VIRTUAL_NSIDIRINDEXPARSER \
150 : nsresult GetListener(nsIDirIndexListener * *aListener); \
151 : nsresult SetListener(nsIDirIndexListener *aListener); \
152 : nsresult GetComment(char * *aComment); \
153 : nsresult GetEncoding(char * *aEncoding); \
154 : nsresult SetEncoding(const char * aEncoding);
155 :
156 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
157 : #define NS_FORWARD_NSIDIRINDEXPARSER(_to) \
158 : NS_IMETHOD GetListener(nsIDirIndexListener * *aListener) override { return _to GetListener(aListener); } \
159 : NS_IMETHOD SetListener(nsIDirIndexListener *aListener) override { return _to SetListener(aListener); } \
160 : NS_IMETHOD GetComment(char * *aComment) override { return _to GetComment(aComment); } \
161 : NS_IMETHOD GetEncoding(char * *aEncoding) override { return _to GetEncoding(aEncoding); } \
162 : NS_IMETHOD SetEncoding(const char * aEncoding) override { return _to SetEncoding(aEncoding); }
163 :
164 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
165 : #define NS_FORWARD_SAFE_NSIDIRINDEXPARSER(_to) \
166 : NS_IMETHOD GetListener(nsIDirIndexListener * *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
167 : NS_IMETHOD SetListener(nsIDirIndexListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } \
168 : NS_IMETHOD GetComment(char * *aComment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComment(aComment); } \
169 : NS_IMETHOD GetEncoding(char * *aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
170 : NS_IMETHOD SetEncoding(const char * aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncoding(aEncoding); }
171 :
172 : #if 0
173 : /* Use the code below as a template for the implementation class for this interface. */
174 :
175 : /* Header file */
176 : class nsDirIndexParser : public nsIDirIndexParser
177 : {
178 : public:
179 : NS_DECL_ISUPPORTS
180 : NS_DECL_NSIDIRINDEXPARSER
181 :
182 : nsDirIndexParser();
183 :
184 : private:
185 : ~nsDirIndexParser();
186 :
187 : protected:
188 : /* additional members */
189 : };
190 :
191 : /* Implementation file */
192 : NS_IMPL_ISUPPORTS(nsDirIndexParser, nsIDirIndexParser)
193 :
194 : nsDirIndexParser::nsDirIndexParser()
195 : {
196 : /* member initializers and constructor code */
197 : }
198 :
199 : nsDirIndexParser::~nsDirIndexParser()
200 : {
201 : /* destructor code */
202 : }
203 :
204 : /* attribute nsIDirIndexListener listener; */
205 : NS_IMETHODIMP nsDirIndexParser::GetListener(nsIDirIndexListener * *aListener)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 : NS_IMETHODIMP nsDirIndexParser::SetListener(nsIDirIndexListener *aListener)
210 : {
211 : return NS_ERROR_NOT_IMPLEMENTED;
212 : }
213 :
214 : /* readonly attribute string comment; */
215 : NS_IMETHODIMP nsDirIndexParser::GetComment(char * *aComment)
216 : {
217 : return NS_ERROR_NOT_IMPLEMENTED;
218 : }
219 :
220 : /* attribute string encoding; */
221 : NS_IMETHODIMP nsDirIndexParser::GetEncoding(char * *aEncoding)
222 : {
223 : return NS_ERROR_NOT_IMPLEMENTED;
224 : }
225 : NS_IMETHODIMP nsDirIndexParser::SetEncoding(const char * aEncoding)
226 : {
227 : return NS_ERROR_NOT_IMPLEMENTED;
228 : }
229 :
230 : /* End of implementation class template. */
231 : #endif
232 :
233 : #define NS_DIRINDEXPARSER_CID \
234 : { /* a0d6ad32-1dd1-11b2-aa55-a40187b54036 */ \
235 : 0xa0d6ad32, \
236 : 0x1dd1, \
237 : 0x11b2, \
238 : { 0xaa, 0x55, 0xa4, 0x01, 0x87, 0xb5, 0x40, 0x36 } \
239 : }
240 : #define NS_DIRINDEXPARSER_CONTRACTID "@mozilla.org/dirIndexParser;1"
241 :
242 : #endif /* __gen_nsIDirIndexListener_h__ */
|