Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIURL.idl
3 : */
4 :
5 : #ifndef __gen_nsIURL_h__
6 : #define __gen_nsIURL_h__
7 :
8 :
9 : #ifndef __gen_nsIURI_h__
10 : #include "nsIURI.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: nsIURL */
19 : #define NS_IURL_IID_STR "86adcd89-0b70-47a2-b0fe-5bb2c5f37e31"
20 :
21 : #define NS_IURL_IID \
22 : {0x86adcd89, 0x0b70, 0x47a2, \
23 : { 0xb0, 0xfe, 0x5b, 0xb2, 0xc5, 0xf3, 0x7e, 0x31 }}
24 :
25 10661 : class NS_NO_VTABLE nsIURL : public nsIURI {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURL_IID)
29 :
30 : /* attribute AUTF8String directory; */
31 : NS_IMETHOD GetDirectory(nsACString & aDirectory) = 0;
32 : NS_IMETHOD SetDirectory(const nsACString & aDirectory) = 0;
33 :
34 : /* attribute AUTF8String fileName; */
35 : NS_IMETHOD GetFileName(nsACString & aFileName) = 0;
36 : NS_IMETHOD SetFileName(const nsACString & aFileName) = 0;
37 :
38 : /* attribute AUTF8String fileBaseName; */
39 : NS_IMETHOD GetFileBaseName(nsACString & aFileBaseName) = 0;
40 : NS_IMETHOD SetFileBaseName(const nsACString & aFileBaseName) = 0;
41 :
42 : /* attribute AUTF8String fileExtension; */
43 : NS_IMETHOD GetFileExtension(nsACString & aFileExtension) = 0;
44 : NS_IMETHOD SetFileExtension(const nsACString & aFileExtension) = 0;
45 :
46 : /* AUTF8String getCommonBaseSpec (in nsIURI aURIToCompare); */
47 : NS_IMETHOD GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval) = 0;
48 :
49 : /* AUTF8String getRelativeSpec (in nsIURI aURIToCompare); */
50 : NS_IMETHOD GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval) = 0;
51 :
52 : };
53 :
54 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIURL, NS_IURL_IID)
55 :
56 : /* Use this macro when declaring classes that implement this interface. */
57 : #define NS_DECL_NSIURL \
58 : NS_IMETHOD GetDirectory(nsACString & aDirectory) override; \
59 : NS_IMETHOD SetDirectory(const nsACString & aDirectory) override; \
60 : NS_IMETHOD GetFileName(nsACString & aFileName) override; \
61 : NS_IMETHOD SetFileName(const nsACString & aFileName) override; \
62 : NS_IMETHOD GetFileBaseName(nsACString & aFileBaseName) override; \
63 : NS_IMETHOD SetFileBaseName(const nsACString & aFileBaseName) override; \
64 : NS_IMETHOD GetFileExtension(nsACString & aFileExtension) override; \
65 : NS_IMETHOD SetFileExtension(const nsACString & aFileExtension) override; \
66 : NS_IMETHOD GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval) override; \
67 : NS_IMETHOD GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval) override;
68 :
69 : /* Use this macro when declaring the members of this interface when the
70 : class doesn't implement the interface. This is useful for forwarding. */
71 : #define NS_DECL_NON_VIRTUAL_NSIURL \
72 : nsresult GetDirectory(nsACString & aDirectory); \
73 : nsresult SetDirectory(const nsACString & aDirectory); \
74 : nsresult GetFileName(nsACString & aFileName); \
75 : nsresult SetFileName(const nsACString & aFileName); \
76 : nsresult GetFileBaseName(nsACString & aFileBaseName); \
77 : nsresult SetFileBaseName(const nsACString & aFileBaseName); \
78 : nsresult GetFileExtension(nsACString & aFileExtension); \
79 : nsresult SetFileExtension(const nsACString & aFileExtension); \
80 : nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval); \
81 : nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval);
82 :
83 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
84 : #define NS_FORWARD_NSIURL(_to) \
85 : NS_IMETHOD GetDirectory(nsACString & aDirectory) override { return _to GetDirectory(aDirectory); } \
86 : NS_IMETHOD SetDirectory(const nsACString & aDirectory) override { return _to SetDirectory(aDirectory); } \
87 : NS_IMETHOD GetFileName(nsACString & aFileName) override { return _to GetFileName(aFileName); } \
88 : NS_IMETHOD SetFileName(const nsACString & aFileName) override { return _to SetFileName(aFileName); } \
89 : NS_IMETHOD GetFileBaseName(nsACString & aFileBaseName) override { return _to GetFileBaseName(aFileBaseName); } \
90 : NS_IMETHOD SetFileBaseName(const nsACString & aFileBaseName) override { return _to SetFileBaseName(aFileBaseName); } \
91 : NS_IMETHOD GetFileExtension(nsACString & aFileExtension) override { return _to GetFileExtension(aFileExtension); } \
92 : NS_IMETHOD SetFileExtension(const nsACString & aFileExtension) override { return _to SetFileExtension(aFileExtension); } \
93 : NS_IMETHOD GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval) override { return _to GetCommonBaseSpec(aURIToCompare, _retval); } \
94 : NS_IMETHOD GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval) override { return _to GetRelativeSpec(aURIToCompare, _retval); }
95 :
96 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
97 : #define NS_FORWARD_SAFE_NSIURL(_to) \
98 : NS_IMETHOD GetDirectory(nsACString & aDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectory(aDirectory); } \
99 : NS_IMETHOD SetDirectory(const nsACString & aDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirectory(aDirectory); } \
100 : NS_IMETHOD GetFileName(nsACString & aFileName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileName(aFileName); } \
101 : NS_IMETHOD SetFileName(const nsACString & aFileName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileName(aFileName); } \
102 : NS_IMETHOD GetFileBaseName(nsACString & aFileBaseName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileBaseName(aFileBaseName); } \
103 : NS_IMETHOD SetFileBaseName(const nsACString & aFileBaseName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileBaseName(aFileBaseName); } \
104 : NS_IMETHOD GetFileExtension(nsACString & aFileExtension) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileExtension(aFileExtension); } \
105 : NS_IMETHOD SetFileExtension(const nsACString & aFileExtension) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileExtension(aFileExtension); } \
106 : NS_IMETHOD GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommonBaseSpec(aURIToCompare, _retval); } \
107 : NS_IMETHOD GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelativeSpec(aURIToCompare, _retval); }
108 :
109 : #if 0
110 : /* Use the code below as a template for the implementation class for this interface. */
111 :
112 : /* Header file */
113 : class nsURL : public nsIURL
114 : {
115 : public:
116 : NS_DECL_ISUPPORTS
117 : NS_DECL_NSIURL
118 :
119 : nsURL();
120 :
121 : private:
122 : ~nsURL();
123 :
124 : protected:
125 : /* additional members */
126 : };
127 :
128 : /* Implementation file */
129 : NS_IMPL_ISUPPORTS(nsURL, nsIURL)
130 :
131 : nsURL::nsURL()
132 : {
133 : /* member initializers and constructor code */
134 : }
135 :
136 : nsURL::~nsURL()
137 : {
138 : /* destructor code */
139 : }
140 :
141 : /* attribute AUTF8String directory; */
142 : NS_IMETHODIMP nsURL::GetDirectory(nsACString & aDirectory)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 : NS_IMETHODIMP nsURL::SetDirectory(const nsACString & aDirectory)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* attribute AUTF8String fileName; */
152 : NS_IMETHODIMP nsURL::GetFileName(nsACString & aFileName)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 : NS_IMETHODIMP nsURL::SetFileName(const nsACString & aFileName)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* attribute AUTF8String fileBaseName; */
162 : NS_IMETHODIMP nsURL::GetFileBaseName(nsACString & aFileBaseName)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 : NS_IMETHODIMP nsURL::SetFileBaseName(const nsACString & aFileBaseName)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* attribute AUTF8String fileExtension; */
172 : NS_IMETHODIMP nsURL::GetFileExtension(nsACString & aFileExtension)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 : NS_IMETHODIMP nsURL::SetFileExtension(const nsACString & aFileExtension)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* AUTF8String getCommonBaseSpec (in nsIURI aURIToCompare); */
182 : NS_IMETHODIMP nsURL::GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* AUTF8String getRelativeSpec (in nsIURI aURIToCompare); */
188 : NS_IMETHODIMP nsURL::GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* End of implementation class template. */
194 : #endif
195 :
196 :
197 : #endif /* __gen_nsIURL_h__ */
|