winrt-Windows.ApplicationModel.Contacts.Provider 2.0.0b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/PKG-INFO +22 -0
  2. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/README.md +7 -0
  3. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/all-requirements.txt +5 -0
  4. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/py.Windows.ApplicationModel.Contacts.Provider.cpp +447 -0
  5. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/pyproject.toml +43 -0
  6. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/pywinrt-version.txt +1 -0
  7. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/requirements.txt +3 -0
  8. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/setup.cfg +4 -0
  9. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/setup.py +17 -0
  10. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/winrt/_winrt_windows_applicationmodel_contacts_provider.pyi +43 -0
  11. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/winrt/windows/applicationmodel/contacts/provider/__init__.py +20 -0
  12. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/PKG-INFO +22 -0
  13. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/SOURCES.txt +14 -0
  14. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/dependency_links.txt +1 -0
  15. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/requires.txt +6 -0
  16. winrt-Windows.ApplicationModel.Contacts.Provider-2.0.0b1/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/top_level.txt +1 -0
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.ApplicationModel.Contacts.Provider
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.ApplicationModel.Contacts.Provider
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Contacts.Provider` namespace.
21
+
22
+ This package provides the `winrt.windows.applicationmodel.contacts.provider` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.ApplicationModel.Contacts.Provider
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Contacts.Provider` namespace.
6
+
7
+ This package provides the `winrt.windows.applicationmodel.contacts.provider` module.
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-Windows.ApplicationModel.Contacts[all]==2.0.0-beta.1
4
+ winrt-Windows.Foundation[all]==2.0.0-beta.1
5
+ winrt-Windows.Foundation.Collections[all]==2.0.0-beta.1
@@ -0,0 +1,447 @@
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ #include "py.Windows.ApplicationModel.Contacts.Provider.h"
4
+
5
+
6
+ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
7
+ {
8
+ // ----- ContactPickerUI class --------------------
9
+
10
+ static PyObject* _new_ContactPickerUI(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
11
+ {
12
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI>::type_name);
13
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI>::type_name);
14
+ return nullptr;
15
+ }
16
+
17
+ static void _dealloc_ContactPickerUI(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self) noexcept
18
+ {
19
+ auto tp = Py_TYPE(self);
20
+ std::destroy_at(&self->obj);
21
+ tp->tp_free(self);
22
+ Py_DECREF(tp);
23
+ }
24
+
25
+ static PyObject* ContactPickerUI_AddContact(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* args) noexcept
26
+ {
27
+ auto arg_count = PyTuple_Size(args);
28
+
29
+ if (arg_count == 1)
30
+ {
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
+ try
38
+ {
39
+ auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Contacts::Contact>(args, 0);
40
+
41
+ return py::convert(self->obj.AddContact(param0));
42
+ }
43
+ catch (...)
44
+ {
45
+ py::to_PyErr();
46
+ return nullptr;
47
+ }
48
+ }
49
+ else if (arg_count == 2)
50
+ {
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
+ try
58
+ {
59
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
60
+ auto param1 = py::convert_to<winrt::Windows::ApplicationModel::Contacts::Contact>(args, 1);
61
+
62
+ return py::convert(self->obj.AddContact(param0, param1));
63
+ }
64
+ catch (...)
65
+ {
66
+ py::to_PyErr();
67
+ return nullptr;
68
+ }
69
+ }
70
+ else
71
+ {
72
+ py::set_invalid_arg_count_error(arg_count);
73
+ return nullptr;
74
+ }
75
+ }
76
+
77
+ static PyObject* ContactPickerUI_ContainsContact(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* args) noexcept
78
+ {
79
+ auto arg_count = PyTuple_Size(args);
80
+
81
+ if (arg_count == 1)
82
+ {
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
+ try
90
+ {
91
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
92
+
93
+ return py::convert(self->obj.ContainsContact(param0));
94
+ }
95
+ catch (...)
96
+ {
97
+ py::to_PyErr();
98
+ return nullptr;
99
+ }
100
+ }
101
+ else
102
+ {
103
+ py::set_invalid_arg_count_error(arg_count);
104
+ return nullptr;
105
+ }
106
+ }
107
+
108
+ static PyObject* ContactPickerUI_RemoveContact(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* args) noexcept
109
+ {
110
+ auto arg_count = PyTuple_Size(args);
111
+
112
+ if (arg_count == 1)
113
+ {
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
+ try
121
+ {
122
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
123
+
124
+ self->obj.RemoveContact(param0);
125
+ Py_RETURN_NONE;
126
+ }
127
+ catch (...)
128
+ {
129
+ py::to_PyErr();
130
+ return nullptr;
131
+ }
132
+ }
133
+ else
134
+ {
135
+ py::set_invalid_arg_count_error(arg_count);
136
+ return nullptr;
137
+ }
138
+ }
139
+
140
+ static PyObject* ContactPickerUI_get_DesiredFields(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
141
+ {
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
+ try
149
+ {
150
+ return py::convert(self->obj.DesiredFields());
151
+ }
152
+ catch (...)
153
+ {
154
+ py::to_PyErr();
155
+ return nullptr;
156
+ }
157
+ }
158
+
159
+ static PyObject* ContactPickerUI_get_SelectionMode(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
160
+ {
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
+ try
168
+ {
169
+ return py::convert(self->obj.SelectionMode());
170
+ }
171
+ catch (...)
172
+ {
173
+ py::to_PyErr();
174
+ return nullptr;
175
+ }
176
+ }
177
+
178
+ static PyObject* ContactPickerUI_get_DesiredFieldsWithContactFieldType(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, void* /*unused*/) noexcept
179
+ {
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
+ try
187
+ {
188
+ return py::convert(self->obj.DesiredFieldsWithContactFieldType());
189
+ }
190
+ catch (...)
191
+ {
192
+ py::to_PyErr();
193
+ return nullptr;
194
+ }
195
+ }
196
+
197
+ static PyObject* ContactPickerUI_add_ContactRemoved(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* arg) noexcept
198
+ {
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
+ try
206
+ {
207
+ auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI, winrt::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs>>(arg);
208
+
209
+ return py::convert(self->obj.ContactRemoved(param0));
210
+ }
211
+ catch (...)
212
+ {
213
+ py::to_PyErr();
214
+ return nullptr;
215
+ }
216
+ }
217
+
218
+ static PyObject* ContactPickerUI_remove_ContactRemoved(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* arg) noexcept
219
+ {
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
+ try
227
+ {
228
+ auto param0 = py::convert_to<winrt::event_token>(arg);
229
+
230
+ self->obj.ContactRemoved(param0);
231
+ Py_RETURN_NONE;
232
+ }
233
+ catch (...)
234
+ {
235
+ py::to_PyErr();
236
+ return nullptr;
237
+ }
238
+ }
239
+
240
+ static PyObject* _assign_array_ContactPickerUI(PyObject* /*unused*/, PyObject* arg) noexcept
241
+ {
242
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI>>();
243
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
244
+ {
245
+ return nullptr;
246
+ }
247
+ Py_RETURN_NONE;
248
+ }
249
+
250
+ static PyObject* _from_ContactPickerUI(PyObject* /*unused*/, PyObject* arg) noexcept
251
+ {
252
+ try
253
+ {
254
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
255
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI>());
256
+ }
257
+ catch (...)
258
+ {
259
+ py::to_PyErr();
260
+ return nullptr;
261
+ }
262
+ }
263
+
264
+ static PyMethodDef _methods_ContactPickerUI[] = {
265
+ { "add_contact", reinterpret_cast<PyCFunction>(ContactPickerUI_AddContact), METH_VARARGS, nullptr },
266
+ { "contains_contact", reinterpret_cast<PyCFunction>(ContactPickerUI_ContainsContact), METH_VARARGS, nullptr },
267
+ { "remove_contact", reinterpret_cast<PyCFunction>(ContactPickerUI_RemoveContact), METH_VARARGS, nullptr },
268
+ { "add_contact_removed", reinterpret_cast<PyCFunction>(ContactPickerUI_add_ContactRemoved), METH_O, nullptr },
269
+ { "remove_contact_removed", reinterpret_cast<PyCFunction>(ContactPickerUI_remove_ContactRemoved), METH_O, nullptr },
270
+ { "_assign_array_", _assign_array_ContactPickerUI, METH_O | METH_STATIC, nullptr },
271
+ { "_from", reinterpret_cast<PyCFunction>(_from_ContactPickerUI), METH_O | METH_STATIC, nullptr },
272
+ { }
273
+ };
274
+
275
+ static PyGetSetDef _getset_ContactPickerUI[] = {
276
+ { "desired_fields", reinterpret_cast<getter>(ContactPickerUI_get_DesiredFields), nullptr, nullptr, nullptr },
277
+ { "selection_mode", reinterpret_cast<getter>(ContactPickerUI_get_SelectionMode), nullptr, nullptr, nullptr },
278
+ { "desired_fields_with_contact_field_type", reinterpret_cast<getter>(ContactPickerUI_get_DesiredFieldsWithContactFieldType), nullptr, nullptr, nullptr },
279
+ { }
280
+ };
281
+
282
+ static PyType_Slot _type_slots_ContactPickerUI[] =
283
+ {
284
+ { Py_tp_new, reinterpret_cast<void*>(_new_ContactPickerUI) },
285
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ContactPickerUI) },
286
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_ContactPickerUI) },
287
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_ContactPickerUI) },
288
+ { },
289
+ };
290
+
291
+ static PyType_Spec type_spec_ContactPickerUI =
292
+ {
293
+ "winrt._winrt_windows_applicationmodel_contacts_provider.ContactPickerUI",
294
+ sizeof(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI),
295
+ 0,
296
+ Py_TPFLAGS_DEFAULT,
297
+ _type_slots_ContactPickerUI
298
+ };
299
+
300
+ // ----- ContactRemovedEventArgs class --------------------
301
+
302
+ static PyObject* _new_ContactRemovedEventArgs(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
303
+ {
304
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs>::type_name);
305
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs>::type_name);
306
+ return nullptr;
307
+ }
308
+
309
+ static void _dealloc_ContactRemovedEventArgs(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs* self) noexcept
310
+ {
311
+ auto tp = Py_TYPE(self);
312
+ std::destroy_at(&self->obj);
313
+ tp->tp_free(self);
314
+ Py_DECREF(tp);
315
+ }
316
+
317
+ static PyObject* ContactRemovedEventArgs_get_Id(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs* self, void* /*unused*/) noexcept
318
+ {
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
+ try
326
+ {
327
+ return py::convert(self->obj.Id());
328
+ }
329
+ catch (...)
330
+ {
331
+ py::to_PyErr();
332
+ return nullptr;
333
+ }
334
+ }
335
+
336
+ static PyObject* _assign_array_ContactRemovedEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
337
+ {
338
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs>>();
339
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
340
+ {
341
+ return nullptr;
342
+ }
343
+ Py_RETURN_NONE;
344
+ }
345
+
346
+ static PyObject* _from_ContactRemovedEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
347
+ {
348
+ try
349
+ {
350
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
351
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs>());
352
+ }
353
+ catch (...)
354
+ {
355
+ py::to_PyErr();
356
+ return nullptr;
357
+ }
358
+ }
359
+
360
+ static PyMethodDef _methods_ContactRemovedEventArgs[] = {
361
+ { "_assign_array_", _assign_array_ContactRemovedEventArgs, METH_O | METH_STATIC, nullptr },
362
+ { "_from", reinterpret_cast<PyCFunction>(_from_ContactRemovedEventArgs), METH_O | METH_STATIC, nullptr },
363
+ { }
364
+ };
365
+
366
+ static PyGetSetDef _getset_ContactRemovedEventArgs[] = {
367
+ { "id", reinterpret_cast<getter>(ContactRemovedEventArgs_get_Id), nullptr, nullptr, nullptr },
368
+ { }
369
+ };
370
+
371
+ static PyType_Slot _type_slots_ContactRemovedEventArgs[] =
372
+ {
373
+ { Py_tp_new, reinterpret_cast<void*>(_new_ContactRemovedEventArgs) },
374
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ContactRemovedEventArgs) },
375
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_ContactRemovedEventArgs) },
376
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_ContactRemovedEventArgs) },
377
+ { },
378
+ };
379
+
380
+ static PyType_Spec type_spec_ContactRemovedEventArgs =
381
+ {
382
+ "winrt._winrt_windows_applicationmodel_contacts_provider.ContactRemovedEventArgs",
383
+ sizeof(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs),
384
+ 0,
385
+ Py_TPFLAGS_DEFAULT,
386
+ _type_slots_ContactRemovedEventArgs
387
+ };
388
+
389
+ // ----- Windows.ApplicationModel.Contacts.Provider Initialization --------------------
390
+ PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Contacts::Provider");
391
+
392
+
393
+ static PyModuleDef module_def
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};
403
+
404
+ } // py::cpp::Windows::ApplicationModel::Contacts::Provider
405
+
406
+ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_contacts_provider(void) noexcept
407
+ {
408
+ using namespace py::cpp::Windows::ApplicationModel::Contacts::Provider;
409
+
410
+ if (py::import_winrt_runtime() == -1)
411
+ {
412
+ return nullptr;
413
+ }
414
+
415
+ py::pyobj_handle module{PyModule_Create(&module_def)};
416
+
417
+ if (!module)
418
+ {
419
+ return nullptr;
420
+ }
421
+
422
+ auto object_type = py::get_object_type();
423
+ if (!object_type)
424
+ {
425
+ return nullptr;
426
+ }
427
+
428
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
429
+
430
+ if (!object_bases)
431
+ {
432
+ return nullptr;
433
+ }
434
+
435
+ if (py::register_python_type(module.get(), &type_spec_ContactPickerUI, object_bases.get(), nullptr) == -1)
436
+ {
437
+ return nullptr;
438
+ }
439
+
440
+ if (py::register_python_type(module.get(), &type_spec_ContactRemovedEventArgs, object_bases.get(), nullptr) == -1)
441
+ {
442
+ return nullptr;
443
+ }
444
+
445
+
446
+ return module.detach();
447
+ }
@@ -0,0 +1,43 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
5
+ build-backend = "setuptools.build_meta"
6
+
7
+ [project]
8
+ name = "winrt-Windows.ApplicationModel.Contacts.Provider"
9
+ description = "Python projection of Windows Runtime (WinRT) APIs"
10
+ readme = "README.md"
11
+ license = { text = "MIT" }
12
+ classifiers = [
13
+ "Operating System :: Microsoft :: Windows",
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: Python :: Implementation :: CPython",
16
+ "Intended Audience :: Developers",
17
+ ]
18
+ dynamic = ["version", "dependencies", "optional-dependencies"]
19
+ requires-python = ">=3.9,<3.13"
20
+
21
+ [project.urls]
22
+ # Homepage = "https://github.com/pywrint/pywrinrt"
23
+ # Documentation = "https://readthedocs.org"
24
+ Repository = "https://github.com/pywrint/pywrinrt"
25
+ Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
26
+
27
+ [tool.setuptools.dynamic]
28
+ version = { file = "pywinrt-version.txt" }
29
+ dependencies = { file = "requirements.txt" }
30
+ optional-dependencies.all = { file = "all-requirements.txt" }
31
+
32
+ [tool.cibuildwheel]
33
+ # use local winrt-sdk build dependency
34
+ environment = { PYTHONPATH="../winrt-sdk/src" }
35
+ # don't install winrt-sdk from PyPI
36
+ build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
37
+ # don't build for PyPy
38
+ skip = "pp*"
39
+ # suppress warnings about ARM64 testing
40
+ test-skip = "*-win_arm64"
41
+
42
+ [tool.cibuildwheel.windows]
43
+ archs = ["x86", "AMD64", "ARM64"]
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-runtime==2.0.0-beta.1
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,17 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from winrt_sdk import get_include_dirs
5
+
6
+ setup(
7
+ ext_modules=[
8
+ Extension(
9
+ "winrt._winrt_windows_applicationmodel_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
+ package_data={"winrt": ["*.pyi"]},
17
+ )
@@ -0,0 +1,43 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.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
+ class ContactPickerUI(winrt.system.Object):
21
+ @staticmethod
22
+ def _from(obj: winrt.system.Object, /) -> ContactPickerUI: ...
23
+ @typing.overload
24
+ def add_contact(self, contact: typing.Optional[winrt.windows.applicationmodel.contacts.Contact], /) -> AddContactResult: ...
25
+ @typing.overload
26
+ def add_contact(self, id: str, contact: typing.Optional[winrt.windows.applicationmodel.contacts.Contact], /) -> AddContactResult: ...
27
+ def contains_contact(self, id: str, /) -> bool: ...
28
+ def remove_contact(self, id: str, /) -> None: ...
29
+ def add_contact_removed(self, handler: winrt.windows.foundation.TypedEventHandler[ContactPickerUI, ContactRemovedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
30
+ def remove_contact_removed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
31
+ @_property
32
+ def desired_fields(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[str]]: ...
33
+ @_property
34
+ def selection_mode(self) -> winrt.windows.applicationmodel.contacts.ContactSelectionMode: ...
35
+ @_property
36
+ def desired_fields_with_contact_field_type(self) -> typing.Optional[winrt.windows.foundation.collections.IVector[winrt.windows.applicationmodel.contacts.ContactFieldType]]: ...
37
+
38
+ class ContactRemovedEventArgs(winrt.system.Object):
39
+ @staticmethod
40
+ def _from(obj: winrt.system.Object, /) -> ContactRemovedEventArgs: ...
41
+ @_property
42
+ def id(self) -> str: ...
43
+
@@ -0,0 +1,20 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_applicationmodel_contacts_provider
7
+
8
+ __all__ = [
9
+ "AddContactResult",
10
+ "ContactPickerUI",
11
+ "ContactRemovedEventArgs",
12
+ ]
13
+
14
+ class AddContactResult(enum.IntEnum):
15
+ ADDED = 0
16
+ ALREADY_ADDED = 1
17
+ UNAVAILABLE = 2
18
+
19
+ ContactPickerUI = _winrt_windows_applicationmodel_contacts_provider.ContactPickerUI
20
+ ContactRemovedEventArgs = _winrt_windows_applicationmodel_contacts_provider.ContactRemovedEventArgs
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.ApplicationModel.Contacts.Provider
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.ApplicationModel.Contacts.Provider
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Contacts.Provider` namespace.
21
+
22
+ This package provides the `winrt.windows.applicationmodel.contacts.provider` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.ApplicationModel.Contacts.Provider.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_applicationmodel_contacts_provider.pyi
9
+ winrt/windows/applicationmodel/contacts/provider/__init__.py
10
+ winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/PKG-INFO
11
+ winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/SOURCES.txt
12
+ winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/dependency_links.txt
13
+ winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/requires.txt
14
+ winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/top_level.txt
@@ -0,0 +1,6 @@
1
+ winrt-runtime==2.0.0-beta.1
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.Contacts[all]==2.0.0-beta.1
5
+ winrt-Windows.Foundation[all]==2.0.0-beta.1
6
+ winrt-Windows.Foundation.Collections[all]==2.0.0-beta.1