winrt-Windows.ApplicationModel.CommunicationBlocking 2.3.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/PKG-INFO +5 -5
- winrt_windows_applicationmodel_communicationblocking-3.0.0/all-requirements.txt +4 -0
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/py.Windows.ApplicationModel.CommunicationBlocking.cpp +92 -52
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_communicationblocking-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/setup.py +1 -1
- winrt_windows_applicationmodel_communicationblocking-3.0.0/winrt/_winrt_windows_applicationmodel_communicationblocking.pyi +50 -0
- winrt_windows_applicationmodel_communicationblocking-3.0.0/winrt/windows/applicationmodel/communicationblocking/__init__.py +13 -0
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/PKG-INFO +5 -5
- winrt_windows_applicationmodel_communicationblocking-3.0.0/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/requires.txt +5 -0
- winrt_windows_applicationmodel_communicationblocking-2.3.0/all-requirements.txt +0 -4
- winrt_windows_applicationmodel_communicationblocking-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_communicationblocking-2.3.0/winrt/_winrt_windows_applicationmodel_communicationblocking.pyi +0 -41
- winrt_windows_applicationmodel_communicationblocking-2.3.0/winrt/windows/applicationmodel/communicationblocking/__init__.py +0 -12
- winrt_windows_applicationmodel_communicationblocking-2.3.0/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/requires.txt +0 -5
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/README.md +0 -0
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/winrt/windows/applicationmodel/communicationblocking/py.typed +0 -0
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_communicationblocking-2.3.0 → winrt_windows_applicationmodel_communicationblocking-3.0.0}/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.CommunicationBlocking
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.CommunicationBlocking.h"
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
15
15
|
|
|
16
16
|
static PyObject* CommunicationBlockingAccessManager_IsBlockedNumberAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
17
17
|
{
|
|
18
|
-
auto arg_count =
|
|
18
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
19
19
|
|
|
20
20
|
if (arg_count == 1)
|
|
21
21
|
{
|
|
@@ -36,7 +36,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
36
36
|
|
|
37
37
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
38
38
|
|
|
39
|
-
return py::convert(
|
|
39
|
+
return py::convert([&]()
|
|
40
|
+
{
|
|
41
|
+
auto _gil = release_gil();
|
|
42
|
+
return winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::IsBlockedNumberAsync(param0);
|
|
43
|
+
}());
|
|
40
44
|
}
|
|
41
45
|
catch (...)
|
|
42
46
|
{
|
|
@@ -53,7 +57,7 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
53
57
|
|
|
54
58
|
static PyObject* CommunicationBlockingAccessManager_ShowBlockNumbersUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
55
59
|
{
|
|
56
|
-
auto arg_count =
|
|
60
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
57
61
|
|
|
58
62
|
if (arg_count == 1)
|
|
59
63
|
{
|
|
@@ -74,7 +78,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
74
78
|
|
|
75
79
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
76
80
|
|
|
77
|
-
return py::convert(
|
|
81
|
+
return py::convert([&]()
|
|
82
|
+
{
|
|
83
|
+
auto _gil = release_gil();
|
|
84
|
+
return winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::ShowBlockNumbersUI(param0);
|
|
85
|
+
}());
|
|
78
86
|
}
|
|
79
87
|
catch (...)
|
|
80
88
|
{
|
|
@@ -91,7 +99,7 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
91
99
|
|
|
92
100
|
static PyObject* CommunicationBlockingAccessManager_ShowBlockedCallsUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
93
101
|
{
|
|
94
|
-
auto arg_count =
|
|
102
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
95
103
|
|
|
96
104
|
if (arg_count == 0)
|
|
97
105
|
{
|
|
@@ -110,7 +118,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
110
118
|
return nullptr;
|
|
111
119
|
}
|
|
112
120
|
|
|
113
|
-
|
|
121
|
+
{
|
|
122
|
+
auto _gil = release_gil();
|
|
123
|
+
winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::ShowBlockedCallsUI();
|
|
124
|
+
}
|
|
125
|
+
|
|
114
126
|
Py_RETURN_NONE;
|
|
115
127
|
}
|
|
116
128
|
catch (...)
|
|
@@ -128,7 +140,7 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
128
140
|
|
|
129
141
|
static PyObject* CommunicationBlockingAccessManager_ShowBlockedMessagesUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
130
142
|
{
|
|
131
|
-
auto arg_count =
|
|
143
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
132
144
|
|
|
133
145
|
if (arg_count == 0)
|
|
134
146
|
{
|
|
@@ -147,7 +159,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
147
159
|
return nullptr;
|
|
148
160
|
}
|
|
149
161
|
|
|
150
|
-
|
|
162
|
+
{
|
|
163
|
+
auto _gil = release_gil();
|
|
164
|
+
winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::ShowBlockedMessagesUI();
|
|
165
|
+
}
|
|
166
|
+
|
|
151
167
|
Py_RETURN_NONE;
|
|
152
168
|
}
|
|
153
169
|
catch (...)
|
|
@@ -165,7 +181,7 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
165
181
|
|
|
166
182
|
static PyObject* CommunicationBlockingAccessManager_ShowUnblockNumbersUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
167
183
|
{
|
|
168
|
-
auto arg_count =
|
|
184
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
169
185
|
|
|
170
186
|
if (arg_count == 1)
|
|
171
187
|
{
|
|
@@ -186,7 +202,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
186
202
|
|
|
187
203
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
188
204
|
|
|
189
|
-
return py::convert(
|
|
205
|
+
return py::convert([&]()
|
|
206
|
+
{
|
|
207
|
+
auto _gil = release_gil();
|
|
208
|
+
return winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::ShowUnblockNumbersUI(param0);
|
|
209
|
+
}());
|
|
190
210
|
}
|
|
191
211
|
catch (...)
|
|
192
212
|
{
|
|
@@ -218,7 +238,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
218
238
|
return nullptr;
|
|
219
239
|
}
|
|
220
240
|
|
|
221
|
-
return py::convert(
|
|
241
|
+
return py::convert([&]()
|
|
242
|
+
{
|
|
243
|
+
auto _gil = release_gil();
|
|
244
|
+
return winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::IsBlockingActive();
|
|
245
|
+
}());
|
|
222
246
|
}
|
|
223
247
|
catch (...)
|
|
224
248
|
{
|
|
@@ -228,19 +252,16 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
228
252
|
}
|
|
229
253
|
|
|
230
254
|
static PyMethodDef _methods_CommunicationBlockingAccessManager[] = {
|
|
231
|
-
{ }
|
|
232
|
-
};
|
|
255
|
+
{ }};
|
|
233
256
|
|
|
234
257
|
static PyGetSetDef _getset_CommunicationBlockingAccessManager[] = {
|
|
235
|
-
{ }
|
|
236
|
-
};
|
|
258
|
+
{ }};
|
|
237
259
|
|
|
238
260
|
static PyType_Slot _type_slots_CommunicationBlockingAccessManager[] = {
|
|
239
261
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CommunicationBlockingAccessManager) },
|
|
240
262
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CommunicationBlockingAccessManager) },
|
|
241
263
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CommunicationBlockingAccessManager) },
|
|
242
|
-
{ }
|
|
243
|
-
};
|
|
264
|
+
{ }};
|
|
244
265
|
|
|
245
266
|
static PyType_Spec type_spec_CommunicationBlockingAccessManager = {
|
|
246
267
|
"winrt._winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAccessManager",
|
|
@@ -251,17 +272,15 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
251
272
|
|
|
252
273
|
static PyGetSetDef getset_CommunicationBlockingAccessManager_Static[] = {
|
|
253
274
|
{ "is_blocking_active", reinterpret_cast<getter>(CommunicationBlockingAccessManager_get_IsBlockingActive), nullptr, nullptr, nullptr },
|
|
254
|
-
{ }
|
|
255
|
-
};
|
|
275
|
+
{ }};
|
|
256
276
|
|
|
257
277
|
static PyMethodDef methods_CommunicationBlockingAccessManager_Static[] = {
|
|
258
278
|
{ "is_blocked_number_async", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_IsBlockedNumberAsync), METH_VARARGS, nullptr },
|
|
259
|
-
{ "
|
|
260
|
-
{ "
|
|
261
|
-
{ "
|
|
262
|
-
{ "
|
|
263
|
-
{ }
|
|
264
|
-
};
|
|
279
|
+
{ "show_block_numbers_ui", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_ShowBlockNumbersUI), METH_VARARGS, nullptr },
|
|
280
|
+
{ "show_blocked_calls_ui", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_ShowBlockedCallsUI), METH_VARARGS, nullptr },
|
|
281
|
+
{ "show_blocked_messages_ui", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_ShowBlockedMessagesUI), METH_VARARGS, nullptr },
|
|
282
|
+
{ "show_unblock_numbers_ui", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_ShowUnblockNumbersUI), METH_VARARGS, nullptr },
|
|
283
|
+
{ }};
|
|
265
284
|
|
|
266
285
|
static PyType_Slot type_slots_CommunicationBlockingAccessManager_Static[] =
|
|
267
286
|
{
|
|
@@ -271,14 +290,12 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
271
290
|
{ }
|
|
272
291
|
};
|
|
273
292
|
|
|
274
|
-
static PyType_Spec type_spec_CommunicationBlockingAccessManager_Static =
|
|
275
|
-
{
|
|
293
|
+
static PyType_Spec type_spec_CommunicationBlockingAccessManager_Static = {
|
|
276
294
|
"winrt._winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAccessManager_Static",
|
|
277
295
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
278
296
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
279
297
|
Py_TPFLAGS_DEFAULT,
|
|
280
|
-
type_slots_CommunicationBlockingAccessManager_Static
|
|
281
|
-
};
|
|
298
|
+
type_slots_CommunicationBlockingAccessManager_Static};
|
|
282
299
|
|
|
283
300
|
// ----- CommunicationBlockingAppManager class --------------------
|
|
284
301
|
|
|
@@ -291,7 +308,7 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
291
308
|
|
|
292
309
|
static PyObject* CommunicationBlockingAppManager_RequestSetAsActiveBlockingAppAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
293
310
|
{
|
|
294
|
-
auto arg_count =
|
|
311
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
295
312
|
|
|
296
313
|
if (arg_count == 0)
|
|
297
314
|
{
|
|
@@ -310,7 +327,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
310
327
|
return nullptr;
|
|
311
328
|
}
|
|
312
329
|
|
|
313
|
-
return py::convert(
|
|
330
|
+
return py::convert([&]()
|
|
331
|
+
{
|
|
332
|
+
auto _gil = release_gil();
|
|
333
|
+
return winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAppManager::RequestSetAsActiveBlockingAppAsync();
|
|
334
|
+
}());
|
|
314
335
|
}
|
|
315
336
|
catch (...)
|
|
316
337
|
{
|
|
@@ -327,7 +348,7 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
327
348
|
|
|
328
349
|
static PyObject* CommunicationBlockingAppManager_ShowCommunicationBlockingSettingsUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
329
350
|
{
|
|
330
|
-
auto arg_count =
|
|
351
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
331
352
|
|
|
332
353
|
if (arg_count == 0)
|
|
333
354
|
{
|
|
@@ -346,7 +367,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
346
367
|
return nullptr;
|
|
347
368
|
}
|
|
348
369
|
|
|
349
|
-
|
|
370
|
+
{
|
|
371
|
+
auto _gil = release_gil();
|
|
372
|
+
winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAppManager::ShowCommunicationBlockingSettingsUI();
|
|
373
|
+
}
|
|
374
|
+
|
|
350
375
|
Py_RETURN_NONE;
|
|
351
376
|
}
|
|
352
377
|
catch (...)
|
|
@@ -379,7 +404,11 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
379
404
|
return nullptr;
|
|
380
405
|
}
|
|
381
406
|
|
|
382
|
-
return py::convert(
|
|
407
|
+
return py::convert([&]()
|
|
408
|
+
{
|
|
409
|
+
auto _gil = release_gil();
|
|
410
|
+
return winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAppManager::IsCurrentAppActiveBlockingApp();
|
|
411
|
+
}());
|
|
383
412
|
}
|
|
384
413
|
catch (...)
|
|
385
414
|
{
|
|
@@ -389,19 +418,16 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
389
418
|
}
|
|
390
419
|
|
|
391
420
|
static PyMethodDef _methods_CommunicationBlockingAppManager[] = {
|
|
392
|
-
{ }
|
|
393
|
-
};
|
|
421
|
+
{ }};
|
|
394
422
|
|
|
395
423
|
static PyGetSetDef _getset_CommunicationBlockingAppManager[] = {
|
|
396
|
-
{ }
|
|
397
|
-
};
|
|
424
|
+
{ }};
|
|
398
425
|
|
|
399
426
|
static PyType_Slot _type_slots_CommunicationBlockingAppManager[] = {
|
|
400
427
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CommunicationBlockingAppManager) },
|
|
401
428
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CommunicationBlockingAppManager) },
|
|
402
429
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CommunicationBlockingAppManager) },
|
|
403
|
-
{ }
|
|
404
|
-
};
|
|
430
|
+
{ }};
|
|
405
431
|
|
|
406
432
|
static PyType_Spec type_spec_CommunicationBlockingAppManager = {
|
|
407
433
|
"winrt._winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAppManager",
|
|
@@ -412,14 +438,12 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
412
438
|
|
|
413
439
|
static PyGetSetDef getset_CommunicationBlockingAppManager_Static[] = {
|
|
414
440
|
{ "is_current_app_active_blocking_app", reinterpret_cast<getter>(CommunicationBlockingAppManager_get_IsCurrentAppActiveBlockingApp), nullptr, nullptr, nullptr },
|
|
415
|
-
{ }
|
|
416
|
-
};
|
|
441
|
+
{ }};
|
|
417
442
|
|
|
418
443
|
static PyMethodDef methods_CommunicationBlockingAppManager_Static[] = {
|
|
419
444
|
{ "request_set_as_active_blocking_app_async", reinterpret_cast<PyCFunction>(CommunicationBlockingAppManager_RequestSetAsActiveBlockingAppAsync), METH_VARARGS, nullptr },
|
|
420
|
-
{ "
|
|
421
|
-
{ }
|
|
422
|
-
};
|
|
445
|
+
{ "show_communication_blocking_settings_ui", reinterpret_cast<PyCFunction>(CommunicationBlockingAppManager_ShowCommunicationBlockingSettingsUI), METH_VARARGS, nullptr },
|
|
446
|
+
{ }};
|
|
423
447
|
|
|
424
448
|
static PyType_Slot type_slots_CommunicationBlockingAppManager_Static[] =
|
|
425
449
|
{
|
|
@@ -429,14 +453,12 @@ namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
|
429
453
|
{ }
|
|
430
454
|
};
|
|
431
455
|
|
|
432
|
-
static PyType_Spec type_spec_CommunicationBlockingAppManager_Static =
|
|
433
|
-
{
|
|
456
|
+
static PyType_Spec type_spec_CommunicationBlockingAppManager_Static = {
|
|
434
457
|
"winrt._winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAppManager_Static",
|
|
435
458
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
436
459
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
437
460
|
Py_TPFLAGS_DEFAULT,
|
|
438
|
-
type_slots_CommunicationBlockingAppManager_Static
|
|
439
|
-
};
|
|
461
|
+
type_slots_CommunicationBlockingAppManager_Static};
|
|
440
462
|
|
|
441
463
|
// ----- Windows.ApplicationModel.CommunicationBlocking Initialization --------------------
|
|
442
464
|
|
|
@@ -470,6 +492,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_communicationblocking(void
|
|
|
470
492
|
return nullptr;
|
|
471
493
|
}
|
|
472
494
|
|
|
495
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
496
|
+
if (!inspectable_meta_type)
|
|
497
|
+
{
|
|
498
|
+
return nullptr;
|
|
499
|
+
}
|
|
500
|
+
|
|
473
501
|
auto object_type = py::get_object_type();
|
|
474
502
|
if (!object_type)
|
|
475
503
|
{
|
|
@@ -483,7 +511,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_communicationblocking(void
|
|
|
483
511
|
return nullptr;
|
|
484
512
|
}
|
|
485
513
|
|
|
486
|
-
py::pyobj_handle
|
|
514
|
+
py::pyobj_handle CommunicationBlockingAccessManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
515
|
+
if (!CommunicationBlockingAccessManager_Static_bases)
|
|
516
|
+
{
|
|
517
|
+
return nullptr;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
py::pyobj_handle type_CommunicationBlockingAccessManager_Static{PyType_FromSpecWithBases(&type_spec_CommunicationBlockingAccessManager_Static, CommunicationBlockingAccessManager_Static_bases.get())};
|
|
487
521
|
if (!type_CommunicationBlockingAccessManager_Static)
|
|
488
522
|
{
|
|
489
523
|
return nullptr;
|
|
@@ -495,7 +529,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_communicationblocking(void
|
|
|
495
529
|
return nullptr;
|
|
496
530
|
}
|
|
497
531
|
|
|
498
|
-
py::pyobj_handle
|
|
532
|
+
py::pyobj_handle CommunicationBlockingAppManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
533
|
+
if (!CommunicationBlockingAppManager_Static_bases)
|
|
534
|
+
{
|
|
535
|
+
return nullptr;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
py::pyobj_handle type_CommunicationBlockingAppManager_Static{PyType_FromSpecWithBases(&type_spec_CommunicationBlockingAppManager_Static, CommunicationBlockingAppManager_Static_bases.get())};
|
|
499
539
|
if (!type_CommunicationBlockingAppManager_Static)
|
|
500
540
|
{
|
|
501
541
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.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.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
|
|
15
|
+
Self = typing.TypeVar('Self')
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class CommunicationBlockingAccessManager_Static(winrt._winrt.IInspectable_Static):
|
|
19
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager::IsBlockedNumberAsync(System.String)
|
|
20
|
+
def is_blocked_number_async(cls, number: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
21
|
+
# System.Boolean Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager::ShowBlockNumbersUI(Windows.Foundation.Collections.IIterable`1<System.String>)
|
|
22
|
+
def show_block_numbers_ui(cls, phone_numbers: typing.Iterable[str], /) -> bool: ...
|
|
23
|
+
# System.Void Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager::ShowBlockedCallsUI()
|
|
24
|
+
def show_blocked_calls_ui(cls) -> None: ...
|
|
25
|
+
# System.Void Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager::ShowBlockedMessagesUI()
|
|
26
|
+
def show_blocked_messages_ui(cls) -> None: ...
|
|
27
|
+
# System.Boolean Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager::ShowUnblockNumbersUI(Windows.Foundation.Collections.IIterable`1<System.String>)
|
|
28
|
+
def show_unblock_numbers_ui(cls, phone_numbers: typing.Iterable[str], /) -> bool: ...
|
|
29
|
+
# System.Boolean Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager::get_IsBlockingActive()
|
|
30
|
+
@_property
|
|
31
|
+
def is_blocking_active(cls) -> bool: ...
|
|
32
|
+
|
|
33
|
+
@typing.final
|
|
34
|
+
class CommunicationBlockingAccessManager(winrt.system.Object, metaclass=CommunicationBlockingAccessManager_Static):
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
@typing.final
|
|
38
|
+
class CommunicationBlockingAppManager_Static(winrt._winrt.IInspectable_Static):
|
|
39
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAppManager::RequestSetAsActiveBlockingAppAsync()
|
|
40
|
+
def request_set_as_active_blocking_app_async(cls) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
41
|
+
# System.Void Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAppManager::ShowCommunicationBlockingSettingsUI()
|
|
42
|
+
def show_communication_blocking_settings_ui(cls) -> None: ...
|
|
43
|
+
# System.Boolean Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAppManager::get_IsCurrentAppActiveBlockingApp()
|
|
44
|
+
@_property
|
|
45
|
+
def is_current_app_active_blocking_app(cls) -> bool: ...
|
|
46
|
+
|
|
47
|
+
@typing.final
|
|
48
|
+
class CommunicationBlockingAppManager(winrt.system.Object, metaclass=CommunicationBlockingAppManager_Static):
|
|
49
|
+
pass
|
|
50
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
import winrt.system
|
|
4
|
+
from winrt._winrt_windows_applicationmodel_communicationblocking import (
|
|
5
|
+
CommunicationBlockingAccessManager,
|
|
6
|
+
CommunicationBlockingAppManager,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
__all__ = [
|
|
10
|
+
"CommunicationBlockingAccessManager",
|
|
11
|
+
"CommunicationBlockingAppManager",
|
|
12
|
+
]
|
|
13
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.CommunicationBlocking
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.3.0
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.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.foundation as windows_foundation
|
|
13
|
-
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
-
|
|
15
|
-
Self = typing.TypeVar('Self')
|
|
16
|
-
|
|
17
|
-
@typing.final
|
|
18
|
-
class CommunicationBlockingAccessManager_Static(type):
|
|
19
|
-
def is_blocked_number_async(cls, number: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
20
|
-
def show_block_numbers_u_i(cls, phone_numbers: typing.Iterable[str], /) -> bool: ...
|
|
21
|
-
def show_blocked_calls_u_i(cls) -> None: ...
|
|
22
|
-
def show_blocked_messages_u_i(cls) -> None: ...
|
|
23
|
-
def show_unblock_numbers_u_i(cls, phone_numbers: typing.Iterable[str], /) -> bool: ...
|
|
24
|
-
@_property
|
|
25
|
-
def is_blocking_active(cls) -> bool: ...
|
|
26
|
-
|
|
27
|
-
@typing.final
|
|
28
|
-
class CommunicationBlockingAccessManager(winrt.system.Object, metaclass=CommunicationBlockingAccessManager_Static):
|
|
29
|
-
pass
|
|
30
|
-
|
|
31
|
-
@typing.final
|
|
32
|
-
class CommunicationBlockingAppManager_Static(type):
|
|
33
|
-
def request_set_as_active_blocking_app_async(cls) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
34
|
-
def show_communication_blocking_settings_u_i(cls) -> None: ...
|
|
35
|
-
@_property
|
|
36
|
-
def is_current_app_active_blocking_app(cls) -> bool: ...
|
|
37
|
-
|
|
38
|
-
@typing.final
|
|
39
|
-
class CommunicationBlockingAppManager(winrt.system.Object, metaclass=CommunicationBlockingAppManager_Static):
|
|
40
|
-
pass
|
|
41
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import winrt.system
|
|
4
|
-
from winrt import _winrt_windows_applicationmodel_communicationblocking
|
|
5
|
-
|
|
6
|
-
__all__ = [
|
|
7
|
-
"CommunicationBlockingAccessManager",
|
|
8
|
-
"CommunicationBlockingAppManager",
|
|
9
|
-
]
|
|
10
|
-
|
|
11
|
-
CommunicationBlockingAccessManager = _winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAccessManager
|
|
12
|
-
CommunicationBlockingAppManager = _winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAppManager
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|