1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIFileURL.idl
3 : */
4 :
5 : #ifndef __gen_nsIFileURL_h__
6 : #define __gen_nsIFileURL_h__
7 :
8 :
9 : #ifndef __gen_nsIURL_h__
10 : #include "nsIURL.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 nsIFile; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIFileURL */
21 : #define NS_IFILEURL_IID_STR "7750029c-1b0a-414e-8359-a77f24a2a0a6"
22 :
23 : #define NS_IFILEURL_IID \
24 : {0x7750029c, 0x1b0a, 0x414e, \
25 : { 0x83, 0x59, 0xa7, 0x7f, 0x24, 0xa2, 0xa0, 0xa6 }}
26 :
27 288157 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFileURL : public nsIURL {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFILEURL_IID)
31 :
32 : /* attribute nsIFile file; */
33 : NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) = 0;
34 : NS_SCRIPTABLE NS_IMETHOD SetFile(nsIFile *aFile) = 0;
35 :
36 : };
37 :
38 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFileURL, NS_IFILEURL_IID)
39 :
40 : /* Use this macro when declaring classes that implement this interface. */
41 : #define NS_DECL_NSIFILEURL \
42 : NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile); \
43 : NS_SCRIPTABLE NS_IMETHOD SetFile(nsIFile *aFile);
44 :
45 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
46 : #define NS_FORWARD_NSIFILEURL(_to) \
47 : NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) { return _to GetFile(aFile); } \
48 : NS_SCRIPTABLE NS_IMETHOD SetFile(nsIFile *aFile) { return _to SetFile(aFile); }
49 :
50 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
51 : #define NS_FORWARD_SAFE_NSIFILEURL(_to) \
52 : NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(aFile); } \
53 : NS_SCRIPTABLE NS_IMETHOD SetFile(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFile(aFile); }
54 :
55 : #if 0
56 : /* Use the code below as a template for the implementation class for this interface. */
57 :
58 : /* Header file */
59 : class nsFileURL : public nsIFileURL
60 : {
61 : public:
62 : NS_DECL_ISUPPORTS
63 : NS_DECL_NSIFILEURL
64 :
65 : nsFileURL();
66 :
67 : private:
68 : ~nsFileURL();
69 :
70 : protected:
71 : /* additional members */
72 : };
73 :
74 : /* Implementation file */
75 : NS_IMPL_ISUPPORTS1(nsFileURL, nsIFileURL)
76 :
77 : nsFileURL::nsFileURL()
78 : {
79 : /* member initializers and constructor code */
80 : }
81 :
82 : nsFileURL::~nsFileURL()
83 : {
84 : /* destructor code */
85 : }
86 :
87 : /* attribute nsIFile file; */
88 : NS_IMETHODIMP nsFileURL::GetFile(nsIFile * *aFile)
89 : {
90 : return NS_ERROR_NOT_IMPLEMENTED;
91 : }
92 : NS_IMETHODIMP nsFileURL::SetFile(nsIFile *aFile)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* End of implementation class template. */
98 : #endif
99 :
100 :
101 : #endif /* __gen_nsIFileURL_h__ */
|