winrt-Windows.ApplicationModel.Contacts.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_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/PKG-INFO +6 -6
- winrt_windows_applicationmodel_contacts_provider-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/py.Windows.ApplicationModel.Contacts.Provider.cpp +154 -90
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_contacts_provider-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/requirements.txt +2 -2
- winrt_windows_applicationmodel_contacts_provider-2.2.0/winrt/_winrt_windows_applicationmodel_contacts_provider.pyi +45 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/winrt/windows/applicationmodel/contacts/provider/__init__.py +1 -1
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/PKG-INFO +6 -6
- winrt_windows_applicationmodel_contacts_provider-2.2.0/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/requires.txt +6 -0
- winrt_windows_applicationmodel_contacts_provider-2.0.1/all-requirements.txt +0 -5
- winrt_windows_applicationmodel_contacts_provider-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_contacts_provider-2.0.1/winrt/_winrt_windows_applicationmodel_contacts_provider.pyi +0 -45
- winrt_windows_applicationmodel_contacts_provider-2.0.1/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/requires.txt +0 -6
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/winrt/windows/applicationmodel/contacts/provider/py.typed +0 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_contacts_provider-2.0.1 → winrt_windows_applicationmodel_contacts_provider-2.2.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Contacts.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,13 +10,13 @@ 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.ApplicationModel.Contacts[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -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.Contacts.Provider.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
7
6
|
{
|
|
8
7
|
// ----- ContactPickerUI class --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 1)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"AddContact", 1))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(1);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"AddContact", 1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(1);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Contacts::Contact>(args, 0);
|
|
40
46
|
|
|
41
47
|
return py::convert(self->obj.AddContact(param0));
|
|
@@ -48,14 +54,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
48
54
|
}
|
|
49
55
|
else if (arg_count == 2)
|
|
50
56
|
{
|
|
51
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"AddContact", 2))
|
|
52
|
-
{
|
|
53
|
-
py::set_arg_count_version_error(2);
|
|
54
|
-
return nullptr;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
57
|
try
|
|
58
58
|
{
|
|
59
|
+
static std::optional<bool> is_overload_present{};
|
|
60
|
+
|
|
61
|
+
if (!is_overload_present.has_value())
|
|
62
|
+
{
|
|
63
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"AddContact", 2);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (!is_overload_present.value())
|
|
67
|
+
{
|
|
68
|
+
py::set_arg_count_version_error(2);
|
|
69
|
+
return nullptr;
|
|
70
|
+
}
|
|
71
|
+
|
|
59
72
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
60
73
|
auto param1 = py::convert_to<winrt::Windows::ApplicationModel::Contacts::Contact>(args, 1);
|
|
61
74
|
|
|
@@ -80,14 +93,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
80
93
|
|
|
81
94
|
if (arg_count == 1)
|
|
82
95
|
{
|
|
83
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContainsContact", 1))
|
|
84
|
-
{
|
|
85
|
-
py::set_arg_count_version_error(1);
|
|
86
|
-
return nullptr;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
96
|
try
|
|
90
97
|
{
|
|
98
|
+
static std::optional<bool> is_overload_present{};
|
|
99
|
+
|
|
100
|
+
if (!is_overload_present.has_value())
|
|
101
|
+
{
|
|
102
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContainsContact", 1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (!is_overload_present.value())
|
|
106
|
+
{
|
|
107
|
+
py::set_arg_count_version_error(1);
|
|
108
|
+
return nullptr;
|
|
109
|
+
}
|
|
110
|
+
|
|
91
111
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
92
112
|
|
|
93
113
|
return py::convert(self->obj.ContainsContact(param0));
|
|
@@ -111,14 +131,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
111
131
|
|
|
112
132
|
if (arg_count == 1)
|
|
113
133
|
{
|
|
114
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"RemoveContact", 1))
|
|
115
|
-
{
|
|
116
|
-
py::set_arg_count_version_error(1);
|
|
117
|
-
return nullptr;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
134
|
try
|
|
121
135
|
{
|
|
136
|
+
static std::optional<bool> is_overload_present{};
|
|
137
|
+
|
|
138
|
+
if (!is_overload_present.has_value())
|
|
139
|
+
{
|
|
140
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"RemoveContact", 1);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (!is_overload_present.value())
|
|
144
|
+
{
|
|
145
|
+
py::set_arg_count_version_error(1);
|
|
146
|
+
return nullptr;
|
|
147
|
+
}
|
|
148
|
+
|
|
122
149
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
123
150
|
|
|
124
151
|
self->obj.RemoveContact(param0);
|
|
@@ -139,14 +166,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
139
166
|
|
|
140
167
|
static PyObject* ContactPickerUI_get_DesiredFields(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
|
|
141
168
|
{
|
|
142
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"DesiredFields"))
|
|
143
|
-
{
|
|
144
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
145
|
-
return nullptr;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
169
|
try
|
|
149
170
|
{
|
|
171
|
+
static std::optional<bool> is_property_present{};
|
|
172
|
+
|
|
173
|
+
if (!is_property_present.has_value())
|
|
174
|
+
{
|
|
175
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"DesiredFields");
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (!is_property_present.value())
|
|
179
|
+
{
|
|
180
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
181
|
+
return nullptr;
|
|
182
|
+
}
|
|
183
|
+
|
|
150
184
|
return py::convert(self->obj.DesiredFields());
|
|
151
185
|
}
|
|
152
186
|
catch (...)
|
|
@@ -158,14 +192,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
158
192
|
|
|
159
193
|
static PyObject* ContactPickerUI_get_SelectionMode(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
|
|
160
194
|
{
|
|
161
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"SelectionMode"))
|
|
162
|
-
{
|
|
163
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
164
|
-
return nullptr;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
195
|
try
|
|
168
196
|
{
|
|
197
|
+
static std::optional<bool> is_property_present{};
|
|
198
|
+
|
|
199
|
+
if (!is_property_present.has_value())
|
|
200
|
+
{
|
|
201
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"SelectionMode");
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (!is_property_present.value())
|
|
205
|
+
{
|
|
206
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
207
|
+
return nullptr;
|
|
208
|
+
}
|
|
209
|
+
|
|
169
210
|
return py::convert(self->obj.SelectionMode());
|
|
170
211
|
}
|
|
171
212
|
catch (...)
|
|
@@ -177,14 +218,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
177
218
|
|
|
178
219
|
static PyObject* ContactPickerUI_get_DesiredFieldsWithContactFieldType(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
|
|
179
220
|
{
|
|
180
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"DesiredFieldsWithContactFieldType"))
|
|
181
|
-
{
|
|
182
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
183
|
-
return nullptr;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
221
|
try
|
|
187
222
|
{
|
|
223
|
+
static std::optional<bool> is_property_present{};
|
|
224
|
+
|
|
225
|
+
if (!is_property_present.has_value())
|
|
226
|
+
{
|
|
227
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"DesiredFieldsWithContactFieldType");
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (!is_property_present.value())
|
|
231
|
+
{
|
|
232
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
233
|
+
return nullptr;
|
|
234
|
+
}
|
|
235
|
+
|
|
188
236
|
return py::convert(self->obj.DesiredFieldsWithContactFieldType());
|
|
189
237
|
}
|
|
190
238
|
catch (...)
|
|
@@ -196,14 +244,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
196
244
|
|
|
197
245
|
static PyObject* ContactPickerUI_add_ContactRemoved(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* arg) noexcept
|
|
198
246
|
{
|
|
199
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContactRemoved"))
|
|
200
|
-
{
|
|
201
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
202
|
-
return nullptr;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
247
|
try
|
|
206
248
|
{
|
|
249
|
+
static std::optional<bool> is_event_present{};
|
|
250
|
+
|
|
251
|
+
if (!is_event_present.has_value())
|
|
252
|
+
{
|
|
253
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContactRemoved");
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
if (!is_event_present.value())
|
|
257
|
+
{
|
|
258
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
259
|
+
return nullptr;
|
|
260
|
+
}
|
|
261
|
+
|
|
207
262
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI, winrt::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs>>(arg);
|
|
208
263
|
|
|
209
264
|
return py::convert(self->obj.ContactRemoved(param0));
|
|
@@ -217,14 +272,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
217
272
|
|
|
218
273
|
static PyObject* ContactPickerUI_remove_ContactRemoved(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* arg) noexcept
|
|
219
274
|
{
|
|
220
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContactRemoved"))
|
|
221
|
-
{
|
|
222
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
223
|
-
return nullptr;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
275
|
try
|
|
227
276
|
{
|
|
277
|
+
static std::optional<bool> is_event_present{};
|
|
278
|
+
|
|
279
|
+
if (!is_event_present.has_value())
|
|
280
|
+
{
|
|
281
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContactRemoved");
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (!is_event_present.value())
|
|
285
|
+
{
|
|
286
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
287
|
+
return nullptr;
|
|
288
|
+
}
|
|
289
|
+
|
|
228
290
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
229
291
|
|
|
230
292
|
self->obj.ContactRemoved(param0);
|
|
@@ -279,23 +341,20 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
279
341
|
{ }
|
|
280
342
|
};
|
|
281
343
|
|
|
282
|
-
static PyType_Slot _type_slots_ContactPickerUI[] =
|
|
283
|
-
{
|
|
344
|
+
static PyType_Slot _type_slots_ContactPickerUI[] = {
|
|
284
345
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ContactPickerUI) },
|
|
285
346
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ContactPickerUI) },
|
|
286
347
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ContactPickerUI) },
|
|
287
348
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ContactPickerUI) },
|
|
288
|
-
{ }
|
|
349
|
+
{ }
|
|
289
350
|
};
|
|
290
351
|
|
|
291
|
-
static PyType_Spec type_spec_ContactPickerUI =
|
|
292
|
-
{
|
|
352
|
+
static PyType_Spec type_spec_ContactPickerUI = {
|
|
293
353
|
"winrt._winrt_windows_applicationmodel_contacts_provider.ContactPickerUI",
|
|
294
354
|
sizeof(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI),
|
|
295
355
|
0,
|
|
296
356
|
Py_TPFLAGS_DEFAULT,
|
|
297
|
-
_type_slots_ContactPickerUI
|
|
298
|
-
};
|
|
357
|
+
_type_slots_ContactPickerUI};
|
|
299
358
|
|
|
300
359
|
// ----- ContactRemovedEventArgs class --------------------
|
|
301
360
|
|
|
@@ -316,14 +375,21 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
316
375
|
|
|
317
376
|
static PyObject* ContactRemovedEventArgs_get_Id(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs* self, void* /*unused*/) noexcept
|
|
318
377
|
{
|
|
319
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs", L"Id"))
|
|
320
|
-
{
|
|
321
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
322
|
-
return nullptr;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
378
|
try
|
|
326
379
|
{
|
|
380
|
+
static std::optional<bool> is_property_present{};
|
|
381
|
+
|
|
382
|
+
if (!is_property_present.has_value())
|
|
383
|
+
{
|
|
384
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs", L"Id");
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
if (!is_property_present.value())
|
|
388
|
+
{
|
|
389
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
390
|
+
return nullptr;
|
|
391
|
+
}
|
|
392
|
+
|
|
327
393
|
return py::convert(self->obj.Id());
|
|
328
394
|
}
|
|
329
395
|
catch (...)
|
|
@@ -368,39 +434,35 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
368
434
|
{ }
|
|
369
435
|
};
|
|
370
436
|
|
|
371
|
-
static PyType_Slot _type_slots_ContactRemovedEventArgs[] =
|
|
372
|
-
{
|
|
437
|
+
static PyType_Slot _type_slots_ContactRemovedEventArgs[] = {
|
|
373
438
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ContactRemovedEventArgs) },
|
|
374
439
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ContactRemovedEventArgs) },
|
|
375
440
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ContactRemovedEventArgs) },
|
|
376
441
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ContactRemovedEventArgs) },
|
|
377
|
-
{ }
|
|
442
|
+
{ }
|
|
378
443
|
};
|
|
379
444
|
|
|
380
|
-
static PyType_Spec type_spec_ContactRemovedEventArgs =
|
|
381
|
-
{
|
|
445
|
+
static PyType_Spec type_spec_ContactRemovedEventArgs = {
|
|
382
446
|
"winrt._winrt_windows_applicationmodel_contacts_provider.ContactRemovedEventArgs",
|
|
383
447
|
sizeof(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs),
|
|
384
448
|
0,
|
|
385
449
|
Py_TPFLAGS_DEFAULT,
|
|
386
|
-
_type_slots_ContactRemovedEventArgs
|
|
387
|
-
};
|
|
450
|
+
_type_slots_ContactRemovedEventArgs};
|
|
388
451
|
|
|
389
452
|
// ----- Windows.ApplicationModel.Contacts.Provider Initialization --------------------
|
|
390
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Contacts::Provider");
|
|
391
|
-
|
|
392
453
|
|
|
393
|
-
|
|
394
|
-
= {PyModuleDef_HEAD_INIT,
|
|
395
|
-
"_winrt_windows_applicationmodel_contacts_provider",
|
|
396
|
-
module_doc,
|
|
397
|
-
0,
|
|
398
|
-
nullptr,
|
|
399
|
-
nullptr,
|
|
400
|
-
nullptr,
|
|
401
|
-
nullptr,
|
|
402
|
-
nullptr};
|
|
454
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Contacts.Provider");
|
|
403
455
|
|
|
456
|
+
static PyModuleDef module_def = {
|
|
457
|
+
PyModuleDef_HEAD_INIT,
|
|
458
|
+
"_winrt_windows_applicationmodel_contacts_provider",
|
|
459
|
+
module_doc,
|
|
460
|
+
0,
|
|
461
|
+
nullptr,
|
|
462
|
+
nullptr,
|
|
463
|
+
nullptr,
|
|
464
|
+
nullptr,
|
|
465
|
+
nullptr};
|
|
404
466
|
} // py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
405
467
|
|
|
406
468
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_contacts_provider(void) noexcept
|
|
@@ -432,12 +494,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_contacts_provider(void) no
|
|
|
432
494
|
return nullptr;
|
|
433
495
|
}
|
|
434
496
|
|
|
435
|
-
|
|
497
|
+
py::pytype_handle ContactPickerUI_type{py::register_python_type(module.get(), &type_spec_ContactPickerUI, object_bases.get(), nullptr)};
|
|
498
|
+
if (!ContactPickerUI_type)
|
|
436
499
|
{
|
|
437
500
|
return nullptr;
|
|
438
501
|
}
|
|
439
502
|
|
|
440
|
-
|
|
503
|
+
py::pytype_handle ContactRemovedEventArgs_type{py::register_python_type(module.get(), &type_spec_ContactRemovedEventArgs, object_bases.get(), nullptr)};
|
|
504
|
+
if (!ContactRemovedEventArgs_type)
|
|
441
505
|
{
|
|
442
506
|
return nullptr;
|
|
443
507
|
}
|
|
@@ -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
|
|
@@ -0,0 +1,45 @@
|
|
|
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.applicationmodel.contacts as windows_applicationmodel_contacts
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
+
|
|
16
|
+
from winrt.windows.applicationmodel.contacts.provider import AddContactResult
|
|
17
|
+
|
|
18
|
+
Self = typing.TypeVar('Self')
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class ContactPickerUI(winrt.system.Object):
|
|
22
|
+
@staticmethod
|
|
23
|
+
def _from(obj: winrt.system.Object, /) -> ContactPickerUI: ...
|
|
24
|
+
@typing.overload
|
|
25
|
+
def add_contact(self, contact: typing.Optional[windows_applicationmodel_contacts.Contact], /) -> AddContactResult: ...
|
|
26
|
+
@typing.overload
|
|
27
|
+
def add_contact(self, id: str, contact: typing.Optional[windows_applicationmodel_contacts.Contact], /) -> AddContactResult: ...
|
|
28
|
+
def contains_contact(self, id: str, /) -> bool: ...
|
|
29
|
+
def remove_contact(self, id: str, /) -> None: ...
|
|
30
|
+
def add_contact_removed(self, handler: windows_foundation.TypedEventHandler[ContactPickerUI, ContactRemovedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
31
|
+
def remove_contact_removed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
32
|
+
@_property
|
|
33
|
+
def desired_fields(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
34
|
+
@_property
|
|
35
|
+
def selection_mode(self) -> windows_applicationmodel_contacts.ContactSelectionMode: ...
|
|
36
|
+
@_property
|
|
37
|
+
def desired_fields_with_contact_field_type(self) -> typing.Optional[windows_foundation_collections.IVector[windows_applicationmodel_contacts.ContactFieldType]]: ...
|
|
38
|
+
|
|
39
|
+
@typing.final
|
|
40
|
+
class ContactRemovedEventArgs(winrt.system.Object):
|
|
41
|
+
@staticmethod
|
|
42
|
+
def _from(obj: winrt.system.Object, /) -> ContactRemovedEventArgs: ...
|
|
43
|
+
@_property
|
|
44
|
+
def id(self) -> str: ...
|
|
45
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Contacts.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,13 +10,13 @@ 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.ApplicationModel.Contacts[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.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.applicationmodel.contacts
|
|
13
|
-
import winrt.windows.foundation
|
|
14
|
-
import winrt.windows.foundation.collections
|
|
15
|
-
|
|
16
|
-
from winrt.windows.applicationmodel.contacts.provider import AddContactResult
|
|
17
|
-
|
|
18
|
-
Self = typing.TypeVar('Self')
|
|
19
|
-
|
|
20
|
-
@typing.final
|
|
21
|
-
class ContactPickerUI(winrt.system.Object):
|
|
22
|
-
@staticmethod
|
|
23
|
-
def _from(obj: winrt.system.Object, /) -> ContactPickerUI: ...
|
|
24
|
-
@typing.overload
|
|
25
|
-
def add_contact(self, contact: typing.Optional[winrt.windows.applicationmodel.contacts.Contact], /) -> AddContactResult: ...
|
|
26
|
-
@typing.overload
|
|
27
|
-
def add_contact(self, id: str, contact: typing.Optional[winrt.windows.applicationmodel.contacts.Contact], /) -> AddContactResult: ...
|
|
28
|
-
def contains_contact(self, id: str, /) -> bool: ...
|
|
29
|
-
def remove_contact(self, id: str, /) -> None: ...
|
|
30
|
-
def add_contact_removed(self, handler: winrt.windows.foundation.TypedEventHandler[ContactPickerUI, ContactRemovedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
31
|
-
def remove_contact_removed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
32
|
-
@_property
|
|
33
|
-
def desired_fields(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[str]]: ...
|
|
34
|
-
@_property
|
|
35
|
-
def selection_mode(self) -> winrt.windows.applicationmodel.contacts.ContactSelectionMode: ...
|
|
36
|
-
@_property
|
|
37
|
-
def desired_fields_with_contact_field_type(self) -> typing.Optional[winrt.windows.foundation.collections.IVector[winrt.windows.applicationmodel.contacts.ContactFieldType]]: ...
|
|
38
|
-
|
|
39
|
-
@typing.final
|
|
40
|
-
class ContactRemovedEventArgs(winrt.system.Object):
|
|
41
|
-
@staticmethod
|
|
42
|
-
def _from(obj: winrt.system.Object, /) -> ContactRemovedEventArgs: ...
|
|
43
|
-
@_property
|
|
44
|
-
def id(self) -> str: ...
|
|
45
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|