winrt-Windows.ApplicationModel.Calls.Background 2.0.0b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/PKG-INFO +22 -0
  2. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/README.md +7 -0
  3. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/all-requirements.txt +3 -0
  4. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/py.Windows.ApplicationModel.Calls.Background.cpp +892 -0
  5. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/pyproject.toml +43 -0
  6. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/pywinrt-version.txt +1 -0
  7. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/requirements.txt +3 -0
  8. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/setup.cfg +4 -0
  9. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/setup.py +17 -0
  10. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/winrt/_winrt_windows_applicationmodel_calls_background.pyi +78 -0
  11. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/winrt/windows/applicationmodel/calls/background/__init__.py +65 -0
  12. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Background.egg-info/PKG-INFO +22 -0
  13. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Background.egg-info/SOURCES.txt +14 -0
  14. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Background.egg-info/dependency_links.txt +1 -0
  15. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Background.egg-info/requires.txt +4 -0
  16. winrt-Windows.ApplicationModel.Calls.Background-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Background.egg-info/top_level.txt +1 -0
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.ApplicationModel.Calls.Background
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.ApplicationModel.Calls.Background
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Calls.Background` namespace.
21
+
22
+ This package provides the `winrt.windows.applicationmodel.calls.background` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.ApplicationModel.Calls.Background
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Calls.Background` namespace.
6
+
7
+ This package provides the `winrt.windows.applicationmodel.calls.background` module.
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-Windows.Foundation[all]==2.0.0-beta.1
@@ -0,0 +1,892 @@
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ #include "py.Windows.ApplicationModel.Calls.Background.h"
4
+
5
+
6
+ namespace py::cpp::Windows::ApplicationModel::Calls::Background
7
+ {
8
+ // ----- PhoneCallBlockedTriggerDetails class --------------------
9
+
10
+ static PyObject* _new_PhoneCallBlockedTriggerDetails(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
11
+ {
12
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails>::type_name);
13
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails>::type_name);
14
+ return nullptr;
15
+ }
16
+
17
+ static void _dealloc_PhoneCallBlockedTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self) noexcept
18
+ {
19
+ auto tp = Py_TYPE(self);
20
+ std::destroy_at(&self->obj);
21
+ tp->tp_free(self);
22
+ Py_DECREF(tp);
23
+ }
24
+
25
+ static PyObject* PhoneCallBlockedTriggerDetails_get_CallBlockedReason(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
26
+ {
27
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"CallBlockedReason"))
28
+ {
29
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
30
+ return nullptr;
31
+ }
32
+
33
+ try
34
+ {
35
+ return py::convert(self->obj.CallBlockedReason());
36
+ }
37
+ catch (...)
38
+ {
39
+ py::to_PyErr();
40
+ return nullptr;
41
+ }
42
+ }
43
+
44
+ static PyObject* PhoneCallBlockedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
45
+ {
46
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"LineId"))
47
+ {
48
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
49
+ return nullptr;
50
+ }
51
+
52
+ try
53
+ {
54
+ return py::convert(self->obj.LineId());
55
+ }
56
+ catch (...)
57
+ {
58
+ py::to_PyErr();
59
+ return nullptr;
60
+ }
61
+ }
62
+
63
+ static PyObject* PhoneCallBlockedTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
64
+ {
65
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"PhoneNumber"))
66
+ {
67
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
68
+ return nullptr;
69
+ }
70
+
71
+ try
72
+ {
73
+ return py::convert(self->obj.PhoneNumber());
74
+ }
75
+ catch (...)
76
+ {
77
+ py::to_PyErr();
78
+ return nullptr;
79
+ }
80
+ }
81
+
82
+ static PyObject* _assign_array_PhoneCallBlockedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
83
+ {
84
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails>>();
85
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
86
+ {
87
+ return nullptr;
88
+ }
89
+ Py_RETURN_NONE;
90
+ }
91
+
92
+ static PyObject* _from_PhoneCallBlockedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
93
+ {
94
+ try
95
+ {
96
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
97
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails>());
98
+ }
99
+ catch (...)
100
+ {
101
+ py::to_PyErr();
102
+ return nullptr;
103
+ }
104
+ }
105
+
106
+ static PyMethodDef _methods_PhoneCallBlockedTriggerDetails[] = {
107
+ { "_assign_array_", _assign_array_PhoneCallBlockedTriggerDetails, METH_O | METH_STATIC, nullptr },
108
+ { "_from", reinterpret_cast<PyCFunction>(_from_PhoneCallBlockedTriggerDetails), METH_O | METH_STATIC, nullptr },
109
+ { }
110
+ };
111
+
112
+ static PyGetSetDef _getset_PhoneCallBlockedTriggerDetails[] = {
113
+ { "call_blocked_reason", reinterpret_cast<getter>(PhoneCallBlockedTriggerDetails_get_CallBlockedReason), nullptr, nullptr, nullptr },
114
+ { "line_id", reinterpret_cast<getter>(PhoneCallBlockedTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
115
+ { "phone_number", reinterpret_cast<getter>(PhoneCallBlockedTriggerDetails_get_PhoneNumber), nullptr, nullptr, nullptr },
116
+ { }
117
+ };
118
+
119
+ static PyType_Slot _type_slots_PhoneCallBlockedTriggerDetails[] =
120
+ {
121
+ { Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallBlockedTriggerDetails) },
122
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneCallBlockedTriggerDetails) },
123
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallBlockedTriggerDetails) },
124
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallBlockedTriggerDetails) },
125
+ { },
126
+ };
127
+
128
+ static PyType_Spec type_spec_PhoneCallBlockedTriggerDetails =
129
+ {
130
+ "winrt._winrt_windows_applicationmodel_calls_background.PhoneCallBlockedTriggerDetails",
131
+ sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails),
132
+ 0,
133
+ Py_TPFLAGS_DEFAULT,
134
+ _type_slots_PhoneCallBlockedTriggerDetails
135
+ };
136
+
137
+ // ----- PhoneCallOriginDataRequestTriggerDetails class --------------------
138
+
139
+ static PyObject* _new_PhoneCallOriginDataRequestTriggerDetails(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
140
+ {
141
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails>::type_name);
142
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails>::type_name);
143
+ return nullptr;
144
+ }
145
+
146
+ static void _dealloc_PhoneCallOriginDataRequestTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails* self) noexcept
147
+ {
148
+ auto tp = Py_TYPE(self);
149
+ std::destroy_at(&self->obj);
150
+ tp->tp_free(self);
151
+ Py_DECREF(tp);
152
+ }
153
+
154
+ static PyObject* PhoneCallOriginDataRequestTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails* self, void* /*unused*/) noexcept
155
+ {
156
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails", L"PhoneNumber"))
157
+ {
158
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
159
+ return nullptr;
160
+ }
161
+
162
+ try
163
+ {
164
+ return py::convert(self->obj.PhoneNumber());
165
+ }
166
+ catch (...)
167
+ {
168
+ py::to_PyErr();
169
+ return nullptr;
170
+ }
171
+ }
172
+
173
+ static PyObject* PhoneCallOriginDataRequestTriggerDetails_get_RequestId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails* self, void* /*unused*/) noexcept
174
+ {
175
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails", L"RequestId"))
176
+ {
177
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
178
+ return nullptr;
179
+ }
180
+
181
+ try
182
+ {
183
+ return py::convert(self->obj.RequestId());
184
+ }
185
+ catch (...)
186
+ {
187
+ py::to_PyErr();
188
+ return nullptr;
189
+ }
190
+ }
191
+
192
+ static PyObject* _assign_array_PhoneCallOriginDataRequestTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
193
+ {
194
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails>>();
195
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
196
+ {
197
+ return nullptr;
198
+ }
199
+ Py_RETURN_NONE;
200
+ }
201
+
202
+ static PyObject* _from_PhoneCallOriginDataRequestTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
203
+ {
204
+ try
205
+ {
206
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
207
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails>());
208
+ }
209
+ catch (...)
210
+ {
211
+ py::to_PyErr();
212
+ return nullptr;
213
+ }
214
+ }
215
+
216
+ static PyMethodDef _methods_PhoneCallOriginDataRequestTriggerDetails[] = {
217
+ { "_assign_array_", _assign_array_PhoneCallOriginDataRequestTriggerDetails, METH_O | METH_STATIC, nullptr },
218
+ { "_from", reinterpret_cast<PyCFunction>(_from_PhoneCallOriginDataRequestTriggerDetails), METH_O | METH_STATIC, nullptr },
219
+ { }
220
+ };
221
+
222
+ static PyGetSetDef _getset_PhoneCallOriginDataRequestTriggerDetails[] = {
223
+ { "phone_number", reinterpret_cast<getter>(PhoneCallOriginDataRequestTriggerDetails_get_PhoneNumber), nullptr, nullptr, nullptr },
224
+ { "request_id", reinterpret_cast<getter>(PhoneCallOriginDataRequestTriggerDetails_get_RequestId), nullptr, nullptr, nullptr },
225
+ { }
226
+ };
227
+
228
+ static PyType_Slot _type_slots_PhoneCallOriginDataRequestTriggerDetails[] =
229
+ {
230
+ { Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOriginDataRequestTriggerDetails) },
231
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneCallOriginDataRequestTriggerDetails) },
232
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOriginDataRequestTriggerDetails) },
233
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOriginDataRequestTriggerDetails) },
234
+ { },
235
+ };
236
+
237
+ static PyType_Spec type_spec_PhoneCallOriginDataRequestTriggerDetails =
238
+ {
239
+ "winrt._winrt_windows_applicationmodel_calls_background.PhoneCallOriginDataRequestTriggerDetails",
240
+ sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails),
241
+ 0,
242
+ Py_TPFLAGS_DEFAULT,
243
+ _type_slots_PhoneCallOriginDataRequestTriggerDetails
244
+ };
245
+
246
+ // ----- PhoneIncomingCallDismissedTriggerDetails class --------------------
247
+
248
+ static PyObject* _new_PhoneIncomingCallDismissedTriggerDetails(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
249
+ {
250
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails>::type_name);
251
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails>::type_name);
252
+ return nullptr;
253
+ }
254
+
255
+ static void _dealloc_PhoneIncomingCallDismissedTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self) noexcept
256
+ {
257
+ auto tp = Py_TYPE(self);
258
+ std::destroy_at(&self->obj);
259
+ tp->tp_free(self);
260
+ Py_DECREF(tp);
261
+ }
262
+
263
+ static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_DismissalTime(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
264
+ {
265
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"DismissalTime"))
266
+ {
267
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
268
+ return nullptr;
269
+ }
270
+
271
+ try
272
+ {
273
+ return py::convert(self->obj.DismissalTime());
274
+ }
275
+ catch (...)
276
+ {
277
+ py::to_PyErr();
278
+ return nullptr;
279
+ }
280
+ }
281
+
282
+ static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
283
+ {
284
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"DisplayName"))
285
+ {
286
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
287
+ return nullptr;
288
+ }
289
+
290
+ try
291
+ {
292
+ return py::convert(self->obj.DisplayName());
293
+ }
294
+ catch (...)
295
+ {
296
+ py::to_PyErr();
297
+ return nullptr;
298
+ }
299
+ }
300
+
301
+ static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
302
+ {
303
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"LineId"))
304
+ {
305
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
306
+ return nullptr;
307
+ }
308
+
309
+ try
310
+ {
311
+ return py::convert(self->obj.LineId());
312
+ }
313
+ catch (...)
314
+ {
315
+ py::to_PyErr();
316
+ return nullptr;
317
+ }
318
+ }
319
+
320
+ static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
321
+ {
322
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"PhoneNumber"))
323
+ {
324
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
325
+ return nullptr;
326
+ }
327
+
328
+ try
329
+ {
330
+ return py::convert(self->obj.PhoneNumber());
331
+ }
332
+ catch (...)
333
+ {
334
+ py::to_PyErr();
335
+ return nullptr;
336
+ }
337
+ }
338
+
339
+ static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_Reason(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
340
+ {
341
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"Reason"))
342
+ {
343
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
344
+ return nullptr;
345
+ }
346
+
347
+ try
348
+ {
349
+ return py::convert(self->obj.Reason());
350
+ }
351
+ catch (...)
352
+ {
353
+ py::to_PyErr();
354
+ return nullptr;
355
+ }
356
+ }
357
+
358
+ static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_TextReplyMessage(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
359
+ {
360
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"TextReplyMessage"))
361
+ {
362
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
363
+ return nullptr;
364
+ }
365
+
366
+ try
367
+ {
368
+ return py::convert(self->obj.TextReplyMessage());
369
+ }
370
+ catch (...)
371
+ {
372
+ py::to_PyErr();
373
+ return nullptr;
374
+ }
375
+ }
376
+
377
+ static PyObject* _assign_array_PhoneIncomingCallDismissedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
378
+ {
379
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails>>();
380
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
381
+ {
382
+ return nullptr;
383
+ }
384
+ Py_RETURN_NONE;
385
+ }
386
+
387
+ static PyObject* _from_PhoneIncomingCallDismissedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
388
+ {
389
+ try
390
+ {
391
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
392
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails>());
393
+ }
394
+ catch (...)
395
+ {
396
+ py::to_PyErr();
397
+ return nullptr;
398
+ }
399
+ }
400
+
401
+ static PyMethodDef _methods_PhoneIncomingCallDismissedTriggerDetails[] = {
402
+ { "_assign_array_", _assign_array_PhoneIncomingCallDismissedTriggerDetails, METH_O | METH_STATIC, nullptr },
403
+ { "_from", reinterpret_cast<PyCFunction>(_from_PhoneIncomingCallDismissedTriggerDetails), METH_O | METH_STATIC, nullptr },
404
+ { }
405
+ };
406
+
407
+ static PyGetSetDef _getset_PhoneIncomingCallDismissedTriggerDetails[] = {
408
+ { "dismissal_time", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_DismissalTime), nullptr, nullptr, nullptr },
409
+ { "display_name", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_DisplayName), nullptr, nullptr, nullptr },
410
+ { "line_id", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
411
+ { "phone_number", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_PhoneNumber), nullptr, nullptr, nullptr },
412
+ { "reason", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_Reason), nullptr, nullptr, nullptr },
413
+ { "text_reply_message", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_TextReplyMessage), nullptr, nullptr, nullptr },
414
+ { }
415
+ };
416
+
417
+ static PyType_Slot _type_slots_PhoneIncomingCallDismissedTriggerDetails[] =
418
+ {
419
+ { Py_tp_new, reinterpret_cast<void*>(_new_PhoneIncomingCallDismissedTriggerDetails) },
420
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneIncomingCallDismissedTriggerDetails) },
421
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneIncomingCallDismissedTriggerDetails) },
422
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneIncomingCallDismissedTriggerDetails) },
423
+ { },
424
+ };
425
+
426
+ static PyType_Spec type_spec_PhoneIncomingCallDismissedTriggerDetails =
427
+ {
428
+ "winrt._winrt_windows_applicationmodel_calls_background.PhoneIncomingCallDismissedTriggerDetails",
429
+ sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails),
430
+ 0,
431
+ Py_TPFLAGS_DEFAULT,
432
+ _type_slots_PhoneIncomingCallDismissedTriggerDetails
433
+ };
434
+
435
+ // ----- PhoneIncomingCallNotificationTriggerDetails class --------------------
436
+
437
+ static PyObject* _new_PhoneIncomingCallNotificationTriggerDetails(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
438
+ {
439
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails>::type_name);
440
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails>::type_name);
441
+ return nullptr;
442
+ }
443
+
444
+ static void _dealloc_PhoneIncomingCallNotificationTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails* self) noexcept
445
+ {
446
+ auto tp = Py_TYPE(self);
447
+ std::destroy_at(&self->obj);
448
+ tp->tp_free(self);
449
+ Py_DECREF(tp);
450
+ }
451
+
452
+ static PyObject* PhoneIncomingCallNotificationTriggerDetails_get_CallId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails* self, void* /*unused*/) noexcept
453
+ {
454
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails", L"CallId"))
455
+ {
456
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
457
+ return nullptr;
458
+ }
459
+
460
+ try
461
+ {
462
+ return py::convert(self->obj.CallId());
463
+ }
464
+ catch (...)
465
+ {
466
+ py::to_PyErr();
467
+ return nullptr;
468
+ }
469
+ }
470
+
471
+ static PyObject* PhoneIncomingCallNotificationTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails* self, void* /*unused*/) noexcept
472
+ {
473
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails", L"LineId"))
474
+ {
475
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
476
+ return nullptr;
477
+ }
478
+
479
+ try
480
+ {
481
+ return py::convert(self->obj.LineId());
482
+ }
483
+ catch (...)
484
+ {
485
+ py::to_PyErr();
486
+ return nullptr;
487
+ }
488
+ }
489
+
490
+ static PyObject* _assign_array_PhoneIncomingCallNotificationTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
491
+ {
492
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails>>();
493
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
494
+ {
495
+ return nullptr;
496
+ }
497
+ Py_RETURN_NONE;
498
+ }
499
+
500
+ static PyObject* _from_PhoneIncomingCallNotificationTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
501
+ {
502
+ try
503
+ {
504
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
505
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails>());
506
+ }
507
+ catch (...)
508
+ {
509
+ py::to_PyErr();
510
+ return nullptr;
511
+ }
512
+ }
513
+
514
+ static PyMethodDef _methods_PhoneIncomingCallNotificationTriggerDetails[] = {
515
+ { "_assign_array_", _assign_array_PhoneIncomingCallNotificationTriggerDetails, METH_O | METH_STATIC, nullptr },
516
+ { "_from", reinterpret_cast<PyCFunction>(_from_PhoneIncomingCallNotificationTriggerDetails), METH_O | METH_STATIC, nullptr },
517
+ { }
518
+ };
519
+
520
+ static PyGetSetDef _getset_PhoneIncomingCallNotificationTriggerDetails[] = {
521
+ { "call_id", reinterpret_cast<getter>(PhoneIncomingCallNotificationTriggerDetails_get_CallId), nullptr, nullptr, nullptr },
522
+ { "line_id", reinterpret_cast<getter>(PhoneIncomingCallNotificationTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
523
+ { }
524
+ };
525
+
526
+ static PyType_Slot _type_slots_PhoneIncomingCallNotificationTriggerDetails[] =
527
+ {
528
+ { Py_tp_new, reinterpret_cast<void*>(_new_PhoneIncomingCallNotificationTriggerDetails) },
529
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneIncomingCallNotificationTriggerDetails) },
530
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneIncomingCallNotificationTriggerDetails) },
531
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneIncomingCallNotificationTriggerDetails) },
532
+ { },
533
+ };
534
+
535
+ static PyType_Spec type_spec_PhoneIncomingCallNotificationTriggerDetails =
536
+ {
537
+ "winrt._winrt_windows_applicationmodel_calls_background.PhoneIncomingCallNotificationTriggerDetails",
538
+ sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails),
539
+ 0,
540
+ Py_TPFLAGS_DEFAULT,
541
+ _type_slots_PhoneIncomingCallNotificationTriggerDetails
542
+ };
543
+
544
+ // ----- PhoneLineChangedTriggerDetails class --------------------
545
+
546
+ static PyObject* _new_PhoneLineChangedTriggerDetails(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
547
+ {
548
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails>::type_name);
549
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails>::type_name);
550
+ return nullptr;
551
+ }
552
+
553
+ static void _dealloc_PhoneLineChangedTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self) noexcept
554
+ {
555
+ auto tp = Py_TYPE(self);
556
+ std::destroy_at(&self->obj);
557
+ tp->tp_free(self);
558
+ Py_DECREF(tp);
559
+ }
560
+
561
+ static PyObject* PhoneLineChangedTriggerDetails_HasLinePropertyChanged(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self, PyObject* args) noexcept
562
+ {
563
+ auto arg_count = PyTuple_Size(args);
564
+
565
+ if (arg_count == 1)
566
+ {
567
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"HasLinePropertyChanged", 1))
568
+ {
569
+ py::set_arg_count_version_error(1);
570
+ return nullptr;
571
+ }
572
+
573
+ try
574
+ {
575
+ auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineProperties>(args, 0);
576
+
577
+ return py::convert(self->obj.HasLinePropertyChanged(param0));
578
+ }
579
+ catch (...)
580
+ {
581
+ py::to_PyErr();
582
+ return nullptr;
583
+ }
584
+ }
585
+ else
586
+ {
587
+ py::set_invalid_arg_count_error(arg_count);
588
+ return nullptr;
589
+ }
590
+ }
591
+
592
+ static PyObject* PhoneLineChangedTriggerDetails_get_ChangeType(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self, void* /*unused*/) noexcept
593
+ {
594
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"ChangeType"))
595
+ {
596
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
597
+ return nullptr;
598
+ }
599
+
600
+ try
601
+ {
602
+ return py::convert(self->obj.ChangeType());
603
+ }
604
+ catch (...)
605
+ {
606
+ py::to_PyErr();
607
+ return nullptr;
608
+ }
609
+ }
610
+
611
+ static PyObject* PhoneLineChangedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self, void* /*unused*/) noexcept
612
+ {
613
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"LineId"))
614
+ {
615
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
616
+ return nullptr;
617
+ }
618
+
619
+ try
620
+ {
621
+ return py::convert(self->obj.LineId());
622
+ }
623
+ catch (...)
624
+ {
625
+ py::to_PyErr();
626
+ return nullptr;
627
+ }
628
+ }
629
+
630
+ static PyObject* _assign_array_PhoneLineChangedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
631
+ {
632
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails>>();
633
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
634
+ {
635
+ return nullptr;
636
+ }
637
+ Py_RETURN_NONE;
638
+ }
639
+
640
+ static PyObject* _from_PhoneLineChangedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
641
+ {
642
+ try
643
+ {
644
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
645
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails>());
646
+ }
647
+ catch (...)
648
+ {
649
+ py::to_PyErr();
650
+ return nullptr;
651
+ }
652
+ }
653
+
654
+ static PyMethodDef _methods_PhoneLineChangedTriggerDetails[] = {
655
+ { "has_line_property_changed", reinterpret_cast<PyCFunction>(PhoneLineChangedTriggerDetails_HasLinePropertyChanged), METH_VARARGS, nullptr },
656
+ { "_assign_array_", _assign_array_PhoneLineChangedTriggerDetails, METH_O | METH_STATIC, nullptr },
657
+ { "_from", reinterpret_cast<PyCFunction>(_from_PhoneLineChangedTriggerDetails), METH_O | METH_STATIC, nullptr },
658
+ { }
659
+ };
660
+
661
+ static PyGetSetDef _getset_PhoneLineChangedTriggerDetails[] = {
662
+ { "change_type", reinterpret_cast<getter>(PhoneLineChangedTriggerDetails_get_ChangeType), nullptr, nullptr, nullptr },
663
+ { "line_id", reinterpret_cast<getter>(PhoneLineChangedTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
664
+ { }
665
+ };
666
+
667
+ static PyType_Slot _type_slots_PhoneLineChangedTriggerDetails[] =
668
+ {
669
+ { Py_tp_new, reinterpret_cast<void*>(_new_PhoneLineChangedTriggerDetails) },
670
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneLineChangedTriggerDetails) },
671
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneLineChangedTriggerDetails) },
672
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneLineChangedTriggerDetails) },
673
+ { },
674
+ };
675
+
676
+ static PyType_Spec type_spec_PhoneLineChangedTriggerDetails =
677
+ {
678
+ "winrt._winrt_windows_applicationmodel_calls_background.PhoneLineChangedTriggerDetails",
679
+ sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails),
680
+ 0,
681
+ Py_TPFLAGS_DEFAULT,
682
+ _type_slots_PhoneLineChangedTriggerDetails
683
+ };
684
+
685
+ // ----- PhoneNewVoicemailMessageTriggerDetails class --------------------
686
+
687
+ static PyObject* _new_PhoneNewVoicemailMessageTriggerDetails(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
688
+ {
689
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails>::type_name);
690
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails>::type_name);
691
+ return nullptr;
692
+ }
693
+
694
+ static void _dealloc_PhoneNewVoicemailMessageTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self) noexcept
695
+ {
696
+ auto tp = Py_TYPE(self);
697
+ std::destroy_at(&self->obj);
698
+ tp->tp_free(self);
699
+ Py_DECREF(tp);
700
+ }
701
+
702
+ static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
703
+ {
704
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"LineId"))
705
+ {
706
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
707
+ return nullptr;
708
+ }
709
+
710
+ try
711
+ {
712
+ return py::convert(self->obj.LineId());
713
+ }
714
+ catch (...)
715
+ {
716
+ py::to_PyErr();
717
+ return nullptr;
718
+ }
719
+ }
720
+
721
+ static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_OperatorMessage(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
722
+ {
723
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"OperatorMessage"))
724
+ {
725
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
726
+ return nullptr;
727
+ }
728
+
729
+ try
730
+ {
731
+ return py::convert(self->obj.OperatorMessage());
732
+ }
733
+ catch (...)
734
+ {
735
+ py::to_PyErr();
736
+ return nullptr;
737
+ }
738
+ }
739
+
740
+ static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_VoicemailCount(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
741
+ {
742
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"VoicemailCount"))
743
+ {
744
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
745
+ return nullptr;
746
+ }
747
+
748
+ try
749
+ {
750
+ return py::convert(self->obj.VoicemailCount());
751
+ }
752
+ catch (...)
753
+ {
754
+ py::to_PyErr();
755
+ return nullptr;
756
+ }
757
+ }
758
+
759
+ static PyObject* _assign_array_PhoneNewVoicemailMessageTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
760
+ {
761
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails>>();
762
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
763
+ {
764
+ return nullptr;
765
+ }
766
+ Py_RETURN_NONE;
767
+ }
768
+
769
+ static PyObject* _from_PhoneNewVoicemailMessageTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
770
+ {
771
+ try
772
+ {
773
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
774
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails>());
775
+ }
776
+ catch (...)
777
+ {
778
+ py::to_PyErr();
779
+ return nullptr;
780
+ }
781
+ }
782
+
783
+ static PyMethodDef _methods_PhoneNewVoicemailMessageTriggerDetails[] = {
784
+ { "_assign_array_", _assign_array_PhoneNewVoicemailMessageTriggerDetails, METH_O | METH_STATIC, nullptr },
785
+ { "_from", reinterpret_cast<PyCFunction>(_from_PhoneNewVoicemailMessageTriggerDetails), METH_O | METH_STATIC, nullptr },
786
+ { }
787
+ };
788
+
789
+ static PyGetSetDef _getset_PhoneNewVoicemailMessageTriggerDetails[] = {
790
+ { "line_id", reinterpret_cast<getter>(PhoneNewVoicemailMessageTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
791
+ { "operator_message", reinterpret_cast<getter>(PhoneNewVoicemailMessageTriggerDetails_get_OperatorMessage), nullptr, nullptr, nullptr },
792
+ { "voicemail_count", reinterpret_cast<getter>(PhoneNewVoicemailMessageTriggerDetails_get_VoicemailCount), nullptr, nullptr, nullptr },
793
+ { }
794
+ };
795
+
796
+ static PyType_Slot _type_slots_PhoneNewVoicemailMessageTriggerDetails[] =
797
+ {
798
+ { Py_tp_new, reinterpret_cast<void*>(_new_PhoneNewVoicemailMessageTriggerDetails) },
799
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneNewVoicemailMessageTriggerDetails) },
800
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneNewVoicemailMessageTriggerDetails) },
801
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneNewVoicemailMessageTriggerDetails) },
802
+ { },
803
+ };
804
+
805
+ static PyType_Spec type_spec_PhoneNewVoicemailMessageTriggerDetails =
806
+ {
807
+ "winrt._winrt_windows_applicationmodel_calls_background.PhoneNewVoicemailMessageTriggerDetails",
808
+ sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails),
809
+ 0,
810
+ Py_TPFLAGS_DEFAULT,
811
+ _type_slots_PhoneNewVoicemailMessageTriggerDetails
812
+ };
813
+
814
+ // ----- Windows.ApplicationModel.Calls.Background Initialization --------------------
815
+ PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Calls::Background");
816
+
817
+
818
+ static PyModuleDef module_def
819
+ = {PyModuleDef_HEAD_INIT,
820
+ "_winrt_windows_applicationmodel_calls_background",
821
+ module_doc,
822
+ 0,
823
+ nullptr,
824
+ nullptr,
825
+ nullptr,
826
+ nullptr,
827
+ nullptr};
828
+
829
+ } // py::cpp::Windows::ApplicationModel::Calls::Background
830
+
831
+ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_background(void) noexcept
832
+ {
833
+ using namespace py::cpp::Windows::ApplicationModel::Calls::Background;
834
+
835
+ if (py::import_winrt_runtime() == -1)
836
+ {
837
+ return nullptr;
838
+ }
839
+
840
+ py::pyobj_handle module{PyModule_Create(&module_def)};
841
+
842
+ if (!module)
843
+ {
844
+ return nullptr;
845
+ }
846
+
847
+ auto object_type = py::get_object_type();
848
+ if (!object_type)
849
+ {
850
+ return nullptr;
851
+ }
852
+
853
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
854
+
855
+ if (!object_bases)
856
+ {
857
+ return nullptr;
858
+ }
859
+
860
+ if (py::register_python_type(module.get(), &type_spec_PhoneCallBlockedTriggerDetails, object_bases.get(), nullptr) == -1)
861
+ {
862
+ return nullptr;
863
+ }
864
+
865
+ if (py::register_python_type(module.get(), &type_spec_PhoneCallOriginDataRequestTriggerDetails, object_bases.get(), nullptr) == -1)
866
+ {
867
+ return nullptr;
868
+ }
869
+
870
+ if (py::register_python_type(module.get(), &type_spec_PhoneIncomingCallDismissedTriggerDetails, object_bases.get(), nullptr) == -1)
871
+ {
872
+ return nullptr;
873
+ }
874
+
875
+ if (py::register_python_type(module.get(), &type_spec_PhoneIncomingCallNotificationTriggerDetails, object_bases.get(), nullptr) == -1)
876
+ {
877
+ return nullptr;
878
+ }
879
+
880
+ if (py::register_python_type(module.get(), &type_spec_PhoneLineChangedTriggerDetails, object_bases.get(), nullptr) == -1)
881
+ {
882
+ return nullptr;
883
+ }
884
+
885
+ if (py::register_python_type(module.get(), &type_spec_PhoneNewVoicemailMessageTriggerDetails, object_bases.get(), nullptr) == -1)
886
+ {
887
+ return nullptr;
888
+ }
889
+
890
+
891
+ return module.detach();
892
+ }
@@ -0,0 +1,43 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
5
+ build-backend = "setuptools.build_meta"
6
+
7
+ [project]
8
+ name = "winrt-Windows.ApplicationModel.Calls.Background"
9
+ description = "Python projection of Windows Runtime (WinRT) APIs"
10
+ readme = "README.md"
11
+ license = { text = "MIT" }
12
+ classifiers = [
13
+ "Operating System :: Microsoft :: Windows",
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: Python :: Implementation :: CPython",
16
+ "Intended Audience :: Developers",
17
+ ]
18
+ dynamic = ["version", "dependencies", "optional-dependencies"]
19
+ requires-python = ">=3.9,<3.13"
20
+
21
+ [project.urls]
22
+ # Homepage = "https://github.com/pywrint/pywrinrt"
23
+ # Documentation = "https://readthedocs.org"
24
+ Repository = "https://github.com/pywrint/pywrinrt"
25
+ Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
26
+
27
+ [tool.setuptools.dynamic]
28
+ version = { file = "pywinrt-version.txt" }
29
+ dependencies = { file = "requirements.txt" }
30
+ optional-dependencies.all = { file = "all-requirements.txt" }
31
+
32
+ [tool.cibuildwheel]
33
+ # use local winrt-sdk build dependency
34
+ environment = { PYTHONPATH="../winrt-sdk/src" }
35
+ # don't install winrt-sdk from PyPI
36
+ build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
37
+ # don't build for PyPy
38
+ skip = "pp*"
39
+ # suppress warnings about ARM64 testing
40
+ test-skip = "*-win_arm64"
41
+
42
+ [tool.cibuildwheel.windows]
43
+ archs = ["x86", "AMD64", "ARM64"]
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-runtime==2.0.0-beta.1
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,17 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from winrt_sdk import get_include_dirs
5
+
6
+ setup(
7
+ ext_modules=[
8
+ Extension(
9
+ "winrt._winrt_windows_applicationmodel_calls_background",
10
+ sources=["py.Windows.ApplicationModel.Calls.Background.cpp"],
11
+ include_dirs=get_include_dirs(),
12
+ extra_compile_args=["/std:c++20", "/permissive-"],
13
+ libraries=["windowsapp"],
14
+ )
15
+ ],
16
+ package_data={"winrt": ["*.pyi"]},
17
+ )
@@ -0,0 +1,78 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation
13
+
14
+ from winrt.windows.applicationmodel.calls.background import PhoneCallBlockedReason, PhoneIncomingCallDismissedReason, PhoneLineChangeKind, PhoneLineProperties, PhoneTriggerType
15
+
16
+ Self = typing.TypeVar('Self')
17
+
18
+ class PhoneCallBlockedTriggerDetails(winrt.system.Object):
19
+ @staticmethod
20
+ def _from(obj: winrt.system.Object, /) -> PhoneCallBlockedTriggerDetails: ...
21
+ @_property
22
+ def call_blocked_reason(self) -> PhoneCallBlockedReason: ...
23
+ @_property
24
+ def line_id(self) -> _uuid.UUID: ...
25
+ @_property
26
+ def phone_number(self) -> str: ...
27
+
28
+ class PhoneCallOriginDataRequestTriggerDetails(winrt.system.Object):
29
+ @staticmethod
30
+ def _from(obj: winrt.system.Object, /) -> PhoneCallOriginDataRequestTriggerDetails: ...
31
+ @_property
32
+ def phone_number(self) -> str: ...
33
+ @_property
34
+ def request_id(self) -> _uuid.UUID: ...
35
+
36
+ class PhoneIncomingCallDismissedTriggerDetails(winrt.system.Object):
37
+ @staticmethod
38
+ def _from(obj: winrt.system.Object, /) -> PhoneIncomingCallDismissedTriggerDetails: ...
39
+ @_property
40
+ def dismissal_time(self) -> datetime.datetime: ...
41
+ @_property
42
+ def display_name(self) -> str: ...
43
+ @_property
44
+ def line_id(self) -> _uuid.UUID: ...
45
+ @_property
46
+ def phone_number(self) -> str: ...
47
+ @_property
48
+ def reason(self) -> PhoneIncomingCallDismissedReason: ...
49
+ @_property
50
+ def text_reply_message(self) -> str: ...
51
+
52
+ class PhoneIncomingCallNotificationTriggerDetails(winrt.system.Object):
53
+ @staticmethod
54
+ def _from(obj: winrt.system.Object, /) -> PhoneIncomingCallNotificationTriggerDetails: ...
55
+ @_property
56
+ def call_id(self) -> str: ...
57
+ @_property
58
+ def line_id(self) -> _uuid.UUID: ...
59
+
60
+ class PhoneLineChangedTriggerDetails(winrt.system.Object):
61
+ @staticmethod
62
+ def _from(obj: winrt.system.Object, /) -> PhoneLineChangedTriggerDetails: ...
63
+ def has_line_property_changed(self, line_property: PhoneLineProperties, /) -> bool: ...
64
+ @_property
65
+ def change_type(self) -> PhoneLineChangeKind: ...
66
+ @_property
67
+ def line_id(self) -> _uuid.UUID: ...
68
+
69
+ class PhoneNewVoicemailMessageTriggerDetails(winrt.system.Object):
70
+ @staticmethod
71
+ def _from(obj: winrt.system.Object, /) -> PhoneNewVoicemailMessageTriggerDetails: ...
72
+ @_property
73
+ def line_id(self) -> _uuid.UUID: ...
74
+ @_property
75
+ def operator_message(self) -> str: ...
76
+ @_property
77
+ def voicemail_count(self) -> winrt.system.Int32: ...
78
+
@@ -0,0 +1,65 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_applicationmodel_calls_background
7
+
8
+ __all__ = [
9
+ "PhoneCallBlockedReason",
10
+ "PhoneIncomingCallDismissedReason",
11
+ "PhoneLineChangeKind",
12
+ "PhoneLineProperties",
13
+ "PhoneTriggerType",
14
+ "PhoneCallBlockedTriggerDetails",
15
+ "PhoneCallOriginDataRequestTriggerDetails",
16
+ "PhoneIncomingCallDismissedTriggerDetails",
17
+ "PhoneIncomingCallNotificationTriggerDetails",
18
+ "PhoneLineChangedTriggerDetails",
19
+ "PhoneNewVoicemailMessageTriggerDetails",
20
+ ]
21
+
22
+ class PhoneCallBlockedReason(enum.IntEnum):
23
+ IN_CALL_BLOCKING_LIST = 0
24
+ PRIVATE_NUMBER = 1
25
+ UNKNOWN_NUMBER = 2
26
+
27
+ class PhoneIncomingCallDismissedReason(enum.IntEnum):
28
+ UNKNOWN = 0
29
+ CALL_REJECTED = 1
30
+ TEXT_REPLY = 2
31
+ CONNECTION_LOST = 3
32
+
33
+ class PhoneLineChangeKind(enum.IntEnum):
34
+ ADDED = 0
35
+ REMOVED = 1
36
+ PROPERTIES_CHANGED = 2
37
+
38
+ class PhoneLineProperties(enum.IntFlag):
39
+ NONE = 0
40
+ BRANDING_OPTIONS = 0x1
41
+ CAN_DIAL = 0x2
42
+ CELLULAR_DETAILS = 0x4
43
+ DISPLAY_COLOR = 0x8
44
+ DISPLAY_NAME = 0x10
45
+ NETWORK_NAME = 0x20
46
+ NETWORK_STATE = 0x40
47
+ TRANSPORT = 0x80
48
+ VOICEMAIL = 0x100
49
+
50
+ class PhoneTriggerType(enum.IntEnum):
51
+ NEW_VOICEMAIL_MESSAGE = 0
52
+ CALL_HISTORY_CHANGED = 1
53
+ LINE_CHANGED = 2
54
+ AIRPLANE_MODE_DISABLED_FOR_EMERGENCY_CALL = 3
55
+ CALL_ORIGIN_DATA_REQUEST = 4
56
+ CALL_BLOCKED = 5
57
+ INCOMING_CALL_DISMISSED = 6
58
+ INCOMING_CALL_NOTIFICATION = 7
59
+
60
+ PhoneCallBlockedTriggerDetails = _winrt_windows_applicationmodel_calls_background.PhoneCallBlockedTriggerDetails
61
+ PhoneCallOriginDataRequestTriggerDetails = _winrt_windows_applicationmodel_calls_background.PhoneCallOriginDataRequestTriggerDetails
62
+ PhoneIncomingCallDismissedTriggerDetails = _winrt_windows_applicationmodel_calls_background.PhoneIncomingCallDismissedTriggerDetails
63
+ PhoneIncomingCallNotificationTriggerDetails = _winrt_windows_applicationmodel_calls_background.PhoneIncomingCallNotificationTriggerDetails
64
+ PhoneLineChangedTriggerDetails = _winrt_windows_applicationmodel_calls_background.PhoneLineChangedTriggerDetails
65
+ PhoneNewVoicemailMessageTriggerDetails = _winrt_windows_applicationmodel_calls_background.PhoneNewVoicemailMessageTriggerDetails
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.ApplicationModel.Calls.Background
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.ApplicationModel.Calls.Background
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Calls.Background` namespace.
21
+
22
+ This package provides the `winrt.windows.applicationmodel.calls.background` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.ApplicationModel.Calls.Background.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_applicationmodel_calls_background.pyi
9
+ winrt/windows/applicationmodel/calls/background/__init__.py
10
+ winrt_Windows.ApplicationModel.Calls.Background.egg-info/PKG-INFO
11
+ winrt_Windows.ApplicationModel.Calls.Background.egg-info/SOURCES.txt
12
+ winrt_Windows.ApplicationModel.Calls.Background.egg-info/dependency_links.txt
13
+ winrt_Windows.ApplicationModel.Calls.Background.egg-info/requires.txt
14
+ winrt_Windows.ApplicationModel.Calls.Background.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.0.0-beta.1
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.0.0-beta.1