Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPaymentActionResponse.idl
3 : */
4 :
5 : #ifndef __gen_nsIPaymentActionResponse_h__
6 : #define __gen_nsIPaymentActionResponse_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 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsIPaymentActionResponse */
23 : #define NS_IPAYMENTACTIONRESPONSE_IID_STR "a607c095-ef60-4a9b-a3d0-0506c60728b3"
24 :
25 : #define NS_IPAYMENTACTIONRESPONSE_IID \
26 : {0xa607c095, 0xef60, 0x4a9b, \
27 : { 0xa3, 0xd0, 0x05, 0x06, 0xc6, 0x07, 0x28, 0xb3 }}
28 :
29 0 : class NS_NO_VTABLE nsIPaymentActionResponse : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTACTIONRESPONSE_IID)
33 :
34 : enum {
35 : NO_TYPE = 0U,
36 : CANMAKE_ACTION = 2U,
37 : SHOW_ACTION = 3U,
38 : ABORT_ACTION = 4U,
39 : COMPLETE_ACTION = 5U,
40 : ABORT_SUCCEEDED = 1U,
41 : ABORT_FAILED = 0U,
42 : PAYMENT_ACCEPTED = 1U,
43 : PAYMENT_REJECTED = 0U,
44 : COMPLETE_SUCCEEDED = 1U,
45 : COMPLETE_FAILED = 0U
46 : };
47 :
48 : /* readonly attribute AString requestId; */
49 : NS_IMETHOD GetRequestId(nsAString & aRequestId) = 0;
50 :
51 : /* readonly attribute uint32_t type; */
52 : NS_IMETHOD GetType(uint32_t *aType) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentActionResponse, NS_IPAYMENTACTIONRESPONSE_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIPAYMENTACTIONRESPONSE \
60 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override; \
61 : NS_IMETHOD GetType(uint32_t *aType) override;
62 :
63 : /* Use this macro when declaring the members of this interface when the
64 : class doesn't implement the interface. This is useful for forwarding. */
65 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTACTIONRESPONSE \
66 : nsresult GetRequestId(nsAString & aRequestId); \
67 : nsresult GetType(uint32_t *aType);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIPAYMENTACTIONRESPONSE(_to) \
71 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override { return _to GetRequestId(aRequestId); } \
72 : NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); }
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
75 : #define NS_FORWARD_SAFE_NSIPAYMENTACTIONRESPONSE(_to) \
76 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestId(aRequestId); } \
77 : NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); }
78 :
79 : #if 0
80 : /* Use the code below as a template for the implementation class for this interface. */
81 :
82 : /* Header file */
83 : class nsPaymentActionResponse : public nsIPaymentActionResponse
84 : {
85 : public:
86 : NS_DECL_ISUPPORTS
87 : NS_DECL_NSIPAYMENTACTIONRESPONSE
88 :
89 : nsPaymentActionResponse();
90 :
91 : private:
92 : ~nsPaymentActionResponse();
93 :
94 : protected:
95 : /* additional members */
96 : };
97 :
98 : /* Implementation file */
99 : NS_IMPL_ISUPPORTS(nsPaymentActionResponse, nsIPaymentActionResponse)
100 :
101 : nsPaymentActionResponse::nsPaymentActionResponse()
102 : {
103 : /* member initializers and constructor code */
104 : }
105 :
106 : nsPaymentActionResponse::~nsPaymentActionResponse()
107 : {
108 : /* destructor code */
109 : }
110 :
111 : /* readonly attribute AString requestId; */
112 : NS_IMETHODIMP nsPaymentActionResponse::GetRequestId(nsAString & aRequestId)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* readonly attribute uint32_t type; */
118 : NS_IMETHODIMP nsPaymentActionResponse::GetType(uint32_t *aType)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : /* starting interface: nsIPaymentCanMakeActionResponse */
128 : #define NS_IPAYMENTCANMAKEACTIONRESPONSE_IID_STR "52fc3f9f-c0cb-4874-b3d4-ee4b6e9cbe9c"
129 :
130 : #define NS_IPAYMENTCANMAKEACTIONRESPONSE_IID \
131 : {0x52fc3f9f, 0xc0cb, 0x4874, \
132 : { 0xb3, 0xd4, 0xee, 0x4b, 0x6e, 0x9c, 0xbe, 0x9c }}
133 :
134 0 : class NS_NO_VTABLE nsIPaymentCanMakeActionResponse : public nsIPaymentActionResponse {
135 : public:
136 :
137 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTCANMAKEACTIONRESPONSE_IID)
138 :
139 : /* readonly attribute bool result; */
140 : NS_IMETHOD GetResult(bool *aResult) = 0;
141 :
142 : /* void init (in AString aRequestId, in bool aResult); */
143 : NS_IMETHOD Init(const nsAString & aRequestId, bool aResult) = 0;
144 :
145 : };
146 :
147 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentCanMakeActionResponse, NS_IPAYMENTCANMAKEACTIONRESPONSE_IID)
148 :
149 : /* Use this macro when declaring classes that implement this interface. */
150 : #define NS_DECL_NSIPAYMENTCANMAKEACTIONRESPONSE \
151 : NS_IMETHOD GetResult(bool *aResult) override; \
152 : NS_IMETHOD Init(const nsAString & aRequestId, bool aResult) override;
153 :
154 : /* Use this macro when declaring the members of this interface when the
155 : class doesn't implement the interface. This is useful for forwarding. */
156 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTCANMAKEACTIONRESPONSE \
157 : nsresult GetResult(bool *aResult); \
158 : nsresult Init(const nsAString & aRequestId, bool aResult);
159 :
160 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
161 : #define NS_FORWARD_NSIPAYMENTCANMAKEACTIONRESPONSE(_to) \
162 : NS_IMETHOD GetResult(bool *aResult) override { return _to GetResult(aResult); } \
163 : NS_IMETHOD Init(const nsAString & aRequestId, bool aResult) override { return _to Init(aRequestId, aResult); }
164 :
165 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
166 : #define NS_FORWARD_SAFE_NSIPAYMENTCANMAKEACTIONRESPONSE(_to) \
167 : NS_IMETHOD GetResult(bool *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
168 : NS_IMETHOD Init(const nsAString & aRequestId, bool aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aRequestId, aResult); }
169 :
170 : #if 0
171 : /* Use the code below as a template for the implementation class for this interface. */
172 :
173 : /* Header file */
174 : class nsPaymentCanMakeActionResponse : public nsIPaymentCanMakeActionResponse
175 : {
176 : public:
177 : NS_DECL_ISUPPORTS
178 : NS_DECL_NSIPAYMENTCANMAKEACTIONRESPONSE
179 :
180 : nsPaymentCanMakeActionResponse();
181 :
182 : private:
183 : ~nsPaymentCanMakeActionResponse();
184 :
185 : protected:
186 : /* additional members */
187 : };
188 :
189 : /* Implementation file */
190 : NS_IMPL_ISUPPORTS(nsPaymentCanMakeActionResponse, nsIPaymentCanMakeActionResponse)
191 :
192 : nsPaymentCanMakeActionResponse::nsPaymentCanMakeActionResponse()
193 : {
194 : /* member initializers and constructor code */
195 : }
196 :
197 : nsPaymentCanMakeActionResponse::~nsPaymentCanMakeActionResponse()
198 : {
199 : /* destructor code */
200 : }
201 :
202 : /* readonly attribute bool result; */
203 : NS_IMETHODIMP nsPaymentCanMakeActionResponse::GetResult(bool *aResult)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 :
208 : /* void init (in AString aRequestId, in bool aResult); */
209 : NS_IMETHODIMP nsPaymentCanMakeActionResponse::Init(const nsAString & aRequestId, bool aResult)
210 : {
211 : return NS_ERROR_NOT_IMPLEMENTED;
212 : }
213 :
214 : /* End of implementation class template. */
215 : #endif
216 :
217 :
218 : /* starting interface: nsIPaymentShowActionResponse */
219 : #define NS_IPAYMENTSHOWACTIONRESPONSE_IID_STR "184385cb-2d35-4b99-a9a3-7c780bf66b9b"
220 :
221 : #define NS_IPAYMENTSHOWACTIONRESPONSE_IID \
222 : {0x184385cb, 0x2d35, 0x4b99, \
223 : { 0xa9, 0xa3, 0x7c, 0x78, 0x0b, 0xf6, 0x6b, 0x9b }}
224 :
225 0 : class NS_NO_VTABLE nsIPaymentShowActionResponse : public nsIPaymentActionResponse {
226 : public:
227 :
228 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTSHOWACTIONRESPONSE_IID)
229 :
230 : /* readonly attribute uint32_t acceptStatus; */
231 : NS_IMETHOD GetAcceptStatus(uint32_t *aAcceptStatus) = 0;
232 :
233 : /* readonly attribute AString methodName; */
234 : NS_IMETHOD GetMethodName(nsAString & aMethodName) = 0;
235 :
236 : /* readonly attribute AString data; */
237 : NS_IMETHOD GetData(nsAString & aData) = 0;
238 :
239 : /* readonly attribute AString payerName; */
240 : NS_IMETHOD GetPayerName(nsAString & aPayerName) = 0;
241 :
242 : /* readonly attribute AString payerEmail; */
243 : NS_IMETHOD GetPayerEmail(nsAString & aPayerEmail) = 0;
244 :
245 : /* readonly attribute AString payerPhone; */
246 : NS_IMETHOD GetPayerPhone(nsAString & aPayerPhone) = 0;
247 :
248 : /* void init (in AString aRequestId, in uint32_t aAcceptStatus, in AString aMethodName, in AString aData, in AString aPayerName, in AString aPayerEmail, in AString aPayerPhone); */
249 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aAcceptStatus, const nsAString & aMethodName, const nsAString & aData, const nsAString & aPayerName, const nsAString & aPayerEmail, const nsAString & aPayerPhone) = 0;
250 :
251 : /* bool isAccepted (); */
252 : NS_IMETHOD IsAccepted(bool *_retval) = 0;
253 :
254 : };
255 :
256 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentShowActionResponse, NS_IPAYMENTSHOWACTIONRESPONSE_IID)
257 :
258 : /* Use this macro when declaring classes that implement this interface. */
259 : #define NS_DECL_NSIPAYMENTSHOWACTIONRESPONSE \
260 : NS_IMETHOD GetAcceptStatus(uint32_t *aAcceptStatus) override; \
261 : NS_IMETHOD GetMethodName(nsAString & aMethodName) override; \
262 : NS_IMETHOD GetData(nsAString & aData) override; \
263 : NS_IMETHOD GetPayerName(nsAString & aPayerName) override; \
264 : NS_IMETHOD GetPayerEmail(nsAString & aPayerEmail) override; \
265 : NS_IMETHOD GetPayerPhone(nsAString & aPayerPhone) override; \
266 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aAcceptStatus, const nsAString & aMethodName, const nsAString & aData, const nsAString & aPayerName, const nsAString & aPayerEmail, const nsAString & aPayerPhone) override; \
267 : NS_IMETHOD IsAccepted(bool *_retval) override;
268 :
269 : /* Use this macro when declaring the members of this interface when the
270 : class doesn't implement the interface. This is useful for forwarding. */
271 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTSHOWACTIONRESPONSE \
272 : nsresult GetAcceptStatus(uint32_t *aAcceptStatus); \
273 : nsresult GetMethodName(nsAString & aMethodName); \
274 : nsresult GetData(nsAString & aData); \
275 : nsresult GetPayerName(nsAString & aPayerName); \
276 : nsresult GetPayerEmail(nsAString & aPayerEmail); \
277 : nsresult GetPayerPhone(nsAString & aPayerPhone); \
278 : nsresult Init(const nsAString & aRequestId, uint32_t aAcceptStatus, const nsAString & aMethodName, const nsAString & aData, const nsAString & aPayerName, const nsAString & aPayerEmail, const nsAString & aPayerPhone); \
279 : nsresult IsAccepted(bool *_retval);
280 :
281 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
282 : #define NS_FORWARD_NSIPAYMENTSHOWACTIONRESPONSE(_to) \
283 : NS_IMETHOD GetAcceptStatus(uint32_t *aAcceptStatus) override { return _to GetAcceptStatus(aAcceptStatus); } \
284 : NS_IMETHOD GetMethodName(nsAString & aMethodName) override { return _to GetMethodName(aMethodName); } \
285 : NS_IMETHOD GetData(nsAString & aData) override { return _to GetData(aData); } \
286 : NS_IMETHOD GetPayerName(nsAString & aPayerName) override { return _to GetPayerName(aPayerName); } \
287 : NS_IMETHOD GetPayerEmail(nsAString & aPayerEmail) override { return _to GetPayerEmail(aPayerEmail); } \
288 : NS_IMETHOD GetPayerPhone(nsAString & aPayerPhone) override { return _to GetPayerPhone(aPayerPhone); } \
289 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aAcceptStatus, const nsAString & aMethodName, const nsAString & aData, const nsAString & aPayerName, const nsAString & aPayerEmail, const nsAString & aPayerPhone) override { return _to Init(aRequestId, aAcceptStatus, aMethodName, aData, aPayerName, aPayerEmail, aPayerPhone); } \
290 : NS_IMETHOD IsAccepted(bool *_retval) override { return _to IsAccepted(_retval); }
291 :
292 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
293 : #define NS_FORWARD_SAFE_NSIPAYMENTSHOWACTIONRESPONSE(_to) \
294 : NS_IMETHOD GetAcceptStatus(uint32_t *aAcceptStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAcceptStatus(aAcceptStatus); } \
295 : NS_IMETHOD GetMethodName(nsAString & aMethodName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMethodName(aMethodName); } \
296 : NS_IMETHOD GetData(nsAString & aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
297 : NS_IMETHOD GetPayerName(nsAString & aPayerName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPayerName(aPayerName); } \
298 : NS_IMETHOD GetPayerEmail(nsAString & aPayerEmail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPayerEmail(aPayerEmail); } \
299 : NS_IMETHOD GetPayerPhone(nsAString & aPayerPhone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPayerPhone(aPayerPhone); } \
300 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aAcceptStatus, const nsAString & aMethodName, const nsAString & aData, const nsAString & aPayerName, const nsAString & aPayerEmail, const nsAString & aPayerPhone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aRequestId, aAcceptStatus, aMethodName, aData, aPayerName, aPayerEmail, aPayerPhone); } \
301 : NS_IMETHOD IsAccepted(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAccepted(_retval); }
302 :
303 : #if 0
304 : /* Use the code below as a template for the implementation class for this interface. */
305 :
306 : /* Header file */
307 : class nsPaymentShowActionResponse : public nsIPaymentShowActionResponse
308 : {
309 : public:
310 : NS_DECL_ISUPPORTS
311 : NS_DECL_NSIPAYMENTSHOWACTIONRESPONSE
312 :
313 : nsPaymentShowActionResponse();
314 :
315 : private:
316 : ~nsPaymentShowActionResponse();
317 :
318 : protected:
319 : /* additional members */
320 : };
321 :
322 : /* Implementation file */
323 : NS_IMPL_ISUPPORTS(nsPaymentShowActionResponse, nsIPaymentShowActionResponse)
324 :
325 : nsPaymentShowActionResponse::nsPaymentShowActionResponse()
326 : {
327 : /* member initializers and constructor code */
328 : }
329 :
330 : nsPaymentShowActionResponse::~nsPaymentShowActionResponse()
331 : {
332 : /* destructor code */
333 : }
334 :
335 : /* readonly attribute uint32_t acceptStatus; */
336 : NS_IMETHODIMP nsPaymentShowActionResponse::GetAcceptStatus(uint32_t *aAcceptStatus)
337 : {
338 : return NS_ERROR_NOT_IMPLEMENTED;
339 : }
340 :
341 : /* readonly attribute AString methodName; */
342 : NS_IMETHODIMP nsPaymentShowActionResponse::GetMethodName(nsAString & aMethodName)
343 : {
344 : return NS_ERROR_NOT_IMPLEMENTED;
345 : }
346 :
347 : /* readonly attribute AString data; */
348 : NS_IMETHODIMP nsPaymentShowActionResponse::GetData(nsAString & aData)
349 : {
350 : return NS_ERROR_NOT_IMPLEMENTED;
351 : }
352 :
353 : /* readonly attribute AString payerName; */
354 : NS_IMETHODIMP nsPaymentShowActionResponse::GetPayerName(nsAString & aPayerName)
355 : {
356 : return NS_ERROR_NOT_IMPLEMENTED;
357 : }
358 :
359 : /* readonly attribute AString payerEmail; */
360 : NS_IMETHODIMP nsPaymentShowActionResponse::GetPayerEmail(nsAString & aPayerEmail)
361 : {
362 : return NS_ERROR_NOT_IMPLEMENTED;
363 : }
364 :
365 : /* readonly attribute AString payerPhone; */
366 : NS_IMETHODIMP nsPaymentShowActionResponse::GetPayerPhone(nsAString & aPayerPhone)
367 : {
368 : return NS_ERROR_NOT_IMPLEMENTED;
369 : }
370 :
371 : /* void init (in AString aRequestId, in uint32_t aAcceptStatus, in AString aMethodName, in AString aData, in AString aPayerName, in AString aPayerEmail, in AString aPayerPhone); */
372 : NS_IMETHODIMP nsPaymentShowActionResponse::Init(const nsAString & aRequestId, uint32_t aAcceptStatus, const nsAString & aMethodName, const nsAString & aData, const nsAString & aPayerName, const nsAString & aPayerEmail, const nsAString & aPayerPhone)
373 : {
374 : return NS_ERROR_NOT_IMPLEMENTED;
375 : }
376 :
377 : /* bool isAccepted (); */
378 : NS_IMETHODIMP nsPaymentShowActionResponse::IsAccepted(bool *_retval)
379 : {
380 : return NS_ERROR_NOT_IMPLEMENTED;
381 : }
382 :
383 : /* End of implementation class template. */
384 : #endif
385 :
386 :
387 : /* starting interface: nsIPaymentAbortActionResponse */
388 : #define NS_IPAYMENTABORTACTIONRESPONSE_IID_STR "8c72bcdb-0c37-4786-a9e5-510afa2f8ede"
389 :
390 : #define NS_IPAYMENTABORTACTIONRESPONSE_IID \
391 : {0x8c72bcdb, 0x0c37, 0x4786, \
392 : { 0xa9, 0xe5, 0x51, 0x0a, 0xfa, 0x2f, 0x8e, 0xde }}
393 :
394 0 : class NS_NO_VTABLE nsIPaymentAbortActionResponse : public nsIPaymentActionResponse {
395 : public:
396 :
397 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTABORTACTIONRESPONSE_IID)
398 :
399 : /* readonly attribute uint32_t abortStatus; */
400 : NS_IMETHOD GetAbortStatus(uint32_t *aAbortStatus) = 0;
401 :
402 : /* void init (in AString aRequestId, in uint32_t aAbortStatus); */
403 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aAbortStatus) = 0;
404 :
405 : /* bool isSucceeded (); */
406 : NS_IMETHOD IsSucceeded(bool *_retval) = 0;
407 :
408 : };
409 :
410 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentAbortActionResponse, NS_IPAYMENTABORTACTIONRESPONSE_IID)
411 :
412 : /* Use this macro when declaring classes that implement this interface. */
413 : #define NS_DECL_NSIPAYMENTABORTACTIONRESPONSE \
414 : NS_IMETHOD GetAbortStatus(uint32_t *aAbortStatus) override; \
415 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aAbortStatus) override; \
416 : NS_IMETHOD IsSucceeded(bool *_retval) override;
417 :
418 : /* Use this macro when declaring the members of this interface when the
419 : class doesn't implement the interface. This is useful for forwarding. */
420 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTABORTACTIONRESPONSE \
421 : nsresult GetAbortStatus(uint32_t *aAbortStatus); \
422 : nsresult Init(const nsAString & aRequestId, uint32_t aAbortStatus); \
423 : nsresult IsSucceeded(bool *_retval);
424 :
425 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
426 : #define NS_FORWARD_NSIPAYMENTABORTACTIONRESPONSE(_to) \
427 : NS_IMETHOD GetAbortStatus(uint32_t *aAbortStatus) override { return _to GetAbortStatus(aAbortStatus); } \
428 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aAbortStatus) override { return _to Init(aRequestId, aAbortStatus); } \
429 : NS_IMETHOD IsSucceeded(bool *_retval) override { return _to IsSucceeded(_retval); }
430 :
431 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
432 : #define NS_FORWARD_SAFE_NSIPAYMENTABORTACTIONRESPONSE(_to) \
433 : NS_IMETHOD GetAbortStatus(uint32_t *aAbortStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbortStatus(aAbortStatus); } \
434 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aAbortStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aRequestId, aAbortStatus); } \
435 : NS_IMETHOD IsSucceeded(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSucceeded(_retval); }
436 :
437 : #if 0
438 : /* Use the code below as a template for the implementation class for this interface. */
439 :
440 : /* Header file */
441 : class nsPaymentAbortActionResponse : public nsIPaymentAbortActionResponse
442 : {
443 : public:
444 : NS_DECL_ISUPPORTS
445 : NS_DECL_NSIPAYMENTABORTACTIONRESPONSE
446 :
447 : nsPaymentAbortActionResponse();
448 :
449 : private:
450 : ~nsPaymentAbortActionResponse();
451 :
452 : protected:
453 : /* additional members */
454 : };
455 :
456 : /* Implementation file */
457 : NS_IMPL_ISUPPORTS(nsPaymentAbortActionResponse, nsIPaymentAbortActionResponse)
458 :
459 : nsPaymentAbortActionResponse::nsPaymentAbortActionResponse()
460 : {
461 : /* member initializers and constructor code */
462 : }
463 :
464 : nsPaymentAbortActionResponse::~nsPaymentAbortActionResponse()
465 : {
466 : /* destructor code */
467 : }
468 :
469 : /* readonly attribute uint32_t abortStatus; */
470 : NS_IMETHODIMP nsPaymentAbortActionResponse::GetAbortStatus(uint32_t *aAbortStatus)
471 : {
472 : return NS_ERROR_NOT_IMPLEMENTED;
473 : }
474 :
475 : /* void init (in AString aRequestId, in uint32_t aAbortStatus); */
476 : NS_IMETHODIMP nsPaymentAbortActionResponse::Init(const nsAString & aRequestId, uint32_t aAbortStatus)
477 : {
478 : return NS_ERROR_NOT_IMPLEMENTED;
479 : }
480 :
481 : /* bool isSucceeded (); */
482 : NS_IMETHODIMP nsPaymentAbortActionResponse::IsSucceeded(bool *_retval)
483 : {
484 : return NS_ERROR_NOT_IMPLEMENTED;
485 : }
486 :
487 : /* End of implementation class template. */
488 : #endif
489 :
490 :
491 : /* starting interface: nsIPaymentCompleteActionResponse */
492 : #define NS_IPAYMENTCOMPLETEACTIONRESPONSE_IID_STR "62c01e69-9ca4-4060-99e4-b95f628c8e6d"
493 :
494 : #define NS_IPAYMENTCOMPLETEACTIONRESPONSE_IID \
495 : {0x62c01e69, 0x9ca4, 0x4060, \
496 : { 0x99, 0xe4, 0xb9, 0x5f, 0x62, 0x8c, 0x8e, 0x6d }}
497 :
498 0 : class NS_NO_VTABLE nsIPaymentCompleteActionResponse : public nsIPaymentActionResponse {
499 : public:
500 :
501 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTCOMPLETEACTIONRESPONSE_IID)
502 :
503 : /* readonly attribute uint32_t completeStatus; */
504 : NS_IMETHOD GetCompleteStatus(uint32_t *aCompleteStatus) = 0;
505 :
506 : /* void init (in AString aRequestId, in uint32_t aCompleteStatus); */
507 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aCompleteStatus) = 0;
508 :
509 : /* bool isCompleted (); */
510 : NS_IMETHOD IsCompleted(bool *_retval) = 0;
511 :
512 : };
513 :
514 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentCompleteActionResponse, NS_IPAYMENTCOMPLETEACTIONRESPONSE_IID)
515 :
516 : /* Use this macro when declaring classes that implement this interface. */
517 : #define NS_DECL_NSIPAYMENTCOMPLETEACTIONRESPONSE \
518 : NS_IMETHOD GetCompleteStatus(uint32_t *aCompleteStatus) override; \
519 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aCompleteStatus) override; \
520 : NS_IMETHOD IsCompleted(bool *_retval) override;
521 :
522 : /* Use this macro when declaring the members of this interface when the
523 : class doesn't implement the interface. This is useful for forwarding. */
524 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTCOMPLETEACTIONRESPONSE \
525 : nsresult GetCompleteStatus(uint32_t *aCompleteStatus); \
526 : nsresult Init(const nsAString & aRequestId, uint32_t aCompleteStatus); \
527 : nsresult IsCompleted(bool *_retval);
528 :
529 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
530 : #define NS_FORWARD_NSIPAYMENTCOMPLETEACTIONRESPONSE(_to) \
531 : NS_IMETHOD GetCompleteStatus(uint32_t *aCompleteStatus) override { return _to GetCompleteStatus(aCompleteStatus); } \
532 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aCompleteStatus) override { return _to Init(aRequestId, aCompleteStatus); } \
533 : NS_IMETHOD IsCompleted(bool *_retval) override { return _to IsCompleted(_retval); }
534 :
535 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
536 : #define NS_FORWARD_SAFE_NSIPAYMENTCOMPLETEACTIONRESPONSE(_to) \
537 : NS_IMETHOD GetCompleteStatus(uint32_t *aCompleteStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompleteStatus(aCompleteStatus); } \
538 : NS_IMETHOD Init(const nsAString & aRequestId, uint32_t aCompleteStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aRequestId, aCompleteStatus); } \
539 : NS_IMETHOD IsCompleted(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCompleted(_retval); }
540 :
541 : #if 0
542 : /* Use the code below as a template for the implementation class for this interface. */
543 :
544 : /* Header file */
545 : class nsPaymentCompleteActionResponse : public nsIPaymentCompleteActionResponse
546 : {
547 : public:
548 : NS_DECL_ISUPPORTS
549 : NS_DECL_NSIPAYMENTCOMPLETEACTIONRESPONSE
550 :
551 : nsPaymentCompleteActionResponse();
552 :
553 : private:
554 : ~nsPaymentCompleteActionResponse();
555 :
556 : protected:
557 : /* additional members */
558 : };
559 :
560 : /* Implementation file */
561 : NS_IMPL_ISUPPORTS(nsPaymentCompleteActionResponse, nsIPaymentCompleteActionResponse)
562 :
563 : nsPaymentCompleteActionResponse::nsPaymentCompleteActionResponse()
564 : {
565 : /* member initializers and constructor code */
566 : }
567 :
568 : nsPaymentCompleteActionResponse::~nsPaymentCompleteActionResponse()
569 : {
570 : /* destructor code */
571 : }
572 :
573 : /* readonly attribute uint32_t completeStatus; */
574 : NS_IMETHODIMP nsPaymentCompleteActionResponse::GetCompleteStatus(uint32_t *aCompleteStatus)
575 : {
576 : return NS_ERROR_NOT_IMPLEMENTED;
577 : }
578 :
579 : /* void init (in AString aRequestId, in uint32_t aCompleteStatus); */
580 : NS_IMETHODIMP nsPaymentCompleteActionResponse::Init(const nsAString & aRequestId, uint32_t aCompleteStatus)
581 : {
582 : return NS_ERROR_NOT_IMPLEMENTED;
583 : }
584 :
585 : /* bool isCompleted (); */
586 : NS_IMETHODIMP nsPaymentCompleteActionResponse::IsCompleted(bool *_retval)
587 : {
588 : return NS_ERROR_NOT_IMPLEMENTED;
589 : }
590 :
591 : /* End of implementation class template. */
592 : #endif
593 :
594 : #define NS_PAYMENT_CANMAKE_ACTION_RESPONSE_CID \
595 : { 0x52fc3f9f, 0xc0cb, 0x4874, { 0xb3, 0xd4, 0xee, 0x4b, 0x6e, 0x9c, 0xbe, 0x9c } }
596 : #define NS_PAYMENT_CANMAKE_ACTION_RESPONSE_CONTRACT_ID \
597 : "@mozilla.org/dom/payments/payment-canmake-action-response;1"
598 : #define NS_PAYMENT_SHOW_ACTION_RESPONSE_CID \
599 : { 0x184385cb, 0x2d35, 0x4b99, { 0xa9, 0xa3, 0x7c, 0x78, 0x0b, 0xf6, 0x6b, 0x9b } }
600 : #define NS_PAYMENT_SHOW_ACTION_RESPONSE_CONTRACT_ID \
601 : "@mozilla.org/dom/payments/payment-show-action-response;1"
602 : #define NS_PAYMENT_ABORT_ACTION_RESPONSE_CID \
603 : { 0x8c72bcdb, 0x0c37, 0x4786, { 0xa9, 0xe5, 0x51, 0x0a, 0xfa, 0x2f, 0x8e, 0xde } }
604 : #define NS_PAYMENT_ABORT_ACTION_RESPONSE_CONTRACT_ID \
605 : "@mozilla.org/dom/payments/payment-abort-action-response;1"
606 : #define NS_PAYMENT_COMPLETE_ACTION_RESPONSE_CID \
607 : { 0x62c01e69, 0x9ca4, 0x4060, { 0x99, 0xe4, 0xb9, 0x5f, 0x62, 0x8c, 0x8e, 0x6d } }
608 : #define NS_PAYMENT_COMPLETE_ACTION_RESPONSE_CONTRACT_ID \
609 : "@mozilla.org/dom/payments/payment-complete-action-response;1"
610 :
611 : #endif /* __gen_nsIPaymentActionResponse_h__ */
|