winrt-Windows.ApplicationModel.Calls.Provider 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.Provider-2.0.0b1/PKG-INFO +22 -0
  2. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/README.md +7 -0
  3. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/all-requirements.txt +4 -0
  4. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/py.Windows.ApplicationModel.Calls.Provider.cpp +597 -0
  5. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/pyproject.toml +43 -0
  6. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/pywinrt-version.txt +1 -0
  7. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/requirements.txt +3 -0
  8. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/setup.cfg +4 -0
  9. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/setup.py +17 -0
  10. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/winrt/_winrt_windows_applicationmodel_calls_provider.pyi +54 -0
  11. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/winrt/windows/applicationmodel/calls/provider/__init__.py +12 -0
  12. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/PKG-INFO +22 -0
  13. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/SOURCES.txt +14 -0
  14. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/dependency_links.txt +1 -0
  15. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/requires.txt +5 -0
  16. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/top_level.txt +1 -0
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.ApplicationModel.Calls.Provider
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.Provider
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Calls.Provider` namespace.
21
+
22
+ This package provides the `winrt.windows.applicationmodel.calls.provider` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.ApplicationModel.Calls.Provider
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Calls.Provider` namespace.
6
+
7
+ This package provides the `winrt.windows.applicationmodel.calls.provider` module.
@@ -0,0 +1,4 @@
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
4
+ winrt-Windows.Storage[all]==2.0.0-beta.1
@@ -0,0 +1,597 @@
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.Provider.h"
4
+
5
+
6
+ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
7
+ {
8
+ // ----- PhoneCallOrigin class --------------------
9
+
10
+ static PyObject* _new_PhoneCallOrigin(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
11
+ {
12
+ if (kwds != nullptr)
13
+ {
14
+ py::set_invalid_kwd_args_error();
15
+ return nullptr;
16
+ }
17
+
18
+ auto arg_count = PyTuple_Size(args);
19
+ if (arg_count == 0)
20
+ {
21
+ try
22
+ {
23
+ winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin instance{ };
24
+ return py::wrap(instance, type);
25
+ }
26
+ catch (...)
27
+ {
28
+ py::to_PyErr();
29
+ return nullptr;
30
+ }
31
+ }
32
+ else
33
+ {
34
+ py::set_invalid_arg_count_error(arg_count);
35
+ return nullptr;
36
+ }
37
+ }
38
+
39
+ static void _dealloc_PhoneCallOrigin(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self) noexcept
40
+ {
41
+ auto tp = Py_TYPE(self);
42
+ std::destroy_at(&self->obj);
43
+ tp->tp_free(self);
44
+ Py_DECREF(tp);
45
+ }
46
+
47
+ static PyObject* PhoneCallOrigin_get_Location(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
48
+ {
49
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Location"))
50
+ {
51
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
52
+ return nullptr;
53
+ }
54
+
55
+ try
56
+ {
57
+ return py::convert(self->obj.Location());
58
+ }
59
+ catch (...)
60
+ {
61
+ py::to_PyErr();
62
+ return nullptr;
63
+ }
64
+ }
65
+
66
+ static int PhoneCallOrigin_put_Location(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
67
+ {
68
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Location"))
69
+ {
70
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
71
+ return -1;
72
+ }
73
+
74
+ if (arg == nullptr)
75
+ {
76
+ PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
77
+ return -1;
78
+ }
79
+
80
+ try
81
+ {
82
+ auto param0 = py::convert_to<winrt::hstring>(arg);
83
+
84
+ self->obj.Location(param0);
85
+ return 0;
86
+ }
87
+ catch (...)
88
+ {
89
+ py::to_PyErr();
90
+ return -1;
91
+ }
92
+ }
93
+
94
+ static PyObject* PhoneCallOrigin_get_CategoryDescription(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
95
+ {
96
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"CategoryDescription"))
97
+ {
98
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
99
+ return nullptr;
100
+ }
101
+
102
+ try
103
+ {
104
+ return py::convert(self->obj.CategoryDescription());
105
+ }
106
+ catch (...)
107
+ {
108
+ py::to_PyErr();
109
+ return nullptr;
110
+ }
111
+ }
112
+
113
+ static int PhoneCallOrigin_put_CategoryDescription(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
114
+ {
115
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"CategoryDescription"))
116
+ {
117
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
118
+ return -1;
119
+ }
120
+
121
+ if (arg == nullptr)
122
+ {
123
+ PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
124
+ return -1;
125
+ }
126
+
127
+ try
128
+ {
129
+ auto param0 = py::convert_to<winrt::hstring>(arg);
130
+
131
+ self->obj.CategoryDescription(param0);
132
+ return 0;
133
+ }
134
+ catch (...)
135
+ {
136
+ py::to_PyErr();
137
+ return -1;
138
+ }
139
+ }
140
+
141
+ static PyObject* PhoneCallOrigin_get_Category(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
142
+ {
143
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Category"))
144
+ {
145
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
146
+ return nullptr;
147
+ }
148
+
149
+ try
150
+ {
151
+ return py::convert(self->obj.Category());
152
+ }
153
+ catch (...)
154
+ {
155
+ py::to_PyErr();
156
+ return nullptr;
157
+ }
158
+ }
159
+
160
+ static int PhoneCallOrigin_put_Category(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
161
+ {
162
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Category"))
163
+ {
164
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
165
+ return -1;
166
+ }
167
+
168
+ if (arg == nullptr)
169
+ {
170
+ PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
171
+ return -1;
172
+ }
173
+
174
+ try
175
+ {
176
+ auto param0 = py::convert_to<winrt::hstring>(arg);
177
+
178
+ self->obj.Category(param0);
179
+ return 0;
180
+ }
181
+ catch (...)
182
+ {
183
+ py::to_PyErr();
184
+ return -1;
185
+ }
186
+ }
187
+
188
+ static PyObject* PhoneCallOrigin_get_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
189
+ {
190
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayName"))
191
+ {
192
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
193
+ return nullptr;
194
+ }
195
+
196
+ try
197
+ {
198
+ return py::convert(self->obj.DisplayName());
199
+ }
200
+ catch (...)
201
+ {
202
+ py::to_PyErr();
203
+ return nullptr;
204
+ }
205
+ }
206
+
207
+ static int PhoneCallOrigin_put_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
208
+ {
209
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayName"))
210
+ {
211
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
212
+ return -1;
213
+ }
214
+
215
+ if (arg == nullptr)
216
+ {
217
+ PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
218
+ return -1;
219
+ }
220
+
221
+ try
222
+ {
223
+ auto param0 = py::convert_to<winrt::hstring>(arg);
224
+
225
+ self->obj.DisplayName(param0);
226
+ return 0;
227
+ }
228
+ catch (...)
229
+ {
230
+ py::to_PyErr();
231
+ return -1;
232
+ }
233
+ }
234
+
235
+ static PyObject* PhoneCallOrigin_get_DisplayPicture(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
236
+ {
237
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayPicture"))
238
+ {
239
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
240
+ return nullptr;
241
+ }
242
+
243
+ try
244
+ {
245
+ return py::convert(self->obj.DisplayPicture());
246
+ }
247
+ catch (...)
248
+ {
249
+ py::to_PyErr();
250
+ return nullptr;
251
+ }
252
+ }
253
+
254
+ static int PhoneCallOrigin_put_DisplayPicture(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
255
+ {
256
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayPicture"))
257
+ {
258
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
259
+ return -1;
260
+ }
261
+
262
+ if (arg == nullptr)
263
+ {
264
+ PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
265
+ return -1;
266
+ }
267
+
268
+ try
269
+ {
270
+ auto param0 = py::convert_to<winrt::Windows::Storage::StorageFile>(arg);
271
+
272
+ self->obj.DisplayPicture(param0);
273
+ return 0;
274
+ }
275
+ catch (...)
276
+ {
277
+ py::to_PyErr();
278
+ return -1;
279
+ }
280
+ }
281
+
282
+ static PyObject* _assign_array_PhoneCallOrigin(PyObject* /*unused*/, PyObject* arg) noexcept
283
+ {
284
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin>>();
285
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
286
+ {
287
+ return nullptr;
288
+ }
289
+ Py_RETURN_NONE;
290
+ }
291
+
292
+ static PyObject* _from_PhoneCallOrigin(PyObject* /*unused*/, PyObject* arg) noexcept
293
+ {
294
+ try
295
+ {
296
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
297
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin>());
298
+ }
299
+ catch (...)
300
+ {
301
+ py::to_PyErr();
302
+ return nullptr;
303
+ }
304
+ }
305
+
306
+ static PyMethodDef _methods_PhoneCallOrigin[] = {
307
+ { "_assign_array_", _assign_array_PhoneCallOrigin, METH_O | METH_STATIC, nullptr },
308
+ { "_from", reinterpret_cast<PyCFunction>(_from_PhoneCallOrigin), METH_O | METH_STATIC, nullptr },
309
+ { }
310
+ };
311
+
312
+ static PyGetSetDef _getset_PhoneCallOrigin[] = {
313
+ { "location", reinterpret_cast<getter>(PhoneCallOrigin_get_Location), reinterpret_cast<setter>(PhoneCallOrigin_put_Location), nullptr, nullptr },
314
+ { "category_description", reinterpret_cast<getter>(PhoneCallOrigin_get_CategoryDescription), reinterpret_cast<setter>(PhoneCallOrigin_put_CategoryDescription), nullptr, nullptr },
315
+ { "category", reinterpret_cast<getter>(PhoneCallOrigin_get_Category), reinterpret_cast<setter>(PhoneCallOrigin_put_Category), nullptr, nullptr },
316
+ { "display_name", reinterpret_cast<getter>(PhoneCallOrigin_get_DisplayName), reinterpret_cast<setter>(PhoneCallOrigin_put_DisplayName), nullptr, nullptr },
317
+ { "display_picture", reinterpret_cast<getter>(PhoneCallOrigin_get_DisplayPicture), reinterpret_cast<setter>(PhoneCallOrigin_put_DisplayPicture), nullptr, nullptr },
318
+ { }
319
+ };
320
+
321
+ static PyType_Slot _type_slots_PhoneCallOrigin[] =
322
+ {
323
+ { Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOrigin) },
324
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneCallOrigin) },
325
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOrigin) },
326
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOrigin) },
327
+ { },
328
+ };
329
+
330
+ static PyType_Spec type_spec_PhoneCallOrigin =
331
+ {
332
+ "winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOrigin",
333
+ sizeof(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin),
334
+ 0,
335
+ Py_TPFLAGS_DEFAULT,
336
+ _type_slots_PhoneCallOrigin
337
+ };
338
+
339
+ // ----- PhoneCallOriginManager class --------------------
340
+
341
+ static PyObject* _new_PhoneCallOriginManager(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
342
+ {
343
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager>::type_name);
344
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager>::type_name);
345
+ return nullptr;
346
+ }
347
+
348
+ static PyObject* PhoneCallOriginManager_RequestSetAsActiveCallOriginAppAsync(PyObject* /*unused*/, PyObject* args) noexcept
349
+ {
350
+ auto arg_count = PyTuple_Size(args);
351
+
352
+ if (arg_count == 0)
353
+ {
354
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"RequestSetAsActiveCallOriginAppAsync", 0))
355
+ {
356
+ py::set_arg_count_version_error(0);
357
+ return nullptr;
358
+ }
359
+
360
+ try
361
+ {
362
+ return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::RequestSetAsActiveCallOriginAppAsync());
363
+ }
364
+ catch (...)
365
+ {
366
+ py::to_PyErr();
367
+ return nullptr;
368
+ }
369
+ }
370
+ else
371
+ {
372
+ py::set_invalid_arg_count_error(arg_count);
373
+ return nullptr;
374
+ }
375
+ }
376
+
377
+ static PyObject* PhoneCallOriginManager_SetCallOrigin(PyObject* /*unused*/, PyObject* args) noexcept
378
+ {
379
+ auto arg_count = PyTuple_Size(args);
380
+
381
+ if (arg_count == 2)
382
+ {
383
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"SetCallOrigin", 2))
384
+ {
385
+ py::set_arg_count_version_error(2);
386
+ return nullptr;
387
+ }
388
+
389
+ try
390
+ {
391
+ auto param0 = py::convert_to<winrt::guid>(args, 0);
392
+ auto param1 = py::convert_to<winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin>(args, 1);
393
+
394
+ winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::SetCallOrigin(param0, param1);
395
+ Py_RETURN_NONE;
396
+ }
397
+ catch (...)
398
+ {
399
+ py::to_PyErr();
400
+ return nullptr;
401
+ }
402
+ }
403
+ else
404
+ {
405
+ py::set_invalid_arg_count_error(arg_count);
406
+ return nullptr;
407
+ }
408
+ }
409
+
410
+ static PyObject* PhoneCallOriginManager_ShowPhoneCallOriginSettingsUI(PyObject* /*unused*/, PyObject* args) noexcept
411
+ {
412
+ auto arg_count = PyTuple_Size(args);
413
+
414
+ if (arg_count == 0)
415
+ {
416
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"ShowPhoneCallOriginSettingsUI", 0))
417
+ {
418
+ py::set_arg_count_version_error(0);
419
+ return nullptr;
420
+ }
421
+
422
+ try
423
+ {
424
+ winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::ShowPhoneCallOriginSettingsUI();
425
+ Py_RETURN_NONE;
426
+ }
427
+ catch (...)
428
+ {
429
+ py::to_PyErr();
430
+ return nullptr;
431
+ }
432
+ }
433
+ else
434
+ {
435
+ py::set_invalid_arg_count_error(arg_count);
436
+ return nullptr;
437
+ }
438
+ }
439
+
440
+ static PyObject* PhoneCallOriginManager_get_IsCurrentAppActiveCallOriginApp(PyObject* /*unused*/, void* /*unused*/) noexcept
441
+ {
442
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"IsCurrentAppActiveCallOriginApp"))
443
+ {
444
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
445
+ return nullptr;
446
+ }
447
+
448
+ try
449
+ {
450
+ return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::IsCurrentAppActiveCallOriginApp());
451
+ }
452
+ catch (...)
453
+ {
454
+ py::to_PyErr();
455
+ return nullptr;
456
+ }
457
+ }
458
+
459
+ static PyObject* PhoneCallOriginManager_get_IsSupported(PyObject* /*unused*/, void* /*unused*/) noexcept
460
+ {
461
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"IsSupported"))
462
+ {
463
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
464
+ return nullptr;
465
+ }
466
+
467
+ try
468
+ {
469
+ return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::IsSupported());
470
+ }
471
+ catch (...)
472
+ {
473
+ py::to_PyErr();
474
+ return nullptr;
475
+ }
476
+ }
477
+
478
+ static PyMethodDef _methods_PhoneCallOriginManager[] = {
479
+ { }
480
+ };
481
+
482
+ static PyGetSetDef _getset_PhoneCallOriginManager[] = {
483
+ { }
484
+ };
485
+
486
+ static PyType_Slot _type_slots_PhoneCallOriginManager[] =
487
+ {
488
+ { Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOriginManager) },
489
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOriginManager) },
490
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOriginManager) },
491
+ { },
492
+ };
493
+
494
+ static PyType_Spec type_spec_PhoneCallOriginManager =
495
+ {
496
+ "winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOriginManager",
497
+ 0,
498
+ 0,
499
+ Py_TPFLAGS_DEFAULT,
500
+ _type_slots_PhoneCallOriginManager
501
+ };
502
+
503
+ static PyGetSetDef getset_PhoneCallOriginManager_Static[] = {
504
+ { "is_current_app_active_call_origin_app", reinterpret_cast<getter>(PhoneCallOriginManager_get_IsCurrentAppActiveCallOriginApp), nullptr, nullptr, nullptr },
505
+ { "is_supported", reinterpret_cast<getter>(PhoneCallOriginManager_get_IsSupported), nullptr, nullptr, nullptr },
506
+ { }
507
+ };
508
+
509
+ static PyMethodDef methods_PhoneCallOriginManager_Static[] = {
510
+ { "request_set_as_active_call_origin_app_async", reinterpret_cast<PyCFunction>(PhoneCallOriginManager_RequestSetAsActiveCallOriginAppAsync), METH_VARARGS, nullptr },
511
+ { "set_call_origin", reinterpret_cast<PyCFunction>(PhoneCallOriginManager_SetCallOrigin), METH_VARARGS, nullptr },
512
+ { "show_phone_call_origin_settings_u_i", reinterpret_cast<PyCFunction>(PhoneCallOriginManager_ShowPhoneCallOriginSettingsUI), METH_VARARGS, nullptr },
513
+ { }
514
+ };
515
+
516
+ static PyType_Slot type_slots_PhoneCallOriginManager_Static[] =
517
+ {
518
+ { Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
519
+ { Py_tp_getset, reinterpret_cast<void*>(getset_PhoneCallOriginManager_Static) },
520
+ { Py_tp_methods, reinterpret_cast<void*>(methods_PhoneCallOriginManager_Static) },
521
+ { }
522
+ };
523
+
524
+ static PyType_Spec type_spec_PhoneCallOriginManager_Static =
525
+ {
526
+ "winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOriginManager_Static",
527
+ static_cast<int>(PyType_Type.tp_basicsize),
528
+ static_cast<int>(PyType_Type.tp_itemsize),
529
+ Py_TPFLAGS_DEFAULT,
530
+ type_slots_PhoneCallOriginManager_Static
531
+ };
532
+
533
+ // ----- Windows.ApplicationModel.Calls.Provider Initialization --------------------
534
+ PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Calls::Provider");
535
+
536
+
537
+ static PyModuleDef module_def
538
+ = {PyModuleDef_HEAD_INIT,
539
+ "_winrt_windows_applicationmodel_calls_provider",
540
+ module_doc,
541
+ 0,
542
+ nullptr,
543
+ nullptr,
544
+ nullptr,
545
+ nullptr,
546
+ nullptr};
547
+
548
+ } // py::cpp::Windows::ApplicationModel::Calls::Provider
549
+
550
+ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_provider(void) noexcept
551
+ {
552
+ using namespace py::cpp::Windows::ApplicationModel::Calls::Provider;
553
+
554
+ if (py::import_winrt_runtime() == -1)
555
+ {
556
+ return nullptr;
557
+ }
558
+
559
+ py::pyobj_handle module{PyModule_Create(&module_def)};
560
+
561
+ if (!module)
562
+ {
563
+ return nullptr;
564
+ }
565
+
566
+ auto object_type = py::get_object_type();
567
+ if (!object_type)
568
+ {
569
+ return nullptr;
570
+ }
571
+
572
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
573
+
574
+ if (!object_bases)
575
+ {
576
+ return nullptr;
577
+ }
578
+
579
+ if (py::register_python_type(module.get(), &type_spec_PhoneCallOrigin, object_bases.get(), nullptr) == -1)
580
+ {
581
+ return nullptr;
582
+ }
583
+
584
+ py::pyobj_handle type_PhoneCallOriginManager_Static{PyType_FromSpec(&type_spec_PhoneCallOriginManager_Static)};
585
+ if (!type_PhoneCallOriginManager_Static)
586
+ {
587
+ return nullptr;
588
+ }
589
+
590
+ if (py::register_python_type(module.get(), &type_spec_PhoneCallOriginManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PhoneCallOriginManager_Static.get())) == -1)
591
+ {
592
+ return nullptr;
593
+ }
594
+
595
+
596
+ return module.detach();
597
+ }
@@ -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.Provider"
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_provider",
10
+ sources=["py.Windows.ApplicationModel.Calls.Provider.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,54 @@
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
+ import winrt.windows.storage
14
+
15
+ Self = typing.TypeVar('Self')
16
+
17
+ class PhoneCallOrigin(winrt.system.Object):
18
+ @staticmethod
19
+ def _from(obj: winrt.system.Object, /) -> PhoneCallOrigin: ...
20
+ def __new__(cls: typing.Type[PhoneCallOrigin]) -> PhoneCallOrigin:...
21
+ @_property
22
+ def location(self) -> str: ...
23
+ @location.setter
24
+ def location(self, value: str) -> None: ...
25
+ @_property
26
+ def category_description(self) -> str: ...
27
+ @category_description.setter
28
+ def category_description(self, value: str) -> None: ...
29
+ @_property
30
+ def category(self) -> str: ...
31
+ @category.setter
32
+ def category(self, value: str) -> None: ...
33
+ @_property
34
+ def display_name(self) -> str: ...
35
+ @display_name.setter
36
+ def display_name(self, value: str) -> None: ...
37
+ @_property
38
+ def display_picture(self) -> typing.Optional[winrt.windows.storage.StorageFile]: ...
39
+ @display_picture.setter
40
+ def display_picture(self, value: typing.Optional[winrt.windows.storage.StorageFile]) -> None: ...
41
+
42
+ class PhoneCallOriginManager_Static(type):
43
+ def request_set_as_active_call_origin_app_async(cls) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
44
+ def set_call_origin(cls, request_id: _uuid.UUID, call_origin: typing.Optional[PhoneCallOrigin], /) -> None: ...
45
+ def show_phone_call_origin_settings_u_i(cls) -> None: ...
46
+ @_property
47
+ def is_current_app_active_call_origin_app(cls) -> bool: ...
48
+ @_property
49
+ def is_supported(cls) -> bool: ...
50
+
51
+ class PhoneCallOriginManager(winrt.system.Object, metaclass=PhoneCallOriginManager_Static):
52
+ @staticmethod
53
+ def _from(obj: winrt.system.Object, /) -> PhoneCallOriginManager: ...
54
+
@@ -0,0 +1,12 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import winrt.system
4
+ from winrt import _winrt_windows_applicationmodel_calls_provider
5
+
6
+ __all__ = [
7
+ "PhoneCallOrigin",
8
+ "PhoneCallOriginManager",
9
+ ]
10
+
11
+ PhoneCallOrigin = _winrt_windows_applicationmodel_calls_provider.PhoneCallOrigin
12
+ PhoneCallOriginManager = _winrt_windows_applicationmodel_calls_provider.PhoneCallOriginManager
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.ApplicationModel.Calls.Provider
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.Provider
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Calls.Provider` namespace.
21
+
22
+ This package provides the `winrt.windows.applicationmodel.calls.provider` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.ApplicationModel.Calls.Provider.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_applicationmodel_calls_provider.pyi
9
+ winrt/windows/applicationmodel/calls/provider/__init__.py
10
+ winrt_Windows.ApplicationModel.Calls.Provider.egg-info/PKG-INFO
11
+ winrt_Windows.ApplicationModel.Calls.Provider.egg-info/SOURCES.txt
12
+ winrt_Windows.ApplicationModel.Calls.Provider.egg-info/dependency_links.txt
13
+ winrt_Windows.ApplicationModel.Calls.Provider.egg-info/requires.txt
14
+ winrt_Windows.ApplicationModel.Calls.Provider.egg-info/top_level.txt
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.0.0-beta.1
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.0.0-beta.1
5
+ winrt-Windows.Storage[all]==2.0.0-beta.1