winrt-Windows.Devices.Bluetooth.Background 2.0.0b2__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/PKG-INFO +10 -1
- winrt_windows_devices_bluetooth_background-2.1.0/all-requirements.txt +10 -0
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/py.Windows.Devices.Bluetooth.Background.cpp +206 -232
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/pyproject.toml +2 -2
- winrt_windows_devices_bluetooth_background-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/requirements.txt +2 -2
- winrt_windows_devices_bluetooth_background-2.1.0/setup.py +31 -0
- winrt_windows_devices_bluetooth_background-2.1.0/winrt/_winrt_windows_devices_bluetooth_background.pyi +120 -0
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/winrt/windows/devices/bluetooth/background/__init__.py +1 -1
- winrt_windows_devices_bluetooth_background-2.1.0/winrt/windows/devices/bluetooth/background/py.typed +0 -0
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/PKG-INFO +10 -1
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/SOURCES.txt +1 -0
- winrt_windows_devices_bluetooth_background-2.1.0/winrt_Windows.Devices.Bluetooth.Background.egg-info/requires.txt +11 -0
- winrt-Windows.Devices.Bluetooth.Background-2.0.0b2/all-requirements.txt +0 -10
- winrt-Windows.Devices.Bluetooth.Background-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.Devices.Bluetooth.Background-2.0.0b2/setup.py +0 -16
- winrt-Windows.Devices.Bluetooth.Background-2.0.0b2/winrt/_winrt_windows_devices_bluetooth_background.pyi +0 -120
- winrt-Windows.Devices.Bluetooth.Background-2.0.0b2/winrt_Windows.Devices.Bluetooth.Background.egg-info/requires.txt +0 -11
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/README.md +0 -0
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Devices.Bluetooth.Background-2.0.0b2 → winrt_windows_devices_bluetooth_background-2.1.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Bluetooth.Background
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,16 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.1.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
25
|
|
|
17
26
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
27
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Devices.Bluetooth[all]==2.1.0
|
|
4
|
+
winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.1.0
|
|
5
|
+
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.1.0
|
|
6
|
+
winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.1.0
|
|
7
|
+
winrt-Windows.Foundation[all]==2.1.0
|
|
8
|
+
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
9
|
+
winrt-Windows.Networking.Sockets[all]==2.1.0
|
|
10
|
+
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Devices.Bluetooth.Background.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
7
6
|
{
|
|
8
7
|
// ----- BluetoothLEAdvertisementPublisherTriggerDetails class --------------------
|
|
@@ -24,14 +23,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
24
23
|
|
|
25
24
|
static PyObject* BluetoothLEAdvertisementPublisherTriggerDetails_get_Error(py::wrapper::Windows::Devices::Bluetooth::Background::BluetoothLEAdvertisementPublisherTriggerDetails* self, void* /*unused*/) noexcept
|
|
26
25
|
{
|
|
27
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"Error"))
|
|
28
|
-
{
|
|
29
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
30
|
-
return nullptr;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
try
|
|
34
27
|
{
|
|
28
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"Error"))
|
|
29
|
+
{
|
|
30
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
31
|
+
return nullptr;
|
|
32
|
+
}
|
|
33
|
+
|
|
35
34
|
return py::convert(self->obj.Error());
|
|
36
35
|
}
|
|
37
36
|
catch (...)
|
|
@@ -43,14 +42,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
43
42
|
|
|
44
43
|
static PyObject* BluetoothLEAdvertisementPublisherTriggerDetails_get_Status(py::wrapper::Windows::Devices::Bluetooth::Background::BluetoothLEAdvertisementPublisherTriggerDetails* self, void* /*unused*/) noexcept
|
|
45
44
|
{
|
|
46
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"Status"))
|
|
47
|
-
{
|
|
48
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
49
|
-
return nullptr;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
45
|
try
|
|
53
46
|
{
|
|
47
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"Status"))
|
|
48
|
+
{
|
|
49
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
50
|
+
return nullptr;
|
|
51
|
+
}
|
|
52
|
+
|
|
54
53
|
return py::convert(self->obj.Status());
|
|
55
54
|
}
|
|
56
55
|
catch (...)
|
|
@@ -62,14 +61,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
62
61
|
|
|
63
62
|
static PyObject* BluetoothLEAdvertisementPublisherTriggerDetails_get_SelectedTransmitPowerLevelInDBm(py::wrapper::Windows::Devices::Bluetooth::Background::BluetoothLEAdvertisementPublisherTriggerDetails* self, void* /*unused*/) noexcept
|
|
64
63
|
{
|
|
65
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"SelectedTransmitPowerLevelInDBm"))
|
|
66
|
-
{
|
|
67
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
68
|
-
return nullptr;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
64
|
try
|
|
72
65
|
{
|
|
66
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails", L"SelectedTransmitPowerLevelInDBm"))
|
|
67
|
+
{
|
|
68
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
69
|
+
return nullptr;
|
|
70
|
+
}
|
|
71
|
+
|
|
73
72
|
return py::convert(self->obj.SelectedTransmitPowerLevelInDBm());
|
|
74
73
|
}
|
|
75
74
|
catch (...)
|
|
@@ -116,23 +115,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
116
115
|
{ }
|
|
117
116
|
};
|
|
118
117
|
|
|
119
|
-
static PyType_Slot _type_slots_BluetoothLEAdvertisementPublisherTriggerDetails[] =
|
|
120
|
-
{
|
|
118
|
+
static PyType_Slot _type_slots_BluetoothLEAdvertisementPublisherTriggerDetails[] = {
|
|
121
119
|
{ Py_tp_new, reinterpret_cast<void*>(_new_BluetoothLEAdvertisementPublisherTriggerDetails) },
|
|
122
120
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_BluetoothLEAdvertisementPublisherTriggerDetails) },
|
|
123
121
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_BluetoothLEAdvertisementPublisherTriggerDetails) },
|
|
124
122
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_BluetoothLEAdvertisementPublisherTriggerDetails) },
|
|
125
|
-
{ }
|
|
123
|
+
{ }
|
|
126
124
|
};
|
|
127
125
|
|
|
128
|
-
static PyType_Spec type_spec_BluetoothLEAdvertisementPublisherTriggerDetails =
|
|
129
|
-
{
|
|
126
|
+
static PyType_Spec type_spec_BluetoothLEAdvertisementPublisherTriggerDetails = {
|
|
130
127
|
"winrt._winrt_windows_devices_bluetooth_background.BluetoothLEAdvertisementPublisherTriggerDetails",
|
|
131
128
|
sizeof(py::wrapper::Windows::Devices::Bluetooth::Background::BluetoothLEAdvertisementPublisherTriggerDetails),
|
|
132
129
|
0,
|
|
133
130
|
Py_TPFLAGS_DEFAULT,
|
|
134
|
-
_type_slots_BluetoothLEAdvertisementPublisherTriggerDetails
|
|
135
|
-
};
|
|
131
|
+
_type_slots_BluetoothLEAdvertisementPublisherTriggerDetails};
|
|
136
132
|
|
|
137
133
|
// ----- BluetoothLEAdvertisementWatcherTriggerDetails class --------------------
|
|
138
134
|
|
|
@@ -153,14 +149,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
153
149
|
|
|
154
150
|
static PyObject* BluetoothLEAdvertisementWatcherTriggerDetails_get_Advertisements(py::wrapper::Windows::Devices::Bluetooth::Background::BluetoothLEAdvertisementWatcherTriggerDetails* self, void* /*unused*/) noexcept
|
|
155
151
|
{
|
|
156
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"Advertisements"))
|
|
157
|
-
{
|
|
158
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
159
|
-
return nullptr;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
152
|
try
|
|
163
153
|
{
|
|
154
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"Advertisements"))
|
|
155
|
+
{
|
|
156
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
157
|
+
return nullptr;
|
|
158
|
+
}
|
|
159
|
+
|
|
164
160
|
return py::convert(self->obj.Advertisements());
|
|
165
161
|
}
|
|
166
162
|
catch (...)
|
|
@@ -172,14 +168,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
172
168
|
|
|
173
169
|
static PyObject* BluetoothLEAdvertisementWatcherTriggerDetails_get_Error(py::wrapper::Windows::Devices::Bluetooth::Background::BluetoothLEAdvertisementWatcherTriggerDetails* self, void* /*unused*/) noexcept
|
|
174
170
|
{
|
|
175
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"Error"))
|
|
176
|
-
{
|
|
177
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
178
|
-
return nullptr;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
171
|
try
|
|
182
172
|
{
|
|
173
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"Error"))
|
|
174
|
+
{
|
|
175
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
176
|
+
return nullptr;
|
|
177
|
+
}
|
|
178
|
+
|
|
183
179
|
return py::convert(self->obj.Error());
|
|
184
180
|
}
|
|
185
181
|
catch (...)
|
|
@@ -191,14 +187,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
191
187
|
|
|
192
188
|
static PyObject* BluetoothLEAdvertisementWatcherTriggerDetails_get_SignalStrengthFilter(py::wrapper::Windows::Devices::Bluetooth::Background::BluetoothLEAdvertisementWatcherTriggerDetails* self, void* /*unused*/) noexcept
|
|
193
189
|
{
|
|
194
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"SignalStrengthFilter"))
|
|
195
|
-
{
|
|
196
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
197
|
-
return nullptr;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
190
|
try
|
|
201
191
|
{
|
|
192
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails", L"SignalStrengthFilter"))
|
|
193
|
+
{
|
|
194
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
195
|
+
return nullptr;
|
|
196
|
+
}
|
|
197
|
+
|
|
202
198
|
return py::convert(self->obj.SignalStrengthFilter());
|
|
203
199
|
}
|
|
204
200
|
catch (...)
|
|
@@ -245,23 +241,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
245
241
|
{ }
|
|
246
242
|
};
|
|
247
243
|
|
|
248
|
-
static PyType_Slot _type_slots_BluetoothLEAdvertisementWatcherTriggerDetails[] =
|
|
249
|
-
{
|
|
244
|
+
static PyType_Slot _type_slots_BluetoothLEAdvertisementWatcherTriggerDetails[] = {
|
|
250
245
|
{ Py_tp_new, reinterpret_cast<void*>(_new_BluetoothLEAdvertisementWatcherTriggerDetails) },
|
|
251
246
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_BluetoothLEAdvertisementWatcherTriggerDetails) },
|
|
252
247
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_BluetoothLEAdvertisementWatcherTriggerDetails) },
|
|
253
248
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_BluetoothLEAdvertisementWatcherTriggerDetails) },
|
|
254
|
-
{ }
|
|
249
|
+
{ }
|
|
255
250
|
};
|
|
256
251
|
|
|
257
|
-
static PyType_Spec type_spec_BluetoothLEAdvertisementWatcherTriggerDetails =
|
|
258
|
-
{
|
|
252
|
+
static PyType_Spec type_spec_BluetoothLEAdvertisementWatcherTriggerDetails = {
|
|
259
253
|
"winrt._winrt_windows_devices_bluetooth_background.BluetoothLEAdvertisementWatcherTriggerDetails",
|
|
260
254
|
sizeof(py::wrapper::Windows::Devices::Bluetooth::Background::BluetoothLEAdvertisementWatcherTriggerDetails),
|
|
261
255
|
0,
|
|
262
256
|
Py_TPFLAGS_DEFAULT,
|
|
263
|
-
_type_slots_BluetoothLEAdvertisementWatcherTriggerDetails
|
|
264
|
-
};
|
|
257
|
+
_type_slots_BluetoothLEAdvertisementWatcherTriggerDetails};
|
|
265
258
|
|
|
266
259
|
// ----- GattCharacteristicNotificationTriggerDetails class --------------------
|
|
267
260
|
|
|
@@ -282,14 +275,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
282
275
|
|
|
283
276
|
static PyObject* GattCharacteristicNotificationTriggerDetails_get_Characteristic(py::wrapper::Windows::Devices::Bluetooth::Background::GattCharacteristicNotificationTriggerDetails* self, void* /*unused*/) noexcept
|
|
284
277
|
{
|
|
285
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Characteristic"))
|
|
286
|
-
{
|
|
287
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
288
|
-
return nullptr;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
278
|
try
|
|
292
279
|
{
|
|
280
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Characteristic"))
|
|
281
|
+
{
|
|
282
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
283
|
+
return nullptr;
|
|
284
|
+
}
|
|
285
|
+
|
|
293
286
|
return py::convert(self->obj.Characteristic());
|
|
294
287
|
}
|
|
295
288
|
catch (...)
|
|
@@ -301,14 +294,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
301
294
|
|
|
302
295
|
static PyObject* GattCharacteristicNotificationTriggerDetails_get_Value(py::wrapper::Windows::Devices::Bluetooth::Background::GattCharacteristicNotificationTriggerDetails* self, void* /*unused*/) noexcept
|
|
303
296
|
{
|
|
304
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Value"))
|
|
305
|
-
{
|
|
306
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
307
|
-
return nullptr;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
297
|
try
|
|
311
298
|
{
|
|
299
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Value"))
|
|
300
|
+
{
|
|
301
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
302
|
+
return nullptr;
|
|
303
|
+
}
|
|
304
|
+
|
|
312
305
|
return py::convert(self->obj.Value());
|
|
313
306
|
}
|
|
314
307
|
catch (...)
|
|
@@ -320,14 +313,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
320
313
|
|
|
321
314
|
static PyObject* GattCharacteristicNotificationTriggerDetails_get_Error(py::wrapper::Windows::Devices::Bluetooth::Background::GattCharacteristicNotificationTriggerDetails* self, void* /*unused*/) noexcept
|
|
322
315
|
{
|
|
323
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Error"))
|
|
324
|
-
{
|
|
325
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
326
|
-
return nullptr;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
316
|
try
|
|
330
317
|
{
|
|
318
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"Error"))
|
|
319
|
+
{
|
|
320
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
321
|
+
return nullptr;
|
|
322
|
+
}
|
|
323
|
+
|
|
331
324
|
return py::convert(self->obj.Error());
|
|
332
325
|
}
|
|
333
326
|
catch (...)
|
|
@@ -339,14 +332,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
339
332
|
|
|
340
333
|
static PyObject* GattCharacteristicNotificationTriggerDetails_get_EventTriggeringMode(py::wrapper::Windows::Devices::Bluetooth::Background::GattCharacteristicNotificationTriggerDetails* self, void* /*unused*/) noexcept
|
|
341
334
|
{
|
|
342
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"EventTriggeringMode"))
|
|
343
|
-
{
|
|
344
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
345
|
-
return nullptr;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
335
|
try
|
|
349
336
|
{
|
|
337
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"EventTriggeringMode"))
|
|
338
|
+
{
|
|
339
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
340
|
+
return nullptr;
|
|
341
|
+
}
|
|
342
|
+
|
|
350
343
|
return py::convert(self->obj.EventTriggeringMode());
|
|
351
344
|
}
|
|
352
345
|
catch (...)
|
|
@@ -358,14 +351,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
358
351
|
|
|
359
352
|
static PyObject* GattCharacteristicNotificationTriggerDetails_get_ValueChangedEvents(py::wrapper::Windows::Devices::Bluetooth::Background::GattCharacteristicNotificationTriggerDetails* self, void* /*unused*/) noexcept
|
|
360
353
|
{
|
|
361
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"ValueChangedEvents"))
|
|
362
|
-
{
|
|
363
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
364
|
-
return nullptr;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
354
|
try
|
|
368
355
|
{
|
|
356
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails", L"ValueChangedEvents"))
|
|
357
|
+
{
|
|
358
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
359
|
+
return nullptr;
|
|
360
|
+
}
|
|
361
|
+
|
|
369
362
|
return py::convert(self->obj.ValueChangedEvents());
|
|
370
363
|
}
|
|
371
364
|
catch (...)
|
|
@@ -414,23 +407,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
414
407
|
{ }
|
|
415
408
|
};
|
|
416
409
|
|
|
417
|
-
static PyType_Slot _type_slots_GattCharacteristicNotificationTriggerDetails[] =
|
|
418
|
-
{
|
|
410
|
+
static PyType_Slot _type_slots_GattCharacteristicNotificationTriggerDetails[] = {
|
|
419
411
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GattCharacteristicNotificationTriggerDetails) },
|
|
420
412
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GattCharacteristicNotificationTriggerDetails) },
|
|
421
413
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GattCharacteristicNotificationTriggerDetails) },
|
|
422
414
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GattCharacteristicNotificationTriggerDetails) },
|
|
423
|
-
{ }
|
|
415
|
+
{ }
|
|
424
416
|
};
|
|
425
417
|
|
|
426
|
-
static PyType_Spec type_spec_GattCharacteristicNotificationTriggerDetails =
|
|
427
|
-
{
|
|
418
|
+
static PyType_Spec type_spec_GattCharacteristicNotificationTriggerDetails = {
|
|
428
419
|
"winrt._winrt_windows_devices_bluetooth_background.GattCharacteristicNotificationTriggerDetails",
|
|
429
420
|
sizeof(py::wrapper::Windows::Devices::Bluetooth::Background::GattCharacteristicNotificationTriggerDetails),
|
|
430
421
|
0,
|
|
431
422
|
Py_TPFLAGS_DEFAULT,
|
|
432
|
-
_type_slots_GattCharacteristicNotificationTriggerDetails
|
|
433
|
-
};
|
|
423
|
+
_type_slots_GattCharacteristicNotificationTriggerDetails};
|
|
434
424
|
|
|
435
425
|
// ----- GattServiceProviderConnection class --------------------
|
|
436
426
|
|
|
@@ -455,14 +445,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
455
445
|
|
|
456
446
|
if (arg_count == 0)
|
|
457
447
|
{
|
|
458
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"Start", 0))
|
|
459
|
-
{
|
|
460
|
-
py::set_arg_count_version_error(0);
|
|
461
|
-
return nullptr;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
448
|
try
|
|
465
449
|
{
|
|
450
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"Start", 0))
|
|
451
|
+
{
|
|
452
|
+
py::set_arg_count_version_error(0);
|
|
453
|
+
return nullptr;
|
|
454
|
+
}
|
|
455
|
+
|
|
466
456
|
self->obj.Start();
|
|
467
457
|
Py_RETURN_NONE;
|
|
468
458
|
}
|
|
@@ -481,14 +471,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
481
471
|
|
|
482
472
|
static PyObject* GattServiceProviderConnection_get_Service(py::wrapper::Windows::Devices::Bluetooth::Background::GattServiceProviderConnection* self, void* /*unused*/) noexcept
|
|
483
473
|
{
|
|
484
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"Service"))
|
|
485
|
-
{
|
|
486
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
487
|
-
return nullptr;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
474
|
try
|
|
491
475
|
{
|
|
476
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"Service"))
|
|
477
|
+
{
|
|
478
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
479
|
+
return nullptr;
|
|
480
|
+
}
|
|
481
|
+
|
|
492
482
|
return py::convert(self->obj.Service());
|
|
493
483
|
}
|
|
494
484
|
catch (...)
|
|
@@ -500,14 +490,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
500
490
|
|
|
501
491
|
static PyObject* GattServiceProviderConnection_get_TriggerId(py::wrapper::Windows::Devices::Bluetooth::Background::GattServiceProviderConnection* self, void* /*unused*/) noexcept
|
|
502
492
|
{
|
|
503
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"TriggerId"))
|
|
504
|
-
{
|
|
505
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
506
|
-
return nullptr;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
493
|
try
|
|
510
494
|
{
|
|
495
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"TriggerId"))
|
|
496
|
+
{
|
|
497
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
498
|
+
return nullptr;
|
|
499
|
+
}
|
|
500
|
+
|
|
511
501
|
return py::convert(self->obj.TriggerId());
|
|
512
502
|
}
|
|
513
503
|
catch (...)
|
|
@@ -519,14 +509,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
519
509
|
|
|
520
510
|
static PyObject* GattServiceProviderConnection_get_AllServices(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
521
511
|
{
|
|
522
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"AllServices"))
|
|
523
|
-
{
|
|
524
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
525
|
-
return nullptr;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
512
|
try
|
|
529
513
|
{
|
|
514
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"AllServices"))
|
|
515
|
+
{
|
|
516
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
517
|
+
return nullptr;
|
|
518
|
+
}
|
|
519
|
+
|
|
530
520
|
return py::convert(winrt::Windows::Devices::Bluetooth::Background::GattServiceProviderConnection::AllServices());
|
|
531
521
|
}
|
|
532
522
|
catch (...)
|
|
@@ -573,23 +563,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
573
563
|
{ }
|
|
574
564
|
};
|
|
575
565
|
|
|
576
|
-
static PyType_Slot _type_slots_GattServiceProviderConnection[] =
|
|
577
|
-
{
|
|
566
|
+
static PyType_Slot _type_slots_GattServiceProviderConnection[] = {
|
|
578
567
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GattServiceProviderConnection) },
|
|
579
568
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GattServiceProviderConnection) },
|
|
580
569
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GattServiceProviderConnection) },
|
|
581
570
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GattServiceProviderConnection) },
|
|
582
|
-
{ }
|
|
571
|
+
{ }
|
|
583
572
|
};
|
|
584
573
|
|
|
585
|
-
static PyType_Spec type_spec_GattServiceProviderConnection =
|
|
586
|
-
{
|
|
574
|
+
static PyType_Spec type_spec_GattServiceProviderConnection = {
|
|
587
575
|
"winrt._winrt_windows_devices_bluetooth_background.GattServiceProviderConnection",
|
|
588
576
|
sizeof(py::wrapper::Windows::Devices::Bluetooth::Background::GattServiceProviderConnection),
|
|
589
577
|
0,
|
|
590
578
|
Py_TPFLAGS_DEFAULT,
|
|
591
|
-
_type_slots_GattServiceProviderConnection
|
|
592
|
-
};
|
|
579
|
+
_type_slots_GattServiceProviderConnection};
|
|
593
580
|
|
|
594
581
|
static PyGetSetDef getset_GattServiceProviderConnection_Static[] = {
|
|
595
582
|
{ "all_services", reinterpret_cast<getter>(GattServiceProviderConnection_get_AllServices), nullptr, nullptr, nullptr },
|
|
@@ -636,14 +623,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
636
623
|
|
|
637
624
|
static PyObject* GattServiceProviderTriggerDetails_get_Connection(py::wrapper::Windows::Devices::Bluetooth::Background::GattServiceProviderTriggerDetails* self, void* /*unused*/) noexcept
|
|
638
625
|
{
|
|
639
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderTriggerDetails", L"Connection"))
|
|
640
|
-
{
|
|
641
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
642
|
-
return nullptr;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
626
|
try
|
|
646
627
|
{
|
|
628
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderTriggerDetails", L"Connection"))
|
|
629
|
+
{
|
|
630
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
631
|
+
return nullptr;
|
|
632
|
+
}
|
|
633
|
+
|
|
647
634
|
return py::convert(self->obj.Connection());
|
|
648
635
|
}
|
|
649
636
|
catch (...)
|
|
@@ -688,23 +675,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
688
675
|
{ }
|
|
689
676
|
};
|
|
690
677
|
|
|
691
|
-
static PyType_Slot _type_slots_GattServiceProviderTriggerDetails[] =
|
|
692
|
-
{
|
|
678
|
+
static PyType_Slot _type_slots_GattServiceProviderTriggerDetails[] = {
|
|
693
679
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GattServiceProviderTriggerDetails) },
|
|
694
680
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GattServiceProviderTriggerDetails) },
|
|
695
681
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GattServiceProviderTriggerDetails) },
|
|
696
682
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GattServiceProviderTriggerDetails) },
|
|
697
|
-
{ }
|
|
683
|
+
{ }
|
|
698
684
|
};
|
|
699
685
|
|
|
700
|
-
static PyType_Spec type_spec_GattServiceProviderTriggerDetails =
|
|
701
|
-
{
|
|
686
|
+
static PyType_Spec type_spec_GattServiceProviderTriggerDetails = {
|
|
702
687
|
"winrt._winrt_windows_devices_bluetooth_background.GattServiceProviderTriggerDetails",
|
|
703
688
|
sizeof(py::wrapper::Windows::Devices::Bluetooth::Background::GattServiceProviderTriggerDetails),
|
|
704
689
|
0,
|
|
705
690
|
Py_TPFLAGS_DEFAULT,
|
|
706
|
-
_type_slots_GattServiceProviderTriggerDetails
|
|
707
|
-
};
|
|
691
|
+
_type_slots_GattServiceProviderTriggerDetails};
|
|
708
692
|
|
|
709
693
|
// ----- RfcommConnectionTriggerDetails class --------------------
|
|
710
694
|
|
|
@@ -725,14 +709,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
725
709
|
|
|
726
710
|
static PyObject* RfcommConnectionTriggerDetails_get_Incoming(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommConnectionTriggerDetails* self, void* /*unused*/) noexcept
|
|
727
711
|
{
|
|
728
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"Incoming"))
|
|
729
|
-
{
|
|
730
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
731
|
-
return nullptr;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
712
|
try
|
|
735
713
|
{
|
|
714
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"Incoming"))
|
|
715
|
+
{
|
|
716
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
717
|
+
return nullptr;
|
|
718
|
+
}
|
|
719
|
+
|
|
736
720
|
return py::convert(self->obj.Incoming());
|
|
737
721
|
}
|
|
738
722
|
catch (...)
|
|
@@ -744,14 +728,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
744
728
|
|
|
745
729
|
static PyObject* RfcommConnectionTriggerDetails_get_RemoteDevice(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommConnectionTriggerDetails* self, void* /*unused*/) noexcept
|
|
746
730
|
{
|
|
747
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"RemoteDevice"))
|
|
748
|
-
{
|
|
749
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
750
|
-
return nullptr;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
731
|
try
|
|
754
732
|
{
|
|
733
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"RemoteDevice"))
|
|
734
|
+
{
|
|
735
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
736
|
+
return nullptr;
|
|
737
|
+
}
|
|
738
|
+
|
|
755
739
|
return py::convert(self->obj.RemoteDevice());
|
|
756
740
|
}
|
|
757
741
|
catch (...)
|
|
@@ -763,14 +747,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
763
747
|
|
|
764
748
|
static PyObject* RfcommConnectionTriggerDetails_get_Socket(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommConnectionTriggerDetails* self, void* /*unused*/) noexcept
|
|
765
749
|
{
|
|
766
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"Socket"))
|
|
767
|
-
{
|
|
768
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
769
|
-
return nullptr;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
750
|
try
|
|
773
751
|
{
|
|
752
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails", L"Socket"))
|
|
753
|
+
{
|
|
754
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
755
|
+
return nullptr;
|
|
756
|
+
}
|
|
757
|
+
|
|
774
758
|
return py::convert(self->obj.Socket());
|
|
775
759
|
}
|
|
776
760
|
catch (...)
|
|
@@ -817,23 +801,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
817
801
|
{ }
|
|
818
802
|
};
|
|
819
803
|
|
|
820
|
-
static PyType_Slot _type_slots_RfcommConnectionTriggerDetails[] =
|
|
821
|
-
{
|
|
804
|
+
static PyType_Slot _type_slots_RfcommConnectionTriggerDetails[] = {
|
|
822
805
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RfcommConnectionTriggerDetails) },
|
|
823
806
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RfcommConnectionTriggerDetails) },
|
|
824
807
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RfcommConnectionTriggerDetails) },
|
|
825
808
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RfcommConnectionTriggerDetails) },
|
|
826
|
-
{ }
|
|
809
|
+
{ }
|
|
827
810
|
};
|
|
828
811
|
|
|
829
|
-
static PyType_Spec type_spec_RfcommConnectionTriggerDetails =
|
|
830
|
-
{
|
|
812
|
+
static PyType_Spec type_spec_RfcommConnectionTriggerDetails = {
|
|
831
813
|
"winrt._winrt_windows_devices_bluetooth_background.RfcommConnectionTriggerDetails",
|
|
832
814
|
sizeof(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommConnectionTriggerDetails),
|
|
833
815
|
0,
|
|
834
816
|
Py_TPFLAGS_DEFAULT,
|
|
835
|
-
_type_slots_RfcommConnectionTriggerDetails
|
|
836
|
-
};
|
|
817
|
+
_type_slots_RfcommConnectionTriggerDetails};
|
|
837
818
|
|
|
838
819
|
// ----- RfcommInboundConnectionInformation class --------------------
|
|
839
820
|
|
|
@@ -854,14 +835,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
854
835
|
|
|
855
836
|
static PyObject* RfcommInboundConnectionInformation_get_ServiceCapabilities(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, void* /*unused*/) noexcept
|
|
856
837
|
{
|
|
857
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"ServiceCapabilities"))
|
|
858
|
-
{
|
|
859
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
860
|
-
return nullptr;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
838
|
try
|
|
864
839
|
{
|
|
840
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"ServiceCapabilities"))
|
|
841
|
+
{
|
|
842
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
843
|
+
return nullptr;
|
|
844
|
+
}
|
|
845
|
+
|
|
865
846
|
return py::convert(self->obj.ServiceCapabilities());
|
|
866
847
|
}
|
|
867
848
|
catch (...)
|
|
@@ -873,12 +854,6 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
873
854
|
|
|
874
855
|
static int RfcommInboundConnectionInformation_put_ServiceCapabilities(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, PyObject* arg, void* /*unused*/) noexcept
|
|
875
856
|
{
|
|
876
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"ServiceCapabilities"))
|
|
877
|
-
{
|
|
878
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
879
|
-
return -1;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
857
|
if (arg == nullptr)
|
|
883
858
|
{
|
|
884
859
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -887,6 +862,12 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
887
862
|
|
|
888
863
|
try
|
|
889
864
|
{
|
|
865
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"ServiceCapabilities"))
|
|
866
|
+
{
|
|
867
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
868
|
+
return -1;
|
|
869
|
+
}
|
|
870
|
+
|
|
890
871
|
auto param0 = py::convert_to<winrt::Windows::Devices::Bluetooth::BluetoothServiceCapabilities>(arg);
|
|
891
872
|
|
|
892
873
|
self->obj.ServiceCapabilities(param0);
|
|
@@ -901,14 +882,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
901
882
|
|
|
902
883
|
static PyObject* RfcommInboundConnectionInformation_get_SdpRecord(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, void* /*unused*/) noexcept
|
|
903
884
|
{
|
|
904
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"SdpRecord"))
|
|
905
|
-
{
|
|
906
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
907
|
-
return nullptr;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
885
|
try
|
|
911
886
|
{
|
|
887
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"SdpRecord"))
|
|
888
|
+
{
|
|
889
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
890
|
+
return nullptr;
|
|
891
|
+
}
|
|
892
|
+
|
|
912
893
|
return py::convert(self->obj.SdpRecord());
|
|
913
894
|
}
|
|
914
895
|
catch (...)
|
|
@@ -920,12 +901,6 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
920
901
|
|
|
921
902
|
static int RfcommInboundConnectionInformation_put_SdpRecord(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, PyObject* arg, void* /*unused*/) noexcept
|
|
922
903
|
{
|
|
923
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"SdpRecord"))
|
|
924
|
-
{
|
|
925
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
926
|
-
return -1;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
904
|
if (arg == nullptr)
|
|
930
905
|
{
|
|
931
906
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -934,6 +909,12 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
934
909
|
|
|
935
910
|
try
|
|
936
911
|
{
|
|
912
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"SdpRecord"))
|
|
913
|
+
{
|
|
914
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
915
|
+
return -1;
|
|
916
|
+
}
|
|
917
|
+
|
|
937
918
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(arg);
|
|
938
919
|
|
|
939
920
|
self->obj.SdpRecord(param0);
|
|
@@ -948,14 +929,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
948
929
|
|
|
949
930
|
static PyObject* RfcommInboundConnectionInformation_get_LocalServiceId(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, void* /*unused*/) noexcept
|
|
950
931
|
{
|
|
951
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"LocalServiceId"))
|
|
952
|
-
{
|
|
953
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
954
|
-
return nullptr;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
932
|
try
|
|
958
933
|
{
|
|
934
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"LocalServiceId"))
|
|
935
|
+
{
|
|
936
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
937
|
+
return nullptr;
|
|
938
|
+
}
|
|
939
|
+
|
|
959
940
|
return py::convert(self->obj.LocalServiceId());
|
|
960
941
|
}
|
|
961
942
|
catch (...)
|
|
@@ -967,12 +948,6 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
967
948
|
|
|
968
949
|
static int RfcommInboundConnectionInformation_put_LocalServiceId(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, PyObject* arg, void* /*unused*/) noexcept
|
|
969
950
|
{
|
|
970
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"LocalServiceId"))
|
|
971
|
-
{
|
|
972
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
973
|
-
return -1;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
951
|
if (arg == nullptr)
|
|
977
952
|
{
|
|
978
953
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -981,6 +956,12 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
981
956
|
|
|
982
957
|
try
|
|
983
958
|
{
|
|
959
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation", L"LocalServiceId"))
|
|
960
|
+
{
|
|
961
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
962
|
+
return -1;
|
|
963
|
+
}
|
|
964
|
+
|
|
984
965
|
auto param0 = py::convert_to<winrt::Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId>(arg);
|
|
985
966
|
|
|
986
967
|
self->obj.LocalServiceId(param0);
|
|
@@ -1030,23 +1011,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
1030
1011
|
{ }
|
|
1031
1012
|
};
|
|
1032
1013
|
|
|
1033
|
-
static PyType_Slot _type_slots_RfcommInboundConnectionInformation[] =
|
|
1034
|
-
{
|
|
1014
|
+
static PyType_Slot _type_slots_RfcommInboundConnectionInformation[] = {
|
|
1035
1015
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RfcommInboundConnectionInformation) },
|
|
1036
1016
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RfcommInboundConnectionInformation) },
|
|
1037
1017
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RfcommInboundConnectionInformation) },
|
|
1038
1018
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RfcommInboundConnectionInformation) },
|
|
1039
|
-
{ }
|
|
1019
|
+
{ }
|
|
1040
1020
|
};
|
|
1041
1021
|
|
|
1042
|
-
static PyType_Spec type_spec_RfcommInboundConnectionInformation =
|
|
1043
|
-
{
|
|
1022
|
+
static PyType_Spec type_spec_RfcommInboundConnectionInformation = {
|
|
1044
1023
|
"winrt._winrt_windows_devices_bluetooth_background.RfcommInboundConnectionInformation",
|
|
1045
1024
|
sizeof(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation),
|
|
1046
1025
|
0,
|
|
1047
1026
|
Py_TPFLAGS_DEFAULT,
|
|
1048
|
-
_type_slots_RfcommInboundConnectionInformation
|
|
1049
|
-
};
|
|
1027
|
+
_type_slots_RfcommInboundConnectionInformation};
|
|
1050
1028
|
|
|
1051
1029
|
// ----- RfcommOutboundConnectionInformation class --------------------
|
|
1052
1030
|
|
|
@@ -1067,14 +1045,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
1067
1045
|
|
|
1068
1046
|
static PyObject* RfcommOutboundConnectionInformation_get_RemoteServiceId(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommOutboundConnectionInformation* self, void* /*unused*/) noexcept
|
|
1069
1047
|
{
|
|
1070
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation", L"RemoteServiceId"))
|
|
1071
|
-
{
|
|
1072
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1073
|
-
return nullptr;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
1048
|
try
|
|
1077
1049
|
{
|
|
1050
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation", L"RemoteServiceId"))
|
|
1051
|
+
{
|
|
1052
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1053
|
+
return nullptr;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1078
1056
|
return py::convert(self->obj.RemoteServiceId());
|
|
1079
1057
|
}
|
|
1080
1058
|
catch (...)
|
|
@@ -1086,12 +1064,6 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
1086
1064
|
|
|
1087
1065
|
static int RfcommOutboundConnectionInformation_put_RemoteServiceId(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommOutboundConnectionInformation* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1088
1066
|
{
|
|
1089
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation", L"RemoteServiceId"))
|
|
1090
|
-
{
|
|
1091
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1092
|
-
return -1;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
1067
|
if (arg == nullptr)
|
|
1096
1068
|
{
|
|
1097
1069
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1100,6 +1072,12 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
1100
1072
|
|
|
1101
1073
|
try
|
|
1102
1074
|
{
|
|
1075
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation", L"RemoteServiceId"))
|
|
1076
|
+
{
|
|
1077
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1078
|
+
return -1;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1103
1081
|
auto param0 = py::convert_to<winrt::Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId>(arg);
|
|
1104
1082
|
|
|
1105
1083
|
self->obj.RemoteServiceId(param0);
|
|
@@ -1147,39 +1125,35 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
|
|
|
1147
1125
|
{ }
|
|
1148
1126
|
};
|
|
1149
1127
|
|
|
1150
|
-
static PyType_Slot _type_slots_RfcommOutboundConnectionInformation[] =
|
|
1151
|
-
{
|
|
1128
|
+
static PyType_Slot _type_slots_RfcommOutboundConnectionInformation[] = {
|
|
1152
1129
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RfcommOutboundConnectionInformation) },
|
|
1153
1130
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RfcommOutboundConnectionInformation) },
|
|
1154
1131
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RfcommOutboundConnectionInformation) },
|
|
1155
1132
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RfcommOutboundConnectionInformation) },
|
|
1156
|
-
{ }
|
|
1133
|
+
{ }
|
|
1157
1134
|
};
|
|
1158
1135
|
|
|
1159
|
-
static PyType_Spec type_spec_RfcommOutboundConnectionInformation =
|
|
1160
|
-
{
|
|
1136
|
+
static PyType_Spec type_spec_RfcommOutboundConnectionInformation = {
|
|
1161
1137
|
"winrt._winrt_windows_devices_bluetooth_background.RfcommOutboundConnectionInformation",
|
|
1162
1138
|
sizeof(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommOutboundConnectionInformation),
|
|
1163
1139
|
0,
|
|
1164
1140
|
Py_TPFLAGS_DEFAULT,
|
|
1165
|
-
_type_slots_RfcommOutboundConnectionInformation
|
|
1166
|
-
};
|
|
1141
|
+
_type_slots_RfcommOutboundConnectionInformation};
|
|
1167
1142
|
|
|
1168
1143
|
// ----- Windows.Devices.Bluetooth.Background Initialization --------------------
|
|
1169
|
-
PyDoc_STRVAR(module_doc, "Windows::Devices::Bluetooth::Background");
|
|
1170
|
-
|
|
1171
1144
|
|
|
1172
|
-
|
|
1173
|
-
= {PyModuleDef_HEAD_INIT,
|
|
1174
|
-
"_winrt_windows_devices_bluetooth_background",
|
|
1175
|
-
module_doc,
|
|
1176
|
-
0,
|
|
1177
|
-
nullptr,
|
|
1178
|
-
nullptr,
|
|
1179
|
-
nullptr,
|
|
1180
|
-
nullptr,
|
|
1181
|
-
nullptr};
|
|
1145
|
+
PyDoc_STRVAR(module_doc, "Windows.Devices.Bluetooth.Background");
|
|
1182
1146
|
|
|
1147
|
+
static PyModuleDef module_def = {
|
|
1148
|
+
PyModuleDef_HEAD_INIT,
|
|
1149
|
+
"_winrt_windows_devices_bluetooth_background",
|
|
1150
|
+
module_doc,
|
|
1151
|
+
0,
|
|
1152
|
+
nullptr,
|
|
1153
|
+
nullptr,
|
|
1154
|
+
nullptr,
|
|
1155
|
+
nullptr,
|
|
1156
|
+
nullptr};
|
|
1183
1157
|
} // py::cpp::Windows::Devices::Bluetooth::Background
|
|
1184
1158
|
|
|
1185
1159
|
PyMODINIT_FUNC PyInit__winrt_windows_devices_bluetooth_background(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_devices_bluetooth_background",
|
|
26
|
+
sources=["py.Windows.Devices.Bluetooth.Background.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.devices.bluetooth as windows_devices_bluetooth
|
|
13
|
+
import winrt.windows.devices.bluetooth.advertisement as windows_devices_bluetooth_advertisement
|
|
14
|
+
import winrt.windows.devices.bluetooth.genericattributeprofile as windows_devices_bluetooth_genericattributeprofile
|
|
15
|
+
import winrt.windows.devices.bluetooth.rfcomm as windows_devices_bluetooth_rfcomm
|
|
16
|
+
import winrt.windows.foundation as windows_foundation
|
|
17
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
18
|
+
import winrt.windows.networking.sockets as windows_networking_sockets
|
|
19
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
20
|
+
|
|
21
|
+
from winrt.windows.devices.bluetooth.background import BluetoothEventTriggeringMode
|
|
22
|
+
|
|
23
|
+
Self = typing.TypeVar('Self')
|
|
24
|
+
|
|
25
|
+
@typing.final
|
|
26
|
+
class BluetoothLEAdvertisementPublisherTriggerDetails(winrt.system.Object):
|
|
27
|
+
@staticmethod
|
|
28
|
+
def _from(obj: winrt.system.Object, /) -> BluetoothLEAdvertisementPublisherTriggerDetails: ...
|
|
29
|
+
@_property
|
|
30
|
+
def error(self) -> windows_devices_bluetooth.BluetoothError: ...
|
|
31
|
+
@_property
|
|
32
|
+
def status(self) -> windows_devices_bluetooth_advertisement.BluetoothLEAdvertisementPublisherStatus: ...
|
|
33
|
+
@_property
|
|
34
|
+
def selected_transmit_power_level_in_d_bm(self) -> typing.Optional[typing.Optional[winrt.system.Int16]]: ...
|
|
35
|
+
|
|
36
|
+
@typing.final
|
|
37
|
+
class BluetoothLEAdvertisementWatcherTriggerDetails(winrt.system.Object):
|
|
38
|
+
@staticmethod
|
|
39
|
+
def _from(obj: winrt.system.Object, /) -> BluetoothLEAdvertisementWatcherTriggerDetails: ...
|
|
40
|
+
@_property
|
|
41
|
+
def advertisements(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_devices_bluetooth_advertisement.BluetoothLEAdvertisementReceivedEventArgs]]: ...
|
|
42
|
+
@_property
|
|
43
|
+
def error(self) -> windows_devices_bluetooth.BluetoothError: ...
|
|
44
|
+
@_property
|
|
45
|
+
def signal_strength_filter(self) -> typing.Optional[windows_devices_bluetooth.BluetoothSignalStrengthFilter]: ...
|
|
46
|
+
|
|
47
|
+
@typing.final
|
|
48
|
+
class GattCharacteristicNotificationTriggerDetails(winrt.system.Object):
|
|
49
|
+
@staticmethod
|
|
50
|
+
def _from(obj: winrt.system.Object, /) -> GattCharacteristicNotificationTriggerDetails: ...
|
|
51
|
+
@_property
|
|
52
|
+
def characteristic(self) -> typing.Optional[windows_devices_bluetooth_genericattributeprofile.GattCharacteristic]: ...
|
|
53
|
+
@_property
|
|
54
|
+
def value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
|
|
55
|
+
@_property
|
|
56
|
+
def error(self) -> windows_devices_bluetooth.BluetoothError: ...
|
|
57
|
+
@_property
|
|
58
|
+
def event_triggering_mode(self) -> BluetoothEventTriggeringMode: ...
|
|
59
|
+
@_property
|
|
60
|
+
def value_changed_events(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_devices_bluetooth_genericattributeprofile.GattValueChangedEventArgs]]: ...
|
|
61
|
+
|
|
62
|
+
@typing.final
|
|
63
|
+
class GattServiceProviderConnection_Static(type):
|
|
64
|
+
@_property
|
|
65
|
+
def all_services(cls) -> typing.Optional[windows_foundation_collections.IMapView[str, GattServiceProviderConnection]]: ...
|
|
66
|
+
|
|
67
|
+
@typing.final
|
|
68
|
+
class GattServiceProviderConnection(winrt.system.Object, metaclass=GattServiceProviderConnection_Static):
|
|
69
|
+
@staticmethod
|
|
70
|
+
def _from(obj: winrt.system.Object, /) -> GattServiceProviderConnection: ...
|
|
71
|
+
def start(self) -> None: ...
|
|
72
|
+
@_property
|
|
73
|
+
def service(self) -> typing.Optional[windows_devices_bluetooth_genericattributeprofile.GattLocalService]: ...
|
|
74
|
+
@_property
|
|
75
|
+
def trigger_id(self) -> str: ...
|
|
76
|
+
|
|
77
|
+
@typing.final
|
|
78
|
+
class GattServiceProviderTriggerDetails(winrt.system.Object):
|
|
79
|
+
@staticmethod
|
|
80
|
+
def _from(obj: winrt.system.Object, /) -> GattServiceProviderTriggerDetails: ...
|
|
81
|
+
@_property
|
|
82
|
+
def connection(self) -> typing.Optional[GattServiceProviderConnection]: ...
|
|
83
|
+
|
|
84
|
+
@typing.final
|
|
85
|
+
class RfcommConnectionTriggerDetails(winrt.system.Object):
|
|
86
|
+
@staticmethod
|
|
87
|
+
def _from(obj: winrt.system.Object, /) -> RfcommConnectionTriggerDetails: ...
|
|
88
|
+
@_property
|
|
89
|
+
def incoming(self) -> bool: ...
|
|
90
|
+
@_property
|
|
91
|
+
def remote_device(self) -> typing.Optional[windows_devices_bluetooth.BluetoothDevice]: ...
|
|
92
|
+
@_property
|
|
93
|
+
def socket(self) -> typing.Optional[windows_networking_sockets.StreamSocket]: ...
|
|
94
|
+
|
|
95
|
+
@typing.final
|
|
96
|
+
class RfcommInboundConnectionInformation(winrt.system.Object):
|
|
97
|
+
@staticmethod
|
|
98
|
+
def _from(obj: winrt.system.Object, /) -> RfcommInboundConnectionInformation: ...
|
|
99
|
+
@_property
|
|
100
|
+
def service_capabilities(self) -> windows_devices_bluetooth.BluetoothServiceCapabilities: ...
|
|
101
|
+
@service_capabilities.setter
|
|
102
|
+
def service_capabilities(self, value: windows_devices_bluetooth.BluetoothServiceCapabilities) -> None: ...
|
|
103
|
+
@_property
|
|
104
|
+
def sdp_record(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
|
|
105
|
+
@sdp_record.setter
|
|
106
|
+
def sdp_record(self, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
|
|
107
|
+
@_property
|
|
108
|
+
def local_service_id(self) -> typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId]: ...
|
|
109
|
+
@local_service_id.setter
|
|
110
|
+
def local_service_id(self, value: typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId]) -> None: ...
|
|
111
|
+
|
|
112
|
+
@typing.final
|
|
113
|
+
class RfcommOutboundConnectionInformation(winrt.system.Object):
|
|
114
|
+
@staticmethod
|
|
115
|
+
def _from(obj: winrt.system.Object, /) -> RfcommOutboundConnectionInformation: ...
|
|
116
|
+
@_property
|
|
117
|
+
def remote_service_id(self) -> typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId]: ...
|
|
118
|
+
@remote_service_id.setter
|
|
119
|
+
def remote_service_id(self, value: typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId]) -> None: ...
|
|
120
|
+
|
winrt_windows_devices_bluetooth_background-2.1.0/winrt/windows/devices/bluetooth/background/py.typed
ADDED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Bluetooth.Background
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,16 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.1.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
25
|
|
|
17
26
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
27
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_devices_bluetooth_background.pyi
|
|
9
9
|
winrt/windows/devices/bluetooth/background/__init__.py
|
|
10
|
+
winrt/windows/devices/bluetooth/background/py.typed
|
|
10
11
|
winrt_Windows.Devices.Bluetooth.Background.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Devices.Bluetooth.Background.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Devices.Bluetooth.Background.egg-info/dependency_links.txt
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
winrt-runtime==2.1.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Devices.Bluetooth[all]==2.1.0
|
|
5
|
+
winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.1.0
|
|
6
|
+
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.1.0
|
|
7
|
+
winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.1.0
|
|
8
|
+
winrt-Windows.Foundation[all]==2.1.0
|
|
9
|
+
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
10
|
+
winrt-Windows.Networking.Sockets[all]==2.1.0
|
|
11
|
+
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Devices.Bluetooth[all]==2.0.0-beta.2
|
|
4
|
-
winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.0.0-beta.2
|
|
7
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.2
|
|
8
|
-
winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
|
|
9
|
-
winrt-Windows.Networking.Sockets[all]==2.0.0-beta.2
|
|
10
|
-
winrt-Windows.Storage.Streams[all]==2.0.0-beta.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_devices_bluetooth_background",
|
|
10
|
-
sources=["py.Windows.Devices.Bluetooth.Background.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.devices.bluetooth
|
|
13
|
-
import winrt.windows.devices.bluetooth.advertisement
|
|
14
|
-
import winrt.windows.devices.bluetooth.genericattributeprofile
|
|
15
|
-
import winrt.windows.devices.bluetooth.rfcomm
|
|
16
|
-
import winrt.windows.foundation
|
|
17
|
-
import winrt.windows.foundation.collections
|
|
18
|
-
import winrt.windows.networking.sockets
|
|
19
|
-
import winrt.windows.storage.streams
|
|
20
|
-
|
|
21
|
-
from winrt.windows.devices.bluetooth.background import BluetoothEventTriggeringMode
|
|
22
|
-
|
|
23
|
-
Self = typing.TypeVar('Self')
|
|
24
|
-
|
|
25
|
-
@typing.final
|
|
26
|
-
class BluetoothLEAdvertisementPublisherTriggerDetails(winrt.system.Object):
|
|
27
|
-
@staticmethod
|
|
28
|
-
def _from(obj: winrt.system.Object, /) -> BluetoothLEAdvertisementPublisherTriggerDetails: ...
|
|
29
|
-
@_property
|
|
30
|
-
def error(self) -> winrt.windows.devices.bluetooth.BluetoothError: ...
|
|
31
|
-
@_property
|
|
32
|
-
def status(self) -> winrt.windows.devices.bluetooth.advertisement.BluetoothLEAdvertisementPublisherStatus: ...
|
|
33
|
-
@_property
|
|
34
|
-
def selected_transmit_power_level_in_d_bm(self) -> typing.Optional[typing.Optional[winrt.system.Int16]]: ...
|
|
35
|
-
|
|
36
|
-
@typing.final
|
|
37
|
-
class BluetoothLEAdvertisementWatcherTriggerDetails(winrt.system.Object):
|
|
38
|
-
@staticmethod
|
|
39
|
-
def _from(obj: winrt.system.Object, /) -> BluetoothLEAdvertisementWatcherTriggerDetails: ...
|
|
40
|
-
@_property
|
|
41
|
-
def advertisements(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[winrt.windows.devices.bluetooth.advertisement.BluetoothLEAdvertisementReceivedEventArgs]]: ...
|
|
42
|
-
@_property
|
|
43
|
-
def error(self) -> winrt.windows.devices.bluetooth.BluetoothError: ...
|
|
44
|
-
@_property
|
|
45
|
-
def signal_strength_filter(self) -> typing.Optional[winrt.windows.devices.bluetooth.BluetoothSignalStrengthFilter]: ...
|
|
46
|
-
|
|
47
|
-
@typing.final
|
|
48
|
-
class GattCharacteristicNotificationTriggerDetails(winrt.system.Object):
|
|
49
|
-
@staticmethod
|
|
50
|
-
def _from(obj: winrt.system.Object, /) -> GattCharacteristicNotificationTriggerDetails: ...
|
|
51
|
-
@_property
|
|
52
|
-
def characteristic(self) -> typing.Optional[winrt.windows.devices.bluetooth.genericattributeprofile.GattCharacteristic]: ...
|
|
53
|
-
@_property
|
|
54
|
-
def value(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
|
|
55
|
-
@_property
|
|
56
|
-
def error(self) -> winrt.windows.devices.bluetooth.BluetoothError: ...
|
|
57
|
-
@_property
|
|
58
|
-
def event_triggering_mode(self) -> BluetoothEventTriggeringMode: ...
|
|
59
|
-
@_property
|
|
60
|
-
def value_changed_events(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[winrt.windows.devices.bluetooth.genericattributeprofile.GattValueChangedEventArgs]]: ...
|
|
61
|
-
|
|
62
|
-
@typing.final
|
|
63
|
-
class GattServiceProviderConnection_Static(type):
|
|
64
|
-
@_property
|
|
65
|
-
def all_services(cls) -> typing.Optional[winrt.windows.foundation.collections.IMapView[str, GattServiceProviderConnection]]: ...
|
|
66
|
-
|
|
67
|
-
@typing.final
|
|
68
|
-
class GattServiceProviderConnection(winrt.system.Object, metaclass=GattServiceProviderConnection_Static):
|
|
69
|
-
@staticmethod
|
|
70
|
-
def _from(obj: winrt.system.Object, /) -> GattServiceProviderConnection: ...
|
|
71
|
-
def start(self) -> None: ...
|
|
72
|
-
@_property
|
|
73
|
-
def service(self) -> typing.Optional[winrt.windows.devices.bluetooth.genericattributeprofile.GattLocalService]: ...
|
|
74
|
-
@_property
|
|
75
|
-
def trigger_id(self) -> str: ...
|
|
76
|
-
|
|
77
|
-
@typing.final
|
|
78
|
-
class GattServiceProviderTriggerDetails(winrt.system.Object):
|
|
79
|
-
@staticmethod
|
|
80
|
-
def _from(obj: winrt.system.Object, /) -> GattServiceProviderTriggerDetails: ...
|
|
81
|
-
@_property
|
|
82
|
-
def connection(self) -> typing.Optional[GattServiceProviderConnection]: ...
|
|
83
|
-
|
|
84
|
-
@typing.final
|
|
85
|
-
class RfcommConnectionTriggerDetails(winrt.system.Object):
|
|
86
|
-
@staticmethod
|
|
87
|
-
def _from(obj: winrt.system.Object, /) -> RfcommConnectionTriggerDetails: ...
|
|
88
|
-
@_property
|
|
89
|
-
def incoming(self) -> bool: ...
|
|
90
|
-
@_property
|
|
91
|
-
def remote_device(self) -> typing.Optional[winrt.windows.devices.bluetooth.BluetoothDevice]: ...
|
|
92
|
-
@_property
|
|
93
|
-
def socket(self) -> typing.Optional[winrt.windows.networking.sockets.StreamSocket]: ...
|
|
94
|
-
|
|
95
|
-
@typing.final
|
|
96
|
-
class RfcommInboundConnectionInformation(winrt.system.Object):
|
|
97
|
-
@staticmethod
|
|
98
|
-
def _from(obj: winrt.system.Object, /) -> RfcommInboundConnectionInformation: ...
|
|
99
|
-
@_property
|
|
100
|
-
def service_capabilities(self) -> winrt.windows.devices.bluetooth.BluetoothServiceCapabilities: ...
|
|
101
|
-
@service_capabilities.setter
|
|
102
|
-
def service_capabilities(self, value: winrt.windows.devices.bluetooth.BluetoothServiceCapabilities) -> None: ...
|
|
103
|
-
@_property
|
|
104
|
-
def sdp_record(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
|
|
105
|
-
@sdp_record.setter
|
|
106
|
-
def sdp_record(self, value: typing.Optional[winrt.windows.storage.streams.IBuffer]) -> None: ...
|
|
107
|
-
@_property
|
|
108
|
-
def local_service_id(self) -> typing.Optional[winrt.windows.devices.bluetooth.rfcomm.RfcommServiceId]: ...
|
|
109
|
-
@local_service_id.setter
|
|
110
|
-
def local_service_id(self, value: typing.Optional[winrt.windows.devices.bluetooth.rfcomm.RfcommServiceId]) -> None: ...
|
|
111
|
-
|
|
112
|
-
@typing.final
|
|
113
|
-
class RfcommOutboundConnectionInformation(winrt.system.Object):
|
|
114
|
-
@staticmethod
|
|
115
|
-
def _from(obj: winrt.system.Object, /) -> RfcommOutboundConnectionInformation: ...
|
|
116
|
-
@_property
|
|
117
|
-
def remote_service_id(self) -> typing.Optional[winrt.windows.devices.bluetooth.rfcomm.RfcommServiceId]: ...
|
|
118
|
-
@remote_service_id.setter
|
|
119
|
-
def remote_service_id(self, value: typing.Optional[winrt.windows.devices.bluetooth.rfcomm.RfcommServiceId]) -> None: ...
|
|
120
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Devices.Bluetooth[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.0.0-beta.2
|
|
7
|
-
winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.0.0-beta.2
|
|
8
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.2
|
|
9
|
-
winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
|
|
10
|
-
winrt-Windows.Networking.Sockets[all]==2.0.0-beta.2
|
|
11
|
-
winrt-Windows.Storage.Streams[all]==2.0.0-beta.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|