1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMLocation.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMLocation_h__
6 : #define __gen_nsIDOMLocation_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.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: nsIDOMLocation */
19 : #define NS_IDOMLOCATION_IID_STR "a6cf906d-15b3-11d2-932e-00805f8add32"
20 :
21 : #define NS_IDOMLOCATION_IID \
22 : {0xa6cf906d, 0x15b3, 0x11d2, \
23 : { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMLocation : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMLOCATION_IID)
29 :
30 : /* attribute DOMString hash; */
31 : NS_SCRIPTABLE NS_IMETHOD GetHash(nsAString & aHash) = 0;
32 : NS_SCRIPTABLE NS_IMETHOD SetHash(const nsAString & aHash) = 0;
33 :
34 : /* attribute DOMString host; */
35 : NS_SCRIPTABLE NS_IMETHOD GetHost(nsAString & aHost) = 0;
36 : NS_SCRIPTABLE NS_IMETHOD SetHost(const nsAString & aHost) = 0;
37 :
38 : /* attribute DOMString hostname; */
39 : NS_SCRIPTABLE NS_IMETHOD GetHostname(nsAString & aHostname) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetHostname(const nsAString & aHostname) = 0;
41 :
42 : /* attribute DOMString href; */
43 : NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) = 0;
44 : NS_SCRIPTABLE NS_IMETHOD SetHref(const nsAString & aHref) = 0;
45 :
46 : /* attribute DOMString pathname; */
47 : NS_SCRIPTABLE NS_IMETHOD GetPathname(nsAString & aPathname) = 0;
48 : NS_SCRIPTABLE NS_IMETHOD SetPathname(const nsAString & aPathname) = 0;
49 :
50 : /* attribute DOMString port; */
51 : NS_SCRIPTABLE NS_IMETHOD GetPort(nsAString & aPort) = 0;
52 : NS_SCRIPTABLE NS_IMETHOD SetPort(const nsAString & aPort) = 0;
53 :
54 : /* attribute DOMString protocol; */
55 : NS_SCRIPTABLE NS_IMETHOD GetProtocol(nsAString & aProtocol) = 0;
56 : NS_SCRIPTABLE NS_IMETHOD SetProtocol(const nsAString & aProtocol) = 0;
57 :
58 : /* attribute DOMString search; */
59 : NS_SCRIPTABLE NS_IMETHOD GetSearch(nsAString & aSearch) = 0;
60 : NS_SCRIPTABLE NS_IMETHOD SetSearch(const nsAString & aSearch) = 0;
61 :
62 : /* void reload ([optional] in boolean forceget); */
63 : NS_SCRIPTABLE NS_IMETHOD Reload(bool forceget) = 0;
64 :
65 : /* void replace (in DOMString url); */
66 : NS_SCRIPTABLE NS_IMETHOD Replace(const nsAString & url) = 0;
67 :
68 : /* void assign (in DOMString url); */
69 : NS_SCRIPTABLE NS_IMETHOD Assign(const nsAString & url) = 0;
70 :
71 : /* DOMString toString (); */
72 : NS_SCRIPTABLE NS_IMETHOD ToString(nsAString & _retval NS_OUTPARAM) = 0;
73 :
74 : };
75 :
76 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMLocation, NS_IDOMLOCATION_IID)
77 :
78 : /* Use this macro when declaring classes that implement this interface. */
79 : #define NS_DECL_NSIDOMLOCATION \
80 : NS_SCRIPTABLE NS_IMETHOD GetHash(nsAString & aHash); \
81 : NS_SCRIPTABLE NS_IMETHOD SetHash(const nsAString & aHash); \
82 : NS_SCRIPTABLE NS_IMETHOD GetHost(nsAString & aHost); \
83 : NS_SCRIPTABLE NS_IMETHOD SetHost(const nsAString & aHost); \
84 : NS_SCRIPTABLE NS_IMETHOD GetHostname(nsAString & aHostname); \
85 : NS_SCRIPTABLE NS_IMETHOD SetHostname(const nsAString & aHostname); \
86 : NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref); \
87 : NS_SCRIPTABLE NS_IMETHOD SetHref(const nsAString & aHref); \
88 : NS_SCRIPTABLE NS_IMETHOD GetPathname(nsAString & aPathname); \
89 : NS_SCRIPTABLE NS_IMETHOD SetPathname(const nsAString & aPathname); \
90 : NS_SCRIPTABLE NS_IMETHOD GetPort(nsAString & aPort); \
91 : NS_SCRIPTABLE NS_IMETHOD SetPort(const nsAString & aPort); \
92 : NS_SCRIPTABLE NS_IMETHOD GetProtocol(nsAString & aProtocol); \
93 : NS_SCRIPTABLE NS_IMETHOD SetProtocol(const nsAString & aProtocol); \
94 : NS_SCRIPTABLE NS_IMETHOD GetSearch(nsAString & aSearch); \
95 : NS_SCRIPTABLE NS_IMETHOD SetSearch(const nsAString & aSearch); \
96 : NS_SCRIPTABLE NS_IMETHOD Reload(bool forceget); \
97 : NS_SCRIPTABLE NS_IMETHOD Replace(const nsAString & url); \
98 : NS_SCRIPTABLE NS_IMETHOD Assign(const nsAString & url); \
99 : NS_SCRIPTABLE NS_IMETHOD ToString(nsAString & _retval NS_OUTPARAM);
100 :
101 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
102 : #define NS_FORWARD_NSIDOMLOCATION(_to) \
103 : NS_SCRIPTABLE NS_IMETHOD GetHash(nsAString & aHash) { return _to GetHash(aHash); } \
104 : NS_SCRIPTABLE NS_IMETHOD SetHash(const nsAString & aHash) { return _to SetHash(aHash); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetHost(nsAString & aHost) { return _to GetHost(aHost); } \
106 : NS_SCRIPTABLE NS_IMETHOD SetHost(const nsAString & aHost) { return _to SetHost(aHost); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetHostname(nsAString & aHostname) { return _to GetHostname(aHostname); } \
108 : NS_SCRIPTABLE NS_IMETHOD SetHostname(const nsAString & aHostname) { return _to SetHostname(aHostname); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
110 : NS_SCRIPTABLE NS_IMETHOD SetHref(const nsAString & aHref) { return _to SetHref(aHref); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetPathname(nsAString & aPathname) { return _to GetPathname(aPathname); } \
112 : NS_SCRIPTABLE NS_IMETHOD SetPathname(const nsAString & aPathname) { return _to SetPathname(aPathname); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetPort(nsAString & aPort) { return _to GetPort(aPort); } \
114 : NS_SCRIPTABLE NS_IMETHOD SetPort(const nsAString & aPort) { return _to SetPort(aPort); } \
115 : NS_SCRIPTABLE NS_IMETHOD GetProtocol(nsAString & aProtocol) { return _to GetProtocol(aProtocol); } \
116 : NS_SCRIPTABLE NS_IMETHOD SetProtocol(const nsAString & aProtocol) { return _to SetProtocol(aProtocol); } \
117 : NS_SCRIPTABLE NS_IMETHOD GetSearch(nsAString & aSearch) { return _to GetSearch(aSearch); } \
118 : NS_SCRIPTABLE NS_IMETHOD SetSearch(const nsAString & aSearch) { return _to SetSearch(aSearch); } \
119 : NS_SCRIPTABLE NS_IMETHOD Reload(bool forceget) { return _to Reload(forceget); } \
120 : NS_SCRIPTABLE NS_IMETHOD Replace(const nsAString & url) { return _to Replace(url); } \
121 : NS_SCRIPTABLE NS_IMETHOD Assign(const nsAString & url) { return _to Assign(url); } \
122 : NS_SCRIPTABLE NS_IMETHOD ToString(nsAString & _retval NS_OUTPARAM) { return _to ToString(_retval); }
123 :
124 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
125 : #define NS_FORWARD_SAFE_NSIDOMLOCATION(_to) \
126 : NS_SCRIPTABLE NS_IMETHOD GetHash(nsAString & aHash) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHash(aHash); } \
127 : NS_SCRIPTABLE NS_IMETHOD SetHash(const nsAString & aHash) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHash(aHash); } \
128 : NS_SCRIPTABLE NS_IMETHOD GetHost(nsAString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
129 : NS_SCRIPTABLE NS_IMETHOD SetHost(const nsAString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHost(aHost); } \
130 : NS_SCRIPTABLE NS_IMETHOD GetHostname(nsAString & aHostname) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostname(aHostname); } \
131 : NS_SCRIPTABLE NS_IMETHOD SetHostname(const nsAString & aHostname) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHostname(aHostname); } \
132 : NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
133 : NS_SCRIPTABLE NS_IMETHOD SetHref(const nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHref(aHref); } \
134 : NS_SCRIPTABLE NS_IMETHOD GetPathname(nsAString & aPathname) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPathname(aPathname); } \
135 : NS_SCRIPTABLE NS_IMETHOD SetPathname(const nsAString & aPathname) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPathname(aPathname); } \
136 : NS_SCRIPTABLE NS_IMETHOD GetPort(nsAString & aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
137 : NS_SCRIPTABLE NS_IMETHOD SetPort(const nsAString & aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPort(aPort); } \
138 : NS_SCRIPTABLE NS_IMETHOD GetProtocol(nsAString & aProtocol) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocol(aProtocol); } \
139 : NS_SCRIPTABLE NS_IMETHOD SetProtocol(const nsAString & aProtocol) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProtocol(aProtocol); } \
140 : NS_SCRIPTABLE NS_IMETHOD GetSearch(nsAString & aSearch) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearch(aSearch); } \
141 : NS_SCRIPTABLE NS_IMETHOD SetSearch(const nsAString & aSearch) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearch(aSearch); } \
142 : NS_SCRIPTABLE NS_IMETHOD Reload(bool forceget) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reload(forceget); } \
143 : NS_SCRIPTABLE NS_IMETHOD Replace(const nsAString & url) { return !_to ? NS_ERROR_NULL_POINTER : _to->Replace(url); } \
144 : NS_SCRIPTABLE NS_IMETHOD Assign(const nsAString & url) { return !_to ? NS_ERROR_NULL_POINTER : _to->Assign(url); } \
145 : NS_SCRIPTABLE NS_IMETHOD ToString(nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
146 :
147 : #if 0
148 : /* Use the code below as a template for the implementation class for this interface. */
149 :
150 : /* Header file */
151 : class nsDOMLocation : public nsIDOMLocation
152 : {
153 : public:
154 : NS_DECL_ISUPPORTS
155 : NS_DECL_NSIDOMLOCATION
156 :
157 : nsDOMLocation();
158 :
159 : private:
160 : ~nsDOMLocation();
161 :
162 : protected:
163 : /* additional members */
164 : };
165 :
166 : /* Implementation file */
167 : NS_IMPL_ISUPPORTS1(nsDOMLocation, nsIDOMLocation)
168 :
169 : nsDOMLocation::nsDOMLocation()
170 : {
171 : /* member initializers and constructor code */
172 : }
173 :
174 : nsDOMLocation::~nsDOMLocation()
175 : {
176 : /* destructor code */
177 : }
178 :
179 : /* attribute DOMString hash; */
180 : NS_IMETHODIMP nsDOMLocation::GetHash(nsAString & aHash)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 : NS_IMETHODIMP nsDOMLocation::SetHash(const nsAString & aHash)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* attribute DOMString host; */
190 : NS_IMETHODIMP nsDOMLocation::GetHost(nsAString & aHost)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 : NS_IMETHODIMP nsDOMLocation::SetHost(const nsAString & aHost)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* attribute DOMString hostname; */
200 : NS_IMETHODIMP nsDOMLocation::GetHostname(nsAString & aHostname)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 : NS_IMETHODIMP nsDOMLocation::SetHostname(const nsAString & aHostname)
205 : {
206 : return NS_ERROR_NOT_IMPLEMENTED;
207 : }
208 :
209 : /* attribute DOMString href; */
210 : NS_IMETHODIMP nsDOMLocation::GetHref(nsAString & aHref)
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 : NS_IMETHODIMP nsDOMLocation::SetHref(const nsAString & aHref)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* attribute DOMString pathname; */
220 : NS_IMETHODIMP nsDOMLocation::GetPathname(nsAString & aPathname)
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 : NS_IMETHODIMP nsDOMLocation::SetPathname(const nsAString & aPathname)
225 : {
226 : return NS_ERROR_NOT_IMPLEMENTED;
227 : }
228 :
229 : /* attribute DOMString port; */
230 : NS_IMETHODIMP nsDOMLocation::GetPort(nsAString & aPort)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 : NS_IMETHODIMP nsDOMLocation::SetPort(const nsAString & aPort)
235 : {
236 : return NS_ERROR_NOT_IMPLEMENTED;
237 : }
238 :
239 : /* attribute DOMString protocol; */
240 : NS_IMETHODIMP nsDOMLocation::GetProtocol(nsAString & aProtocol)
241 : {
242 : return NS_ERROR_NOT_IMPLEMENTED;
243 : }
244 : NS_IMETHODIMP nsDOMLocation::SetProtocol(const nsAString & aProtocol)
245 : {
246 : return NS_ERROR_NOT_IMPLEMENTED;
247 : }
248 :
249 : /* attribute DOMString search; */
250 : NS_IMETHODIMP nsDOMLocation::GetSearch(nsAString & aSearch)
251 : {
252 : return NS_ERROR_NOT_IMPLEMENTED;
253 : }
254 : NS_IMETHODIMP nsDOMLocation::SetSearch(const nsAString & aSearch)
255 : {
256 : return NS_ERROR_NOT_IMPLEMENTED;
257 : }
258 :
259 : /* void reload ([optional] in boolean forceget); */
260 : NS_IMETHODIMP nsDOMLocation::Reload(bool forceget)
261 : {
262 : return NS_ERROR_NOT_IMPLEMENTED;
263 : }
264 :
265 : /* void replace (in DOMString url); */
266 : NS_IMETHODIMP nsDOMLocation::Replace(const nsAString & url)
267 : {
268 : return NS_ERROR_NOT_IMPLEMENTED;
269 : }
270 :
271 : /* void assign (in DOMString url); */
272 : NS_IMETHODIMP nsDOMLocation::Assign(const nsAString & url)
273 : {
274 : return NS_ERROR_NOT_IMPLEMENTED;
275 : }
276 :
277 : /* DOMString toString (); */
278 : NS_IMETHODIMP nsDOMLocation::ToString(nsAString & _retval NS_OUTPARAM)
279 : {
280 : return NS_ERROR_NOT_IMPLEMENTED;
281 : }
282 :
283 : /* End of implementation class template. */
284 : #endif
285 :
286 :
287 : #endif /* __gen_nsIDOMLocation_h__ */
|