1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/streamconv/public/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 NS_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex); \
45 : NS_SCRIPTABLE NS_IMETHOD OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIDIRINDEXLISTENER(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex) { return _to OnIndexAvailable(aRequest, aCtxt, aIndex); } \
50 : NS_SCRIPTABLE NS_IMETHOD OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo) { return _to OnInformationAvailable(aRequest, aCtxt, aInfo); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NSIDIRINDEXLISTENER(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnIndexAvailable(aRequest, aCtxt, aIndex); } \
55 : NS_SCRIPTABLE NS_IMETHOD OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInformationAvailable(aRequest, aCtxt, aInfo); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class nsDirIndexListener : public nsIDirIndexListener
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_NSIDIRINDEXLISTENER
66 :
67 : nsDirIndexListener();
68 :
69 : private:
70 : ~nsDirIndexListener();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(nsDirIndexListener, nsIDirIndexListener)
78 :
79 : nsDirIndexListener::nsDirIndexListener()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : nsDirIndexListener::~nsDirIndexListener()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* void onIndexAvailable (in nsIRequest aRequest, in nsISupports aCtxt, in nsIDirIndex aIndex); */
90 : NS_IMETHODIMP nsDirIndexListener::OnIndexAvailable(nsIRequest *aRequest, nsISupports *aCtxt, nsIDirIndex *aIndex)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* void onInformationAvailable (in nsIRequest aRequest, in nsISupports aCtxt, in AString aInfo); */
96 : NS_IMETHODIMP nsDirIndexListener::OnInformationAvailable(nsIRequest *aRequest, nsISupports *aCtxt, const nsAString & aInfo)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 : #define NS_IDIRINDEXLISTENER_KEY "@mozilla.org/dirIndexListener;1"
105 :
106 : /* starting interface: nsIDirIndexParser */
107 : #define NS_IDIRINDEXPARSER_IID_STR "38e3066c-1dd2-11b2-9b59-8be515c1ee3f"
108 :
109 : #define NS_IDIRINDEXPARSER_IID \
110 : {0x38e3066c, 0x1dd2, 0x11b2, \
111 : { 0x9b, 0x59, 0x8b, 0xe5, 0x15, 0xc1, 0xee, 0x3f }}
112 :
113 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDirIndexParser : public nsIStreamListener {
114 : public:
115 :
116 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRINDEXPARSER_IID)
117 :
118 : /* attribute nsIDirIndexListener listener; */
119 : NS_SCRIPTABLE NS_IMETHOD GetListener(nsIDirIndexListener * *aListener) = 0;
120 : NS_SCRIPTABLE NS_IMETHOD SetListener(nsIDirIndexListener *aListener) = 0;
121 :
122 : /* readonly attribute string comment; */
123 : NS_SCRIPTABLE NS_IMETHOD GetComment(char * *aComment) = 0;
124 :
125 : /* attribute string encoding; */
126 : NS_SCRIPTABLE NS_IMETHOD GetEncoding(char * *aEncoding) = 0;
127 : NS_SCRIPTABLE NS_IMETHOD SetEncoding(const char * aEncoding) = 0;
128 :
129 : };
130 :
131 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirIndexParser, NS_IDIRINDEXPARSER_IID)
132 :
133 : /* Use this macro when declaring classes that implement this interface. */
134 : #define NS_DECL_NSIDIRINDEXPARSER \
135 : NS_SCRIPTABLE NS_IMETHOD GetListener(nsIDirIndexListener * *aListener); \
136 : NS_SCRIPTABLE NS_IMETHOD SetListener(nsIDirIndexListener *aListener); \
137 : NS_SCRIPTABLE NS_IMETHOD GetComment(char * *aComment); \
138 : NS_SCRIPTABLE NS_IMETHOD GetEncoding(char * *aEncoding); \
139 : NS_SCRIPTABLE NS_IMETHOD SetEncoding(const char * aEncoding);
140 :
141 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
142 : #define NS_FORWARD_NSIDIRINDEXPARSER(_to) \
143 : NS_SCRIPTABLE NS_IMETHOD GetListener(nsIDirIndexListener * *aListener) { return _to GetListener(aListener); } \
144 : NS_SCRIPTABLE NS_IMETHOD SetListener(nsIDirIndexListener *aListener) { return _to SetListener(aListener); } \
145 : NS_SCRIPTABLE NS_IMETHOD GetComment(char * *aComment) { return _to GetComment(aComment); } \
146 : NS_SCRIPTABLE NS_IMETHOD GetEncoding(char * *aEncoding) { return _to GetEncoding(aEncoding); } \
147 : NS_SCRIPTABLE NS_IMETHOD SetEncoding(const char * aEncoding) { return _to SetEncoding(aEncoding); }
148 :
149 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
150 : #define NS_FORWARD_SAFE_NSIDIRINDEXPARSER(_to) \
151 : NS_SCRIPTABLE NS_IMETHOD GetListener(nsIDirIndexListener * *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
152 : NS_SCRIPTABLE NS_IMETHOD SetListener(nsIDirIndexListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } \
153 : NS_SCRIPTABLE NS_IMETHOD GetComment(char * *aComment) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComment(aComment); } \
154 : NS_SCRIPTABLE NS_IMETHOD GetEncoding(char * *aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
155 : NS_SCRIPTABLE NS_IMETHOD SetEncoding(const char * aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncoding(aEncoding); }
156 :
157 : #if 0
158 : /* Use the code below as a template for the implementation class for this interface. */
159 :
160 : /* Header file */
161 : class nsDirIndexParser : public nsIDirIndexParser
162 : {
163 : public:
164 : NS_DECL_ISUPPORTS
165 : NS_DECL_NSIDIRINDEXPARSER
166 :
167 : nsDirIndexParser();
168 :
169 : private:
170 : ~nsDirIndexParser();
171 :
172 : protected:
173 : /* additional members */
174 : };
175 :
176 : /* Implementation file */
177 : NS_IMPL_ISUPPORTS1(nsDirIndexParser, nsIDirIndexParser)
178 :
179 : nsDirIndexParser::nsDirIndexParser()
180 : {
181 : /* member initializers and constructor code */
182 : }
183 :
184 : nsDirIndexParser::~nsDirIndexParser()
185 : {
186 : /* destructor code */
187 : }
188 :
189 : /* attribute nsIDirIndexListener listener; */
190 : NS_IMETHODIMP nsDirIndexParser::GetListener(nsIDirIndexListener * *aListener)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 : NS_IMETHODIMP nsDirIndexParser::SetListener(nsIDirIndexListener *aListener)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* readonly attribute string comment; */
200 : NS_IMETHODIMP nsDirIndexParser::GetComment(char * *aComment)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* attribute string encoding; */
206 : NS_IMETHODIMP nsDirIndexParser::GetEncoding(char * *aEncoding)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 : NS_IMETHODIMP nsDirIndexParser::SetEncoding(const char * aEncoding)
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 :
215 : /* End of implementation class template. */
216 : #endif
217 :
218 : #define NS_DIRINDEXPARSER_CID \
219 : { /* a0d6ad32-1dd1-11b2-aa55-a40187b54036 */ \
220 : 0xa0d6ad32, \
221 : 0x1dd1, \
222 : 0x11b2, \
223 : { 0xaa, 0x55, 0xa4, 0x01, 0x87, 0xb5, 0x40, 0x36 } \
224 : }
225 : #define NS_DIRINDEXPARSER_CONTRACTID "@mozilla.org/dirIndexParser;1"
226 :
227 : #endif /* __gen_nsIDirIndexListener_h__ */
|