Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMIMEInfo.idl
3 : */
4 :
5 : #ifndef __gen_nsIMIMEInfo_h__
6 : #define __gen_nsIMIMEInfo_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 : class nsIURI; /* forward declaration */
18 :
19 : class nsIFile; /* forward declaration */
20 :
21 : class nsIUTF8StringEnumerator; /* forward declaration */
22 :
23 : class nsIHandlerApp; /* forward declaration */
24 :
25 : class nsIArray; /* forward declaration */
26 :
27 : class nsIMutableArray; /* forward declaration */
28 :
29 : class nsIInterfaceRequestor; /* forward declaration */
30 :
31 : typedef int32_t nsHandlerInfoAction;
32 :
33 :
34 : /* starting interface: nsIHandlerInfo */
35 : #define NS_IHANDLERINFO_IID_STR "325e56a7-3762-4312-aec7-f1fcf84b4145"
36 :
37 : #define NS_IHANDLERINFO_IID \
38 : {0x325e56a7, 0x3762, 0x4312, \
39 : { 0xae, 0xc7, 0xf1, 0xfc, 0xf8, 0x4b, 0x41, 0x45 }}
40 :
41 4 : class NS_NO_VTABLE nsIHandlerInfo : public nsISupports {
42 : public:
43 :
44 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHANDLERINFO_IID)
45 :
46 : /* readonly attribute ACString type; */
47 : NS_IMETHOD GetType(nsACString & aType) = 0;
48 :
49 : /* attribute AString description; */
50 : NS_IMETHOD GetDescription(nsAString & aDescription) = 0;
51 : NS_IMETHOD SetDescription(const nsAString & aDescription) = 0;
52 :
53 : /* attribute nsIHandlerApp preferredApplicationHandler; */
54 : NS_IMETHOD GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler) = 0;
55 : NS_IMETHOD SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler) = 0;
56 :
57 : /* readonly attribute nsIMutableArray possibleApplicationHandlers; */
58 : NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers) = 0;
59 :
60 : /* readonly attribute boolean hasDefaultHandler; */
61 : NS_IMETHOD GetHasDefaultHandler(bool *aHasDefaultHandler) = 0;
62 :
63 : /* readonly attribute AString defaultDescription; */
64 : NS_IMETHOD GetDefaultDescription(nsAString & aDefaultDescription) = 0;
65 :
66 : /* void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
67 : NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) = 0;
68 :
69 : /* attribute nsHandlerInfoAction preferredAction; */
70 : NS_IMETHOD GetPreferredAction(nsHandlerInfoAction *aPreferredAction) = 0;
71 : NS_IMETHOD SetPreferredAction(nsHandlerInfoAction aPreferredAction) = 0;
72 :
73 : enum {
74 : saveToDisk = 0,
75 : alwaysAsk = 1,
76 : useHelperApp = 2,
77 : handleInternally = 3,
78 : useSystemDefault = 4
79 : };
80 :
81 : /* attribute boolean alwaysAskBeforeHandling; */
82 : NS_IMETHOD GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling) = 0;
83 : NS_IMETHOD SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling) = 0;
84 :
85 : };
86 :
87 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHandlerInfo, NS_IHANDLERINFO_IID)
88 :
89 : /* Use this macro when declaring classes that implement this interface. */
90 : #define NS_DECL_NSIHANDLERINFO \
91 : NS_IMETHOD GetType(nsACString & aType) override; \
92 : NS_IMETHOD GetDescription(nsAString & aDescription) override; \
93 : NS_IMETHOD SetDescription(const nsAString & aDescription) override; \
94 : NS_IMETHOD GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler) override; \
95 : NS_IMETHOD SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler) override; \
96 : NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers) override; \
97 : NS_IMETHOD GetHasDefaultHandler(bool *aHasDefaultHandler) override; \
98 : NS_IMETHOD GetDefaultDescription(nsAString & aDefaultDescription) override; \
99 : NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override; \
100 : NS_IMETHOD GetPreferredAction(nsHandlerInfoAction *aPreferredAction) override; \
101 : NS_IMETHOD SetPreferredAction(nsHandlerInfoAction aPreferredAction) override; \
102 : NS_IMETHOD GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling) override; \
103 : NS_IMETHOD SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling) override;
104 :
105 : /* Use this macro when declaring the members of this interface when the
106 : class doesn't implement the interface. This is useful for forwarding. */
107 : #define NS_DECL_NON_VIRTUAL_NSIHANDLERINFO \
108 : nsresult GetType(nsACString & aType); \
109 : nsresult GetDescription(nsAString & aDescription); \
110 : nsresult SetDescription(const nsAString & aDescription); \
111 : nsresult GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler); \
112 : nsresult SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler); \
113 : nsresult GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers); \
114 : nsresult GetHasDefaultHandler(bool *aHasDefaultHandler); \
115 : nsresult GetDefaultDescription(nsAString & aDefaultDescription); \
116 : nsresult LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext); \
117 : nsresult GetPreferredAction(nsHandlerInfoAction *aPreferredAction); \
118 : nsresult SetPreferredAction(nsHandlerInfoAction aPreferredAction); \
119 : nsresult GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling); \
120 : nsresult SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling);
121 :
122 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
123 : #define NS_FORWARD_NSIHANDLERINFO(_to) \
124 : NS_IMETHOD GetType(nsACString & aType) override { return _to GetType(aType); } \
125 : NS_IMETHOD GetDescription(nsAString & aDescription) override { return _to GetDescription(aDescription); } \
126 : NS_IMETHOD SetDescription(const nsAString & aDescription) override { return _to SetDescription(aDescription); } \
127 : NS_IMETHOD GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler) override { return _to GetPreferredApplicationHandler(aPreferredApplicationHandler); } \
128 : NS_IMETHOD SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler) override { return _to SetPreferredApplicationHandler(aPreferredApplicationHandler); } \
129 : NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers) override { return _to GetPossibleApplicationHandlers(aPossibleApplicationHandlers); } \
130 : NS_IMETHOD GetHasDefaultHandler(bool *aHasDefaultHandler) override { return _to GetHasDefaultHandler(aHasDefaultHandler); } \
131 : NS_IMETHOD GetDefaultDescription(nsAString & aDefaultDescription) override { return _to GetDefaultDescription(aDefaultDescription); } \
132 : NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override { return _to LaunchWithURI(aURI, aWindowContext); } \
133 : NS_IMETHOD GetPreferredAction(nsHandlerInfoAction *aPreferredAction) override { return _to GetPreferredAction(aPreferredAction); } \
134 : NS_IMETHOD SetPreferredAction(nsHandlerInfoAction aPreferredAction) override { return _to SetPreferredAction(aPreferredAction); } \
135 : NS_IMETHOD GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling) override { return _to GetAlwaysAskBeforeHandling(aAlwaysAskBeforeHandling); } \
136 : NS_IMETHOD SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling) override { return _to SetAlwaysAskBeforeHandling(aAlwaysAskBeforeHandling); }
137 :
138 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
139 : #define NS_FORWARD_SAFE_NSIHANDLERINFO(_to) \
140 : NS_IMETHOD GetType(nsACString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
141 : NS_IMETHOD GetDescription(nsAString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
142 : NS_IMETHOD SetDescription(const nsAString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
143 : NS_IMETHOD GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredApplicationHandler(aPreferredApplicationHandler); } \
144 : NS_IMETHOD SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreferredApplicationHandler(aPreferredApplicationHandler); } \
145 : NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPossibleApplicationHandlers(aPossibleApplicationHandlers); } \
146 : NS_IMETHOD GetHasDefaultHandler(bool *aHasDefaultHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasDefaultHandler(aHasDefaultHandler); } \
147 : NS_IMETHOD GetDefaultDescription(nsAString & aDefaultDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultDescription(aDefaultDescription); } \
148 : NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchWithURI(aURI, aWindowContext); } \
149 : NS_IMETHOD GetPreferredAction(nsHandlerInfoAction *aPreferredAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredAction(aPreferredAction); } \
150 : NS_IMETHOD SetPreferredAction(nsHandlerInfoAction aPreferredAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreferredAction(aPreferredAction); } \
151 : NS_IMETHOD GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlwaysAskBeforeHandling(aAlwaysAskBeforeHandling); } \
152 : NS_IMETHOD SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlwaysAskBeforeHandling(aAlwaysAskBeforeHandling); }
153 :
154 : #if 0
155 : /* Use the code below as a template for the implementation class for this interface. */
156 :
157 : /* Header file */
158 : class nsHandlerInfo : public nsIHandlerInfo
159 : {
160 : public:
161 : NS_DECL_ISUPPORTS
162 : NS_DECL_NSIHANDLERINFO
163 :
164 : nsHandlerInfo();
165 :
166 : private:
167 : ~nsHandlerInfo();
168 :
169 : protected:
170 : /* additional members */
171 : };
172 :
173 : /* Implementation file */
174 : NS_IMPL_ISUPPORTS(nsHandlerInfo, nsIHandlerInfo)
175 :
176 : nsHandlerInfo::nsHandlerInfo()
177 : {
178 : /* member initializers and constructor code */
179 : }
180 :
181 : nsHandlerInfo::~nsHandlerInfo()
182 : {
183 : /* destructor code */
184 : }
185 :
186 : /* readonly attribute ACString type; */
187 : NS_IMETHODIMP nsHandlerInfo::GetType(nsACString & aType)
188 : {
189 : return NS_ERROR_NOT_IMPLEMENTED;
190 : }
191 :
192 : /* attribute AString description; */
193 : NS_IMETHODIMP nsHandlerInfo::GetDescription(nsAString & aDescription)
194 : {
195 : return NS_ERROR_NOT_IMPLEMENTED;
196 : }
197 : NS_IMETHODIMP nsHandlerInfo::SetDescription(const nsAString & aDescription)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* attribute nsIHandlerApp preferredApplicationHandler; */
203 : NS_IMETHODIMP nsHandlerInfo::GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 : NS_IMETHODIMP nsHandlerInfo::SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler)
208 : {
209 : return NS_ERROR_NOT_IMPLEMENTED;
210 : }
211 :
212 : /* readonly attribute nsIMutableArray possibleApplicationHandlers; */
213 : NS_IMETHODIMP nsHandlerInfo::GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers)
214 : {
215 : return NS_ERROR_NOT_IMPLEMENTED;
216 : }
217 :
218 : /* readonly attribute boolean hasDefaultHandler; */
219 : NS_IMETHODIMP nsHandlerInfo::GetHasDefaultHandler(bool *aHasDefaultHandler)
220 : {
221 : return NS_ERROR_NOT_IMPLEMENTED;
222 : }
223 :
224 : /* readonly attribute AString defaultDescription; */
225 : NS_IMETHODIMP nsHandlerInfo::GetDefaultDescription(nsAString & aDefaultDescription)
226 : {
227 : return NS_ERROR_NOT_IMPLEMENTED;
228 : }
229 :
230 : /* void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
231 : NS_IMETHODIMP nsHandlerInfo::LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext)
232 : {
233 : return NS_ERROR_NOT_IMPLEMENTED;
234 : }
235 :
236 : /* attribute nsHandlerInfoAction preferredAction; */
237 : NS_IMETHODIMP nsHandlerInfo::GetPreferredAction(nsHandlerInfoAction *aPreferredAction)
238 : {
239 : return NS_ERROR_NOT_IMPLEMENTED;
240 : }
241 : NS_IMETHODIMP nsHandlerInfo::SetPreferredAction(nsHandlerInfoAction aPreferredAction)
242 : {
243 : return NS_ERROR_NOT_IMPLEMENTED;
244 : }
245 :
246 : /* attribute boolean alwaysAskBeforeHandling; */
247 : NS_IMETHODIMP nsHandlerInfo::GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling)
248 : {
249 : return NS_ERROR_NOT_IMPLEMENTED;
250 : }
251 : NS_IMETHODIMP nsHandlerInfo::SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling)
252 : {
253 : return NS_ERROR_NOT_IMPLEMENTED;
254 : }
255 :
256 : /* End of implementation class template. */
257 : #endif
258 :
259 :
260 : /* starting interface: nsIMIMEInfo */
261 : #define NS_IMIMEINFO_IID_STR "1c21acef-c7a1-40c6-9d40-a20480ee53a1"
262 :
263 : #define NS_IMIMEINFO_IID \
264 : {0x1c21acef, 0xc7a1, 0x40c6, \
265 : { 0x9d, 0x40, 0xa2, 0x04, 0x80, 0xee, 0x53, 0xa1 }}
266 :
267 4 : class NS_NO_VTABLE nsIMIMEInfo : public nsIHandlerInfo {
268 : public:
269 :
270 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMIMEINFO_IID)
271 :
272 : /* nsIUTF8StringEnumerator getFileExtensions (); */
273 : NS_IMETHOD GetFileExtensions(nsIUTF8StringEnumerator * *_retval) = 0;
274 :
275 : /* void setFileExtensions (in AUTF8String aExtensions); */
276 : NS_IMETHOD SetFileExtensions(const nsACString & aExtensions) = 0;
277 :
278 : /* boolean extensionExists (in AUTF8String aExtension); */
279 : NS_IMETHOD ExtensionExists(const nsACString & aExtension, bool *_retval) = 0;
280 :
281 : /* void appendExtension (in AUTF8String aExtension); */
282 : NS_IMETHOD AppendExtension(const nsACString & aExtension) = 0;
283 :
284 : /* attribute AUTF8String primaryExtension; */
285 : NS_IMETHOD GetPrimaryExtension(nsACString & aPrimaryExtension) = 0;
286 : NS_IMETHOD SetPrimaryExtension(const nsACString & aPrimaryExtension) = 0;
287 :
288 : /* readonly attribute ACString MIMEType; */
289 : NS_IMETHOD GetMIMEType(nsACString & aMIMEType) = 0;
290 :
291 : /* boolean equals (in nsIMIMEInfo aMIMEInfo); */
292 : NS_IMETHOD Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval) = 0;
293 :
294 : /* readonly attribute nsIArray possibleLocalHandlers; */
295 : NS_IMETHOD GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers) = 0;
296 :
297 : /* void launchWithFile (in nsIFile aFile); */
298 : NS_IMETHOD LaunchWithFile(nsIFile *aFile) = 0;
299 :
300 : };
301 :
302 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMIMEInfo, NS_IMIMEINFO_IID)
303 :
304 : /* Use this macro when declaring classes that implement this interface. */
305 : #define NS_DECL_NSIMIMEINFO \
306 : NS_IMETHOD GetFileExtensions(nsIUTF8StringEnumerator * *_retval) override; \
307 : NS_IMETHOD SetFileExtensions(const nsACString & aExtensions) override; \
308 : NS_IMETHOD ExtensionExists(const nsACString & aExtension, bool *_retval) override; \
309 : NS_IMETHOD AppendExtension(const nsACString & aExtension) override; \
310 : NS_IMETHOD GetPrimaryExtension(nsACString & aPrimaryExtension) override; \
311 : NS_IMETHOD SetPrimaryExtension(const nsACString & aPrimaryExtension) override; \
312 : NS_IMETHOD GetMIMEType(nsACString & aMIMEType) override; \
313 : NS_IMETHOD Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval) override; \
314 : NS_IMETHOD GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers) override; \
315 : NS_IMETHOD LaunchWithFile(nsIFile *aFile) override;
316 :
317 : /* Use this macro when declaring the members of this interface when the
318 : class doesn't implement the interface. This is useful for forwarding. */
319 : #define NS_DECL_NON_VIRTUAL_NSIMIMEINFO \
320 : nsresult GetFileExtensions(nsIUTF8StringEnumerator * *_retval); \
321 : nsresult SetFileExtensions(const nsACString & aExtensions); \
322 : nsresult ExtensionExists(const nsACString & aExtension, bool *_retval); \
323 : nsresult AppendExtension(const nsACString & aExtension); \
324 : nsresult GetPrimaryExtension(nsACString & aPrimaryExtension); \
325 : nsresult SetPrimaryExtension(const nsACString & aPrimaryExtension); \
326 : nsresult GetMIMEType(nsACString & aMIMEType); \
327 : nsresult Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval); \
328 : nsresult GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers); \
329 : nsresult LaunchWithFile(nsIFile *aFile);
330 :
331 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
332 : #define NS_FORWARD_NSIMIMEINFO(_to) \
333 : NS_IMETHOD GetFileExtensions(nsIUTF8StringEnumerator * *_retval) override { return _to GetFileExtensions(_retval); } \
334 : NS_IMETHOD SetFileExtensions(const nsACString & aExtensions) override { return _to SetFileExtensions(aExtensions); } \
335 : NS_IMETHOD ExtensionExists(const nsACString & aExtension, bool *_retval) override { return _to ExtensionExists(aExtension, _retval); } \
336 : NS_IMETHOD AppendExtension(const nsACString & aExtension) override { return _to AppendExtension(aExtension); } \
337 : NS_IMETHOD GetPrimaryExtension(nsACString & aPrimaryExtension) override { return _to GetPrimaryExtension(aPrimaryExtension); } \
338 : NS_IMETHOD SetPrimaryExtension(const nsACString & aPrimaryExtension) override { return _to SetPrimaryExtension(aPrimaryExtension); } \
339 : NS_IMETHOD GetMIMEType(nsACString & aMIMEType) override { return _to GetMIMEType(aMIMEType); } \
340 : NS_IMETHOD Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval) override { return _to Equals(aMIMEInfo, _retval); } \
341 : NS_IMETHOD GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers) override { return _to GetPossibleLocalHandlers(aPossibleLocalHandlers); } \
342 : NS_IMETHOD LaunchWithFile(nsIFile *aFile) override { return _to LaunchWithFile(aFile); }
343 :
344 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
345 : #define NS_FORWARD_SAFE_NSIMIMEINFO(_to) \
346 : NS_IMETHOD GetFileExtensions(nsIUTF8StringEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileExtensions(_retval); } \
347 : NS_IMETHOD SetFileExtensions(const nsACString & aExtensions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileExtensions(aExtensions); } \
348 : NS_IMETHOD ExtensionExists(const nsACString & aExtension, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtensionExists(aExtension, _retval); } \
349 : NS_IMETHOD AppendExtension(const nsACString & aExtension) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendExtension(aExtension); } \
350 : NS_IMETHOD GetPrimaryExtension(nsACString & aPrimaryExtension) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryExtension(aPrimaryExtension); } \
351 : NS_IMETHOD SetPrimaryExtension(const nsACString & aPrimaryExtension) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrimaryExtension(aPrimaryExtension); } \
352 : NS_IMETHOD GetMIMEType(nsACString & aMIMEType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMIMEType(aMIMEType); } \
353 : NS_IMETHOD Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(aMIMEInfo, _retval); } \
354 : NS_IMETHOD GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPossibleLocalHandlers(aPossibleLocalHandlers); } \
355 : NS_IMETHOD LaunchWithFile(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchWithFile(aFile); }
356 :
357 : #if 0
358 : /* Use the code below as a template for the implementation class for this interface. */
359 :
360 : /* Header file */
361 : class nsMIMEInfo : public nsIMIMEInfo
362 : {
363 : public:
364 : NS_DECL_ISUPPORTS
365 : NS_DECL_NSIMIMEINFO
366 :
367 : nsMIMEInfo();
368 :
369 : private:
370 : ~nsMIMEInfo();
371 :
372 : protected:
373 : /* additional members */
374 : };
375 :
376 : /* Implementation file */
377 : NS_IMPL_ISUPPORTS(nsMIMEInfo, nsIMIMEInfo)
378 :
379 : nsMIMEInfo::nsMIMEInfo()
380 : {
381 : /* member initializers and constructor code */
382 : }
383 :
384 : nsMIMEInfo::~nsMIMEInfo()
385 : {
386 : /* destructor code */
387 : }
388 :
389 : /* nsIUTF8StringEnumerator getFileExtensions (); */
390 : NS_IMETHODIMP nsMIMEInfo::GetFileExtensions(nsIUTF8StringEnumerator * *_retval)
391 : {
392 : return NS_ERROR_NOT_IMPLEMENTED;
393 : }
394 :
395 : /* void setFileExtensions (in AUTF8String aExtensions); */
396 : NS_IMETHODIMP nsMIMEInfo::SetFileExtensions(const nsACString & aExtensions)
397 : {
398 : return NS_ERROR_NOT_IMPLEMENTED;
399 : }
400 :
401 : /* boolean extensionExists (in AUTF8String aExtension); */
402 : NS_IMETHODIMP nsMIMEInfo::ExtensionExists(const nsACString & aExtension, bool *_retval)
403 : {
404 : return NS_ERROR_NOT_IMPLEMENTED;
405 : }
406 :
407 : /* void appendExtension (in AUTF8String aExtension); */
408 : NS_IMETHODIMP nsMIMEInfo::AppendExtension(const nsACString & aExtension)
409 : {
410 : return NS_ERROR_NOT_IMPLEMENTED;
411 : }
412 :
413 : /* attribute AUTF8String primaryExtension; */
414 : NS_IMETHODIMP nsMIMEInfo::GetPrimaryExtension(nsACString & aPrimaryExtension)
415 : {
416 : return NS_ERROR_NOT_IMPLEMENTED;
417 : }
418 : NS_IMETHODIMP nsMIMEInfo::SetPrimaryExtension(const nsACString & aPrimaryExtension)
419 : {
420 : return NS_ERROR_NOT_IMPLEMENTED;
421 : }
422 :
423 : /* readonly attribute ACString MIMEType; */
424 : NS_IMETHODIMP nsMIMEInfo::GetMIMEType(nsACString & aMIMEType)
425 : {
426 : return NS_ERROR_NOT_IMPLEMENTED;
427 : }
428 :
429 : /* boolean equals (in nsIMIMEInfo aMIMEInfo); */
430 : NS_IMETHODIMP nsMIMEInfo::Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval)
431 : {
432 : return NS_ERROR_NOT_IMPLEMENTED;
433 : }
434 :
435 : /* readonly attribute nsIArray possibleLocalHandlers; */
436 : NS_IMETHODIMP nsMIMEInfo::GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers)
437 : {
438 : return NS_ERROR_NOT_IMPLEMENTED;
439 : }
440 :
441 : /* void launchWithFile (in nsIFile aFile); */
442 : NS_IMETHODIMP nsMIMEInfo::LaunchWithFile(nsIFile *aFile)
443 : {
444 : return NS_ERROR_NOT_IMPLEMENTED;
445 : }
446 :
447 : /* End of implementation class template. */
448 : #endif
449 :
450 :
451 : /* starting interface: nsIHandlerApp */
452 : #define NS_IHANDLERAPP_IID_STR "8bdf20a4-9170-4548-af52-78311a44f920"
453 :
454 : #define NS_IHANDLERAPP_IID \
455 : {0x8bdf20a4, 0x9170, 0x4548, \
456 : { 0xaf, 0x52, 0x78, 0x31, 0x1a, 0x44, 0xf9, 0x20 }}
457 :
458 0 : class NS_NO_VTABLE nsIHandlerApp : public nsISupports {
459 : public:
460 :
461 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHANDLERAPP_IID)
462 :
463 : /* attribute AString name; */
464 : NS_IMETHOD GetName(nsAString & aName) = 0;
465 : NS_IMETHOD SetName(const nsAString & aName) = 0;
466 :
467 : /* attribute AString detailedDescription; */
468 : NS_IMETHOD GetDetailedDescription(nsAString & aDetailedDescription) = 0;
469 : NS_IMETHOD SetDetailedDescription(const nsAString & aDetailedDescription) = 0;
470 :
471 : /* boolean equals (in nsIHandlerApp aHandlerApp); */
472 : NS_IMETHOD Equals(nsIHandlerApp *aHandlerApp, bool *_retval) = 0;
473 :
474 : /* void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
475 : NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) = 0;
476 :
477 : };
478 :
479 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHandlerApp, NS_IHANDLERAPP_IID)
480 :
481 : /* Use this macro when declaring classes that implement this interface. */
482 : #define NS_DECL_NSIHANDLERAPP \
483 : NS_IMETHOD GetName(nsAString & aName) override; \
484 : NS_IMETHOD SetName(const nsAString & aName) override; \
485 : NS_IMETHOD GetDetailedDescription(nsAString & aDetailedDescription) override; \
486 : NS_IMETHOD SetDetailedDescription(const nsAString & aDetailedDescription) override; \
487 : NS_IMETHOD Equals(nsIHandlerApp *aHandlerApp, bool *_retval) override; \
488 : NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override;
489 :
490 : /* Use this macro when declaring the members of this interface when the
491 : class doesn't implement the interface. This is useful for forwarding. */
492 : #define NS_DECL_NON_VIRTUAL_NSIHANDLERAPP \
493 : nsresult GetName(nsAString & aName); \
494 : nsresult SetName(const nsAString & aName); \
495 : nsresult GetDetailedDescription(nsAString & aDetailedDescription); \
496 : nsresult SetDetailedDescription(const nsAString & aDetailedDescription); \
497 : nsresult Equals(nsIHandlerApp *aHandlerApp, bool *_retval); \
498 : nsresult LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext);
499 :
500 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
501 : #define NS_FORWARD_NSIHANDLERAPP(_to) \
502 : NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
503 : NS_IMETHOD SetName(const nsAString & aName) override { return _to SetName(aName); } \
504 : NS_IMETHOD GetDetailedDescription(nsAString & aDetailedDescription) override { return _to GetDetailedDescription(aDetailedDescription); } \
505 : NS_IMETHOD SetDetailedDescription(const nsAString & aDetailedDescription) override { return _to SetDetailedDescription(aDetailedDescription); } \
506 : NS_IMETHOD Equals(nsIHandlerApp *aHandlerApp, bool *_retval) override { return _to Equals(aHandlerApp, _retval); } \
507 : NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override { return _to LaunchWithURI(aURI, aWindowContext); }
508 :
509 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
510 : #define NS_FORWARD_SAFE_NSIHANDLERAPP(_to) \
511 : NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
512 : NS_IMETHOD SetName(const nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
513 : NS_IMETHOD GetDetailedDescription(nsAString & aDetailedDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetailedDescription(aDetailedDescription); } \
514 : NS_IMETHOD SetDetailedDescription(const nsAString & aDetailedDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDetailedDescription(aDetailedDescription); } \
515 : NS_IMETHOD Equals(nsIHandlerApp *aHandlerApp, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(aHandlerApp, _retval); } \
516 : NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchWithURI(aURI, aWindowContext); }
517 :
518 : #if 0
519 : /* Use the code below as a template for the implementation class for this interface. */
520 :
521 : /* Header file */
522 : class nsHandlerApp : public nsIHandlerApp
523 : {
524 : public:
525 : NS_DECL_ISUPPORTS
526 : NS_DECL_NSIHANDLERAPP
527 :
528 : nsHandlerApp();
529 :
530 : private:
531 : ~nsHandlerApp();
532 :
533 : protected:
534 : /* additional members */
535 : };
536 :
537 : /* Implementation file */
538 : NS_IMPL_ISUPPORTS(nsHandlerApp, nsIHandlerApp)
539 :
540 : nsHandlerApp::nsHandlerApp()
541 : {
542 : /* member initializers and constructor code */
543 : }
544 :
545 : nsHandlerApp::~nsHandlerApp()
546 : {
547 : /* destructor code */
548 : }
549 :
550 : /* attribute AString name; */
551 : NS_IMETHODIMP nsHandlerApp::GetName(nsAString & aName)
552 : {
553 : return NS_ERROR_NOT_IMPLEMENTED;
554 : }
555 : NS_IMETHODIMP nsHandlerApp::SetName(const nsAString & aName)
556 : {
557 : return NS_ERROR_NOT_IMPLEMENTED;
558 : }
559 :
560 : /* attribute AString detailedDescription; */
561 : NS_IMETHODIMP nsHandlerApp::GetDetailedDescription(nsAString & aDetailedDescription)
562 : {
563 : return NS_ERROR_NOT_IMPLEMENTED;
564 : }
565 : NS_IMETHODIMP nsHandlerApp::SetDetailedDescription(const nsAString & aDetailedDescription)
566 : {
567 : return NS_ERROR_NOT_IMPLEMENTED;
568 : }
569 :
570 : /* boolean equals (in nsIHandlerApp aHandlerApp); */
571 : NS_IMETHODIMP nsHandlerApp::Equals(nsIHandlerApp *aHandlerApp, bool *_retval)
572 : {
573 : return NS_ERROR_NOT_IMPLEMENTED;
574 : }
575 :
576 : /* void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
577 : NS_IMETHODIMP nsHandlerApp::LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext)
578 : {
579 : return NS_ERROR_NOT_IMPLEMENTED;
580 : }
581 :
582 : /* End of implementation class template. */
583 : #endif
584 :
585 :
586 : /* starting interface: nsILocalHandlerApp */
587 : #define NS_ILOCALHANDLERAPP_IID_STR "d36b6329-52ae-4f45-80f4-b2536ae5f8b2"
588 :
589 : #define NS_ILOCALHANDLERAPP_IID \
590 : {0xd36b6329, 0x52ae, 0x4f45, \
591 : { 0x80, 0xf4, 0xb2, 0x53, 0x6a, 0xe5, 0xf8, 0xb2 }}
592 :
593 0 : class NS_NO_VTABLE nsILocalHandlerApp : public nsIHandlerApp {
594 : public:
595 :
596 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALHANDLERAPP_IID)
597 :
598 : /* attribute nsIFile executable; */
599 : NS_IMETHOD GetExecutable(nsIFile * *aExecutable) = 0;
600 : NS_IMETHOD SetExecutable(nsIFile *aExecutable) = 0;
601 :
602 : /* readonly attribute unsigned long parameterCount; */
603 : NS_IMETHOD GetParameterCount(uint32_t *aParameterCount) = 0;
604 :
605 : /* void clearParameters (); */
606 : NS_IMETHOD ClearParameters(void) = 0;
607 :
608 : /* void appendParameter (in AString param); */
609 : NS_IMETHOD AppendParameter(const nsAString & param) = 0;
610 :
611 : /* AString getParameter (in unsigned long parameterIndex); */
612 : NS_IMETHOD GetParameter(uint32_t parameterIndex, nsAString & _retval) = 0;
613 :
614 : /* boolean parameterExists (in AString param); */
615 : NS_IMETHOD ParameterExists(const nsAString & param, bool *_retval) = 0;
616 :
617 : };
618 :
619 : NS_DEFINE_STATIC_IID_ACCESSOR(nsILocalHandlerApp, NS_ILOCALHANDLERAPP_IID)
620 :
621 : /* Use this macro when declaring classes that implement this interface. */
622 : #define NS_DECL_NSILOCALHANDLERAPP \
623 : NS_IMETHOD GetExecutable(nsIFile * *aExecutable) override; \
624 : NS_IMETHOD SetExecutable(nsIFile *aExecutable) override; \
625 : NS_IMETHOD GetParameterCount(uint32_t *aParameterCount) override; \
626 : NS_IMETHOD ClearParameters(void) override; \
627 : NS_IMETHOD AppendParameter(const nsAString & param) override; \
628 : NS_IMETHOD GetParameter(uint32_t parameterIndex, nsAString & _retval) override; \
629 : NS_IMETHOD ParameterExists(const nsAString & param, bool *_retval) override;
630 :
631 : /* Use this macro when declaring the members of this interface when the
632 : class doesn't implement the interface. This is useful for forwarding. */
633 : #define NS_DECL_NON_VIRTUAL_NSILOCALHANDLERAPP \
634 : nsresult GetExecutable(nsIFile * *aExecutable); \
635 : nsresult SetExecutable(nsIFile *aExecutable); \
636 : nsresult GetParameterCount(uint32_t *aParameterCount); \
637 : nsresult ClearParameters(void); \
638 : nsresult AppendParameter(const nsAString & param); \
639 : nsresult GetParameter(uint32_t parameterIndex, nsAString & _retval); \
640 : nsresult ParameterExists(const nsAString & param, bool *_retval);
641 :
642 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
643 : #define NS_FORWARD_NSILOCALHANDLERAPP(_to) \
644 : NS_IMETHOD GetExecutable(nsIFile * *aExecutable) override { return _to GetExecutable(aExecutable); } \
645 : NS_IMETHOD SetExecutable(nsIFile *aExecutable) override { return _to SetExecutable(aExecutable); } \
646 : NS_IMETHOD GetParameterCount(uint32_t *aParameterCount) override { return _to GetParameterCount(aParameterCount); } \
647 : NS_IMETHOD ClearParameters(void) override { return _to ClearParameters(); } \
648 : NS_IMETHOD AppendParameter(const nsAString & param) override { return _to AppendParameter(param); } \
649 : NS_IMETHOD GetParameter(uint32_t parameterIndex, nsAString & _retval) override { return _to GetParameter(parameterIndex, _retval); } \
650 : NS_IMETHOD ParameterExists(const nsAString & param, bool *_retval) override { return _to ParameterExists(param, _retval); }
651 :
652 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
653 : #define NS_FORWARD_SAFE_NSILOCALHANDLERAPP(_to) \
654 : NS_IMETHOD GetExecutable(nsIFile * *aExecutable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecutable(aExecutable); } \
655 : NS_IMETHOD SetExecutable(nsIFile *aExecutable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExecutable(aExecutable); } \
656 : NS_IMETHOD GetParameterCount(uint32_t *aParameterCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterCount(aParameterCount); } \
657 : NS_IMETHOD ClearParameters(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearParameters(); } \
658 : NS_IMETHOD AppendParameter(const nsAString & param) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendParameter(param); } \
659 : NS_IMETHOD GetParameter(uint32_t parameterIndex, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameter(parameterIndex, _retval); } \
660 : NS_IMETHOD ParameterExists(const nsAString & param, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParameterExists(param, _retval); }
661 :
662 : #if 0
663 : /* Use the code below as a template for the implementation class for this interface. */
664 :
665 : /* Header file */
666 : class nsLocalHandlerApp : public nsILocalHandlerApp
667 : {
668 : public:
669 : NS_DECL_ISUPPORTS
670 : NS_DECL_NSILOCALHANDLERAPP
671 :
672 : nsLocalHandlerApp();
673 :
674 : private:
675 : ~nsLocalHandlerApp();
676 :
677 : protected:
678 : /* additional members */
679 : };
680 :
681 : /* Implementation file */
682 : NS_IMPL_ISUPPORTS(nsLocalHandlerApp, nsILocalHandlerApp)
683 :
684 : nsLocalHandlerApp::nsLocalHandlerApp()
685 : {
686 : /* member initializers and constructor code */
687 : }
688 :
689 : nsLocalHandlerApp::~nsLocalHandlerApp()
690 : {
691 : /* destructor code */
692 : }
693 :
694 : /* attribute nsIFile executable; */
695 : NS_IMETHODIMP nsLocalHandlerApp::GetExecutable(nsIFile * *aExecutable)
696 : {
697 : return NS_ERROR_NOT_IMPLEMENTED;
698 : }
699 : NS_IMETHODIMP nsLocalHandlerApp::SetExecutable(nsIFile *aExecutable)
700 : {
701 : return NS_ERROR_NOT_IMPLEMENTED;
702 : }
703 :
704 : /* readonly attribute unsigned long parameterCount; */
705 : NS_IMETHODIMP nsLocalHandlerApp::GetParameterCount(uint32_t *aParameterCount)
706 : {
707 : return NS_ERROR_NOT_IMPLEMENTED;
708 : }
709 :
710 : /* void clearParameters (); */
711 : NS_IMETHODIMP nsLocalHandlerApp::ClearParameters()
712 : {
713 : return NS_ERROR_NOT_IMPLEMENTED;
714 : }
715 :
716 : /* void appendParameter (in AString param); */
717 : NS_IMETHODIMP nsLocalHandlerApp::AppendParameter(const nsAString & param)
718 : {
719 : return NS_ERROR_NOT_IMPLEMENTED;
720 : }
721 :
722 : /* AString getParameter (in unsigned long parameterIndex); */
723 : NS_IMETHODIMP nsLocalHandlerApp::GetParameter(uint32_t parameterIndex, nsAString & _retval)
724 : {
725 : return NS_ERROR_NOT_IMPLEMENTED;
726 : }
727 :
728 : /* boolean parameterExists (in AString param); */
729 : NS_IMETHODIMP nsLocalHandlerApp::ParameterExists(const nsAString & param, bool *_retval)
730 : {
731 : return NS_ERROR_NOT_IMPLEMENTED;
732 : }
733 :
734 : /* End of implementation class template. */
735 : #endif
736 :
737 :
738 : /* starting interface: nsIWebHandlerApp */
739 : #define NS_IWEBHANDLERAPP_IID_STR "7521a093-c498-45ce-b462-df7ba0d882f6"
740 :
741 : #define NS_IWEBHANDLERAPP_IID \
742 : {0x7521a093, 0xc498, 0x45ce, \
743 : { 0xb4, 0x62, 0xdf, 0x7b, 0xa0, 0xd8, 0x82, 0xf6 }}
744 :
745 : class NS_NO_VTABLE nsIWebHandlerApp : public nsIHandlerApp {
746 : public:
747 :
748 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBHANDLERAPP_IID)
749 :
750 : /* attribute AUTF8String uriTemplate; */
751 : NS_IMETHOD GetUriTemplate(nsACString & aUriTemplate) = 0;
752 : NS_IMETHOD SetUriTemplate(const nsACString & aUriTemplate) = 0;
753 :
754 : };
755 :
756 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebHandlerApp, NS_IWEBHANDLERAPP_IID)
757 :
758 : /* Use this macro when declaring classes that implement this interface. */
759 : #define NS_DECL_NSIWEBHANDLERAPP \
760 : NS_IMETHOD GetUriTemplate(nsACString & aUriTemplate) override; \
761 : NS_IMETHOD SetUriTemplate(const nsACString & aUriTemplate) override;
762 :
763 : /* Use this macro when declaring the members of this interface when the
764 : class doesn't implement the interface. This is useful for forwarding. */
765 : #define NS_DECL_NON_VIRTUAL_NSIWEBHANDLERAPP \
766 : nsresult GetUriTemplate(nsACString & aUriTemplate); \
767 : nsresult SetUriTemplate(const nsACString & aUriTemplate);
768 :
769 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
770 : #define NS_FORWARD_NSIWEBHANDLERAPP(_to) \
771 : NS_IMETHOD GetUriTemplate(nsACString & aUriTemplate) override { return _to GetUriTemplate(aUriTemplate); } \
772 : NS_IMETHOD SetUriTemplate(const nsACString & aUriTemplate) override { return _to SetUriTemplate(aUriTemplate); }
773 :
774 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
775 : #define NS_FORWARD_SAFE_NSIWEBHANDLERAPP(_to) \
776 : NS_IMETHOD GetUriTemplate(nsACString & aUriTemplate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUriTemplate(aUriTemplate); } \
777 : NS_IMETHOD SetUriTemplate(const nsACString & aUriTemplate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUriTemplate(aUriTemplate); }
778 :
779 : #if 0
780 : /* Use the code below as a template for the implementation class for this interface. */
781 :
782 : /* Header file */
783 : class nsWebHandlerApp : public nsIWebHandlerApp
784 : {
785 : public:
786 : NS_DECL_ISUPPORTS
787 : NS_DECL_NSIWEBHANDLERAPP
788 :
789 : nsWebHandlerApp();
790 :
791 : private:
792 : ~nsWebHandlerApp();
793 :
794 : protected:
795 : /* additional members */
796 : };
797 :
798 : /* Implementation file */
799 : NS_IMPL_ISUPPORTS(nsWebHandlerApp, nsIWebHandlerApp)
800 :
801 : nsWebHandlerApp::nsWebHandlerApp()
802 : {
803 : /* member initializers and constructor code */
804 : }
805 :
806 : nsWebHandlerApp::~nsWebHandlerApp()
807 : {
808 : /* destructor code */
809 : }
810 :
811 : /* attribute AUTF8String uriTemplate; */
812 : NS_IMETHODIMP nsWebHandlerApp::GetUriTemplate(nsACString & aUriTemplate)
813 : {
814 : return NS_ERROR_NOT_IMPLEMENTED;
815 : }
816 : NS_IMETHODIMP nsWebHandlerApp::SetUriTemplate(const nsACString & aUriTemplate)
817 : {
818 : return NS_ERROR_NOT_IMPLEMENTED;
819 : }
820 :
821 : /* End of implementation class template. */
822 : #endif
823 :
824 :
825 : /* starting interface: nsIDBusHandlerApp */
826 : #define NS_IDBUSHANDLERAPP_IID_STR "1ffc274b-4cbf-4bb5-a635-05ad2cbb6534"
827 :
828 : #define NS_IDBUSHANDLERAPP_IID \
829 : {0x1ffc274b, 0x4cbf, 0x4bb5, \
830 : { 0xa6, 0x35, 0x05, 0xad, 0x2c, 0xbb, 0x65, 0x34 }}
831 :
832 0 : class NS_NO_VTABLE nsIDBusHandlerApp : public nsIHandlerApp {
833 : public:
834 :
835 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDBUSHANDLERAPP_IID)
836 :
837 : /* attribute AUTF8String service; */
838 : NS_IMETHOD GetService(nsACString & aService) = 0;
839 : NS_IMETHOD SetService(const nsACString & aService) = 0;
840 :
841 : /* attribute AUTF8String objectPath; */
842 : NS_IMETHOD GetObjectPath(nsACString & aObjectPath) = 0;
843 : NS_IMETHOD SetObjectPath(const nsACString & aObjectPath) = 0;
844 :
845 : /* attribute AUTF8String dBusInterface; */
846 : NS_IMETHOD GetDBusInterface(nsACString & aDBusInterface) = 0;
847 : NS_IMETHOD SetDBusInterface(const nsACString & aDBusInterface) = 0;
848 :
849 : /* attribute AUTF8String method; */
850 : NS_IMETHOD GetMethod(nsACString & aMethod) = 0;
851 : NS_IMETHOD SetMethod(const nsACString & aMethod) = 0;
852 :
853 : };
854 :
855 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDBusHandlerApp, NS_IDBUSHANDLERAPP_IID)
856 :
857 : /* Use this macro when declaring classes that implement this interface. */
858 : #define NS_DECL_NSIDBUSHANDLERAPP \
859 : NS_IMETHOD GetService(nsACString & aService) override; \
860 : NS_IMETHOD SetService(const nsACString & aService) override; \
861 : NS_IMETHOD GetObjectPath(nsACString & aObjectPath) override; \
862 : NS_IMETHOD SetObjectPath(const nsACString & aObjectPath) override; \
863 : NS_IMETHOD GetDBusInterface(nsACString & aDBusInterface) override; \
864 : NS_IMETHOD SetDBusInterface(const nsACString & aDBusInterface) override; \
865 : NS_IMETHOD GetMethod(nsACString & aMethod) override; \
866 : NS_IMETHOD SetMethod(const nsACString & aMethod) override;
867 :
868 : /* Use this macro when declaring the members of this interface when the
869 : class doesn't implement the interface. This is useful for forwarding. */
870 : #define NS_DECL_NON_VIRTUAL_NSIDBUSHANDLERAPP \
871 : nsresult GetService(nsACString & aService); \
872 : nsresult SetService(const nsACString & aService); \
873 : nsresult GetObjectPath(nsACString & aObjectPath); \
874 : nsresult SetObjectPath(const nsACString & aObjectPath); \
875 : nsresult GetDBusInterface(nsACString & aDBusInterface); \
876 : nsresult SetDBusInterface(const nsACString & aDBusInterface); \
877 : nsresult GetMethod(nsACString & aMethod); \
878 : nsresult SetMethod(const nsACString & aMethod);
879 :
880 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
881 : #define NS_FORWARD_NSIDBUSHANDLERAPP(_to) \
882 : NS_IMETHOD GetService(nsACString & aService) override { return _to GetService(aService); } \
883 : NS_IMETHOD SetService(const nsACString & aService) override { return _to SetService(aService); } \
884 : NS_IMETHOD GetObjectPath(nsACString & aObjectPath) override { return _to GetObjectPath(aObjectPath); } \
885 : NS_IMETHOD SetObjectPath(const nsACString & aObjectPath) override { return _to SetObjectPath(aObjectPath); } \
886 : NS_IMETHOD GetDBusInterface(nsACString & aDBusInterface) override { return _to GetDBusInterface(aDBusInterface); } \
887 : NS_IMETHOD SetDBusInterface(const nsACString & aDBusInterface) override { return _to SetDBusInterface(aDBusInterface); } \
888 : NS_IMETHOD GetMethod(nsACString & aMethod) override { return _to GetMethod(aMethod); } \
889 : NS_IMETHOD SetMethod(const nsACString & aMethod) override { return _to SetMethod(aMethod); }
890 :
891 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
892 : #define NS_FORWARD_SAFE_NSIDBUSHANDLERAPP(_to) \
893 : NS_IMETHOD GetService(nsACString & aService) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetService(aService); } \
894 : NS_IMETHOD SetService(const nsACString & aService) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetService(aService); } \
895 : NS_IMETHOD GetObjectPath(nsACString & aObjectPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObjectPath(aObjectPath); } \
896 : NS_IMETHOD SetObjectPath(const nsACString & aObjectPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetObjectPath(aObjectPath); } \
897 : NS_IMETHOD GetDBusInterface(nsACString & aDBusInterface) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDBusInterface(aDBusInterface); } \
898 : NS_IMETHOD SetDBusInterface(const nsACString & aDBusInterface) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDBusInterface(aDBusInterface); } \
899 : NS_IMETHOD GetMethod(nsACString & aMethod) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMethod(aMethod); } \
900 : NS_IMETHOD SetMethod(const nsACString & aMethod) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMethod(aMethod); }
901 :
902 : #if 0
903 : /* Use the code below as a template for the implementation class for this interface. */
904 :
905 : /* Header file */
906 : class nsDBusHandlerApp : public nsIDBusHandlerApp
907 : {
908 : public:
909 : NS_DECL_ISUPPORTS
910 : NS_DECL_NSIDBUSHANDLERAPP
911 :
912 : nsDBusHandlerApp();
913 :
914 : private:
915 : ~nsDBusHandlerApp();
916 :
917 : protected:
918 : /* additional members */
919 : };
920 :
921 : /* Implementation file */
922 : NS_IMPL_ISUPPORTS(nsDBusHandlerApp, nsIDBusHandlerApp)
923 :
924 : nsDBusHandlerApp::nsDBusHandlerApp()
925 : {
926 : /* member initializers and constructor code */
927 : }
928 :
929 : nsDBusHandlerApp::~nsDBusHandlerApp()
930 : {
931 : /* destructor code */
932 : }
933 :
934 : /* attribute AUTF8String service; */
935 : NS_IMETHODIMP nsDBusHandlerApp::GetService(nsACString & aService)
936 : {
937 : return NS_ERROR_NOT_IMPLEMENTED;
938 : }
939 : NS_IMETHODIMP nsDBusHandlerApp::SetService(const nsACString & aService)
940 : {
941 : return NS_ERROR_NOT_IMPLEMENTED;
942 : }
943 :
944 : /* attribute AUTF8String objectPath; */
945 : NS_IMETHODIMP nsDBusHandlerApp::GetObjectPath(nsACString & aObjectPath)
946 : {
947 : return NS_ERROR_NOT_IMPLEMENTED;
948 : }
949 : NS_IMETHODIMP nsDBusHandlerApp::SetObjectPath(const nsACString & aObjectPath)
950 : {
951 : return NS_ERROR_NOT_IMPLEMENTED;
952 : }
953 :
954 : /* attribute AUTF8String dBusInterface; */
955 : NS_IMETHODIMP nsDBusHandlerApp::GetDBusInterface(nsACString & aDBusInterface)
956 : {
957 : return NS_ERROR_NOT_IMPLEMENTED;
958 : }
959 : NS_IMETHODIMP nsDBusHandlerApp::SetDBusInterface(const nsACString & aDBusInterface)
960 : {
961 : return NS_ERROR_NOT_IMPLEMENTED;
962 : }
963 :
964 : /* attribute AUTF8String method; */
965 : NS_IMETHODIMP nsDBusHandlerApp::GetMethod(nsACString & aMethod)
966 : {
967 : return NS_ERROR_NOT_IMPLEMENTED;
968 : }
969 : NS_IMETHODIMP nsDBusHandlerApp::SetMethod(const nsACString & aMethod)
970 : {
971 : return NS_ERROR_NOT_IMPLEMENTED;
972 : }
973 :
974 : /* End of implementation class template. */
975 : #endif
976 :
977 :
978 : #endif /* __gen_nsIMIMEInfo_h__ */
|