/work/obj-fuzz/dist/include/nsIPaymentActionResponse.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/dom/interfaces/payments/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 | | #ifndef __gen_nsIPaymentAddress_h__ |
18 | | #include "nsIPaymentAddress.h" |
19 | | #endif |
20 | | |
21 | | #include "js/Value.h" |
22 | | |
23 | | /* For IDL files that don't want to include root IDL files. */ |
24 | | #ifndef NS_NO_VTABLE |
25 | | #define NS_NO_VTABLE |
26 | | #endif |
27 | | |
28 | | /* starting interface: nsIPaymentResponseData */ |
29 | | #define NS_IPAYMENTRESPONSEDATA_IID_STR "2a338575-c688-40ee-a157-7488ab292ef2" |
30 | | |
31 | | #define NS_IPAYMENTRESPONSEDATA_IID \ |
32 | | {0x2a338575, 0xc688, 0x40ee, \ |
33 | | { 0xa1, 0x57, 0x74, 0x88, 0xab, 0x29, 0x2e, 0xf2 }} |
34 | | |
35 | | class NS_NO_VTABLE nsIPaymentResponseData : public nsISupports { |
36 | | public: |
37 | | |
38 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTRESPONSEDATA_IID) |
39 | | |
40 | | enum { |
41 | | GENERAL_RESPONSE = 0U, |
42 | | BASICCARD_RESPONSE = 1U |
43 | | }; |
44 | | |
45 | | /* readonly attribute uint32_t type; */ |
46 | | NS_IMETHOD GetType(uint32_t *aType) = 0; |
47 | | |
48 | | /* void init (in uint32_t aType); */ |
49 | | NS_IMETHOD Init(uint32_t aType) = 0; |
50 | | |
51 | | }; |
52 | | |
53 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentResponseData, NS_IPAYMENTRESPONSEDATA_IID) |
54 | | |
55 | | /* Use this macro when declaring classes that implement this interface. */ |
56 | | #define NS_DECL_NSIPAYMENTRESPONSEDATA \ |
57 | | NS_IMETHOD GetType(uint32_t *aType) override; \ |
58 | | NS_IMETHOD Init(uint32_t aType) override; |
59 | | |
60 | | /* Use this macro when declaring the members of this interface when the |
61 | | class doesn't implement the interface. This is useful for forwarding. */ |
62 | | #define NS_DECL_NON_VIRTUAL_NSIPAYMENTRESPONSEDATA \ |
63 | | nsresult GetType(uint32_t *aType); \ |
64 | | nsresult Init(uint32_t aType); |
65 | | |
66 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
67 | | #define NS_FORWARD_NSIPAYMENTRESPONSEDATA(_to) \ |
68 | 0 | NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); } \ Unexecuted instantiation: mozilla::dom::GeneralResponseData::GetType(unsigned int*) Unexecuted instantiation: mozilla::dom::BasicCardResponseData::GetType(unsigned int*) |
69 | 0 | NS_IMETHOD Init(uint32_t aType) override { return _to Init(aType); } Unexecuted instantiation: mozilla::dom::GeneralResponseData::Init(unsigned int) Unexecuted instantiation: mozilla::dom::BasicCardResponseData::Init(unsigned int) |
70 | | |
71 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
72 | | #define NS_FORWARD_SAFE_NSIPAYMENTRESPONSEDATA(_to) \ |
73 | | NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \ |
74 | | NS_IMETHOD Init(uint32_t aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aType); } |
75 | | |
76 | | |
77 | | /* starting interface: nsIGeneralResponseData */ |
78 | | #define NS_IGENERALRESPONSEDATA_IID_STR "b986773e-2b30-4ed2-b8fe-6a96631c8000" |
79 | | |
80 | | #define NS_IGENERALRESPONSEDATA_IID \ |
81 | | {0xb986773e, 0x2b30, 0x4ed2, \ |
82 | | { 0xb8, 0xfe, 0x6a, 0x96, 0x63, 0x1c, 0x80, 0x00 }} |
83 | | |
84 | | class NS_NO_VTABLE nsIGeneralResponseData : public nsIPaymentResponseData { |
85 | | public: |
86 | | |
87 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGENERALRESPONSEDATA_IID) |
88 | | |
89 | | /* readonly attribute AString data; */ |
90 | | NS_IMETHOD GetData(nsAString& aData) = 0; |
91 | | |
92 | | /* [implicit_jscontext] void initData (in jsval aData); */ |
93 | | NS_IMETHOD InitData(JS::HandleValue aData, JSContext* cx) = 0; |
94 | | |
95 | | }; |
96 | | |
97 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeneralResponseData, NS_IGENERALRESPONSEDATA_IID) |
98 | | |
99 | | /* Use this macro when declaring classes that implement this interface. */ |
100 | | #define NS_DECL_NSIGENERALRESPONSEDATA \ |
101 | | NS_IMETHOD GetData(nsAString& aData) override; \ |
102 | | NS_IMETHOD InitData(JS::HandleValue aData, JSContext* cx) override; |
103 | | |
104 | | /* Use this macro when declaring the members of this interface when the |
105 | | class doesn't implement the interface. This is useful for forwarding. */ |
106 | | #define NS_DECL_NON_VIRTUAL_NSIGENERALRESPONSEDATA \ |
107 | | nsresult GetData(nsAString& aData); \ |
108 | | nsresult InitData(JS::HandleValue aData, JSContext* cx); |
109 | | |
110 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
111 | | #define NS_FORWARD_NSIGENERALRESPONSEDATA(_to) \ |
112 | | NS_IMETHOD GetData(nsAString& aData) override { return _to GetData(aData); } \ |
113 | | NS_IMETHOD InitData(JS::HandleValue aData, JSContext* cx) override { return _to InitData(aData, cx); } |
114 | | |
115 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
116 | | #define NS_FORWARD_SAFE_NSIGENERALRESPONSEDATA(_to) \ |
117 | | NS_IMETHOD GetData(nsAString& aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \ |
118 | | NS_IMETHOD InitData(JS::HandleValue aData, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitData(aData, cx); } |
119 | | |
120 | | |
121 | | /* starting interface: nsIBasicCardResponseData */ |
122 | | #define NS_IBASICCARDRESPONSEDATA_IID_STR "0d55a5e6-d185-44f0-b992-a8e1321e4bce" |
123 | | |
124 | | #define NS_IBASICCARDRESPONSEDATA_IID \ |
125 | | {0x0d55a5e6, 0xd185, 0x44f0, \ |
126 | | { 0xb9, 0x92, 0xa8, 0xe1, 0x32, 0x1e, 0x4b, 0xce }} |
127 | | |
128 | | class NS_NO_VTABLE nsIBasicCardResponseData : public nsIPaymentResponseData { |
129 | | public: |
130 | | |
131 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBASICCARDRESPONSEDATA_IID) |
132 | | |
133 | | /* readonly attribute AString data; */ |
134 | | NS_IMETHOD GetData(nsAString& aData) = 0; |
135 | | |
136 | | /* void initData (in AString aCardholderName, in AString aCardNumber, in AString aExpiryMonth, in AString aExpiryYear, in AString aCardSecurityCode, in nsIPaymentAddress billingAddress); */ |
137 | | NS_IMETHOD InitData(const nsAString& aCardholderName, const nsAString& aCardNumber, const nsAString& aExpiryMonth, const nsAString& aExpiryYear, const nsAString& aCardSecurityCode, nsIPaymentAddress *billingAddress) = 0; |
138 | | |
139 | | }; |
140 | | |
141 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIBasicCardResponseData, NS_IBASICCARDRESPONSEDATA_IID) |
142 | | |
143 | | /* Use this macro when declaring classes that implement this interface. */ |
144 | | #define NS_DECL_NSIBASICCARDRESPONSEDATA \ |
145 | | NS_IMETHOD GetData(nsAString& aData) override; \ |
146 | | NS_IMETHOD InitData(const nsAString& aCardholderName, const nsAString& aCardNumber, const nsAString& aExpiryMonth, const nsAString& aExpiryYear, const nsAString& aCardSecurityCode, nsIPaymentAddress *billingAddress) override; |
147 | | |
148 | | /* Use this macro when declaring the members of this interface when the |
149 | | class doesn't implement the interface. This is useful for forwarding. */ |
150 | | #define NS_DECL_NON_VIRTUAL_NSIBASICCARDRESPONSEDATA \ |
151 | | nsresult GetData(nsAString& aData); \ |
152 | | nsresult InitData(const nsAString& aCardholderName, const nsAString& aCardNumber, const nsAString& aExpiryMonth, const nsAString& aExpiryYear, const nsAString& aCardSecurityCode, nsIPaymentAddress *billingAddress); |
153 | | |
154 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
155 | | #define NS_FORWARD_NSIBASICCARDRESPONSEDATA(_to) \ |
156 | | NS_IMETHOD GetData(nsAString& aData) override { return _to GetData(aData); } \ |
157 | | NS_IMETHOD InitData(const nsAString& aCardholderName, const nsAString& aCardNumber, const nsAString& aExpiryMonth, const nsAString& aExpiryYear, const nsAString& aCardSecurityCode, nsIPaymentAddress *billingAddress) override { return _to InitData(aCardholderName, aCardNumber, aExpiryMonth, aExpiryYear, aCardSecurityCode, billingAddress); } |
158 | | |
159 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
160 | | #define NS_FORWARD_SAFE_NSIBASICCARDRESPONSEDATA(_to) \ |
161 | | NS_IMETHOD GetData(nsAString& aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \ |
162 | | NS_IMETHOD InitData(const nsAString& aCardholderName, const nsAString& aCardNumber, const nsAString& aExpiryMonth, const nsAString& aExpiryYear, const nsAString& aCardSecurityCode, nsIPaymentAddress *billingAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitData(aCardholderName, aCardNumber, aExpiryMonth, aExpiryYear, aCardSecurityCode, billingAddress); } |
163 | | |
164 | | |
165 | | /* starting interface: nsIPaymentActionResponse */ |
166 | | #define NS_IPAYMENTACTIONRESPONSE_IID_STR "a607c095-ef60-4a9b-a3d0-0506c60728b3" |
167 | | |
168 | | #define NS_IPAYMENTACTIONRESPONSE_IID \ |
169 | | {0xa607c095, 0xef60, 0x4a9b, \ |
170 | | { 0xa3, 0xd0, 0x05, 0x06, 0xc6, 0x07, 0x28, 0xb3 }} |
171 | | |
172 | | class NS_NO_VTABLE nsIPaymentActionResponse : public nsISupports { |
173 | | public: |
174 | | |
175 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTACTIONRESPONSE_IID) |
176 | | |
177 | | enum { |
178 | | NO_TYPE = 0U, |
179 | | CANMAKE_ACTION = 2U, |
180 | | SHOW_ACTION = 3U, |
181 | | ABORT_ACTION = 4U, |
182 | | COMPLETE_ACTION = 5U, |
183 | | ABORT_SUCCEEDED = 1U, |
184 | | ABORT_FAILED = 0U, |
185 | | PAYMENT_REJECTED = 0U, |
186 | | PAYMENT_ACCEPTED = 1U, |
187 | | PAYMENT_NOTSUPPORTED = 2U, |
188 | | COMPLETE_SUCCEEDED = 1U, |
189 | | COMPLETE_FAILED = 0U |
190 | | }; |
191 | | |
192 | | /* readonly attribute AString requestId; */ |
193 | | NS_IMETHOD GetRequestId(nsAString& aRequestId) = 0; |
194 | | |
195 | | /* readonly attribute uint32_t type; */ |
196 | | NS_IMETHOD GetType(uint32_t *aType) = 0; |
197 | | |
198 | | }; |
199 | | |
200 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentActionResponse, NS_IPAYMENTACTIONRESPONSE_IID) |
201 | | |
202 | | /* Use this macro when declaring classes that implement this interface. */ |
203 | | #define NS_DECL_NSIPAYMENTACTIONRESPONSE \ |
204 | | NS_IMETHOD GetRequestId(nsAString& aRequestId) override; \ |
205 | | NS_IMETHOD GetType(uint32_t *aType) override; |
206 | | |
207 | | /* Use this macro when declaring the members of this interface when the |
208 | | class doesn't implement the interface. This is useful for forwarding. */ |
209 | | #define NS_DECL_NON_VIRTUAL_NSIPAYMENTACTIONRESPONSE \ |
210 | | nsresult GetRequestId(nsAString& aRequestId); \ |
211 | | nsresult GetType(uint32_t *aType); |
212 | | |
213 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
214 | | #define NS_FORWARD_NSIPAYMENTACTIONRESPONSE(_to) \ |
215 | 0 | NS_IMETHOD GetRequestId(nsAString& aRequestId) override { return _to GetRequestId(aRequestId); } \ Unexecuted instantiation: mozilla::dom::PaymentCanMakeActionResponse::GetRequestId(nsTSubstring<char16_t>&) Unexecuted instantiation: mozilla::dom::PaymentShowActionResponse::GetRequestId(nsTSubstring<char16_t>&) Unexecuted instantiation: mozilla::dom::PaymentAbortActionResponse::GetRequestId(nsTSubstring<char16_t>&) Unexecuted instantiation: mozilla::dom::PaymentCompleteActionResponse::GetRequestId(nsTSubstring<char16_t>&) |
216 | 0 | NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); } Unexecuted instantiation: mozilla::dom::PaymentCanMakeActionResponse::GetType(unsigned int*) Unexecuted instantiation: mozilla::dom::PaymentShowActionResponse::GetType(unsigned int*) Unexecuted instantiation: mozilla::dom::PaymentAbortActionResponse::GetType(unsigned int*) Unexecuted instantiation: mozilla::dom::PaymentCompleteActionResponse::GetType(unsigned int*) |
217 | | |
218 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
219 | | #define NS_FORWARD_SAFE_NSIPAYMENTACTIONRESPONSE(_to) \ |
220 | | NS_IMETHOD GetRequestId(nsAString& aRequestId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestId(aRequestId); } \ |
221 | | NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } |
222 | | |
223 | | |
224 | | /* starting interface: nsIPaymentCanMakeActionResponse */ |
225 | | #define NS_IPAYMENTCANMAKEACTIONRESPONSE_IID_STR "52fc3f9f-c0cb-4874-b3d4-ee4b6e9cbe9c" |
226 | | |
227 | | #define NS_IPAYMENTCANMAKEACTIONRESPONSE_IID \ |
228 | | {0x52fc3f9f, 0xc0cb, 0x4874, \ |
229 | | { 0xb3, 0xd4, 0xee, 0x4b, 0x6e, 0x9c, 0xbe, 0x9c }} |
230 | | |
231 | | class NS_NO_VTABLE nsIPaymentCanMakeActionResponse : public nsIPaymentActionResponse { |
232 | | public: |
233 | | |
234 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTCANMAKEACTIONRESPONSE_IID) |
235 | | |
236 | | /* readonly attribute bool result; */ |
237 | | NS_IMETHOD GetResult(bool *aResult) = 0; |
238 | | |
239 | | /* void init (in AString aRequestId, in bool aResult); */ |
240 | | NS_IMETHOD Init(const nsAString& aRequestId, bool aResult) = 0; |
241 | | |
242 | | }; |
243 | | |
244 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentCanMakeActionResponse, NS_IPAYMENTCANMAKEACTIONRESPONSE_IID) |
245 | | |
246 | | /* Use this macro when declaring classes that implement this interface. */ |
247 | | #define NS_DECL_NSIPAYMENTCANMAKEACTIONRESPONSE \ |
248 | | NS_IMETHOD GetResult(bool *aResult) override; \ |
249 | | NS_IMETHOD Init(const nsAString& aRequestId, bool aResult) override; |
250 | | |
251 | | /* Use this macro when declaring the members of this interface when the |
252 | | class doesn't implement the interface. This is useful for forwarding. */ |
253 | | #define NS_DECL_NON_VIRTUAL_NSIPAYMENTCANMAKEACTIONRESPONSE \ |
254 | | nsresult GetResult(bool *aResult); \ |
255 | | nsresult Init(const nsAString& aRequestId, bool aResult); |
256 | | |
257 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
258 | | #define NS_FORWARD_NSIPAYMENTCANMAKEACTIONRESPONSE(_to) \ |
259 | | NS_IMETHOD GetResult(bool *aResult) override { return _to GetResult(aResult); } \ |
260 | | NS_IMETHOD Init(const nsAString& aRequestId, bool aResult) override { return _to Init(aRequestId, aResult); } |
261 | | |
262 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
263 | | #define NS_FORWARD_SAFE_NSIPAYMENTCANMAKEACTIONRESPONSE(_to) \ |
264 | | NS_IMETHOD GetResult(bool *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \ |
265 | | NS_IMETHOD Init(const nsAString& aRequestId, bool aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aRequestId, aResult); } |
266 | | |
267 | | |
268 | | /* starting interface: nsIPaymentShowActionResponse */ |
269 | | #define NS_IPAYMENTSHOWACTIONRESPONSE_IID_STR "184385cb-2d35-4b99-a9a3-7c780bf66b9b" |
270 | | |
271 | | #define NS_IPAYMENTSHOWACTIONRESPONSE_IID \ |
272 | | {0x184385cb, 0x2d35, 0x4b99, \ |
273 | | { 0xa9, 0xa3, 0x7c, 0x78, 0x0b, 0xf6, 0x6b, 0x9b }} |
274 | | |
275 | | class NS_NO_VTABLE nsIPaymentShowActionResponse : public nsIPaymentActionResponse { |
276 | | public: |
277 | | |
278 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTSHOWACTIONRESPONSE_IID) |
279 | | |
280 | | /* readonly attribute uint32_t acceptStatus; */ |
281 | | NS_IMETHOD GetAcceptStatus(uint32_t *aAcceptStatus) = 0; |
282 | | |
283 | | /* readonly attribute AString methodName; */ |
284 | | NS_IMETHOD GetMethodName(nsAString& aMethodName) = 0; |
285 | | |
286 | | /* readonly attribute AString data; */ |
287 | | NS_IMETHOD GetData(nsAString& aData) = 0; |
288 | | |
289 | | /* readonly attribute AString payerName; */ |
290 | | NS_IMETHOD GetPayerName(nsAString& aPayerName) = 0; |
291 | | |
292 | | /* readonly attribute AString payerEmail; */ |
293 | | NS_IMETHOD GetPayerEmail(nsAString& aPayerEmail) = 0; |
294 | | |
295 | | /* readonly attribute AString payerPhone; */ |
296 | | NS_IMETHOD GetPayerPhone(nsAString& aPayerPhone) = 0; |
297 | | |
298 | | /* void init (in AString aRequestId, in uint32_t aAcceptStatus, in AString aMethodName, in nsIPaymentResponseData aData, in AString aPayerName, in AString aPayerEmail, in AString aPayerPhone); */ |
299 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aAcceptStatus, const nsAString& aMethodName, nsIPaymentResponseData *aData, const nsAString& aPayerName, const nsAString& aPayerEmail, const nsAString& aPayerPhone) = 0; |
300 | | |
301 | | }; |
302 | | |
303 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentShowActionResponse, NS_IPAYMENTSHOWACTIONRESPONSE_IID) |
304 | | |
305 | | /* Use this macro when declaring classes that implement this interface. */ |
306 | | #define NS_DECL_NSIPAYMENTSHOWACTIONRESPONSE \ |
307 | | NS_IMETHOD GetAcceptStatus(uint32_t *aAcceptStatus) override; \ |
308 | | NS_IMETHOD GetMethodName(nsAString& aMethodName) override; \ |
309 | | NS_IMETHOD GetData(nsAString& aData) override; \ |
310 | | NS_IMETHOD GetPayerName(nsAString& aPayerName) override; \ |
311 | | NS_IMETHOD GetPayerEmail(nsAString& aPayerEmail) override; \ |
312 | | NS_IMETHOD GetPayerPhone(nsAString& aPayerPhone) override; \ |
313 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aAcceptStatus, const nsAString& aMethodName, nsIPaymentResponseData *aData, const nsAString& aPayerName, const nsAString& aPayerEmail, const nsAString& aPayerPhone) override; |
314 | | |
315 | | /* Use this macro when declaring the members of this interface when the |
316 | | class doesn't implement the interface. This is useful for forwarding. */ |
317 | | #define NS_DECL_NON_VIRTUAL_NSIPAYMENTSHOWACTIONRESPONSE \ |
318 | | nsresult GetAcceptStatus(uint32_t *aAcceptStatus); \ |
319 | | nsresult GetMethodName(nsAString& aMethodName); \ |
320 | | nsresult GetData(nsAString& aData); \ |
321 | | nsresult GetPayerName(nsAString& aPayerName); \ |
322 | | nsresult GetPayerEmail(nsAString& aPayerEmail); \ |
323 | | nsresult GetPayerPhone(nsAString& aPayerPhone); \ |
324 | | nsresult Init(const nsAString& aRequestId, uint32_t aAcceptStatus, const nsAString& aMethodName, nsIPaymentResponseData *aData, const nsAString& aPayerName, const nsAString& aPayerEmail, const nsAString& aPayerPhone); |
325 | | |
326 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
327 | | #define NS_FORWARD_NSIPAYMENTSHOWACTIONRESPONSE(_to) \ |
328 | | NS_IMETHOD GetAcceptStatus(uint32_t *aAcceptStatus) override { return _to GetAcceptStatus(aAcceptStatus); } \ |
329 | | NS_IMETHOD GetMethodName(nsAString& aMethodName) override { return _to GetMethodName(aMethodName); } \ |
330 | | NS_IMETHOD GetData(nsAString& aData) override { return _to GetData(aData); } \ |
331 | | NS_IMETHOD GetPayerName(nsAString& aPayerName) override { return _to GetPayerName(aPayerName); } \ |
332 | | NS_IMETHOD GetPayerEmail(nsAString& aPayerEmail) override { return _to GetPayerEmail(aPayerEmail); } \ |
333 | | NS_IMETHOD GetPayerPhone(nsAString& aPayerPhone) override { return _to GetPayerPhone(aPayerPhone); } \ |
334 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aAcceptStatus, const nsAString& aMethodName, nsIPaymentResponseData *aData, const nsAString& aPayerName, const nsAString& aPayerEmail, const nsAString& aPayerPhone) override { return _to Init(aRequestId, aAcceptStatus, aMethodName, aData, aPayerName, aPayerEmail, aPayerPhone); } |
335 | | |
336 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
337 | | #define NS_FORWARD_SAFE_NSIPAYMENTSHOWACTIONRESPONSE(_to) \ |
338 | | NS_IMETHOD GetAcceptStatus(uint32_t *aAcceptStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAcceptStatus(aAcceptStatus); } \ |
339 | | NS_IMETHOD GetMethodName(nsAString& aMethodName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMethodName(aMethodName); } \ |
340 | | NS_IMETHOD GetData(nsAString& aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \ |
341 | | NS_IMETHOD GetPayerName(nsAString& aPayerName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPayerName(aPayerName); } \ |
342 | | NS_IMETHOD GetPayerEmail(nsAString& aPayerEmail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPayerEmail(aPayerEmail); } \ |
343 | | NS_IMETHOD GetPayerPhone(nsAString& aPayerPhone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPayerPhone(aPayerPhone); } \ |
344 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aAcceptStatus, const nsAString& aMethodName, nsIPaymentResponseData *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); } |
345 | | |
346 | | |
347 | | /* starting interface: nsIPaymentAbortActionResponse */ |
348 | | #define NS_IPAYMENTABORTACTIONRESPONSE_IID_STR "8c72bcdb-0c37-4786-a9e5-510afa2f8ede" |
349 | | |
350 | | #define NS_IPAYMENTABORTACTIONRESPONSE_IID \ |
351 | | {0x8c72bcdb, 0x0c37, 0x4786, \ |
352 | | { 0xa9, 0xe5, 0x51, 0x0a, 0xfa, 0x2f, 0x8e, 0xde }} |
353 | | |
354 | | class NS_NO_VTABLE nsIPaymentAbortActionResponse : public nsIPaymentActionResponse { |
355 | | public: |
356 | | |
357 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTABORTACTIONRESPONSE_IID) |
358 | | |
359 | | /* readonly attribute uint32_t abortStatus; */ |
360 | | NS_IMETHOD GetAbortStatus(uint32_t *aAbortStatus) = 0; |
361 | | |
362 | | /* void init (in AString aRequestId, in uint32_t aAbortStatus); */ |
363 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aAbortStatus) = 0; |
364 | | |
365 | | /* bool isSucceeded (); */ |
366 | | NS_IMETHOD IsSucceeded(bool *_retval) = 0; |
367 | | |
368 | | }; |
369 | | |
370 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentAbortActionResponse, NS_IPAYMENTABORTACTIONRESPONSE_IID) |
371 | | |
372 | | /* Use this macro when declaring classes that implement this interface. */ |
373 | | #define NS_DECL_NSIPAYMENTABORTACTIONRESPONSE \ |
374 | | NS_IMETHOD GetAbortStatus(uint32_t *aAbortStatus) override; \ |
375 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aAbortStatus) override; \ |
376 | | NS_IMETHOD IsSucceeded(bool *_retval) override; |
377 | | |
378 | | /* Use this macro when declaring the members of this interface when the |
379 | | class doesn't implement the interface. This is useful for forwarding. */ |
380 | | #define NS_DECL_NON_VIRTUAL_NSIPAYMENTABORTACTIONRESPONSE \ |
381 | | nsresult GetAbortStatus(uint32_t *aAbortStatus); \ |
382 | | nsresult Init(const nsAString& aRequestId, uint32_t aAbortStatus); \ |
383 | | nsresult IsSucceeded(bool *_retval); |
384 | | |
385 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
386 | | #define NS_FORWARD_NSIPAYMENTABORTACTIONRESPONSE(_to) \ |
387 | | NS_IMETHOD GetAbortStatus(uint32_t *aAbortStatus) override { return _to GetAbortStatus(aAbortStatus); } \ |
388 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aAbortStatus) override { return _to Init(aRequestId, aAbortStatus); } \ |
389 | | NS_IMETHOD IsSucceeded(bool *_retval) override { return _to IsSucceeded(_retval); } |
390 | | |
391 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
392 | | #define NS_FORWARD_SAFE_NSIPAYMENTABORTACTIONRESPONSE(_to) \ |
393 | | NS_IMETHOD GetAbortStatus(uint32_t *aAbortStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbortStatus(aAbortStatus); } \ |
394 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aAbortStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aRequestId, aAbortStatus); } \ |
395 | | NS_IMETHOD IsSucceeded(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSucceeded(_retval); } |
396 | | |
397 | | |
398 | | /* starting interface: nsIPaymentCompleteActionResponse */ |
399 | | #define NS_IPAYMENTCOMPLETEACTIONRESPONSE_IID_STR "62c01e69-9ca4-4060-99e4-b95f628c8e6d" |
400 | | |
401 | | #define NS_IPAYMENTCOMPLETEACTIONRESPONSE_IID \ |
402 | | {0x62c01e69, 0x9ca4, 0x4060, \ |
403 | | { 0x99, 0xe4, 0xb9, 0x5f, 0x62, 0x8c, 0x8e, 0x6d }} |
404 | | |
405 | | class NS_NO_VTABLE nsIPaymentCompleteActionResponse : public nsIPaymentActionResponse { |
406 | | public: |
407 | | |
408 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTCOMPLETEACTIONRESPONSE_IID) |
409 | | |
410 | | /* readonly attribute uint32_t completeStatus; */ |
411 | | NS_IMETHOD GetCompleteStatus(uint32_t *aCompleteStatus) = 0; |
412 | | |
413 | | /* void init (in AString aRequestId, in uint32_t aCompleteStatus); */ |
414 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aCompleteStatus) = 0; |
415 | | |
416 | | /* bool isCompleted (); */ |
417 | | NS_IMETHOD IsCompleted(bool *_retval) = 0; |
418 | | |
419 | | }; |
420 | | |
421 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentCompleteActionResponse, NS_IPAYMENTCOMPLETEACTIONRESPONSE_IID) |
422 | | |
423 | | /* Use this macro when declaring classes that implement this interface. */ |
424 | | #define NS_DECL_NSIPAYMENTCOMPLETEACTIONRESPONSE \ |
425 | | NS_IMETHOD GetCompleteStatus(uint32_t *aCompleteStatus) override; \ |
426 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aCompleteStatus) override; \ |
427 | | NS_IMETHOD IsCompleted(bool *_retval) override; |
428 | | |
429 | | /* Use this macro when declaring the members of this interface when the |
430 | | class doesn't implement the interface. This is useful for forwarding. */ |
431 | | #define NS_DECL_NON_VIRTUAL_NSIPAYMENTCOMPLETEACTIONRESPONSE \ |
432 | | nsresult GetCompleteStatus(uint32_t *aCompleteStatus); \ |
433 | | nsresult Init(const nsAString& aRequestId, uint32_t aCompleteStatus); \ |
434 | | nsresult IsCompleted(bool *_retval); |
435 | | |
436 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
437 | | #define NS_FORWARD_NSIPAYMENTCOMPLETEACTIONRESPONSE(_to) \ |
438 | | NS_IMETHOD GetCompleteStatus(uint32_t *aCompleteStatus) override { return _to GetCompleteStatus(aCompleteStatus); } \ |
439 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aCompleteStatus) override { return _to Init(aRequestId, aCompleteStatus); } \ |
440 | | NS_IMETHOD IsCompleted(bool *_retval) override { return _to IsCompleted(_retval); } |
441 | | |
442 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
443 | | #define NS_FORWARD_SAFE_NSIPAYMENTCOMPLETEACTIONRESPONSE(_to) \ |
444 | | NS_IMETHOD GetCompleteStatus(uint32_t *aCompleteStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompleteStatus(aCompleteStatus); } \ |
445 | | NS_IMETHOD Init(const nsAString& aRequestId, uint32_t aCompleteStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aRequestId, aCompleteStatus); } \ |
446 | | NS_IMETHOD IsCompleted(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCompleted(_retval); } |
447 | | |
448 | | #define NS_GENERAL_RESPONSE_DATA_CID \ |
449 | | { 0xb986773e, 0x2b30, 0x4ed2, { 0xb8, 0xfe, 0x6a, 0x96, 0x63, 0x1c, 0x80, 0x00 } } |
450 | | #define NS_GENERAL_RESPONSE_DATA_CONTRACT_ID \ |
451 | | "@mozilla.org/dom/payments/general-response-data;1" |
452 | | #define NS_BASICCARD_RESPONSE_DATA_CID \ |
453 | | { 0x0d55a5e6, 0xd185, 0x44f0, { 0xb9, 0x92, 0xa8, 0xe1, 0x32, 0x1e, 0x4b, 0xce } } |
454 | | #define NS_BASICCARD_RESPONSE_DATA_CONTRACT_ID \ |
455 | | "@mozilla.org/dom/payments/basiccard-response-data;1" |
456 | | #define NS_PAYMENT_CANMAKE_ACTION_RESPONSE_CID \ |
457 | | { 0x52fc3f9f, 0xc0cb, 0x4874, { 0xb3, 0xd4, 0xee, 0x4b, 0x6e, 0x9c, 0xbe, 0x9c } } |
458 | | #define NS_PAYMENT_CANMAKE_ACTION_RESPONSE_CONTRACT_ID \ |
459 | 0 | "@mozilla.org/dom/payments/payment-canmake-action-response;1" |
460 | | #define NS_PAYMENT_SHOW_ACTION_RESPONSE_CID \ |
461 | | { 0x184385cb, 0x2d35, 0x4b99, { 0xa9, 0xa3, 0x7c, 0x78, 0x0b, 0xf6, 0x6b, 0x9b } } |
462 | | #define NS_PAYMENT_SHOW_ACTION_RESPONSE_CONTRACT_ID \ |
463 | 0 | "@mozilla.org/dom/payments/payment-show-action-response;1" |
464 | | #define NS_PAYMENT_ABORT_ACTION_RESPONSE_CID \ |
465 | | { 0x8c72bcdb, 0x0c37, 0x4786, { 0xa9, 0xe5, 0x51, 0x0a, 0xfa, 0x2f, 0x8e, 0xde } } |
466 | | #define NS_PAYMENT_ABORT_ACTION_RESPONSE_CONTRACT_ID \ |
467 | | "@mozilla.org/dom/payments/payment-abort-action-response;1" |
468 | | #define NS_PAYMENT_COMPLETE_ACTION_RESPONSE_CID \ |
469 | | { 0x62c01e69, 0x9ca4, 0x4060, { 0x99, 0xe4, 0xb9, 0x5f, 0x62, 0x8c, 0x8e, 0x6d } } |
470 | | #define NS_PAYMENT_COMPLETE_ACTION_RESPONSE_CONTRACT_ID \ |
471 | | "@mozilla.org/dom/payments/payment-complete-action-response;1" |
472 | | |
473 | | #endif /* __gen_nsIPaymentActionResponse_h__ */ |