winrt-Windows.ApplicationModel.Calls.Provider 2.0.1__tar.gz → 2.2.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.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/PKG-INFO +5 -5
- winrt_windows_applicationmodel_calls_provider-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/py.Windows.ApplicationModel.Calls.Provider.cpp +220 -121
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_calls_provider-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/winrt/_winrt_windows_applicationmodel_calls_provider.pyi +8 -9
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/winrt/windows/applicationmodel/calls/provider/__init__.py +1 -1
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/PKG-INFO +5 -5
- winrt_windows_applicationmodel_calls_provider-2.2.0/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/requires.txt +5 -0
- winrt_windows_applicationmodel_calls_provider-2.0.1/all-requirements.txt +0 -4
- winrt_windows_applicationmodel_calls_provider-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_calls_provider-2.0.1/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/requires.txt +0 -5
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/winrt/windows/applicationmodel/calls/provider/py.typed +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_calls_provider-2.0.1 → winrt_windows_applicationmodel_calls_provider-2.2.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: 2.0
|
|
3
|
+
Version: 2.2.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: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.Calls.Provider.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
7
6
|
{
|
|
8
7
|
// ----- PhoneCallOrigin class --------------------
|
|
@@ -20,7 +19,7 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
20
19
|
{
|
|
21
20
|
try
|
|
22
21
|
{
|
|
23
|
-
winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin instance{
|
|
22
|
+
winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin instance{};
|
|
24
23
|
return py::wrap(instance, type);
|
|
25
24
|
}
|
|
26
25
|
catch (...)
|
|
@@ -46,14 +45,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
46
45
|
|
|
47
46
|
static PyObject* PhoneCallOrigin_get_Location(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
|
|
48
47
|
{
|
|
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
48
|
try
|
|
56
49
|
{
|
|
50
|
+
static std::optional<bool> is_property_present{};
|
|
51
|
+
|
|
52
|
+
if (!is_property_present.has_value())
|
|
53
|
+
{
|
|
54
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Location");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (!is_property_present.value())
|
|
58
|
+
{
|
|
59
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
60
|
+
return nullptr;
|
|
61
|
+
}
|
|
62
|
+
|
|
57
63
|
return py::convert(self->obj.Location());
|
|
58
64
|
}
|
|
59
65
|
catch (...)
|
|
@@ -65,12 +71,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
65
71
|
|
|
66
72
|
static int PhoneCallOrigin_put_Location(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
67
73
|
{
|
|
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
74
|
if (arg == nullptr)
|
|
75
75
|
{
|
|
76
76
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -79,6 +79,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
79
79
|
|
|
80
80
|
try
|
|
81
81
|
{
|
|
82
|
+
static std::optional<bool> is_property_present{};
|
|
83
|
+
|
|
84
|
+
if (!is_property_present.has_value())
|
|
85
|
+
{
|
|
86
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Location");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (!is_property_present.value())
|
|
90
|
+
{
|
|
91
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
92
|
+
return -1;
|
|
93
|
+
}
|
|
94
|
+
|
|
82
95
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
83
96
|
|
|
84
97
|
self->obj.Location(param0);
|
|
@@ -93,14 +106,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
93
106
|
|
|
94
107
|
static PyObject* PhoneCallOrigin_get_CategoryDescription(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
|
|
95
108
|
{
|
|
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
109
|
try
|
|
103
110
|
{
|
|
111
|
+
static std::optional<bool> is_property_present{};
|
|
112
|
+
|
|
113
|
+
if (!is_property_present.has_value())
|
|
114
|
+
{
|
|
115
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"CategoryDescription");
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!is_property_present.value())
|
|
119
|
+
{
|
|
120
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
121
|
+
return nullptr;
|
|
122
|
+
}
|
|
123
|
+
|
|
104
124
|
return py::convert(self->obj.CategoryDescription());
|
|
105
125
|
}
|
|
106
126
|
catch (...)
|
|
@@ -112,12 +132,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
112
132
|
|
|
113
133
|
static int PhoneCallOrigin_put_CategoryDescription(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
114
134
|
{
|
|
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
135
|
if (arg == nullptr)
|
|
122
136
|
{
|
|
123
137
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -126,6 +140,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
126
140
|
|
|
127
141
|
try
|
|
128
142
|
{
|
|
143
|
+
static std::optional<bool> is_property_present{};
|
|
144
|
+
|
|
145
|
+
if (!is_property_present.has_value())
|
|
146
|
+
{
|
|
147
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"CategoryDescription");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (!is_property_present.value())
|
|
151
|
+
{
|
|
152
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
153
|
+
return -1;
|
|
154
|
+
}
|
|
155
|
+
|
|
129
156
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
130
157
|
|
|
131
158
|
self->obj.CategoryDescription(param0);
|
|
@@ -140,14 +167,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
140
167
|
|
|
141
168
|
static PyObject* PhoneCallOrigin_get_Category(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
|
|
142
169
|
{
|
|
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
170
|
try
|
|
150
171
|
{
|
|
172
|
+
static std::optional<bool> is_property_present{};
|
|
173
|
+
|
|
174
|
+
if (!is_property_present.has_value())
|
|
175
|
+
{
|
|
176
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Category");
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (!is_property_present.value())
|
|
180
|
+
{
|
|
181
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
182
|
+
return nullptr;
|
|
183
|
+
}
|
|
184
|
+
|
|
151
185
|
return py::convert(self->obj.Category());
|
|
152
186
|
}
|
|
153
187
|
catch (...)
|
|
@@ -159,12 +193,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
159
193
|
|
|
160
194
|
static int PhoneCallOrigin_put_Category(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
161
195
|
{
|
|
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
196
|
if (arg == nullptr)
|
|
169
197
|
{
|
|
170
198
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -173,6 +201,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
173
201
|
|
|
174
202
|
try
|
|
175
203
|
{
|
|
204
|
+
static std::optional<bool> is_property_present{};
|
|
205
|
+
|
|
206
|
+
if (!is_property_present.has_value())
|
|
207
|
+
{
|
|
208
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Category");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (!is_property_present.value())
|
|
212
|
+
{
|
|
213
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
214
|
+
return -1;
|
|
215
|
+
}
|
|
216
|
+
|
|
176
217
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
177
218
|
|
|
178
219
|
self->obj.Category(param0);
|
|
@@ -187,14 +228,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
187
228
|
|
|
188
229
|
static PyObject* PhoneCallOrigin_get_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
|
|
189
230
|
{
|
|
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
231
|
try
|
|
197
232
|
{
|
|
233
|
+
static std::optional<bool> is_property_present{};
|
|
234
|
+
|
|
235
|
+
if (!is_property_present.has_value())
|
|
236
|
+
{
|
|
237
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayName");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!is_property_present.value())
|
|
241
|
+
{
|
|
242
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
243
|
+
return nullptr;
|
|
244
|
+
}
|
|
245
|
+
|
|
198
246
|
return py::convert(self->obj.DisplayName());
|
|
199
247
|
}
|
|
200
248
|
catch (...)
|
|
@@ -206,12 +254,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
206
254
|
|
|
207
255
|
static int PhoneCallOrigin_put_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
208
256
|
{
|
|
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
257
|
if (arg == nullptr)
|
|
216
258
|
{
|
|
217
259
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -220,6 +262,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
220
262
|
|
|
221
263
|
try
|
|
222
264
|
{
|
|
265
|
+
static std::optional<bool> is_property_present{};
|
|
266
|
+
|
|
267
|
+
if (!is_property_present.has_value())
|
|
268
|
+
{
|
|
269
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayName");
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (!is_property_present.value())
|
|
273
|
+
{
|
|
274
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
275
|
+
return -1;
|
|
276
|
+
}
|
|
277
|
+
|
|
223
278
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
224
279
|
|
|
225
280
|
self->obj.DisplayName(param0);
|
|
@@ -234,14 +289,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
234
289
|
|
|
235
290
|
static PyObject* PhoneCallOrigin_get_DisplayPicture(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
|
|
236
291
|
{
|
|
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
292
|
try
|
|
244
293
|
{
|
|
294
|
+
static std::optional<bool> is_property_present{};
|
|
295
|
+
|
|
296
|
+
if (!is_property_present.has_value())
|
|
297
|
+
{
|
|
298
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayPicture");
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (!is_property_present.value())
|
|
302
|
+
{
|
|
303
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
304
|
+
return nullptr;
|
|
305
|
+
}
|
|
306
|
+
|
|
245
307
|
return py::convert(self->obj.DisplayPicture());
|
|
246
308
|
}
|
|
247
309
|
catch (...)
|
|
@@ -253,12 +315,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
253
315
|
|
|
254
316
|
static int PhoneCallOrigin_put_DisplayPicture(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
|
|
255
317
|
{
|
|
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
318
|
if (arg == nullptr)
|
|
263
319
|
{
|
|
264
320
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -267,6 +323,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
267
323
|
|
|
268
324
|
try
|
|
269
325
|
{
|
|
326
|
+
static std::optional<bool> is_property_present{};
|
|
327
|
+
|
|
328
|
+
if (!is_property_present.has_value())
|
|
329
|
+
{
|
|
330
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayPicture");
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if (!is_property_present.value())
|
|
334
|
+
{
|
|
335
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
336
|
+
return -1;
|
|
337
|
+
}
|
|
338
|
+
|
|
270
339
|
auto param0 = py::convert_to<winrt::Windows::Storage::StorageFile>(arg);
|
|
271
340
|
|
|
272
341
|
self->obj.DisplayPicture(param0);
|
|
@@ -318,23 +387,20 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
318
387
|
{ }
|
|
319
388
|
};
|
|
320
389
|
|
|
321
|
-
static PyType_Slot _type_slots_PhoneCallOrigin[] =
|
|
322
|
-
{
|
|
390
|
+
static PyType_Slot _type_slots_PhoneCallOrigin[] = {
|
|
323
391
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOrigin) },
|
|
324
392
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneCallOrigin) },
|
|
325
393
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOrigin) },
|
|
326
394
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOrigin) },
|
|
327
|
-
{ }
|
|
395
|
+
{ }
|
|
328
396
|
};
|
|
329
397
|
|
|
330
|
-
static PyType_Spec type_spec_PhoneCallOrigin =
|
|
331
|
-
{
|
|
398
|
+
static PyType_Spec type_spec_PhoneCallOrigin = {
|
|
332
399
|
"winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOrigin",
|
|
333
400
|
sizeof(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin),
|
|
334
401
|
0,
|
|
335
402
|
Py_TPFLAGS_DEFAULT,
|
|
336
|
-
_type_slots_PhoneCallOrigin
|
|
337
|
-
};
|
|
403
|
+
_type_slots_PhoneCallOrigin};
|
|
338
404
|
|
|
339
405
|
// ----- PhoneCallOriginManager class --------------------
|
|
340
406
|
|
|
@@ -351,14 +417,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
351
417
|
|
|
352
418
|
if (arg_count == 0)
|
|
353
419
|
{
|
|
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
420
|
try
|
|
361
421
|
{
|
|
422
|
+
static std::optional<bool> is_overload_present{};
|
|
423
|
+
|
|
424
|
+
if (!is_overload_present.has_value())
|
|
425
|
+
{
|
|
426
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"RequestSetAsActiveCallOriginAppAsync", 0);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (!is_overload_present.value())
|
|
430
|
+
{
|
|
431
|
+
py::set_arg_count_version_error(0);
|
|
432
|
+
return nullptr;
|
|
433
|
+
}
|
|
434
|
+
|
|
362
435
|
return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::RequestSetAsActiveCallOriginAppAsync());
|
|
363
436
|
}
|
|
364
437
|
catch (...)
|
|
@@ -380,14 +453,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
380
453
|
|
|
381
454
|
if (arg_count == 2)
|
|
382
455
|
{
|
|
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
456
|
try
|
|
390
457
|
{
|
|
458
|
+
static std::optional<bool> is_overload_present{};
|
|
459
|
+
|
|
460
|
+
if (!is_overload_present.has_value())
|
|
461
|
+
{
|
|
462
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"SetCallOrigin", 2);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if (!is_overload_present.value())
|
|
466
|
+
{
|
|
467
|
+
py::set_arg_count_version_error(2);
|
|
468
|
+
return nullptr;
|
|
469
|
+
}
|
|
470
|
+
|
|
391
471
|
auto param0 = py::convert_to<winrt::guid>(args, 0);
|
|
392
472
|
auto param1 = py::convert_to<winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin>(args, 1);
|
|
393
473
|
|
|
@@ -413,14 +493,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
413
493
|
|
|
414
494
|
if (arg_count == 0)
|
|
415
495
|
{
|
|
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
496
|
try
|
|
423
497
|
{
|
|
498
|
+
static std::optional<bool> is_overload_present{};
|
|
499
|
+
|
|
500
|
+
if (!is_overload_present.has_value())
|
|
501
|
+
{
|
|
502
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"ShowPhoneCallOriginSettingsUI", 0);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (!is_overload_present.value())
|
|
506
|
+
{
|
|
507
|
+
py::set_arg_count_version_error(0);
|
|
508
|
+
return nullptr;
|
|
509
|
+
}
|
|
510
|
+
|
|
424
511
|
winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::ShowPhoneCallOriginSettingsUI();
|
|
425
512
|
Py_RETURN_NONE;
|
|
426
513
|
}
|
|
@@ -439,14 +526,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
439
526
|
|
|
440
527
|
static PyObject* PhoneCallOriginManager_get_IsCurrentAppActiveCallOriginApp(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
441
528
|
{
|
|
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
529
|
try
|
|
449
530
|
{
|
|
531
|
+
static std::optional<bool> is_property_present{};
|
|
532
|
+
|
|
533
|
+
if (!is_property_present.has_value())
|
|
534
|
+
{
|
|
535
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"IsCurrentAppActiveCallOriginApp");
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
if (!is_property_present.value())
|
|
539
|
+
{
|
|
540
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
541
|
+
return nullptr;
|
|
542
|
+
}
|
|
543
|
+
|
|
450
544
|
return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::IsCurrentAppActiveCallOriginApp());
|
|
451
545
|
}
|
|
452
546
|
catch (...)
|
|
@@ -458,14 +552,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
458
552
|
|
|
459
553
|
static PyObject* PhoneCallOriginManager_get_IsSupported(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
460
554
|
{
|
|
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
555
|
try
|
|
468
556
|
{
|
|
557
|
+
static std::optional<bool> is_property_present{};
|
|
558
|
+
|
|
559
|
+
if (!is_property_present.has_value())
|
|
560
|
+
{
|
|
561
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"IsSupported");
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
if (!is_property_present.value())
|
|
565
|
+
{
|
|
566
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
567
|
+
return nullptr;
|
|
568
|
+
}
|
|
569
|
+
|
|
469
570
|
return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::IsSupported());
|
|
470
571
|
}
|
|
471
572
|
catch (...)
|
|
@@ -483,22 +584,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
483
584
|
{ }
|
|
484
585
|
};
|
|
485
586
|
|
|
486
|
-
static PyType_Slot _type_slots_PhoneCallOriginManager[] =
|
|
487
|
-
{
|
|
587
|
+
static PyType_Slot _type_slots_PhoneCallOriginManager[] = {
|
|
488
588
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOriginManager) },
|
|
489
589
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOriginManager) },
|
|
490
590
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOriginManager) },
|
|
491
|
-
{ }
|
|
591
|
+
{ }
|
|
492
592
|
};
|
|
493
593
|
|
|
494
|
-
static PyType_Spec type_spec_PhoneCallOriginManager =
|
|
495
|
-
{
|
|
594
|
+
static PyType_Spec type_spec_PhoneCallOriginManager = {
|
|
496
595
|
"winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOriginManager",
|
|
497
596
|
0,
|
|
498
597
|
0,
|
|
499
598
|
Py_TPFLAGS_DEFAULT,
|
|
500
|
-
_type_slots_PhoneCallOriginManager
|
|
501
|
-
};
|
|
599
|
+
_type_slots_PhoneCallOriginManager};
|
|
502
600
|
|
|
503
601
|
static PyGetSetDef getset_PhoneCallOriginManager_Static[] = {
|
|
504
602
|
{ "is_current_app_active_call_origin_app", reinterpret_cast<getter>(PhoneCallOriginManager_get_IsCurrentAppActiveCallOriginApp), nullptr, nullptr, nullptr },
|
|
@@ -531,20 +629,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
|
531
629
|
};
|
|
532
630
|
|
|
533
631
|
// ----- Windows.ApplicationModel.Calls.Provider Initialization --------------------
|
|
534
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Calls::Provider");
|
|
535
632
|
|
|
633
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Calls.Provider");
|
|
536
634
|
|
|
537
|
-
static PyModuleDef module_def
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
635
|
+
static PyModuleDef module_def = {
|
|
636
|
+
PyModuleDef_HEAD_INIT,
|
|
637
|
+
"_winrt_windows_applicationmodel_calls_provider",
|
|
638
|
+
module_doc,
|
|
639
|
+
0,
|
|
640
|
+
nullptr,
|
|
641
|
+
nullptr,
|
|
642
|
+
nullptr,
|
|
643
|
+
nullptr,
|
|
644
|
+
nullptr};
|
|
548
645
|
} // py::cpp::Windows::ApplicationModel::Calls::Provider
|
|
549
646
|
|
|
550
647
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_provider(void) noexcept
|
|
@@ -576,7 +673,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_provider(void) noexc
|
|
|
576
673
|
return nullptr;
|
|
577
674
|
}
|
|
578
675
|
|
|
579
|
-
|
|
676
|
+
py::pytype_handle PhoneCallOrigin_type{py::register_python_type(module.get(), &type_spec_PhoneCallOrigin, object_bases.get(), nullptr)};
|
|
677
|
+
if (!PhoneCallOrigin_type)
|
|
580
678
|
{
|
|
581
679
|
return nullptr;
|
|
582
680
|
}
|
|
@@ -587,7 +685,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_provider(void) noexc
|
|
|
587
685
|
return nullptr;
|
|
588
686
|
}
|
|
589
687
|
|
|
590
|
-
|
|
688
|
+
py::pytype_handle PhoneCallOriginManager_type{py::register_python_type(module.get(), &type_spec_PhoneCallOriginManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PhoneCallOriginManager_Static.get()))};
|
|
689
|
+
if (!PhoneCallOriginManager_type)
|
|
591
690
|
{
|
|
592
691
|
return nullptr;
|
|
593
692
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,8 +9,8 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.storage
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.storage as windows_storage
|
|
14
14
|
|
|
15
15
|
Self = typing.TypeVar('Self')
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Self = typing.TypeVar('Self')
|
|
|
18
18
|
class PhoneCallOrigin(winrt.system.Object):
|
|
19
19
|
@staticmethod
|
|
20
20
|
def _from(obj: winrt.system.Object, /) -> PhoneCallOrigin: ...
|
|
21
|
-
def __new__(cls: typing.Type[PhoneCallOrigin]) -> PhoneCallOrigin
|
|
21
|
+
def __new__(cls: typing.Type[PhoneCallOrigin]) -> PhoneCallOrigin: ...
|
|
22
22
|
@_property
|
|
23
23
|
def location(self) -> str: ...
|
|
24
24
|
@location.setter
|
|
@@ -36,13 +36,13 @@ class PhoneCallOrigin(winrt.system.Object):
|
|
|
36
36
|
@display_name.setter
|
|
37
37
|
def display_name(self, value: str) -> None: ...
|
|
38
38
|
@_property
|
|
39
|
-
def display_picture(self) -> typing.Optional[
|
|
39
|
+
def display_picture(self) -> typing.Optional[windows_storage.StorageFile]: ...
|
|
40
40
|
@display_picture.setter
|
|
41
|
-
def display_picture(self, value: typing.Optional[
|
|
41
|
+
def display_picture(self, value: typing.Optional[windows_storage.StorageFile]) -> None: ...
|
|
42
42
|
|
|
43
43
|
@typing.final
|
|
44
44
|
class PhoneCallOriginManager_Static(type):
|
|
45
|
-
def request_set_as_active_call_origin_app_async(cls) ->
|
|
45
|
+
def request_set_as_active_call_origin_app_async(cls) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
46
46
|
def set_call_origin(cls, request_id: _uuid.UUID, call_origin: typing.Optional[PhoneCallOrigin], /) -> None: ...
|
|
47
47
|
def show_phone_call_origin_settings_u_i(cls) -> None: ...
|
|
48
48
|
@_property
|
|
@@ -52,6 +52,5 @@ class PhoneCallOriginManager_Static(type):
|
|
|
52
52
|
|
|
53
53
|
@typing.final
|
|
54
54
|
class PhoneCallOriginManager(winrt.system.Object, metaclass=PhoneCallOriginManager_Static):
|
|
55
|
-
|
|
56
|
-
def _from(obj: winrt.system.Object, /) -> PhoneCallOriginManager: ...
|
|
55
|
+
pass
|
|
57
56
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Calls.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.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: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.2.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.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|