winrt-Windows.Devices.Enumeration 2.2.0__tar.gz → 2.3.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 (20) hide show
  1. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/PKG-INFO +9 -9
  2. winrt_windows_devices_enumeration-2.3.0/all-requirements.txt +9 -0
  3. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/py.Windows.Devices.Enumeration.cpp +509 -1
  4. winrt_windows_devices_enumeration-2.3.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/requirements.txt +2 -2
  6. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/winrt/_winrt_windows_devices_enumeration.pyi +33 -3
  7. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/winrt/windows/devices/enumeration/__init__.py +16 -1
  8. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/winrt_Windows.Devices.Enumeration.egg-info/PKG-INFO +9 -9
  9. winrt_windows_devices_enumeration-2.3.0/winrt_Windows.Devices.Enumeration.egg-info/requires.txt +10 -0
  10. winrt_windows_devices_enumeration-2.2.0/all-requirements.txt +0 -9
  11. winrt_windows_devices_enumeration-2.2.0/pywinrt-version.txt +0 -1
  12. winrt_windows_devices_enumeration-2.2.0/winrt_Windows.Devices.Enumeration.egg-info/requires.txt +0 -10
  13. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/README.md +0 -0
  14. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/pyproject.toml +0 -0
  15. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/setup.py +0 -0
  17. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/winrt/windows/devices/enumeration/py.typed +0 -0
  18. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/winrt_Windows.Devices.Enumeration.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/winrt_Windows.Devices.Enumeration.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_devices_enumeration-2.2.0 → winrt_windows_devices_enumeration-2.3.0}/winrt_Windows.Devices.Enumeration.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Enumeration
3
- Version: 2.2.0
3
+ Version: 2.3.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,15 +12,15 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Background[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
- Requires-Dist: winrt-Windows.Security.Credentials[all]==2.2.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
22
- Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
23
- Requires-Dist: winrt-Windows.UI.Popups[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Background[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Security.Credentials[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.UI[all]==2.3.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.UI.Popups[all]==2.3.0; extra == "all"
24
24
 
25
25
  <!-- warning: Please don't edit this file. It was automatically generated. -->
26
26
 
@@ -0,0 +1,9 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.ApplicationModel.Background[all]==2.3.0
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.Foundation.Collections[all]==2.3.0
6
+ winrt-Windows.Security.Credentials[all]==2.3.0
7
+ winrt-Windows.Storage.Streams[all]==2.3.0
8
+ winrt-Windows.UI[all]==2.3.0
9
+ winrt-Windows.UI.Popups[all]==2.3.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  #include "py.Windows.Devices.Enumeration.h"
4
4
 
@@ -73,6 +73,32 @@ namespace py::cpp::Windows::Devices::Enumeration
73
73
  }
74
74
  }
75
75
 
76
+ static PyObject* DeviceAccessChangedEventArgs_get_UserPromptRequired(py::wrapper::Windows::Devices::Enumeration::DeviceAccessChangedEventArgs* self, void* /*unused*/) noexcept
77
+ {
78
+ try
79
+ {
80
+ static std::optional<bool> is_property_present{};
81
+
82
+ if (!is_property_present.has_value())
83
+ {
84
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.DeviceAccessChangedEventArgs", L"UserPromptRequired");
85
+ }
86
+
87
+ if (!is_property_present.value())
88
+ {
89
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
90
+ return nullptr;
91
+ }
92
+
93
+ return py::convert(self->obj.UserPromptRequired());
94
+ }
95
+ catch (...)
96
+ {
97
+ py::to_PyErr();
98
+ return nullptr;
99
+ }
100
+ }
101
+
76
102
  static PyObject* _assign_array_DeviceAccessChangedEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
77
103
  {
78
104
  auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Enumeration::DeviceAccessChangedEventArgs>>();
@@ -106,6 +132,7 @@ namespace py::cpp::Windows::Devices::Enumeration
106
132
  static PyGetSetDef _getset_DeviceAccessChangedEventArgs[] = {
107
133
  { "status", reinterpret_cast<getter>(DeviceAccessChangedEventArgs_get_Status), nullptr, nullptr, nullptr },
108
134
  { "id", reinterpret_cast<getter>(DeviceAccessChangedEventArgs_get_Id), nullptr, nullptr, nullptr },
135
+ { "user_prompt_required", reinterpret_cast<getter>(DeviceAccessChangedEventArgs_get_UserPromptRequired), nullptr, nullptr, nullptr },
109
136
  { }
110
137
  };
111
138
 
@@ -281,6 +308,32 @@ namespace py::cpp::Windows::Devices::Enumeration
281
308
  }
282
309
  }
283
310
 
311
+ static PyObject* DeviceAccessInformation_get_UserPromptRequired(py::wrapper::Windows::Devices::Enumeration::DeviceAccessInformation* self, void* /*unused*/) noexcept
312
+ {
313
+ try
314
+ {
315
+ static std::optional<bool> is_property_present{};
316
+
317
+ if (!is_property_present.has_value())
318
+ {
319
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.DeviceAccessInformation", L"UserPromptRequired");
320
+ }
321
+
322
+ if (!is_property_present.value())
323
+ {
324
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
325
+ return nullptr;
326
+ }
327
+
328
+ return py::convert(self->obj.UserPromptRequired());
329
+ }
330
+ catch (...)
331
+ {
332
+ py::to_PyErr();
333
+ return nullptr;
334
+ }
335
+ }
336
+
284
337
  static PyObject* DeviceAccessInformation_add_AccessChanged(py::wrapper::Windows::Devices::Enumeration::DeviceAccessInformation* self, PyObject* arg) noexcept
285
338
  {
286
339
  try
@@ -372,6 +425,7 @@ namespace py::cpp::Windows::Devices::Enumeration
372
425
 
373
426
  static PyGetSetDef _getset_DeviceAccessInformation[] = {
374
427
  { "current_status", reinterpret_cast<getter>(DeviceAccessInformation_get_CurrentStatus), nullptr, nullptr, nullptr },
428
+ { "user_prompt_required", reinterpret_cast<getter>(DeviceAccessInformation_get_UserPromptRequired), nullptr, nullptr, nullptr },
375
429
  { }
376
430
  };
377
431
 
@@ -709,6 +763,36 @@ namespace py::cpp::Windows::Devices::Enumeration
709
763
  return nullptr;
710
764
  }
711
765
  }
766
+ else if (arg_count == 4)
767
+ {
768
+ try
769
+ {
770
+ static std::optional<bool> is_overload_present{};
771
+
772
+ if (!is_overload_present.has_value())
773
+ {
774
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.DeviceInformation", L"CreateFromIdAsync", 4);
775
+ }
776
+
777
+ if (!is_overload_present.value())
778
+ {
779
+ py::set_arg_count_version_error(4);
780
+ return nullptr;
781
+ }
782
+
783
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
784
+ auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
785
+ auto param2 = py::convert_to<winrt::Windows::Devices::Enumeration::DeviceInformationKind>(args, 2);
786
+ auto param3 = py::convert_to<winrt::Windows::Devices::Enumeration::IDeviceEnumerationSettings>(args, 3);
787
+
788
+ return py::convert(winrt::Windows::Devices::Enumeration::DeviceInformation::CreateFromIdAsync(param0, param1, param2, param3));
789
+ }
790
+ catch (...)
791
+ {
792
+ py::to_PyErr();
793
+ return nullptr;
794
+ }
795
+ }
712
796
  else
713
797
  {
714
798
  py::set_invalid_arg_count_error(arg_count);
@@ -829,6 +913,36 @@ namespace py::cpp::Windows::Devices::Enumeration
829
913
  return nullptr;
830
914
  }
831
915
  }
916
+ else if (arg_count == 4)
917
+ {
918
+ try
919
+ {
920
+ static std::optional<bool> is_overload_present{};
921
+
922
+ if (!is_overload_present.has_value())
923
+ {
924
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.DeviceInformation", L"CreateWatcher", 4);
925
+ }
926
+
927
+ if (!is_overload_present.value())
928
+ {
929
+ py::set_arg_count_version_error(4);
930
+ return nullptr;
931
+ }
932
+
933
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
934
+ auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
935
+ auto param2 = py::convert_to<winrt::Windows::Devices::Enumeration::DeviceInformationKind>(args, 2);
936
+ auto param3 = py::convert_to<winrt::Windows::Devices::Enumeration::IDeviceEnumerationSettings>(args, 3);
937
+
938
+ return py::convert(winrt::Windows::Devices::Enumeration::DeviceInformation::CreateWatcher(param0, param1, param2, param3));
939
+ }
940
+ catch (...)
941
+ {
942
+ py::to_PyErr();
943
+ return nullptr;
944
+ }
945
+ }
832
946
  else
833
947
  {
834
948
  py::set_invalid_arg_count_error(arg_count);
@@ -949,6 +1063,36 @@ namespace py::cpp::Windows::Devices::Enumeration
949
1063
  return nullptr;
950
1064
  }
951
1065
  }
1066
+ else if (arg_count == 4)
1067
+ {
1068
+ try
1069
+ {
1070
+ static std::optional<bool> is_overload_present{};
1071
+
1072
+ if (!is_overload_present.has_value())
1073
+ {
1074
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.DeviceInformation", L"FindAllAsync", 4);
1075
+ }
1076
+
1077
+ if (!is_overload_present.value())
1078
+ {
1079
+ py::set_arg_count_version_error(4);
1080
+ return nullptr;
1081
+ }
1082
+
1083
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
1084
+ auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
1085
+ auto param2 = py::convert_to<winrt::Windows::Devices::Enumeration::DeviceInformationKind>(args, 2);
1086
+ auto param3 = py::convert_to<winrt::Windows::Devices::Enumeration::IDeviceEnumerationSettings>(args, 3);
1087
+
1088
+ return py::convert(winrt::Windows::Devices::Enumeration::DeviceInformation::FindAllAsync(param0, param1, param2, param3));
1089
+ }
1090
+ catch (...)
1091
+ {
1092
+ py::to_PyErr();
1093
+ return nullptr;
1094
+ }
1095
+ }
952
1096
  else
953
1097
  {
954
1098
  py::set_invalid_arg_count_error(arg_count);
@@ -1783,6 +1927,45 @@ namespace py::cpp::Windows::Devices::Enumeration
1783
1927
  Py_DECREF(tp);
1784
1928
  }
1785
1929
 
1930
+ static PyObject* DeviceInformationCustomPairing_AddPairingSetMember(py::wrapper::Windows::Devices::Enumeration::DeviceInformationCustomPairing* self, PyObject* args) noexcept
1931
+ {
1932
+ auto arg_count = PyTuple_Size(args);
1933
+
1934
+ if (arg_count == 1)
1935
+ {
1936
+ try
1937
+ {
1938
+ static std::optional<bool> is_overload_present{};
1939
+
1940
+ if (!is_overload_present.has_value())
1941
+ {
1942
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.DeviceInformationCustomPairing", L"AddPairingSetMember", 1);
1943
+ }
1944
+
1945
+ if (!is_overload_present.value())
1946
+ {
1947
+ py::set_arg_count_version_error(1);
1948
+ return nullptr;
1949
+ }
1950
+
1951
+ auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::DeviceInformation>(args, 0);
1952
+
1953
+ self->obj.AddPairingSetMember(param0);
1954
+ Py_RETURN_NONE;
1955
+ }
1956
+ catch (...)
1957
+ {
1958
+ py::to_PyErr();
1959
+ return nullptr;
1960
+ }
1961
+ }
1962
+ else
1963
+ {
1964
+ py::set_invalid_arg_count_error(arg_count);
1965
+ return nullptr;
1966
+ }
1967
+ }
1968
+
1786
1969
  static PyObject* DeviceInformationCustomPairing_PairAsync(py::wrapper::Windows::Devices::Enumeration::DeviceInformationCustomPairing* self, PyObject* args) noexcept
1787
1970
  {
1788
1971
  auto arg_count = PyTuple_Size(args);
@@ -1935,6 +2118,63 @@ namespace py::cpp::Windows::Devices::Enumeration
1935
2118
  }
1936
2119
  }
1937
2120
 
2121
+ static PyObject* DeviceInformationCustomPairing_add_PairingSetMembersRequested(py::wrapper::Windows::Devices::Enumeration::DeviceInformationCustomPairing* self, PyObject* arg) noexcept
2122
+ {
2123
+ try
2124
+ {
2125
+ static std::optional<bool> is_event_present{};
2126
+
2127
+ if (!is_event_present.has_value())
2128
+ {
2129
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.DeviceInformationCustomPairing", L"PairingSetMembersRequested");
2130
+ }
2131
+
2132
+ if (!is_event_present.value())
2133
+ {
2134
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
2135
+ return nullptr;
2136
+ }
2137
+
2138
+ auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::DeviceInformationCustomPairing, winrt::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs>>(arg);
2139
+
2140
+ return py::convert(self->obj.PairingSetMembersRequested(param0));
2141
+ }
2142
+ catch (...)
2143
+ {
2144
+ py::to_PyErr();
2145
+ return nullptr;
2146
+ }
2147
+ }
2148
+
2149
+ static PyObject* DeviceInformationCustomPairing_remove_PairingSetMembersRequested(py::wrapper::Windows::Devices::Enumeration::DeviceInformationCustomPairing* self, PyObject* arg) noexcept
2150
+ {
2151
+ try
2152
+ {
2153
+ static std::optional<bool> is_event_present{};
2154
+
2155
+ if (!is_event_present.has_value())
2156
+ {
2157
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.DeviceInformationCustomPairing", L"PairingSetMembersRequested");
2158
+ }
2159
+
2160
+ if (!is_event_present.value())
2161
+ {
2162
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
2163
+ return nullptr;
2164
+ }
2165
+
2166
+ auto param0 = py::convert_to<winrt::event_token>(arg);
2167
+
2168
+ self->obj.PairingSetMembersRequested(param0);
2169
+ Py_RETURN_NONE;
2170
+ }
2171
+ catch (...)
2172
+ {
2173
+ py::to_PyErr();
2174
+ return nullptr;
2175
+ }
2176
+ }
2177
+
1938
2178
  static PyObject* _assign_array_DeviceInformationCustomPairing(PyObject* /*unused*/, PyObject* arg) noexcept
1939
2179
  {
1940
2180
  auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Enumeration::DeviceInformationCustomPairing>>();
@@ -1960,9 +2200,12 @@ namespace py::cpp::Windows::Devices::Enumeration
1960
2200
  }
1961
2201
 
1962
2202
  static PyMethodDef _methods_DeviceInformationCustomPairing[] = {
2203
+ { "add_pairing_set_member", reinterpret_cast<PyCFunction>(DeviceInformationCustomPairing_AddPairingSetMember), METH_VARARGS, nullptr },
1963
2204
  { "pair_async", reinterpret_cast<PyCFunction>(DeviceInformationCustomPairing_PairAsync), METH_VARARGS, nullptr },
1964
2205
  { "add_pairing_requested", reinterpret_cast<PyCFunction>(DeviceInformationCustomPairing_add_PairingRequested), METH_O, nullptr },
1965
2206
  { "remove_pairing_requested", reinterpret_cast<PyCFunction>(DeviceInformationCustomPairing_remove_PairingRequested), METH_O, nullptr },
2207
+ { "add_pairing_set_members_requested", reinterpret_cast<PyCFunction>(DeviceInformationCustomPairing_add_PairingSetMembersRequested), METH_O, nullptr },
2208
+ { "remove_pairing_set_members_requested", reinterpret_cast<PyCFunction>(DeviceInformationCustomPairing_remove_PairingSetMembersRequested), METH_O, nullptr },
1966
2209
  { "_assign_array_", _assign_array_DeviceInformationCustomPairing, METH_O | METH_STATIC, nullptr },
1967
2210
  { "_from", reinterpret_cast<PyCFunction>(_from_DeviceInformationCustomPairing), METH_O | METH_STATIC, nullptr },
1968
2211
  { }
@@ -2623,6 +2866,45 @@ namespace py::cpp::Windows::Devices::Enumeration
2623
2866
  }
2624
2867
  }
2625
2868
 
2869
+ static PyObject* DevicePairingRequestedEventArgs_AcceptWithAddress(py::wrapper::Windows::Devices::Enumeration::DevicePairingRequestedEventArgs* self, PyObject* args) noexcept
2870
+ {
2871
+ auto arg_count = PyTuple_Size(args);
2872
+
2873
+ if (arg_count == 1)
2874
+ {
2875
+ try
2876
+ {
2877
+ static std::optional<bool> is_overload_present{};
2878
+
2879
+ if (!is_overload_present.has_value())
2880
+ {
2881
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.DevicePairingRequestedEventArgs", L"AcceptWithAddress", 1);
2882
+ }
2883
+
2884
+ if (!is_overload_present.value())
2885
+ {
2886
+ py::set_arg_count_version_error(1);
2887
+ return nullptr;
2888
+ }
2889
+
2890
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
2891
+
2892
+ self->obj.AcceptWithAddress(param0);
2893
+ Py_RETURN_NONE;
2894
+ }
2895
+ catch (...)
2896
+ {
2897
+ py::to_PyErr();
2898
+ return nullptr;
2899
+ }
2900
+ }
2901
+ else
2902
+ {
2903
+ py::set_invalid_arg_count_error(arg_count);
2904
+ return nullptr;
2905
+ }
2906
+ }
2907
+
2626
2908
  static PyObject* DevicePairingRequestedEventArgs_AcceptWithPasswordCredential(py::wrapper::Windows::Devices::Enumeration::DevicePairingRequestedEventArgs* self, PyObject* args) noexcept
2627
2909
  {
2628
2910
  auto arg_count = PyTuple_Size(args);
@@ -2802,6 +3084,7 @@ namespace py::cpp::Windows::Devices::Enumeration
2802
3084
 
2803
3085
  static PyMethodDef _methods_DevicePairingRequestedEventArgs[] = {
2804
3086
  { "accept", reinterpret_cast<PyCFunction>(DevicePairingRequestedEventArgs_Accept), METH_VARARGS, nullptr },
3087
+ { "accept_with_address", reinterpret_cast<PyCFunction>(DevicePairingRequestedEventArgs_AcceptWithAddress), METH_VARARGS, nullptr },
2805
3088
  { "accept_with_password_credential", reinterpret_cast<PyCFunction>(DevicePairingRequestedEventArgs_AcceptWithPasswordCredential), METH_VARARGS, nullptr },
2806
3089
  { "get_deferral", reinterpret_cast<PyCFunction>(DevicePairingRequestedEventArgs_GetDeferral), METH_VARARGS, nullptr },
2807
3090
  { "_assign_array_", _assign_array_DevicePairingRequestedEventArgs, METH_O | METH_STATIC, nullptr },
@@ -2951,6 +3234,153 @@ namespace py::cpp::Windows::Devices::Enumeration
2951
3234
  Py_TPFLAGS_DEFAULT,
2952
3235
  _type_slots_DevicePairingResult};
2953
3236
 
3237
+ // ----- DevicePairingSetMembersRequestedEventArgs class --------------------
3238
+
3239
+ static PyObject* _new_DevicePairingSetMembersRequestedEventArgs(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
3240
+ {
3241
+ static_assert(py::py_type<winrt::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs>::type_name);
3242
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs>::type_name);
3243
+ return nullptr;
3244
+ }
3245
+
3246
+ static void _dealloc_DevicePairingSetMembersRequestedEventArgs(py::wrapper::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs* self) noexcept
3247
+ {
3248
+ auto tp = Py_TYPE(self);
3249
+ std::destroy_at(&self->obj);
3250
+ tp->tp_free(self);
3251
+ Py_DECREF(tp);
3252
+ }
3253
+
3254
+ static PyObject* DevicePairingSetMembersRequestedEventArgs_get_PairingSetMembers(py::wrapper::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs* self, void* /*unused*/) noexcept
3255
+ {
3256
+ try
3257
+ {
3258
+ static std::optional<bool> is_property_present{};
3259
+
3260
+ if (!is_property_present.has_value())
3261
+ {
3262
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.DevicePairingSetMembersRequestedEventArgs", L"PairingSetMembers");
3263
+ }
3264
+
3265
+ if (!is_property_present.value())
3266
+ {
3267
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
3268
+ return nullptr;
3269
+ }
3270
+
3271
+ return py::convert(self->obj.PairingSetMembers());
3272
+ }
3273
+ catch (...)
3274
+ {
3275
+ py::to_PyErr();
3276
+ return nullptr;
3277
+ }
3278
+ }
3279
+
3280
+ static PyObject* DevicePairingSetMembersRequestedEventArgs_get_ParentDeviceInformation(py::wrapper::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs* self, void* /*unused*/) noexcept
3281
+ {
3282
+ try
3283
+ {
3284
+ static std::optional<bool> is_property_present{};
3285
+
3286
+ if (!is_property_present.has_value())
3287
+ {
3288
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.DevicePairingSetMembersRequestedEventArgs", L"ParentDeviceInformation");
3289
+ }
3290
+
3291
+ if (!is_property_present.value())
3292
+ {
3293
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
3294
+ return nullptr;
3295
+ }
3296
+
3297
+ return py::convert(self->obj.ParentDeviceInformation());
3298
+ }
3299
+ catch (...)
3300
+ {
3301
+ py::to_PyErr();
3302
+ return nullptr;
3303
+ }
3304
+ }
3305
+
3306
+ static PyObject* DevicePairingSetMembersRequestedEventArgs_get_Status(py::wrapper::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs* self, void* /*unused*/) noexcept
3307
+ {
3308
+ try
3309
+ {
3310
+ static std::optional<bool> is_property_present{};
3311
+
3312
+ if (!is_property_present.has_value())
3313
+ {
3314
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.DevicePairingSetMembersRequestedEventArgs", L"Status");
3315
+ }
3316
+
3317
+ if (!is_property_present.value())
3318
+ {
3319
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
3320
+ return nullptr;
3321
+ }
3322
+
3323
+ return py::convert(self->obj.Status());
3324
+ }
3325
+ catch (...)
3326
+ {
3327
+ py::to_PyErr();
3328
+ return nullptr;
3329
+ }
3330
+ }
3331
+
3332
+ static PyObject* _assign_array_DevicePairingSetMembersRequestedEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
3333
+ {
3334
+ auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs>>();
3335
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
3336
+ {
3337
+ return nullptr;
3338
+ }
3339
+ Py_RETURN_NONE;
3340
+ }
3341
+
3342
+ static PyObject* _from_DevicePairingSetMembersRequestedEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
3343
+ {
3344
+ try
3345
+ {
3346
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
3347
+ return py::convert(return_value.as<winrt::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs>());
3348
+ }
3349
+ catch (...)
3350
+ {
3351
+ py::to_PyErr();
3352
+ return nullptr;
3353
+ }
3354
+ }
3355
+
3356
+ static PyMethodDef _methods_DevicePairingSetMembersRequestedEventArgs[] = {
3357
+ { "_assign_array_", _assign_array_DevicePairingSetMembersRequestedEventArgs, METH_O | METH_STATIC, nullptr },
3358
+ { "_from", reinterpret_cast<PyCFunction>(_from_DevicePairingSetMembersRequestedEventArgs), METH_O | METH_STATIC, nullptr },
3359
+ { }
3360
+ };
3361
+
3362
+ static PyGetSetDef _getset_DevicePairingSetMembersRequestedEventArgs[] = {
3363
+ { "pairing_set_members", reinterpret_cast<getter>(DevicePairingSetMembersRequestedEventArgs_get_PairingSetMembers), nullptr, nullptr, nullptr },
3364
+ { "parent_device_information", reinterpret_cast<getter>(DevicePairingSetMembersRequestedEventArgs_get_ParentDeviceInformation), nullptr, nullptr, nullptr },
3365
+ { "status", reinterpret_cast<getter>(DevicePairingSetMembersRequestedEventArgs_get_Status), nullptr, nullptr, nullptr },
3366
+ { }
3367
+ };
3368
+
3369
+ static PyType_Slot _type_slots_DevicePairingSetMembersRequestedEventArgs[] = {
3370
+ { Py_tp_new, reinterpret_cast<void*>(_new_DevicePairingSetMembersRequestedEventArgs) },
3371
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePairingSetMembersRequestedEventArgs) },
3372
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePairingSetMembersRequestedEventArgs) },
3373
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePairingSetMembersRequestedEventArgs) },
3374
+ { }
3375
+ };
3376
+
3377
+ static PyType_Spec type_spec_DevicePairingSetMembersRequestedEventArgs = {
3378
+ "winrt._winrt_windows_devices_enumeration.DevicePairingSetMembersRequestedEventArgs",
3379
+ sizeof(py::wrapper::Windows::Devices::Enumeration::DevicePairingSetMembersRequestedEventArgs),
3380
+ 0,
3381
+ Py_TPFLAGS_DEFAULT,
3382
+ _type_slots_DevicePairingSetMembersRequestedEventArgs};
3383
+
2954
3384
  // ----- DevicePicker class --------------------
2955
3385
 
2956
3386
  static PyObject* _new_DevicePicker(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
@@ -5803,6 +6233,72 @@ namespace py::cpp::Windows::Devices::Enumeration
5803
6233
  Py_TPFLAGS_DEFAULT,
5804
6234
  _type_slots_EnclosureLocation};
5805
6235
 
6236
+ // ----- IDeviceEnumerationSettings interface --------------------
6237
+
6238
+ static PyObject* _new_IDeviceEnumerationSettings(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
6239
+ {
6240
+ static_assert(py::py_type<winrt::Windows::Devices::Enumeration::IDeviceEnumerationSettings>::type_name);
6241
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::Devices::Enumeration::IDeviceEnumerationSettings>::type_name);
6242
+ return nullptr;
6243
+ }
6244
+
6245
+ static void _dealloc_IDeviceEnumerationSettings(py::wrapper::Windows::Devices::Enumeration::IDeviceEnumerationSettings* self) noexcept
6246
+ {
6247
+ auto tp = Py_TYPE(self);
6248
+ std::destroy_at(&self->obj);
6249
+ tp->tp_free(self);
6250
+ Py_DECREF(tp);
6251
+ }
6252
+
6253
+ static PyObject* _assign_array_IDeviceEnumerationSettings(PyObject* /*unused*/, PyObject* arg) noexcept
6254
+ {
6255
+ auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Enumeration::IDeviceEnumerationSettings>>();
6256
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
6257
+ {
6258
+ return nullptr;
6259
+ }
6260
+ Py_RETURN_NONE;
6261
+ }
6262
+
6263
+ static PyObject* _from_IDeviceEnumerationSettings(PyObject* /*unused*/, PyObject* arg) noexcept
6264
+ {
6265
+ try
6266
+ {
6267
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
6268
+ return py::convert(return_value.as<winrt::Windows::Devices::Enumeration::IDeviceEnumerationSettings>());
6269
+ }
6270
+ catch (...)
6271
+ {
6272
+ py::to_PyErr();
6273
+ return nullptr;
6274
+ }
6275
+ }
6276
+
6277
+ static PyMethodDef _methods_IDeviceEnumerationSettings[] = {
6278
+ { "_assign_array_", _assign_array_IDeviceEnumerationSettings, METH_O | METH_STATIC, nullptr },
6279
+ { "_from", reinterpret_cast<PyCFunction>(_from_IDeviceEnumerationSettings), METH_O | METH_STATIC, nullptr },
6280
+ { }
6281
+ };
6282
+
6283
+ static PyGetSetDef _getset_IDeviceEnumerationSettings[] = {
6284
+ { }
6285
+ };
6286
+
6287
+ static PyType_Slot _type_slots_IDeviceEnumerationSettings[] = {
6288
+ { Py_tp_new, reinterpret_cast<void*>(_new_IDeviceEnumerationSettings) },
6289
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IDeviceEnumerationSettings) },
6290
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_IDeviceEnumerationSettings) },
6291
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_IDeviceEnumerationSettings) },
6292
+ { }
6293
+ };
6294
+
6295
+ static PyType_Spec type_spec_IDeviceEnumerationSettings = {
6296
+ "winrt._winrt_windows_devices_enumeration.IDeviceEnumerationSettings",
6297
+ sizeof(py::wrapper::Windows::Devices::Enumeration::IDeviceEnumerationSettings),
6298
+ 0,
6299
+ Py_TPFLAGS_DEFAULT,
6300
+ _type_slots_IDeviceEnumerationSettings};
6301
+
5806
6302
  // ----- IDevicePairingSettings interface --------------------
5807
6303
 
5808
6304
  static PyObject* _new_IDevicePairingSettings(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
@@ -5998,6 +6494,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_enumeration(void) noexcept
5998
6494
  return nullptr;
5999
6495
  }
6000
6496
 
6497
+ py::pytype_handle DevicePairingSetMembersRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_DevicePairingSetMembersRequestedEventArgs, object_bases.get(), nullptr)};
6498
+ if (!DevicePairingSetMembersRequestedEventArgs_type)
6499
+ {
6500
+ return nullptr;
6501
+ }
6502
+
6001
6503
  py::pytype_handle DevicePicker_type{py::register_python_type(module.get(), &type_spec_DevicePicker, object_bases.get(), nullptr)};
6002
6504
  if (!DevicePicker_type)
6003
6505
  {
@@ -6058,6 +6560,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_enumeration(void) noexcept
6058
6560
  return nullptr;
6059
6561
  }
6060
6562
 
6563
+ py::pytype_handle IDeviceEnumerationSettings_type{py::register_python_type(module.get(), &type_spec_IDeviceEnumerationSettings, object_bases.get(), nullptr)};
6564
+ if (!IDeviceEnumerationSettings_type)
6565
+ {
6566
+ return nullptr;
6567
+ }
6568
+
6061
6569
  py::pytype_handle IDevicePairingSettings_type{py::register_python_type(module.get(), &type_spec_IDevicePairingSettings, object_bases.get(), nullptr)};
6062
6570
  if (!IDevicePairingSettings_type)
6063
6571
  {
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
- winrt-runtime==2.2.0
3
+ winrt-runtime==2.3.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -17,7 +17,7 @@ import winrt.windows.storage.streams as windows_storage_streams
17
17
  import winrt.windows.ui as windows_ui
18
18
  import winrt.windows.ui.popups as windows_ui_popups
19
19
 
20
- from winrt.windows.devices.enumeration import DeviceAccessStatus, DeviceClass, DeviceInformationKind, DevicePairingKinds, DevicePairingProtectionLevel, DevicePairingResultStatus, DevicePickerDisplayStatusOptions, DeviceUnpairingResultStatus, DeviceWatcherEventKind, DeviceWatcherStatus, Panel
20
+ from winrt.windows.devices.enumeration import DeviceAccessStatus, DeviceClass, DeviceInformationKind, DevicePairingAddPairingSetMemberStatus, DevicePairingKinds, DevicePairingProtectionLevel, DevicePairingResultStatus, DevicePickerDisplayStatusOptions, DeviceUnpairingResultStatus, DeviceWatcherEventKind, DeviceWatcherStatus, Panel
21
21
 
22
22
  Self = typing.TypeVar('Self')
23
23
 
@@ -29,6 +29,8 @@ class DeviceAccessChangedEventArgs(winrt.system.Object):
29
29
  def status(self) -> DeviceAccessStatus: ...
30
30
  @_property
31
31
  def id(self) -> str: ...
32
+ @_property
33
+ def user_prompt_required(self) -> bool: ...
32
34
 
33
35
  @typing.final
34
36
  class DeviceAccessInformation_Static(type):
@@ -44,6 +46,8 @@ class DeviceAccessInformation(winrt.system.Object, metaclass=DeviceAccessInforma
44
46
  def remove_access_changed(self, cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
45
47
  @_property
46
48
  def current_status(self) -> DeviceAccessStatus: ...
49
+ @_property
50
+ def user_prompt_required(self) -> bool: ...
47
51
 
48
52
  @typing.final
49
53
  class DeviceConnectionChangeTriggerDetails(winrt.system.Object):
@@ -68,6 +72,8 @@ class DeviceInformation_Static(type):
68
72
  @typing.overload
69
73
  def create_from_id_async(cls, device_id: str, additional_properties: typing.Iterable[str], kind: DeviceInformationKind, /) -> windows_foundation.IAsyncOperation[DeviceInformation]: ...
70
74
  @typing.overload
75
+ def create_from_id_async(cls, device_id: str, additional_properties: typing.Iterable[str], kind: DeviceInformationKind, settings: typing.Optional[IDeviceEnumerationSettings], /) -> windows_foundation.IAsyncOperation[DeviceInformation]: ...
76
+ @typing.overload
71
77
  def create_watcher(cls) -> typing.Optional[DeviceWatcher]: ...
72
78
  @typing.overload
73
79
  def create_watcher(cls, device_class: DeviceClass, /) -> typing.Optional[DeviceWatcher]: ...
@@ -76,6 +82,8 @@ class DeviceInformation_Static(type):
76
82
  @typing.overload
77
83
  def create_watcher(cls, aqs_filter: str, additional_properties: typing.Iterable[str], kind: DeviceInformationKind, /) -> typing.Optional[DeviceWatcher]: ...
78
84
  @typing.overload
85
+ def create_watcher(cls, aqs_filter: str, additional_properties: typing.Iterable[str], kind: DeviceInformationKind, settings: typing.Optional[IDeviceEnumerationSettings], /) -> typing.Optional[DeviceWatcher]: ...
86
+ @typing.overload
79
87
  def find_all_async(cls) -> windows_foundation.IAsyncOperation[DeviceInformationCollection]: ...
80
88
  @typing.overload
81
89
  def find_all_async(cls, device_class: DeviceClass, /) -> windows_foundation.IAsyncOperation[DeviceInformationCollection]: ...
@@ -83,6 +91,8 @@ class DeviceInformation_Static(type):
83
91
  def find_all_async(cls, aqs_filter: str, additional_properties: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[DeviceInformationCollection]: ...
84
92
  @typing.overload
85
93
  def find_all_async(cls, aqs_filter: str, additional_properties: typing.Iterable[str], kind: DeviceInformationKind, /) -> windows_foundation.IAsyncOperation[DeviceInformationCollection]: ...
94
+ @typing.overload
95
+ def find_all_async(cls, aqs_filter: str, additional_properties: typing.Iterable[str], kind: DeviceInformationKind, settings: typing.Optional[IDeviceEnumerationSettings], /) -> windows_foundation.IAsyncOperation[DeviceInformationCollection]: ...
86
96
  def get_aqs_filter_from_device_class(cls, device_class: DeviceClass, /) -> str: ...
87
97
 
88
98
  @typing.final
@@ -121,7 +131,7 @@ class DeviceInformationCollection(winrt.system.Object, winrt._winrt.Sequence[Dev
121
131
  def _from(obj: winrt.system.Object, /) -> DeviceInformationCollection: ...
122
132
  def first(self) -> typing.Optional[windows_foundation_collections.IIterator[DeviceInformation]]: ...
123
133
  def get_at(self, index: winrt.system.UInt32, /) -> typing.Optional[DeviceInformation]: ...
124
- def get_many(self, start_index: winrt.system.UInt32, items: winrt.system.Array[DeviceInformation], /) -> winrt.system.UInt32: ...
134
+ def get_many(self, start_index: winrt.system.UInt32, items: typing.Union[winrt.system.Array[DeviceInformation], winrt.system.WriteableBuffer], /) -> winrt.system.UInt32: ...
125
135
  def index_of(self, value: typing.Optional[DeviceInformation], /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
126
136
  @_property
127
137
  def size(self) -> winrt.system.UInt32: ...
@@ -130,6 +140,7 @@ class DeviceInformationCollection(winrt.system.Object, winrt._winrt.Sequence[Dev
130
140
  class DeviceInformationCustomPairing(winrt.system.Object):
131
141
  @staticmethod
132
142
  def _from(obj: winrt.system.Object, /) -> DeviceInformationCustomPairing: ...
143
+ def add_pairing_set_member(self, device: typing.Optional[DeviceInformation], /) -> None: ...
133
144
  @typing.overload
134
145
  def pair_async(self, pairing_kinds_supported: DevicePairingKinds, /) -> windows_foundation.IAsyncOperation[DevicePairingResult]: ...
135
146
  @typing.overload
@@ -138,6 +149,8 @@ class DeviceInformationCustomPairing(winrt.system.Object):
138
149
  def pair_async(self, pairing_kinds_supported: DevicePairingKinds, min_protection_level: DevicePairingProtectionLevel, device_pairing_settings: typing.Optional[IDevicePairingSettings], /) -> windows_foundation.IAsyncOperation[DevicePairingResult]: ...
139
150
  def add_pairing_requested(self, handler: windows_foundation.TypedEventHandler[DeviceInformationCustomPairing, DevicePairingRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
140
151
  def remove_pairing_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
152
+ def add_pairing_set_members_requested(self, handler: windows_foundation.TypedEventHandler[DeviceInformationCustomPairing, DevicePairingSetMembersRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
153
+ def remove_pairing_set_members_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
141
154
 
142
155
  @typing.final
143
156
  class DeviceInformationPairing_Static(type):
@@ -183,6 +196,7 @@ class DevicePairingRequestedEventArgs(winrt.system.Object):
183
196
  def accept(self) -> None: ...
184
197
  @typing.overload
185
198
  def accept(self, pin: str, /) -> None: ...
199
+ def accept_with_address(self, address: str, /) -> None: ...
186
200
  def accept_with_password_credential(self, password_credential: typing.Optional[windows_security_credentials.PasswordCredential], /) -> None: ...
187
201
  def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
188
202
  @_property
@@ -201,6 +215,17 @@ class DevicePairingResult(winrt.system.Object):
201
215
  @_property
202
216
  def status(self) -> DevicePairingResultStatus: ...
203
217
 
218
+ @typing.final
219
+ class DevicePairingSetMembersRequestedEventArgs(winrt.system.Object):
220
+ @staticmethod
221
+ def _from(obj: winrt.system.Object, /) -> DevicePairingSetMembersRequestedEventArgs: ...
222
+ @_property
223
+ def pairing_set_members(self) -> typing.Optional[windows_foundation_collections.IVectorView[DeviceInformation]]: ...
224
+ @_property
225
+ def parent_device_information(self) -> typing.Optional[DeviceInformation]: ...
226
+ @_property
227
+ def status(self) -> DevicePairingAddPairingSetMemberStatus: ...
228
+
204
229
  @typing.final
205
230
  class DevicePicker(winrt.system.Object):
206
231
  @staticmethod
@@ -363,6 +388,11 @@ class EnclosureLocation(winrt.system.Object):
363
388
  @_property
364
389
  def rotation_angle_in_degrees_clockwise(self) -> winrt.system.UInt32: ...
365
390
 
391
+ @typing.final
392
+ class IDeviceEnumerationSettings(winrt.system.Object):
393
+ @staticmethod
394
+ def _from(obj: winrt.system.Object, /) -> IDeviceEnumerationSettings: ...
395
+
366
396
  @typing.final
367
397
  class IDevicePairingSettings(winrt.system.Object):
368
398
  @staticmethod
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import enum
4
4
 
@@ -9,6 +9,7 @@ __all__ = [
9
9
  "DeviceAccessStatus",
10
10
  "DeviceClass",
11
11
  "DeviceInformationKind",
12
+ "DevicePairingAddPairingSetMemberStatus",
12
13
  "DevicePairingKinds",
13
14
  "DevicePairingProtectionLevel",
14
15
  "DevicePairingResultStatus",
@@ -28,6 +29,7 @@ __all__ = [
28
29
  "DeviceInformationUpdate",
29
30
  "DevicePairingRequestedEventArgs",
30
31
  "DevicePairingResult",
32
+ "DevicePairingSetMembersRequestedEventArgs",
31
33
  "DevicePicker",
32
34
  "DevicePickerAppearance",
33
35
  "DevicePickerFilter",
@@ -38,6 +40,7 @@ __all__ = [
38
40
  "DeviceWatcherEvent",
39
41
  "DeviceWatcherTriggerDetails",
40
42
  "EnclosureLocation",
43
+ "IDeviceEnumerationSettings",
41
44
  "IDevicePairingSettings",
42
45
  ]
43
46
 
@@ -66,6 +69,15 @@ class DeviceInformationKind(enum.IntEnum):
66
69
  ASSOCIATION_ENDPOINT_CONTAINER = 6
67
70
  ASSOCIATION_ENDPOINT_SERVICE = 7
68
71
  DEVICE_PANEL = 8
72
+ ASSOCIATION_ENDPOINT_PROTOCOL = 9
73
+
74
+ class DevicePairingAddPairingSetMemberStatus(enum.IntEnum):
75
+ ADDED_TO_SET = 0
76
+ COULD_NOT_BE_ADDED_TO_SET = 1
77
+ SET_DISCOVERY_NOT_ATTEMPTED_BY_PROTOCOL = 2
78
+ SET_DISCOVERY_COMPLETED_BY_PROTOCOL = 3
79
+ SET_DISCOVERY_PARTIALLY_COMPLETED_BY_PROTOCOL = 4
80
+ FAILED = 5
69
81
 
70
82
  class DevicePairingKinds(enum.IntFlag):
71
83
  NONE = 0x0
@@ -74,6 +86,7 @@ class DevicePairingKinds(enum.IntFlag):
74
86
  PROVIDE_PIN = 0x4
75
87
  CONFIRM_PIN_MATCH = 0x8
76
88
  PROVIDE_PASSWORD_CREDENTIAL = 0x10
89
+ PROVIDE_ADDRESS = 0x20
77
90
 
78
91
  class DevicePairingProtectionLevel(enum.IntEnum):
79
92
  DEFAULT = 0
@@ -150,6 +163,7 @@ DeviceInformationPairing = _winrt_windows_devices_enumeration.DeviceInformationP
150
163
  DeviceInformationUpdate = _winrt_windows_devices_enumeration.DeviceInformationUpdate
151
164
  DevicePairingRequestedEventArgs = _winrt_windows_devices_enumeration.DevicePairingRequestedEventArgs
152
165
  DevicePairingResult = _winrt_windows_devices_enumeration.DevicePairingResult
166
+ DevicePairingSetMembersRequestedEventArgs = _winrt_windows_devices_enumeration.DevicePairingSetMembersRequestedEventArgs
153
167
  DevicePicker = _winrt_windows_devices_enumeration.DevicePicker
154
168
  DevicePickerAppearance = _winrt_windows_devices_enumeration.DevicePickerAppearance
155
169
  DevicePickerFilter = _winrt_windows_devices_enumeration.DevicePickerFilter
@@ -160,4 +174,5 @@ DeviceWatcher = _winrt_windows_devices_enumeration.DeviceWatcher
160
174
  DeviceWatcherEvent = _winrt_windows_devices_enumeration.DeviceWatcherEvent
161
175
  DeviceWatcherTriggerDetails = _winrt_windows_devices_enumeration.DeviceWatcherTriggerDetails
162
176
  EnclosureLocation = _winrt_windows_devices_enumeration.EnclosureLocation
177
+ IDeviceEnumerationSettings = _winrt_windows_devices_enumeration.IDeviceEnumerationSettings
163
178
  IDevicePairingSettings = _winrt_windows_devices_enumeration.IDevicePairingSettings
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Enumeration
3
- Version: 2.2.0
3
+ Version: 2.3.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,15 +12,15 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Background[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
- Requires-Dist: winrt-Windows.Security.Credentials[all]==2.2.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
22
- Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
23
- Requires-Dist: winrt-Windows.UI.Popups[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Background[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Security.Credentials[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.UI[all]==2.3.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.UI.Popups[all]==2.3.0; extra == "all"
24
24
 
25
25
  <!-- warning: Please don't edit this file. It was automatically generated. -->
26
26
 
@@ -0,0 +1,10 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.Background[all]==2.3.0
5
+ winrt-Windows.Foundation[all]==2.3.0
6
+ winrt-Windows.Foundation.Collections[all]==2.3.0
7
+ winrt-Windows.Security.Credentials[all]==2.3.0
8
+ winrt-Windows.Storage.Streams[all]==2.3.0
9
+ winrt-Windows.UI[all]==2.3.0
10
+ winrt-Windows.UI.Popups[all]==2.3.0
@@ -1,9 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.ApplicationModel.Background[all]==2.2.0
4
- winrt-Windows.Foundation[all]==2.2.0
5
- winrt-Windows.Foundation.Collections[all]==2.2.0
6
- winrt-Windows.Security.Credentials[all]==2.2.0
7
- winrt-Windows.Storage.Streams[all]==2.2.0
8
- winrt-Windows.UI[all]==2.2.0
9
- winrt-Windows.UI.Popups[all]==2.2.0
@@ -1,10 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.Background[all]==2.2.0
5
- winrt-Windows.Foundation[all]==2.2.0
6
- winrt-Windows.Foundation.Collections[all]==2.2.0
7
- winrt-Windows.Security.Credentials[all]==2.2.0
8
- winrt-Windows.Storage.Streams[all]==2.2.0
9
- winrt-Windows.UI[all]==2.2.0
10
- winrt-Windows.UI.Popups[all]==2.2.0