winrt-Windows.ApplicationModel.Calls.Provider 2.2.0__tar.gz → 3.0.0__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.
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/PKG-INFO +5 -5
- winrt_windows_applicationmodel_calls_provider-3.0.0/all-requirements.txt +4 -0
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/py.Windows.ApplicationModel.Calls.Provider.cpp +111 -49
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_calls_provider-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/setup.py +1 -1
- winrt_windows_applicationmodel_calls_provider-3.0.0/winrt/_winrt_windows_applicationmodel_calls_provider.pyi +72 -0
- winrt_windows_applicationmodel_calls_provider-3.0.0/winrt/windows/applicationmodel/calls/provider/__init__.py +13 -0
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/PKG-INFO +5 -5
- winrt_windows_applicationmodel_calls_provider-3.0.0/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/requires.txt +5 -0
- winrt_windows_applicationmodel_calls_provider-2.2.0/all-requirements.txt +0 -4
- winrt_windows_applicationmodel_calls_provider-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_calls_provider-2.2.0/winrt/_winrt_windows_applicationmodel_calls_provider.pyi +0 -56
- winrt_windows_applicationmodel_calls_provider-2.2.0/winrt/windows/applicationmodel/calls/provider/__init__.py +0 -12
- winrt_windows_applicationmodel_calls_provider-2.2.0/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/requires.txt +0 -5
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/README.md +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/winrt/windows/applicationmodel/calls/provider/py.typed +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.2.0 → winrt_windows_applicationmodel_calls_provider-3.0.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Calls.Provider
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.Calls.Provider.h"
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
8
8
|
|
|
9
9
|
static PyObject* _new_PhoneCallOrigin(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
10
10
|
{
|
|
11
|
-
if (kwds
|
|
11
|
+
if (kwds)
|
|
12
12
|
{
|
|
13
13
|
py::set_invalid_kwd_args_error();
|
|
14
14
|
return nullptr;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
auto arg_count =
|
|
17
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
18
18
|
if (arg_count == 0)
|
|
19
19
|
{
|
|
20
20
|
try
|
|
@@ -60,7 +60,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
60
60
|
return nullptr;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
return py::convert(
|
|
63
|
+
return py::convert([&]()
|
|
64
|
+
{
|
|
65
|
+
auto _gil = release_gil();
|
|
66
|
+
return self->obj.Location();
|
|
67
|
+
}());
|
|
64
68
|
}
|
|
65
69
|
catch (...)
|
|
66
70
|
{
|
|
@@ -71,7 +75,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
71
75
|
|
|
72
76
|
static int PhoneCallOrigin_put_Location(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
73
77
|
{
|
|
74
|
-
if (arg
|
|
78
|
+
if (!arg)
|
|
75
79
|
{
|
|
76
80
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
77
81
|
return -1;
|
|
@@ -94,7 +98,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
94
98
|
|
|
95
99
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
96
100
|
|
|
97
|
-
|
|
101
|
+
{
|
|
102
|
+
auto _gil = release_gil();
|
|
103
|
+
self->obj.Location(param0);
|
|
104
|
+
}
|
|
105
|
+
|
|
98
106
|
return 0;
|
|
99
107
|
}
|
|
100
108
|
catch (...)
|
|
@@ -121,7 +129,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
121
129
|
return nullptr;
|
|
122
130
|
}
|
|
123
131
|
|
|
124
|
-
return py::convert(
|
|
132
|
+
return py::convert([&]()
|
|
133
|
+
{
|
|
134
|
+
auto _gil = release_gil();
|
|
135
|
+
return self->obj.CategoryDescription();
|
|
136
|
+
}());
|
|
125
137
|
}
|
|
126
138
|
catch (...)
|
|
127
139
|
{
|
|
@@ -132,7 +144,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
132
144
|
|
|
133
145
|
static int PhoneCallOrigin_put_CategoryDescription(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
134
146
|
{
|
|
135
|
-
if (arg
|
|
147
|
+
if (!arg)
|
|
136
148
|
{
|
|
137
149
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
138
150
|
return -1;
|
|
@@ -155,7 +167,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
155
167
|
|
|
156
168
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
157
169
|
|
|
158
|
-
|
|
170
|
+
{
|
|
171
|
+
auto _gil = release_gil();
|
|
172
|
+
self->obj.CategoryDescription(param0);
|
|
173
|
+
}
|
|
174
|
+
|
|
159
175
|
return 0;
|
|
160
176
|
}
|
|
161
177
|
catch (...)
|
|
@@ -182,7 +198,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
182
198
|
return nullptr;
|
|
183
199
|
}
|
|
184
200
|
|
|
185
|
-
return py::convert(
|
|
201
|
+
return py::convert([&]()
|
|
202
|
+
{
|
|
203
|
+
auto _gil = release_gil();
|
|
204
|
+
return self->obj.Category();
|
|
205
|
+
}());
|
|
186
206
|
}
|
|
187
207
|
catch (...)
|
|
188
208
|
{
|
|
@@ -193,7 +213,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
193
213
|
|
|
194
214
|
static int PhoneCallOrigin_put_Category(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
195
215
|
{
|
|
196
|
-
if (arg
|
|
216
|
+
if (!arg)
|
|
197
217
|
{
|
|
198
218
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
199
219
|
return -1;
|
|
@@ -216,7 +236,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
216
236
|
|
|
217
237
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
218
238
|
|
|
219
|
-
|
|
239
|
+
{
|
|
240
|
+
auto _gil = release_gil();
|
|
241
|
+
self->obj.Category(param0);
|
|
242
|
+
}
|
|
243
|
+
|
|
220
244
|
return 0;
|
|
221
245
|
}
|
|
222
246
|
catch (...)
|
|
@@ -243,7 +267,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
243
267
|
return nullptr;
|
|
244
268
|
}
|
|
245
269
|
|
|
246
|
-
return py::convert(
|
|
270
|
+
return py::convert([&]()
|
|
271
|
+
{
|
|
272
|
+
auto _gil = release_gil();
|
|
273
|
+
return self->obj.DisplayName();
|
|
274
|
+
}());
|
|
247
275
|
}
|
|
248
276
|
catch (...)
|
|
249
277
|
{
|
|
@@ -254,7 +282,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
254
282
|
|
|
255
283
|
static int PhoneCallOrigin_put_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
256
284
|
{
|
|
257
|
-
if (arg
|
|
285
|
+
if (!arg)
|
|
258
286
|
{
|
|
259
287
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
260
288
|
return -1;
|
|
@@ -277,7 +305,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
277
305
|
|
|
278
306
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
279
307
|
|
|
280
|
-
|
|
308
|
+
{
|
|
309
|
+
auto _gil = release_gil();
|
|
310
|
+
self->obj.DisplayName(param0);
|
|
311
|
+
}
|
|
312
|
+
|
|
281
313
|
return 0;
|
|
282
314
|
}
|
|
283
315
|
catch (...)
|
|
@@ -304,7 +336,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
304
336
|
return nullptr;
|
|
305
337
|
}
|
|
306
338
|
|
|
307
|
-
return py::convert(
|
|
339
|
+
return py::convert([&]()
|
|
340
|
+
{
|
|
341
|
+
auto _gil = release_gil();
|
|
342
|
+
return self->obj.DisplayPicture();
|
|
343
|
+
}());
|
|
308
344
|
}
|
|
309
345
|
catch (...)
|
|
310
346
|
{
|
|
@@ -315,7 +351,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
315
351
|
|
|
316
352
|
static int PhoneCallOrigin_put_DisplayPicture(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
317
353
|
{
|
|
318
|
-
if (arg
|
|
354
|
+
if (!arg)
|
|
319
355
|
{
|
|
320
356
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
321
357
|
return -1;
|
|
@@ -338,7 +374,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
338
374
|
|
|
339
375
|
auto param0 = py::convert_to<winrt::Windows::Storage::StorageFile>(arg);
|
|
340
376
|
|
|
341
|
-
|
|
377
|
+
{
|
|
378
|
+
auto _gil = release_gil();
|
|
379
|
+
self->obj.DisplayPicture(param0);
|
|
380
|
+
}
|
|
381
|
+
|
|
342
382
|
return 0;
|
|
343
383
|
}
|
|
344
384
|
catch (...)
|
|
@@ -375,8 +415,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
375
415
|
static PyMethodDef _methods_PhoneCallOrigin[] = {
|
|
376
416
|
{ "_assign_array_", _assign_array_PhoneCallOrigin, METH_O | METH_STATIC, nullptr },
|
|
377
417
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PhoneCallOrigin), METH_O | METH_STATIC, nullptr },
|
|
378
|
-
{ }
|
|
379
|
-
};
|
|
418
|
+
{ }};
|
|
380
419
|
|
|
381
420
|
static PyGetSetDef _getset_PhoneCallOrigin[] = {
|
|
382
421
|
{ "location", reinterpret_cast<getter>(PhoneCallOrigin_get_Location), reinterpret_cast<setter>(PhoneCallOrigin_put_Location), nullptr, nullptr },
|
|
@@ -384,16 +423,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
384
423
|
{ "category", reinterpret_cast<getter>(PhoneCallOrigin_get_Category), reinterpret_cast<setter>(PhoneCallOrigin_put_Category), nullptr, nullptr },
|
|
385
424
|
{ "display_name", reinterpret_cast<getter>(PhoneCallOrigin_get_DisplayName), reinterpret_cast<setter>(PhoneCallOrigin_put_DisplayName), nullptr, nullptr },
|
|
386
425
|
{ "display_picture", reinterpret_cast<getter>(PhoneCallOrigin_get_DisplayPicture), reinterpret_cast<setter>(PhoneCallOrigin_put_DisplayPicture), nullptr, nullptr },
|
|
387
|
-
{ }
|
|
388
|
-
};
|
|
426
|
+
{ }};
|
|
389
427
|
|
|
390
428
|
static PyType_Slot _type_slots_PhoneCallOrigin[] = {
|
|
391
429
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOrigin) },
|
|
392
430
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneCallOrigin) },
|
|
393
431
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOrigin) },
|
|
394
432
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOrigin) },
|
|
395
|
-
{ }
|
|
396
|
-
};
|
|
433
|
+
{ }};
|
|
397
434
|
|
|
398
435
|
static PyType_Spec type_spec_PhoneCallOrigin = {
|
|
399
436
|
"winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOrigin",
|
|
@@ -413,7 +450,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
413
450
|
|
|
414
451
|
static PyObject* PhoneCallOriginManager_RequestSetAsActiveCallOriginAppAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
415
452
|
{
|
|
416
|
-
auto arg_count =
|
|
453
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
417
454
|
|
|
418
455
|
if (arg_count == 0)
|
|
419
456
|
{
|
|
@@ -432,7 +469,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
432
469
|
return nullptr;
|
|
433
470
|
}
|
|
434
471
|
|
|
435
|
-
return py::convert(
|
|
472
|
+
return py::convert([&]()
|
|
473
|
+
{
|
|
474
|
+
auto _gil = release_gil();
|
|
475
|
+
return winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::RequestSetAsActiveCallOriginAppAsync();
|
|
476
|
+
}());
|
|
436
477
|
}
|
|
437
478
|
catch (...)
|
|
438
479
|
{
|
|
@@ -449,7 +490,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
449
490
|
|
|
450
491
|
static PyObject* PhoneCallOriginManager_SetCallOrigin(PyObject* /*unused*/, PyObject* args) noexcept
|
|
451
492
|
{
|
|
452
|
-
auto arg_count =
|
|
493
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
453
494
|
|
|
454
495
|
if (arg_count == 2)
|
|
455
496
|
{
|
|
@@ -471,7 +512,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
471
512
|
auto param0 = py::convert_to<winrt::guid>(args, 0);
|
|
472
513
|
auto param1 = py::convert_to<winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin>(args, 1);
|
|
473
514
|
|
|
474
|
-
|
|
515
|
+
{
|
|
516
|
+
auto _gil = release_gil();
|
|
517
|
+
winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::SetCallOrigin(param0, param1);
|
|
518
|
+
}
|
|
519
|
+
|
|
475
520
|
Py_RETURN_NONE;
|
|
476
521
|
}
|
|
477
522
|
catch (...)
|
|
@@ -489,7 +534,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
489
534
|
|
|
490
535
|
static PyObject* PhoneCallOriginManager_ShowPhoneCallOriginSettingsUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
491
536
|
{
|
|
492
|
-
auto arg_count =
|
|
537
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
493
538
|
|
|
494
539
|
if (arg_count == 0)
|
|
495
540
|
{
|
|
@@ -508,7 +553,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
508
553
|
return nullptr;
|
|
509
554
|
}
|
|
510
555
|
|
|
511
|
-
|
|
556
|
+
{
|
|
557
|
+
auto _gil = release_gil();
|
|
558
|
+
winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::ShowPhoneCallOriginSettingsUI();
|
|
559
|
+
}
|
|
560
|
+
|
|
512
561
|
Py_RETURN_NONE;
|
|
513
562
|
}
|
|
514
563
|
catch (...)
|
|
@@ -541,7 +590,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
541
590
|
return nullptr;
|
|
542
591
|
}
|
|
543
592
|
|
|
544
|
-
return py::convert(
|
|
593
|
+
return py::convert([&]()
|
|
594
|
+
{
|
|
595
|
+
auto _gil = release_gil();
|
|
596
|
+
return winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::IsCurrentAppActiveCallOriginApp();
|
|
597
|
+
}());
|
|
545
598
|
}
|
|
546
599
|
catch (...)
|
|
547
600
|
{
|
|
@@ -567,7 +620,11 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
567
620
|
return nullptr;
|
|
568
621
|
}
|
|
569
622
|
|
|
570
|
-
return py::convert(
|
|
623
|
+
return py::convert([&]()
|
|
624
|
+
{
|
|
625
|
+
auto _gil = release_gil();
|
|
626
|
+
return winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::IsSupported();
|
|
627
|
+
}());
|
|
571
628
|
}
|
|
572
629
|
catch (...)
|
|
573
630
|
{
|
|
@@ -577,19 +634,16 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
577
634
|
}
|
|
578
635
|
|
|
579
636
|
static PyMethodDef _methods_PhoneCallOriginManager[] = {
|
|
580
|
-
{ }
|
|
581
|
-
};
|
|
637
|
+
{ }};
|
|
582
638
|
|
|
583
639
|
static PyGetSetDef _getset_PhoneCallOriginManager[] = {
|
|
584
|
-
{ }
|
|
585
|
-
};
|
|
640
|
+
{ }};
|
|
586
641
|
|
|
587
642
|
static PyType_Slot _type_slots_PhoneCallOriginManager[] = {
|
|
588
643
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOriginManager) },
|
|
589
644
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOriginManager) },
|
|
590
645
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOriginManager) },
|
|
591
|
-
{ }
|
|
592
|
-
};
|
|
646
|
+
{ }};
|
|
593
647
|
|
|
594
648
|
static PyType_Spec type_spec_PhoneCallOriginManager = {
|
|
595
649
|
"winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOriginManager",
|
|
@@ -601,15 +655,13 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
601
655
|
static PyGetSetDef getset_PhoneCallOriginManager_Static[] = {
|
|
602
656
|
{ "is_current_app_active_call_origin_app", reinterpret_cast<getter>(PhoneCallOriginManager_get_IsCurrentAppActiveCallOriginApp), nullptr, nullptr, nullptr },
|
|
603
657
|
{ "is_supported", reinterpret_cast<getter>(PhoneCallOriginManager_get_IsSupported), nullptr, nullptr, nullptr },
|
|
604
|
-
{ }
|
|
605
|
-
};
|
|
658
|
+
{ }};
|
|
606
659
|
|
|
607
660
|
static PyMethodDef methods_PhoneCallOriginManager_Static[] = {
|
|
608
661
|
{ "request_set_as_active_call_origin_app_async", reinterpret_cast<PyCFunction>(PhoneCallOriginManager_RequestSetAsActiveCallOriginAppAsync), METH_VARARGS, nullptr },
|
|
609
662
|
{ "set_call_origin", reinterpret_cast<PyCFunction>(PhoneCallOriginManager_SetCallOrigin), METH_VARARGS, nullptr },
|
|
610
|
-
{ "
|
|
611
|
-
{ }
|
|
612
|
-
};
|
|
663
|
+
{ "show_phone_call_origin_settings_ui", reinterpret_cast<PyCFunction>(PhoneCallOriginManager_ShowPhoneCallOriginSettingsUI), METH_VARARGS, nullptr },
|
|
664
|
+
{ }};
|
|
613
665
|
|
|
614
666
|
static PyType_Slot type_slots_PhoneCallOriginManager_Static[] =
|
|
615
667
|
{
|
|
@@ -619,14 +671,12 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
619
671
|
{ }
|
|
620
672
|
};
|
|
621
673
|
|
|
622
|
-
static PyType_Spec type_spec_PhoneCallOriginManager_Static =
|
|
623
|
-
{
|
|
674
|
+
static PyType_Spec type_spec_PhoneCallOriginManager_Static = {
|
|
624
675
|
"winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOriginManager_Static",
|
|
625
676
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
626
677
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
627
678
|
Py_TPFLAGS_DEFAULT,
|
|
628
|
-
type_slots_PhoneCallOriginManager_Static
|
|
629
|
-
};
|
|
679
|
+
type_slots_PhoneCallOriginManager_Static};
|
|
630
680
|
|
|
631
681
|
// ----- Windows.ApplicationModel.Calls.Provider Initialization --------------------
|
|
632
682
|
|
|
@@ -660,6 +710,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_provider(void) noexc
|
|
|
660
710
|
return nullptr;
|
|
661
711
|
}
|
|
662
712
|
|
|
713
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
714
|
+
if (!inspectable_meta_type)
|
|
715
|
+
{
|
|
716
|
+
return nullptr;
|
|
717
|
+
}
|
|
718
|
+
|
|
663
719
|
auto object_type = py::get_object_type();
|
|
664
720
|
if (!object_type)
|
|
665
721
|
{
|
|
@@ -673,13 +729,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_provider(void) noexc
|
|
|
673
729
|
return nullptr;
|
|
674
730
|
}
|
|
675
731
|
|
|
676
|
-
py::pytype_handle PhoneCallOrigin_type{py::register_python_type(module.get(), &type_spec_PhoneCallOrigin, object_bases.get(),
|
|
732
|
+
py::pytype_handle PhoneCallOrigin_type{py::register_python_type(module.get(), &type_spec_PhoneCallOrigin, object_bases.get(), inspectable_meta_type)};
|
|
677
733
|
if (!PhoneCallOrigin_type)
|
|
678
734
|
{
|
|
679
735
|
return nullptr;
|
|
680
736
|
}
|
|
681
737
|
|
|
682
|
-
py::pyobj_handle
|
|
738
|
+
py::pyobj_handle PhoneCallOriginManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
739
|
+
if (!PhoneCallOriginManager_Static_bases)
|
|
740
|
+
{
|
|
741
|
+
return nullptr;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
py::pyobj_handle type_PhoneCallOriginManager_Static{PyType_FromSpecWithBases(&type_spec_PhoneCallOriginManager_Static, PhoneCallOriginManager_Static_bases.get())};
|
|
683
745
|
if (!type_PhoneCallOriginManager_Static)
|
|
684
746
|
{
|
|
685
747
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
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 as windows_foundation
|
|
13
|
+
import winrt.windows.storage as windows_storage
|
|
14
|
+
|
|
15
|
+
Self = typing.TypeVar('Self')
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class PhoneCallOrigin(winrt.system.Object):
|
|
19
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
20
|
+
# System.String Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::get_Location()
|
|
21
|
+
@_property
|
|
22
|
+
def location(self) -> str: ...
|
|
23
|
+
# System.Void Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::put_Location(System.String)
|
|
24
|
+
@location.setter
|
|
25
|
+
def location(self, value: str) -> None: ...
|
|
26
|
+
# System.String Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::get_CategoryDescription()
|
|
27
|
+
@_property
|
|
28
|
+
def category_description(self) -> str: ...
|
|
29
|
+
# System.Void Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::put_CategoryDescription(System.String)
|
|
30
|
+
@category_description.setter
|
|
31
|
+
def category_description(self, value: str) -> None: ...
|
|
32
|
+
# System.String Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::get_Category()
|
|
33
|
+
@_property
|
|
34
|
+
def category(self) -> str: ...
|
|
35
|
+
# System.Void Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::put_Category(System.String)
|
|
36
|
+
@category.setter
|
|
37
|
+
def category(self, value: str) -> None: ...
|
|
38
|
+
# System.String Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::get_DisplayName()
|
|
39
|
+
@_property
|
|
40
|
+
def display_name(self) -> str: ...
|
|
41
|
+
# System.Void Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::put_DisplayName(System.String)
|
|
42
|
+
@display_name.setter
|
|
43
|
+
def display_name(self, value: str) -> None: ...
|
|
44
|
+
# Windows.Storage.StorageFile Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::get_DisplayPicture()
|
|
45
|
+
@_property
|
|
46
|
+
def display_picture(self) -> windows_storage.StorageFile: ...
|
|
47
|
+
# System.Void Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin::put_DisplayPicture(Windows.Storage.StorageFile)
|
|
48
|
+
@display_picture.setter
|
|
49
|
+
def display_picture(self, value: windows_storage.StorageFile) -> None: ...
|
|
50
|
+
|
|
51
|
+
@typing.final
|
|
52
|
+
class PhoneCallOriginManager_Static(winrt._winrt.IInspectable_Static):
|
|
53
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager::RequestSetAsActiveCallOriginAppAsync()
|
|
54
|
+
# @deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.")
|
|
55
|
+
def request_set_as_active_call_origin_app_async(cls) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
56
|
+
# System.Void Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager::SetCallOrigin(System.Guid,Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin)
|
|
57
|
+
# @deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.")
|
|
58
|
+
def set_call_origin(cls, request_id: _uuid.UUID, call_origin: PhoneCallOrigin, /) -> None: ...
|
|
59
|
+
# System.Void Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager::ShowPhoneCallOriginSettingsUI()
|
|
60
|
+
# @deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.")
|
|
61
|
+
def show_phone_call_origin_settings_ui(cls) -> None: ...
|
|
62
|
+
# System.Boolean Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager::get_IsCurrentAppActiveCallOriginApp()
|
|
63
|
+
@_property
|
|
64
|
+
def is_current_app_active_call_origin_app(cls) -> bool: ...
|
|
65
|
+
# System.Boolean Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager::get_IsSupported()
|
|
66
|
+
@_property
|
|
67
|
+
def is_supported(cls) -> bool: ...
|
|
68
|
+
|
|
69
|
+
@typing.final
|
|
70
|
+
class PhoneCallOriginManager(winrt.system.Object, metaclass=PhoneCallOriginManager_Static):
|
|
71
|
+
pass
|
|
72
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
import winrt.system
|
|
4
|
+
from winrt._winrt_windows_applicationmodel_calls_provider import (
|
|
5
|
+
PhoneCallOrigin,
|
|
6
|
+
PhoneCallOriginManager,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
__all__ = [
|
|
10
|
+
"PhoneCallOrigin",
|
|
11
|
+
"PhoneCallOriginManager",
|
|
12
|
+
]
|
|
13
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Calls.Provider
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.0
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
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 as windows_foundation
|
|
13
|
-
import winrt.windows.storage as windows_storage
|
|
14
|
-
|
|
15
|
-
Self = typing.TypeVar('Self')
|
|
16
|
-
|
|
17
|
-
@typing.final
|
|
18
|
-
class PhoneCallOrigin(winrt.system.Object):
|
|
19
|
-
@staticmethod
|
|
20
|
-
def _from(obj: winrt.system.Object, /) -> PhoneCallOrigin: ...
|
|
21
|
-
def __new__(cls: typing.Type[PhoneCallOrigin]) -> PhoneCallOrigin: ...
|
|
22
|
-
@_property
|
|
23
|
-
def location(self) -> str: ...
|
|
24
|
-
@location.setter
|
|
25
|
-
def location(self, value: str) -> None: ...
|
|
26
|
-
@_property
|
|
27
|
-
def category_description(self) -> str: ...
|
|
28
|
-
@category_description.setter
|
|
29
|
-
def category_description(self, value: str) -> None: ...
|
|
30
|
-
@_property
|
|
31
|
-
def category(self) -> str: ...
|
|
32
|
-
@category.setter
|
|
33
|
-
def category(self, value: str) -> None: ...
|
|
34
|
-
@_property
|
|
35
|
-
def display_name(self) -> str: ...
|
|
36
|
-
@display_name.setter
|
|
37
|
-
def display_name(self, value: str) -> None: ...
|
|
38
|
-
@_property
|
|
39
|
-
def display_picture(self) -> typing.Optional[windows_storage.StorageFile]: ...
|
|
40
|
-
@display_picture.setter
|
|
41
|
-
def display_picture(self, value: typing.Optional[windows_storage.StorageFile]) -> None: ...
|
|
42
|
-
|
|
43
|
-
@typing.final
|
|
44
|
-
class PhoneCallOriginManager_Static(type):
|
|
45
|
-
def request_set_as_active_call_origin_app_async(cls) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
46
|
-
def set_call_origin(cls, request_id: _uuid.UUID, call_origin: typing.Optional[PhoneCallOrigin], /) -> None: ...
|
|
47
|
-
def show_phone_call_origin_settings_u_i(cls) -> None: ...
|
|
48
|
-
@_property
|
|
49
|
-
def is_current_app_active_call_origin_app(cls) -> bool: ...
|
|
50
|
-
@_property
|
|
51
|
-
def is_supported(cls) -> bool: ...
|
|
52
|
-
|
|
53
|
-
@typing.final
|
|
54
|
-
class PhoneCallOriginManager(winrt.system.Object, metaclass=PhoneCallOriginManager_Static):
|
|
55
|
-
pass
|
|
56
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|