winrt-Windows.Devices.Adc.Provider 2.0.1__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.
Files changed (19) hide show
  1. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/PKG-INFO +3 -3
  2. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/all-requirements.txt +2 -2
  3. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/py.Windows.Devices.Adc.Provider.cpp +86 -94
  4. winrt_windows_devices_adc_provider-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/requirements.txt +2 -2
  6. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/winrt/_winrt_windows_devices_adc_provider.pyi +3 -3
  7. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/winrt/windows/devices/adc/provider/__init__.py +1 -1
  8. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/winrt_Windows.Devices.Adc.Provider.egg-info/PKG-INFO +3 -3
  9. winrt_windows_devices_adc_provider-2.1.0/winrt_Windows.Devices.Adc.Provider.egg-info/requires.txt +4 -0
  10. winrt_windows_devices_adc_provider-2.0.1/pywinrt-version.txt +0 -1
  11. winrt_windows_devices_adc_provider-2.0.1/winrt_Windows.Devices.Adc.Provider.egg-info/requires.txt +0 -4
  12. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/README.md +0 -0
  13. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/pyproject.toml +0 -0
  14. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/setup.cfg +0 -0
  15. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/setup.py +0 -0
  16. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/winrt/windows/devices/adc/provider/py.typed +0 -0
  17. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/winrt_Windows.Devices.Adc.Provider.egg-info/SOURCES.txt +0 -0
  18. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/winrt_Windows.Devices.Adc.Provider.egg-info/dependency_links.txt +0 -0
  19. {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.1.0}/winrt_Windows.Devices.Adc.Provider.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Adc.Provider
3
- Version: 2.0.1
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,9 +12,9 @@ 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.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-Windows.Foundation.Collections[all]==2.0.1
3
+ winrt-Windows.Foundation.Collections[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.Devices.Adc.Provider.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Devices::Adc::Provider
7
6
  {
8
7
  // ----- IAdcControllerProvider interface --------------------
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
28
27
 
29
28
  if (arg_count == 1)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"AcquireChannel", 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.Devices.Adc.Provider.IAdcControllerProvider", L"AcquireChannel", 1))
33
+ {
34
+ py::set_arg_count_version_error(1);
35
+ return nullptr;
36
+ }
37
+
39
38
  auto param0 = py::convert_to<int32_t>(args, 0);
40
39
 
41
40
  self->obj.AcquireChannel(param0);
@@ -60,14 +59,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
60
59
 
61
60
  if (arg_count == 1)
62
61
  {
63
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"IsChannelModeSupported", 1))
64
- {
65
- py::set_arg_count_version_error(1);
66
- return nullptr;
67
- }
68
-
69
62
  try
70
63
  {
64
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"IsChannelModeSupported", 1))
65
+ {
66
+ py::set_arg_count_version_error(1);
67
+ return nullptr;
68
+ }
69
+
71
70
  auto param0 = py::convert_to<winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode>(args, 0);
72
71
 
73
72
  return py::convert(self->obj.IsChannelModeSupported(param0));
@@ -91,14 +90,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
91
90
 
92
91
  if (arg_count == 1)
93
92
  {
94
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReadValue", 1))
95
- {
96
- py::set_arg_count_version_error(1);
97
- return nullptr;
98
- }
99
-
100
93
  try
101
94
  {
95
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReadValue", 1))
96
+ {
97
+ py::set_arg_count_version_error(1);
98
+ return nullptr;
99
+ }
100
+
102
101
  auto param0 = py::convert_to<int32_t>(args, 0);
103
102
 
104
103
  return py::convert(self->obj.ReadValue(param0));
@@ -122,14 +121,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
122
121
 
123
122
  if (arg_count == 1)
124
123
  {
125
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReleaseChannel", 1))
126
- {
127
- py::set_arg_count_version_error(1);
128
- return nullptr;
129
- }
130
-
131
124
  try
132
125
  {
126
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReleaseChannel", 1))
127
+ {
128
+ py::set_arg_count_version_error(1);
129
+ return nullptr;
130
+ }
131
+
133
132
  auto param0 = py::convert_to<int32_t>(args, 0);
134
133
 
135
134
  self->obj.ReleaseChannel(param0);
@@ -150,14 +149,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
150
149
 
151
150
  static PyObject* IAdcControllerProvider_get_ChannelCount(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
152
151
  {
153
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelCount"))
154
- {
155
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
156
- return nullptr;
157
- }
158
-
159
152
  try
160
153
  {
154
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelCount"))
155
+ {
156
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
157
+ return nullptr;
158
+ }
159
+
161
160
  return py::convert(self->obj.ChannelCount());
162
161
  }
163
162
  catch (...)
@@ -169,14 +168,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
169
168
 
170
169
  static PyObject* IAdcControllerProvider_get_ChannelMode(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
171
170
  {
172
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode"))
173
- {
174
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
175
- return nullptr;
176
- }
177
-
178
171
  try
179
172
  {
173
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode"))
174
+ {
175
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
176
+ return nullptr;
177
+ }
178
+
180
179
  return py::convert(self->obj.ChannelMode());
181
180
  }
182
181
  catch (...)
@@ -188,12 +187,6 @@ namespace py::cpp::Windows::Devices::Adc::Provider
188
187
 
189
188
  static int IAdcControllerProvider_put_ChannelMode(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, PyObject* arg, void* /*unused*/) noexcept
190
189
  {
191
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode"))
192
- {
193
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
194
- return -1;
195
- }
196
-
197
190
  if (arg == nullptr)
198
191
  {
199
192
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -202,6 +195,12 @@ namespace py::cpp::Windows::Devices::Adc::Provider
202
195
 
203
196
  try
204
197
  {
198
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode"))
199
+ {
200
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
201
+ return -1;
202
+ }
203
+
205
204
  auto param0 = py::convert_to<winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode>(arg);
206
205
 
207
206
  self->obj.ChannelMode(param0);
@@ -216,14 +215,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
216
215
 
217
216
  static PyObject* IAdcControllerProvider_get_MaxValue(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
218
217
  {
219
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MaxValue"))
220
- {
221
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
222
- return nullptr;
223
- }
224
-
225
218
  try
226
219
  {
220
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MaxValue"))
221
+ {
222
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
223
+ return nullptr;
224
+ }
225
+
227
226
  return py::convert(self->obj.MaxValue());
228
227
  }
229
228
  catch (...)
@@ -235,14 +234,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
235
234
 
236
235
  static PyObject* IAdcControllerProvider_get_MinValue(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
237
236
  {
238
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MinValue"))
239
- {
240
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
241
- return nullptr;
242
- }
243
-
244
237
  try
245
238
  {
239
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MinValue"))
240
+ {
241
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
242
+ return nullptr;
243
+ }
244
+
246
245
  return py::convert(self->obj.MinValue());
247
246
  }
248
247
  catch (...)
@@ -254,14 +253,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
254
253
 
255
254
  static PyObject* IAdcControllerProvider_get_ResolutionInBits(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
256
255
  {
257
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ResolutionInBits"))
258
- {
259
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
260
- return nullptr;
261
- }
262
-
263
256
  try
264
257
  {
258
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ResolutionInBits"))
259
+ {
260
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
261
+ return nullptr;
262
+ }
263
+
265
264
  return py::convert(self->obj.ResolutionInBits());
266
265
  }
267
266
  catch (...)
@@ -314,23 +313,20 @@ namespace py::cpp::Windows::Devices::Adc::Provider
314
313
  { }
315
314
  };
316
315
 
317
- static PyType_Slot _type_slots_IAdcControllerProvider[] =
318
- {
316
+ static PyType_Slot _type_slots_IAdcControllerProvider[] = {
319
317
  { Py_tp_new, reinterpret_cast<void*>(_new_IAdcControllerProvider) },
320
318
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IAdcControllerProvider) },
321
319
  { Py_tp_methods, reinterpret_cast<void*>(_methods_IAdcControllerProvider) },
322
320
  { Py_tp_getset, reinterpret_cast<void*>(_getset_IAdcControllerProvider) },
323
- { },
321
+ { }
324
322
  };
325
323
 
326
- static PyType_Spec type_spec_IAdcControllerProvider =
327
- {
324
+ static PyType_Spec type_spec_IAdcControllerProvider = {
328
325
  "winrt._winrt_windows_devices_adc_provider.IAdcControllerProvider",
329
326
  sizeof(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider),
330
327
  0,
331
328
  Py_TPFLAGS_DEFAULT,
332
- _type_slots_IAdcControllerProvider
333
- };
329
+ _type_slots_IAdcControllerProvider};
334
330
 
335
331
  // ----- IAdcProvider interface --------------------
336
332
 
@@ -355,14 +351,14 @@ namespace py::cpp::Windows::Devices::Adc::Provider
355
351
 
356
352
  if (arg_count == 0)
357
353
  {
358
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcProvider", L"GetControllers", 0))
359
- {
360
- py::set_arg_count_version_error(0);
361
- return nullptr;
362
- }
363
-
364
354
  try
365
355
  {
356
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcProvider", L"GetControllers", 0))
357
+ {
358
+ py::set_arg_count_version_error(0);
359
+ return nullptr;
360
+ }
361
+
366
362
  return py::convert(self->obj.GetControllers());
367
363
  }
368
364
  catch (...)
@@ -413,39 +409,35 @@ namespace py::cpp::Windows::Devices::Adc::Provider
413
409
  { }
414
410
  };
415
411
 
416
- static PyType_Slot _type_slots_IAdcProvider[] =
417
- {
412
+ static PyType_Slot _type_slots_IAdcProvider[] = {
418
413
  { Py_tp_new, reinterpret_cast<void*>(_new_IAdcProvider) },
419
414
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IAdcProvider) },
420
415
  { Py_tp_methods, reinterpret_cast<void*>(_methods_IAdcProvider) },
421
416
  { Py_tp_getset, reinterpret_cast<void*>(_getset_IAdcProvider) },
422
- { },
417
+ { }
423
418
  };
424
419
 
425
- static PyType_Spec type_spec_IAdcProvider =
426
- {
420
+ static PyType_Spec type_spec_IAdcProvider = {
427
421
  "winrt._winrt_windows_devices_adc_provider.IAdcProvider",
428
422
  sizeof(py::wrapper::Windows::Devices::Adc::Provider::IAdcProvider),
429
423
  0,
430
424
  Py_TPFLAGS_DEFAULT,
431
- _type_slots_IAdcProvider
432
- };
425
+ _type_slots_IAdcProvider};
433
426
 
434
427
  // ----- Windows.Devices.Adc.Provider Initialization --------------------
435
- PyDoc_STRVAR(module_doc, "Windows::Devices::Adc::Provider");
436
428
 
429
+ PyDoc_STRVAR(module_doc, "Windows.Devices.Adc.Provider");
437
430
 
438
- static PyModuleDef module_def
439
- = {PyModuleDef_HEAD_INIT,
440
- "_winrt_windows_devices_adc_provider",
441
- module_doc,
442
- 0,
443
- nullptr,
444
- nullptr,
445
- nullptr,
446
- nullptr,
447
- nullptr};
448
-
431
+ static PyModuleDef module_def = {
432
+ PyModuleDef_HEAD_INIT,
433
+ "_winrt_windows_devices_adc_provider",
434
+ module_doc,
435
+ 0,
436
+ nullptr,
437
+ nullptr,
438
+ nullptr,
439
+ nullptr,
440
+ nullptr};
449
441
  } // py::cpp::Windows::Devices::Adc::Provider
450
442
 
451
443
  PyMODINIT_FUNC PyInit__winrt_windows_devices_adc_provider(void) noexcept
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.1.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,7 +9,7 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation.collections
12
+ import winrt.windows.foundation.collections as windows_foundation_collections
13
13
 
14
14
  from winrt.windows.devices.adc.provider import ProviderAdcChannelMode
15
15
 
@@ -40,5 +40,5 @@ class IAdcControllerProvider(winrt.system.Object):
40
40
  class IAdcProvider(winrt.system.Object):
41
41
  @staticmethod
42
42
  def _from(obj: winrt.system.Object, /) -> IAdcProvider: ...
43
- def get_controllers(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[IAdcControllerProvider]]: ...
43
+ def get_controllers(self) -> typing.Optional[windows_foundation_collections.IVectorView[IAdcControllerProvider]]: ...
44
44
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Adc.Provider
3
- Version: 2.0.1
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,9 +12,9 @@ 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.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation.Collections[all]==2.1.0
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation.Collections[all]==2.0.1