Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPaymentActionRequest.idl
3 : */
4 :
5 : #ifndef __gen_nsIPaymentActionRequest_h__
6 : #define __gen_nsIPaymentActionRequest_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIVariant_h__
14 : #include "nsIVariant.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIPaymentRequest_h__
18 : #include "nsIPaymentRequest.h"
19 : #endif
20 :
21 : #ifndef __gen_nsIPaymentActionResponse_h__
22 : #include "nsIPaymentActionResponse.h"
23 : #endif
24 :
25 : #ifndef __gen_nsIPaymentAddress_h__
26 : #include "nsIPaymentAddress.h"
27 : #endif
28 :
29 : /* For IDL files that don't want to include root IDL files. */
30 : #ifndef NS_NO_VTABLE
31 : #define NS_NO_VTABLE
32 : #endif
33 : class nsIArray; /* forward declaration */
34 :
35 :
36 : /* starting interface: nsIPaymentActionCallback */
37 : #define NS_IPAYMENTACTIONCALLBACK_IID_STR "3fef5459-b0ea-469b-be9f-b99e8ca75d3d"
38 :
39 : #define NS_IPAYMENTACTIONCALLBACK_IID \
40 : {0x3fef5459, 0xb0ea, 0x469b, \
41 : { 0xbe, 0x9f, 0xb9, 0x9e, 0x8c, 0xa7, 0x5d, 0x3d }}
42 :
43 0 : class NS_NO_VTABLE nsIPaymentActionCallback : public nsISupports {
44 : public:
45 :
46 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTACTIONCALLBACK_IID)
47 :
48 : /* void respondPayment (in nsIPaymentActionResponse aResponse); */
49 : NS_IMETHOD RespondPayment(nsIPaymentActionResponse *aResponse) = 0;
50 :
51 : /* void changeShippingAddress (in AString aRequestId, in nsIPaymentAddress aAddress); */
52 : NS_IMETHOD ChangeShippingAddress(const nsAString & aRequestId, nsIPaymentAddress *aAddress) = 0;
53 :
54 : /* void changeShippingOption (in AString aRequestId, in AString aOption); */
55 : NS_IMETHOD ChangeShippingOption(const nsAString & aRequestId, const nsAString & aOption) = 0;
56 :
57 : };
58 :
59 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentActionCallback, NS_IPAYMENTACTIONCALLBACK_IID)
60 :
61 : /* Use this macro when declaring classes that implement this interface. */
62 : #define NS_DECL_NSIPAYMENTACTIONCALLBACK \
63 : NS_IMETHOD RespondPayment(nsIPaymentActionResponse *aResponse) override; \
64 : NS_IMETHOD ChangeShippingAddress(const nsAString & aRequestId, nsIPaymentAddress *aAddress) override; \
65 : NS_IMETHOD ChangeShippingOption(const nsAString & aRequestId, const nsAString & aOption) override;
66 :
67 : /* Use this macro when declaring the members of this interface when the
68 : class doesn't implement the interface. This is useful for forwarding. */
69 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTACTIONCALLBACK \
70 : nsresult RespondPayment(nsIPaymentActionResponse *aResponse); \
71 : nsresult ChangeShippingAddress(const nsAString & aRequestId, nsIPaymentAddress *aAddress); \
72 : nsresult ChangeShippingOption(const nsAString & aRequestId, const nsAString & aOption);
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
75 : #define NS_FORWARD_NSIPAYMENTACTIONCALLBACK(_to) \
76 : NS_IMETHOD RespondPayment(nsIPaymentActionResponse *aResponse) override { return _to RespondPayment(aResponse); } \
77 : NS_IMETHOD ChangeShippingAddress(const nsAString & aRequestId, nsIPaymentAddress *aAddress) override { return _to ChangeShippingAddress(aRequestId, aAddress); } \
78 : NS_IMETHOD ChangeShippingOption(const nsAString & aRequestId, const nsAString & aOption) override { return _to ChangeShippingOption(aRequestId, aOption); }
79 :
80 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
81 : #define NS_FORWARD_SAFE_NSIPAYMENTACTIONCALLBACK(_to) \
82 : NS_IMETHOD RespondPayment(nsIPaymentActionResponse *aResponse) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RespondPayment(aResponse); } \
83 : NS_IMETHOD ChangeShippingAddress(const nsAString & aRequestId, nsIPaymentAddress *aAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChangeShippingAddress(aRequestId, aAddress); } \
84 : NS_IMETHOD ChangeShippingOption(const nsAString & aRequestId, const nsAString & aOption) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChangeShippingOption(aRequestId, aOption); }
85 :
86 : #if 0
87 : /* Use the code below as a template for the implementation class for this interface. */
88 :
89 : /* Header file */
90 : class nsPaymentActionCallback : public nsIPaymentActionCallback
91 : {
92 : public:
93 : NS_DECL_ISUPPORTS
94 : NS_DECL_NSIPAYMENTACTIONCALLBACK
95 :
96 : nsPaymentActionCallback();
97 :
98 : private:
99 : ~nsPaymentActionCallback();
100 :
101 : protected:
102 : /* additional members */
103 : };
104 :
105 : /* Implementation file */
106 : NS_IMPL_ISUPPORTS(nsPaymentActionCallback, nsIPaymentActionCallback)
107 :
108 : nsPaymentActionCallback::nsPaymentActionCallback()
109 : {
110 : /* member initializers and constructor code */
111 : }
112 :
113 : nsPaymentActionCallback::~nsPaymentActionCallback()
114 : {
115 : /* destructor code */
116 : }
117 :
118 : /* void respondPayment (in nsIPaymentActionResponse aResponse); */
119 : NS_IMETHODIMP nsPaymentActionCallback::RespondPayment(nsIPaymentActionResponse *aResponse)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* void changeShippingAddress (in AString aRequestId, in nsIPaymentAddress aAddress); */
125 : NS_IMETHODIMP nsPaymentActionCallback::ChangeShippingAddress(const nsAString & aRequestId, nsIPaymentAddress *aAddress)
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 :
130 : /* void changeShippingOption (in AString aRequestId, in AString aOption); */
131 : NS_IMETHODIMP nsPaymentActionCallback::ChangeShippingOption(const nsAString & aRequestId, const nsAString & aOption)
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* End of implementation class template. */
137 : #endif
138 :
139 :
140 : /* starting interface: nsIPaymentActionRequest */
141 : #define NS_IPAYMENTACTIONREQUEST_IID_STR "7ddbe8be-beac-4952-96f6-619981dff7a6"
142 :
143 : #define NS_IPAYMENTACTIONREQUEST_IID \
144 : {0x7ddbe8be, 0xbeac, 0x4952, \
145 : { 0x96, 0xf6, 0x61, 0x99, 0x81, 0xdf, 0xf7, 0xa6 }}
146 :
147 0 : class NS_NO_VTABLE nsIPaymentActionRequest : public nsISupports {
148 : public:
149 :
150 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTACTIONREQUEST_IID)
151 :
152 : enum {
153 : UNKNOWN_ACTION = 0U,
154 : CREATE_ACTION = 1U,
155 : CANMAKE_ACTION = 2U,
156 : SHOW_ACTION = 3U,
157 : ABORT_ACTION = 4U,
158 : COMPLETE_ACTION = 5U,
159 : UPDATE_ACTION = 6U
160 : };
161 :
162 : /* readonly attribute AString requestId; */
163 : NS_IMETHOD GetRequestId(nsAString & aRequestId) = 0;
164 :
165 : /* readonly attribute uint32_t type; */
166 : NS_IMETHOD GetType(uint32_t *aType) = 0;
167 :
168 : /* readonly attribute nsIPaymentActionCallback callback; */
169 : NS_IMETHOD GetCallback(nsIPaymentActionCallback * *aCallback) = 0;
170 :
171 : /* void init (in AString aRequestId, in uint32_t aType, in nsIPaymentActionCallback aCallback); */
172 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aType, nsIPaymentActionCallback *aCallback) = 0;
173 :
174 : };
175 :
176 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentActionRequest, NS_IPAYMENTACTIONREQUEST_IID)
177 :
178 : /* Use this macro when declaring classes that implement this interface. */
179 : #define NS_DECL_NSIPAYMENTACTIONREQUEST \
180 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override; \
181 : NS_IMETHOD GetType(uint32_t *aType) override; \
182 : NS_IMETHOD GetCallback(nsIPaymentActionCallback * *aCallback) override; \
183 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aType, nsIPaymentActionCallback *aCallback) override;
184 :
185 : /* Use this macro when declaring the members of this interface when the
186 : class doesn't implement the interface. This is useful for forwarding. */
187 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTACTIONREQUEST \
188 : nsresult GetRequestId(nsAString & aRequestId); \
189 : nsresult GetType(uint32_t *aType); \
190 : nsresult GetCallback(nsIPaymentActionCallback * *aCallback); \
191 : nsresult Init(const nsAString & aRequestId, uint32_t aType, nsIPaymentActionCallback *aCallback);
192 :
193 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
194 : #define NS_FORWARD_NSIPAYMENTACTIONREQUEST(_to) \
195 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override { return _to GetRequestId(aRequestId); } \
196 : NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); } \
197 : NS_IMETHOD GetCallback(nsIPaymentActionCallback * *aCallback) override { return _to GetCallback(aCallback); } \
198 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aType, nsIPaymentActionCallback *aCallback) override { return _to Init(aRequestId, aType, aCallback); }
199 :
200 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
201 : #define NS_FORWARD_SAFE_NSIPAYMENTACTIONREQUEST(_to) \
202 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestId(aRequestId); } \
203 : NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
204 : NS_IMETHOD GetCallback(nsIPaymentActionCallback * *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \
205 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aType, nsIPaymentActionCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aRequestId, aType, aCallback); }
206 :
207 : #if 0
208 : /* Use the code below as a template for the implementation class for this interface. */
209 :
210 : /* Header file */
211 : class nsPaymentActionRequest : public nsIPaymentActionRequest
212 : {
213 : public:
214 : NS_DECL_ISUPPORTS
215 : NS_DECL_NSIPAYMENTACTIONREQUEST
216 :
217 : nsPaymentActionRequest();
218 :
219 : private:
220 : ~nsPaymentActionRequest();
221 :
222 : protected:
223 : /* additional members */
224 : };
225 :
226 : /* Implementation file */
227 : NS_IMPL_ISUPPORTS(nsPaymentActionRequest, nsIPaymentActionRequest)
228 :
229 : nsPaymentActionRequest::nsPaymentActionRequest()
230 : {
231 : /* member initializers and constructor code */
232 : }
233 :
234 : nsPaymentActionRequest::~nsPaymentActionRequest()
235 : {
236 : /* destructor code */
237 : }
238 :
239 : /* readonly attribute AString requestId; */
240 : NS_IMETHODIMP nsPaymentActionRequest::GetRequestId(nsAString & aRequestId)
241 : {
242 : return NS_ERROR_NOT_IMPLEMENTED;
243 : }
244 :
245 : /* readonly attribute uint32_t type; */
246 : NS_IMETHODIMP nsPaymentActionRequest::GetType(uint32_t *aType)
247 : {
248 : return NS_ERROR_NOT_IMPLEMENTED;
249 : }
250 :
251 : /* readonly attribute nsIPaymentActionCallback callback; */
252 : NS_IMETHODIMP nsPaymentActionRequest::GetCallback(nsIPaymentActionCallback * *aCallback)
253 : {
254 : return NS_ERROR_NOT_IMPLEMENTED;
255 : }
256 :
257 : /* void init (in AString aRequestId, in uint32_t aType, in nsIPaymentActionCallback aCallback); */
258 : NS_IMETHODIMP nsPaymentActionRequest::Init(const nsAString & aRequestId, uint32_t aType, nsIPaymentActionCallback *aCallback)
259 : {
260 : return NS_ERROR_NOT_IMPLEMENTED;
261 : }
262 :
263 : /* End of implementation class template. */
264 : #endif
265 :
266 :
267 : /* starting interface: nsIPaymentCreateActionRequest */
268 : #define NS_IPAYMENTCREATEACTIONREQUEST_IID_STR "1d38dce6-8bcd-441b-aa94-68e300b6e175"
269 :
270 : #define NS_IPAYMENTCREATEACTIONREQUEST_IID \
271 : {0x1d38dce6, 0x8bcd, 0x441b, \
272 : { 0xaa, 0x94, 0x68, 0xe3, 0x00, 0xb6, 0xe1, 0x75 }}
273 :
274 0 : class NS_NO_VTABLE nsIPaymentCreateActionRequest : public nsIPaymentActionRequest {
275 : public:
276 :
277 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTCREATEACTIONREQUEST_IID)
278 :
279 : /* readonly attribute uint64_t tabId; */
280 : NS_IMETHOD GetTabId(uint64_t *aTabId) = 0;
281 :
282 : /* readonly attribute nsIArray methodData; */
283 : NS_IMETHOD GetMethodData(nsIArray * *aMethodData) = 0;
284 :
285 : /* readonly attribute nsIPaymentDetails details; */
286 : NS_IMETHOD GetDetails(nsIPaymentDetails * *aDetails) = 0;
287 :
288 : /* readonly attribute nsIPaymentOptions options; */
289 : NS_IMETHOD GetOptions(nsIPaymentOptions * *aOptions) = 0;
290 :
291 : /* void initRequest (in AString aRequestId, in nsIPaymentActionCallback aCallback, in uint64_t aTabId, in nsIArray aMethodData, in nsIPaymentDetails aDetails, in nsIPaymentOptions aOptions); */
292 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, uint64_t aTabId, nsIArray *aMethodData, nsIPaymentDetails *aDetails, nsIPaymentOptions *aOptions) = 0;
293 :
294 : };
295 :
296 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentCreateActionRequest, NS_IPAYMENTCREATEACTIONREQUEST_IID)
297 :
298 : /* Use this macro when declaring classes that implement this interface. */
299 : #define NS_DECL_NSIPAYMENTCREATEACTIONREQUEST \
300 : NS_IMETHOD GetTabId(uint64_t *aTabId) override; \
301 : NS_IMETHOD GetMethodData(nsIArray * *aMethodData) override; \
302 : NS_IMETHOD GetDetails(nsIPaymentDetails * *aDetails) override; \
303 : NS_IMETHOD GetOptions(nsIPaymentOptions * *aOptions) override; \
304 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, uint64_t aTabId, nsIArray *aMethodData, nsIPaymentDetails *aDetails, nsIPaymentOptions *aOptions) override;
305 :
306 : /* Use this macro when declaring the members of this interface when the
307 : class doesn't implement the interface. This is useful for forwarding. */
308 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTCREATEACTIONREQUEST \
309 : nsresult GetTabId(uint64_t *aTabId); \
310 : nsresult GetMethodData(nsIArray * *aMethodData); \
311 : nsresult GetDetails(nsIPaymentDetails * *aDetails); \
312 : nsresult GetOptions(nsIPaymentOptions * *aOptions); \
313 : nsresult InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, uint64_t aTabId, nsIArray *aMethodData, nsIPaymentDetails *aDetails, nsIPaymentOptions *aOptions);
314 :
315 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
316 : #define NS_FORWARD_NSIPAYMENTCREATEACTIONREQUEST(_to) \
317 : NS_IMETHOD GetTabId(uint64_t *aTabId) override { return _to GetTabId(aTabId); } \
318 : NS_IMETHOD GetMethodData(nsIArray * *aMethodData) override { return _to GetMethodData(aMethodData); } \
319 : NS_IMETHOD GetDetails(nsIPaymentDetails * *aDetails) override { return _to GetDetails(aDetails); } \
320 : NS_IMETHOD GetOptions(nsIPaymentOptions * *aOptions) override { return _to GetOptions(aOptions); } \
321 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, uint64_t aTabId, nsIArray *aMethodData, nsIPaymentDetails *aDetails, nsIPaymentOptions *aOptions) override { return _to InitRequest(aRequestId, aCallback, aTabId, aMethodData, aDetails, aOptions); }
322 :
323 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
324 : #define NS_FORWARD_SAFE_NSIPAYMENTCREATEACTIONREQUEST(_to) \
325 : NS_IMETHOD GetTabId(uint64_t *aTabId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabId(aTabId); } \
326 : NS_IMETHOD GetMethodData(nsIArray * *aMethodData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMethodData(aMethodData); } \
327 : NS_IMETHOD GetDetails(nsIPaymentDetails * *aDetails) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetails(aDetails); } \
328 : NS_IMETHOD GetOptions(nsIPaymentOptions * *aOptions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptions(aOptions); } \
329 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, uint64_t aTabId, nsIArray *aMethodData, nsIPaymentDetails *aDetails, nsIPaymentOptions *aOptions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitRequest(aRequestId, aCallback, aTabId, aMethodData, aDetails, aOptions); }
330 :
331 : #if 0
332 : /* Use the code below as a template for the implementation class for this interface. */
333 :
334 : /* Header file */
335 : class nsPaymentCreateActionRequest : public nsIPaymentCreateActionRequest
336 : {
337 : public:
338 : NS_DECL_ISUPPORTS
339 : NS_DECL_NSIPAYMENTCREATEACTIONREQUEST
340 :
341 : nsPaymentCreateActionRequest();
342 :
343 : private:
344 : ~nsPaymentCreateActionRequest();
345 :
346 : protected:
347 : /* additional members */
348 : };
349 :
350 : /* Implementation file */
351 : NS_IMPL_ISUPPORTS(nsPaymentCreateActionRequest, nsIPaymentCreateActionRequest)
352 :
353 : nsPaymentCreateActionRequest::nsPaymentCreateActionRequest()
354 : {
355 : /* member initializers and constructor code */
356 : }
357 :
358 : nsPaymentCreateActionRequest::~nsPaymentCreateActionRequest()
359 : {
360 : /* destructor code */
361 : }
362 :
363 : /* readonly attribute uint64_t tabId; */
364 : NS_IMETHODIMP nsPaymentCreateActionRequest::GetTabId(uint64_t *aTabId)
365 : {
366 : return NS_ERROR_NOT_IMPLEMENTED;
367 : }
368 :
369 : /* readonly attribute nsIArray methodData; */
370 : NS_IMETHODIMP nsPaymentCreateActionRequest::GetMethodData(nsIArray * *aMethodData)
371 : {
372 : return NS_ERROR_NOT_IMPLEMENTED;
373 : }
374 :
375 : /* readonly attribute nsIPaymentDetails details; */
376 : NS_IMETHODIMP nsPaymentCreateActionRequest::GetDetails(nsIPaymentDetails * *aDetails)
377 : {
378 : return NS_ERROR_NOT_IMPLEMENTED;
379 : }
380 :
381 : /* readonly attribute nsIPaymentOptions options; */
382 : NS_IMETHODIMP nsPaymentCreateActionRequest::GetOptions(nsIPaymentOptions * *aOptions)
383 : {
384 : return NS_ERROR_NOT_IMPLEMENTED;
385 : }
386 :
387 : /* void initRequest (in AString aRequestId, in nsIPaymentActionCallback aCallback, in uint64_t aTabId, in nsIArray aMethodData, in nsIPaymentDetails aDetails, in nsIPaymentOptions aOptions); */
388 : NS_IMETHODIMP nsPaymentCreateActionRequest::InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, uint64_t aTabId, nsIArray *aMethodData, nsIPaymentDetails *aDetails, nsIPaymentOptions *aOptions)
389 : {
390 : return NS_ERROR_NOT_IMPLEMENTED;
391 : }
392 :
393 : /* End of implementation class template. */
394 : #endif
395 :
396 :
397 : /* starting interface: nsIPaymentCompleteActionRequest */
398 : #define NS_IPAYMENTCOMPLETEACTIONREQUEST_IID_STR "4429697d-1135-47de-a46e-5196d399ec55"
399 :
400 : #define NS_IPAYMENTCOMPLETEACTIONREQUEST_IID \
401 : {0x4429697d, 0x1135, 0x47de, \
402 : { 0xa4, 0x6e, 0x51, 0x96, 0xd3, 0x99, 0xec, 0x55 }}
403 :
404 0 : class NS_NO_VTABLE nsIPaymentCompleteActionRequest : public nsIPaymentActionRequest {
405 : public:
406 :
407 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTCOMPLETEACTIONREQUEST_IID)
408 :
409 : /* readonly attribute AString completeStatus; */
410 : NS_IMETHOD GetCompleteStatus(nsAString & aCompleteStatus) = 0;
411 :
412 : /* void initRequest (in AString aRequestId, in nsIPaymentActionCallback aCallback, in AString aCompleteStatus); */
413 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, const nsAString & aCompleteStatus) = 0;
414 :
415 : };
416 :
417 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentCompleteActionRequest, NS_IPAYMENTCOMPLETEACTIONREQUEST_IID)
418 :
419 : /* Use this macro when declaring classes that implement this interface. */
420 : #define NS_DECL_NSIPAYMENTCOMPLETEACTIONREQUEST \
421 : NS_IMETHOD GetCompleteStatus(nsAString & aCompleteStatus) override; \
422 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, const nsAString & aCompleteStatus) override;
423 :
424 : /* Use this macro when declaring the members of this interface when the
425 : class doesn't implement the interface. This is useful for forwarding. */
426 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTCOMPLETEACTIONREQUEST \
427 : nsresult GetCompleteStatus(nsAString & aCompleteStatus); \
428 : nsresult InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, const nsAString & aCompleteStatus);
429 :
430 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
431 : #define NS_FORWARD_NSIPAYMENTCOMPLETEACTIONREQUEST(_to) \
432 : NS_IMETHOD GetCompleteStatus(nsAString & aCompleteStatus) override { return _to GetCompleteStatus(aCompleteStatus); } \
433 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, const nsAString & aCompleteStatus) override { return _to InitRequest(aRequestId, aCallback, aCompleteStatus); }
434 :
435 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
436 : #define NS_FORWARD_SAFE_NSIPAYMENTCOMPLETEACTIONREQUEST(_to) \
437 : NS_IMETHOD GetCompleteStatus(nsAString & aCompleteStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompleteStatus(aCompleteStatus); } \
438 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, const nsAString & aCompleteStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitRequest(aRequestId, aCallback, aCompleteStatus); }
439 :
440 : #if 0
441 : /* Use the code below as a template for the implementation class for this interface. */
442 :
443 : /* Header file */
444 : class nsPaymentCompleteActionRequest : public nsIPaymentCompleteActionRequest
445 : {
446 : public:
447 : NS_DECL_ISUPPORTS
448 : NS_DECL_NSIPAYMENTCOMPLETEACTIONREQUEST
449 :
450 : nsPaymentCompleteActionRequest();
451 :
452 : private:
453 : ~nsPaymentCompleteActionRequest();
454 :
455 : protected:
456 : /* additional members */
457 : };
458 :
459 : /* Implementation file */
460 : NS_IMPL_ISUPPORTS(nsPaymentCompleteActionRequest, nsIPaymentCompleteActionRequest)
461 :
462 : nsPaymentCompleteActionRequest::nsPaymentCompleteActionRequest()
463 : {
464 : /* member initializers and constructor code */
465 : }
466 :
467 : nsPaymentCompleteActionRequest::~nsPaymentCompleteActionRequest()
468 : {
469 : /* destructor code */
470 : }
471 :
472 : /* readonly attribute AString completeStatus; */
473 : NS_IMETHODIMP nsPaymentCompleteActionRequest::GetCompleteStatus(nsAString & aCompleteStatus)
474 : {
475 : return NS_ERROR_NOT_IMPLEMENTED;
476 : }
477 :
478 : /* void initRequest (in AString aRequestId, in nsIPaymentActionCallback aCallback, in AString aCompleteStatus); */
479 : NS_IMETHODIMP nsPaymentCompleteActionRequest::InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, const nsAString & aCompleteStatus)
480 : {
481 : return NS_ERROR_NOT_IMPLEMENTED;
482 : }
483 :
484 : /* End of implementation class template. */
485 : #endif
486 :
487 :
488 : /* starting interface: nsIPaymentUpdateActionRequest */
489 : #define NS_IPAYMENTUPDATEACTIONREQUEST_IID_STR "21f631e8-c047-4fd8-b3c6-68e26c62639a"
490 :
491 : #define NS_IPAYMENTUPDATEACTIONREQUEST_IID \
492 : {0x21f631e8, 0xc047, 0x4fd8, \
493 : { 0xb3, 0xc6, 0x68, 0xe2, 0x6c, 0x62, 0x63, 0x9a }}
494 :
495 0 : class NS_NO_VTABLE nsIPaymentUpdateActionRequest : public nsIPaymentActionRequest {
496 : public:
497 :
498 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTUPDATEACTIONREQUEST_IID)
499 :
500 : /* readonly attribute nsIPaymentDetails details; */
501 : NS_IMETHOD GetDetails(nsIPaymentDetails * *aDetails) = 0;
502 :
503 : /* void initRequest (in AString aRequestId, in nsIPaymentActionCallback aCallback, in nsIPaymentDetails aDetails); */
504 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, nsIPaymentDetails *aDetails) = 0;
505 :
506 : };
507 :
508 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentUpdateActionRequest, NS_IPAYMENTUPDATEACTIONREQUEST_IID)
509 :
510 : /* Use this macro when declaring classes that implement this interface. */
511 : #define NS_DECL_NSIPAYMENTUPDATEACTIONREQUEST \
512 : NS_IMETHOD GetDetails(nsIPaymentDetails * *aDetails) override; \
513 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, nsIPaymentDetails *aDetails) override;
514 :
515 : /* Use this macro when declaring the members of this interface when the
516 : class doesn't implement the interface. This is useful for forwarding. */
517 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTUPDATEACTIONREQUEST \
518 : nsresult GetDetails(nsIPaymentDetails * *aDetails); \
519 : nsresult InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, nsIPaymentDetails *aDetails);
520 :
521 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
522 : #define NS_FORWARD_NSIPAYMENTUPDATEACTIONREQUEST(_to) \
523 : NS_IMETHOD GetDetails(nsIPaymentDetails * *aDetails) override { return _to GetDetails(aDetails); } \
524 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, nsIPaymentDetails *aDetails) override { return _to InitRequest(aRequestId, aCallback, aDetails); }
525 :
526 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
527 : #define NS_FORWARD_SAFE_NSIPAYMENTUPDATEACTIONREQUEST(_to) \
528 : NS_IMETHOD GetDetails(nsIPaymentDetails * *aDetails) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetails(aDetails); } \
529 : NS_IMETHOD InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, nsIPaymentDetails *aDetails) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitRequest(aRequestId, aCallback, aDetails); }
530 :
531 : #if 0
532 : /* Use the code below as a template for the implementation class for this interface. */
533 :
534 : /* Header file */
535 : class nsPaymentUpdateActionRequest : public nsIPaymentUpdateActionRequest
536 : {
537 : public:
538 : NS_DECL_ISUPPORTS
539 : NS_DECL_NSIPAYMENTUPDATEACTIONREQUEST
540 :
541 : nsPaymentUpdateActionRequest();
542 :
543 : private:
544 : ~nsPaymentUpdateActionRequest();
545 :
546 : protected:
547 : /* additional members */
548 : };
549 :
550 : /* Implementation file */
551 : NS_IMPL_ISUPPORTS(nsPaymentUpdateActionRequest, nsIPaymentUpdateActionRequest)
552 :
553 : nsPaymentUpdateActionRequest::nsPaymentUpdateActionRequest()
554 : {
555 : /* member initializers and constructor code */
556 : }
557 :
558 : nsPaymentUpdateActionRequest::~nsPaymentUpdateActionRequest()
559 : {
560 : /* destructor code */
561 : }
562 :
563 : /* readonly attribute nsIPaymentDetails details; */
564 : NS_IMETHODIMP nsPaymentUpdateActionRequest::GetDetails(nsIPaymentDetails * *aDetails)
565 : {
566 : return NS_ERROR_NOT_IMPLEMENTED;
567 : }
568 :
569 : /* void initRequest (in AString aRequestId, in nsIPaymentActionCallback aCallback, in nsIPaymentDetails aDetails); */
570 : NS_IMETHODIMP nsPaymentUpdateActionRequest::InitRequest(const nsAString & aRequestId, nsIPaymentActionCallback *aCallback, nsIPaymentDetails *aDetails)
571 : {
572 : return NS_ERROR_NOT_IMPLEMENTED;
573 : }
574 :
575 : /* End of implementation class template. */
576 : #endif
577 :
578 : #define NS_PAYMENT_ACTION_REQUEST_CID \
579 : { 0x7ddbe8be, 0xbeac, 0x4952, { 0x96, 0xf6, 0x61, 0x99, 0x81, 0xdf, 0xf7, 0xa6 } }
580 : #define NS_PAYMENT_ACTION_REQUEST_CONTRACT_ID \
581 : "@mozilla.org/dom/payments/payment-action-request;1"
582 : #define NS_PAYMENT_CREATE_ACTION_REQUEST_CID \
583 : { 0x1d38dce6, 0x8bcd, 0x441b, { 0xaa, 0x94, 0x68, 0xe3, 0x00, 0xb6, 0xe1, 0x75 } }
584 : #define NS_PAYMENT_CREATE_ACTION_REQUEST_CONTRACT_ID \
585 : "@mozilla.org/dom/payments/payment-create-action-request;1"
586 : #define NS_PAYMENT_COMPLETE_ACTION_REQUEST_CID \
587 : { 0x4429697d, 0x1135, 0x47de, { 0xa4, 0x6e, 0x51, 0x96, 0xd3, 0x99, 0xec, 0x55 } }
588 : #define NS_PAYMENT_COMPLETE_ACTION_REQUEST_CONTRACT_ID \
589 : "@mozilla.org/dom/payments/payment-complete-action-request;1"
590 : #define NS_PAYMENT_UPDATE_ACTION_REQUEST_CID \
591 : { 0x21f631e8, 0xc047, 0x4fd8, { 0xb3, 0xc6, 0x68, 0xe2, 0x6c, 0x62, 0x63, 0x9a } }
592 : #define NS_PAYMENT_UPDATE_ACTION_REQUEST_CONTRACT_ID \
593 : "@mozilla.org/dom/payments/payment-update-action-request;1"
594 :
595 : #endif /* __gen_nsIPaymentActionRequest_h__ */
|