winrt-Windows.ApplicationModel.Contacts.Provider 2.0.0b2__tar.gz → 2.1.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.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/PKG-INFO +5 -1
- winrt_windows_applicationmodel_contacts_provider-2.1.0/all-requirements.txt +5 -0
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/py.Windows.ApplicationModel.Contacts.Provider.cpp +80 -88
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_contacts_provider-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/requirements.txt +2 -2
- winrt_windows_applicationmodel_contacts_provider-2.1.0/setup.py +31 -0
- winrt_windows_applicationmodel_contacts_provider-2.1.0/winrt/_winrt_windows_applicationmodel_contacts_provider.pyi +45 -0
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/winrt/windows/applicationmodel/contacts/provider/__init__.py +1 -1
- winrt_windows_applicationmodel_contacts_provider-2.1.0/winrt/windows/applicationmodel/contacts/provider/py.typed +0 -0
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/PKG-INFO +5 -1
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/SOURCES.txt +1 -0
- winrt_windows_applicationmodel_contacts_provider-2.1.0/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/requires.txt +6 -0
- winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2/all-requirements.txt +0 -5
- winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2/setup.py +0 -16
- winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2/winrt/_winrt_windows_applicationmodel_contacts_provider.pyi +0 -45
- winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/requires.txt +0 -6
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/README.md +0 -0
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b2 → winrt_windows_applicationmodel_contacts_provider-2.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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,14 @@ 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
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"AddContact", 1))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(1);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Contacts::Contact>(args, 0);
|
|
40
39
|
|
|
41
40
|
return py::convert(self->obj.AddContact(param0));
|
|
@@ -48,14 +47,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
48
47
|
}
|
|
49
48
|
else if (arg_count == 2)
|
|
50
49
|
{
|
|
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
50
|
try
|
|
58
51
|
{
|
|
52
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"AddContact", 2))
|
|
53
|
+
{
|
|
54
|
+
py::set_arg_count_version_error(2);
|
|
55
|
+
return nullptr;
|
|
56
|
+
}
|
|
57
|
+
|
|
59
58
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
60
59
|
auto param1 = py::convert_to<winrt::Windows::ApplicationModel::Contacts::Contact>(args, 1);
|
|
61
60
|
|
|
@@ -80,14 +79,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
80
79
|
|
|
81
80
|
if (arg_count == 1)
|
|
82
81
|
{
|
|
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
82
|
try
|
|
90
83
|
{
|
|
84
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContainsContact", 1))
|
|
85
|
+
{
|
|
86
|
+
py::set_arg_count_version_error(1);
|
|
87
|
+
return nullptr;
|
|
88
|
+
}
|
|
89
|
+
|
|
91
90
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
92
91
|
|
|
93
92
|
return py::convert(self->obj.ContainsContact(param0));
|
|
@@ -111,14 +110,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
111
110
|
|
|
112
111
|
if (arg_count == 1)
|
|
113
112
|
{
|
|
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
113
|
try
|
|
121
114
|
{
|
|
115
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"RemoveContact", 1))
|
|
116
|
+
{
|
|
117
|
+
py::set_arg_count_version_error(1);
|
|
118
|
+
return nullptr;
|
|
119
|
+
}
|
|
120
|
+
|
|
122
121
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
123
122
|
|
|
124
123
|
self->obj.RemoveContact(param0);
|
|
@@ -139,14 +138,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
139
138
|
|
|
140
139
|
static PyObject* ContactPickerUI_get_DesiredFields(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
|
|
141
140
|
{
|
|
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
141
|
try
|
|
149
142
|
{
|
|
143
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"DesiredFields"))
|
|
144
|
+
{
|
|
145
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
146
|
+
return nullptr;
|
|
147
|
+
}
|
|
148
|
+
|
|
150
149
|
return py::convert(self->obj.DesiredFields());
|
|
151
150
|
}
|
|
152
151
|
catch (...)
|
|
@@ -158,14 +157,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
158
157
|
|
|
159
158
|
static PyObject* ContactPickerUI_get_SelectionMode(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
|
|
160
159
|
{
|
|
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
160
|
try
|
|
168
161
|
{
|
|
162
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"SelectionMode"))
|
|
163
|
+
{
|
|
164
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
165
|
+
return nullptr;
|
|
166
|
+
}
|
|
167
|
+
|
|
169
168
|
return py::convert(self->obj.SelectionMode());
|
|
170
169
|
}
|
|
171
170
|
catch (...)
|
|
@@ -177,14 +176,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
177
176
|
|
|
178
177
|
static PyObject* ContactPickerUI_get_DesiredFieldsWithContactFieldType(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
|
|
179
178
|
{
|
|
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
179
|
try
|
|
187
180
|
{
|
|
181
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"DesiredFieldsWithContactFieldType"))
|
|
182
|
+
{
|
|
183
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
184
|
+
return nullptr;
|
|
185
|
+
}
|
|
186
|
+
|
|
188
187
|
return py::convert(self->obj.DesiredFieldsWithContactFieldType());
|
|
189
188
|
}
|
|
190
189
|
catch (...)
|
|
@@ -196,14 +195,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
196
195
|
|
|
197
196
|
static PyObject* ContactPickerUI_add_ContactRemoved(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* arg) noexcept
|
|
198
197
|
{
|
|
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
198
|
try
|
|
206
199
|
{
|
|
200
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContactRemoved"))
|
|
201
|
+
{
|
|
202
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
203
|
+
return nullptr;
|
|
204
|
+
}
|
|
205
|
+
|
|
207
206
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI, winrt::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs>>(arg);
|
|
208
207
|
|
|
209
208
|
return py::convert(self->obj.ContactRemoved(param0));
|
|
@@ -217,14 +216,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
217
216
|
|
|
218
217
|
static PyObject* ContactPickerUI_remove_ContactRemoved(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* arg) noexcept
|
|
219
218
|
{
|
|
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
219
|
try
|
|
227
220
|
{
|
|
221
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactPickerUI", L"ContactRemoved"))
|
|
222
|
+
{
|
|
223
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
224
|
+
return nullptr;
|
|
225
|
+
}
|
|
226
|
+
|
|
228
227
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
229
228
|
|
|
230
229
|
self->obj.ContactRemoved(param0);
|
|
@@ -279,23 +278,20 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
279
278
|
{ }
|
|
280
279
|
};
|
|
281
280
|
|
|
282
|
-
static PyType_Slot _type_slots_ContactPickerUI[] =
|
|
283
|
-
{
|
|
281
|
+
static PyType_Slot _type_slots_ContactPickerUI[] = {
|
|
284
282
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ContactPickerUI) },
|
|
285
283
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ContactPickerUI) },
|
|
286
284
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ContactPickerUI) },
|
|
287
285
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ContactPickerUI) },
|
|
288
|
-
{ }
|
|
286
|
+
{ }
|
|
289
287
|
};
|
|
290
288
|
|
|
291
|
-
static PyType_Spec type_spec_ContactPickerUI =
|
|
292
|
-
{
|
|
289
|
+
static PyType_Spec type_spec_ContactPickerUI = {
|
|
293
290
|
"winrt._winrt_windows_applicationmodel_contacts_provider.ContactPickerUI",
|
|
294
291
|
sizeof(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI),
|
|
295
292
|
0,
|
|
296
293
|
Py_TPFLAGS_DEFAULT,
|
|
297
|
-
_type_slots_ContactPickerUI
|
|
298
|
-
};
|
|
294
|
+
_type_slots_ContactPickerUI};
|
|
299
295
|
|
|
300
296
|
// ----- ContactRemovedEventArgs class --------------------
|
|
301
297
|
|
|
@@ -316,14 +312,14 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
316
312
|
|
|
317
313
|
static PyObject* ContactRemovedEventArgs_get_Id(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs* self, void* /*unused*/) noexcept
|
|
318
314
|
{
|
|
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
315
|
try
|
|
326
316
|
{
|
|
317
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs", L"Id"))
|
|
318
|
+
{
|
|
319
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
320
|
+
return nullptr;
|
|
321
|
+
}
|
|
322
|
+
|
|
327
323
|
return py::convert(self->obj.Id());
|
|
328
324
|
}
|
|
329
325
|
catch (...)
|
|
@@ -368,39 +364,35 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
|
368
364
|
{ }
|
|
369
365
|
};
|
|
370
366
|
|
|
371
|
-
static PyType_Slot _type_slots_ContactRemovedEventArgs[] =
|
|
372
|
-
{
|
|
367
|
+
static PyType_Slot _type_slots_ContactRemovedEventArgs[] = {
|
|
373
368
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ContactRemovedEventArgs) },
|
|
374
369
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ContactRemovedEventArgs) },
|
|
375
370
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ContactRemovedEventArgs) },
|
|
376
371
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ContactRemovedEventArgs) },
|
|
377
|
-
{ }
|
|
372
|
+
{ }
|
|
378
373
|
};
|
|
379
374
|
|
|
380
|
-
static PyType_Spec type_spec_ContactRemovedEventArgs =
|
|
381
|
-
{
|
|
375
|
+
static PyType_Spec type_spec_ContactRemovedEventArgs = {
|
|
382
376
|
"winrt._winrt_windows_applicationmodel_contacts_provider.ContactRemovedEventArgs",
|
|
383
377
|
sizeof(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs),
|
|
384
378
|
0,
|
|
385
379
|
Py_TPFLAGS_DEFAULT,
|
|
386
|
-
_type_slots_ContactRemovedEventArgs
|
|
387
|
-
};
|
|
380
|
+
_type_slots_ContactRemovedEventArgs};
|
|
388
381
|
|
|
389
382
|
// ----- Windows.ApplicationModel.Contacts.Provider Initialization --------------------
|
|
390
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Contacts::Provider");
|
|
391
383
|
|
|
384
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Contacts.Provider");
|
|
392
385
|
|
|
393
|
-
static PyModuleDef module_def
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
386
|
+
static PyModuleDef module_def = {
|
|
387
|
+
PyModuleDef_HEAD_INIT,
|
|
388
|
+
"_winrt_windows_applicationmodel_contacts_provider",
|
|
389
|
+
module_doc,
|
|
390
|
+
0,
|
|
391
|
+
nullptr,
|
|
392
|
+
nullptr,
|
|
393
|
+
nullptr,
|
|
394
|
+
nullptr,
|
|
395
|
+
nullptr};
|
|
404
396
|
} // py::cpp::Windows::ApplicationModel::Contacts::Provider
|
|
405
397
|
|
|
406
398
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_contacts_provider(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_applicationmodel_contacts_provider",
|
|
26
|
+
sources=["py.Windows.ApplicationModel.Contacts.Provider.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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
|
+
|
|
File without changes
|
|
@@ -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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_applicationmodel_contacts_provider.pyi
|
|
9
9
|
winrt/windows/applicationmodel/contacts/provider/__init__.py
|
|
10
|
+
winrt/windows/applicationmodel/contacts/provider/py.typed
|
|
10
11
|
winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_applicationmodel_contacts_provider",
|
|
10
|
-
sources=["py.Windows.ApplicationModel.Contacts.Provider.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
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
|