winrt-Windows.ApplicationModel.CommunicationBlocking 2.0.0b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/README.md +7 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/all-requirements.txt +4 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/py.Windows.ApplicationModel.CommunicationBlocking.cpp +455 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/setup.py +17 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/winrt/_winrt_windows_applicationmodel_communicationblocking.pyi +39 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/winrt/windows/applicationmodel/communicationblocking/__init__.py +12 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/SOURCES.txt +14 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/dependency_links.txt +1 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/requires.txt +5 -0
- winrt-Windows.ApplicationModel.CommunicationBlocking-2.0.0b1/winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.CommunicationBlocking
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.ApplicationModel.CommunicationBlocking
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.CommunicationBlocking` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.communicationblocking` module.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.ApplicationModel.CommunicationBlocking
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.CommunicationBlocking` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.applicationmodel.communicationblocking` module.
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.ApplicationModel.CommunicationBlocking.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
7
|
+
{
|
|
8
|
+
// ----- CommunicationBlockingAccessManager class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_CommunicationBlockingAccessManager(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
11
|
+
{
|
|
12
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager>::type_name);
|
|
13
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager>::type_name);
|
|
14
|
+
return nullptr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static PyObject* CommunicationBlockingAccessManager_IsBlockedNumberAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
18
|
+
{
|
|
19
|
+
auto arg_count = PyTuple_Size(args);
|
|
20
|
+
|
|
21
|
+
if (arg_count == 1)
|
|
22
|
+
{
|
|
23
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager", L"IsBlockedNumberAsync", 1))
|
|
24
|
+
{
|
|
25
|
+
py::set_arg_count_version_error(1);
|
|
26
|
+
return nullptr;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
try
|
|
30
|
+
{
|
|
31
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
32
|
+
|
|
33
|
+
return py::convert(winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::IsBlockedNumberAsync(param0));
|
|
34
|
+
}
|
|
35
|
+
catch (...)
|
|
36
|
+
{
|
|
37
|
+
py::to_PyErr();
|
|
38
|
+
return nullptr;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else
|
|
42
|
+
{
|
|
43
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
44
|
+
return nullptr;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static PyObject* CommunicationBlockingAccessManager_ShowBlockNumbersUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
49
|
+
{
|
|
50
|
+
auto arg_count = PyTuple_Size(args);
|
|
51
|
+
|
|
52
|
+
if (arg_count == 1)
|
|
53
|
+
{
|
|
54
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager", L"ShowBlockNumbersUI", 1))
|
|
55
|
+
{
|
|
56
|
+
py::set_arg_count_version_error(1);
|
|
57
|
+
return nullptr;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
try
|
|
61
|
+
{
|
|
62
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
63
|
+
|
|
64
|
+
return py::convert(winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::ShowBlockNumbersUI(param0));
|
|
65
|
+
}
|
|
66
|
+
catch (...)
|
|
67
|
+
{
|
|
68
|
+
py::to_PyErr();
|
|
69
|
+
return nullptr;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
else
|
|
73
|
+
{
|
|
74
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
75
|
+
return nullptr;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
static PyObject* CommunicationBlockingAccessManager_ShowBlockedCallsUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
80
|
+
{
|
|
81
|
+
auto arg_count = PyTuple_Size(args);
|
|
82
|
+
|
|
83
|
+
if (arg_count == 0)
|
|
84
|
+
{
|
|
85
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager", L"ShowBlockedCallsUI", 0))
|
|
86
|
+
{
|
|
87
|
+
py::set_arg_count_version_error(0);
|
|
88
|
+
return nullptr;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
try
|
|
92
|
+
{
|
|
93
|
+
winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::ShowBlockedCallsUI();
|
|
94
|
+
Py_RETURN_NONE;
|
|
95
|
+
}
|
|
96
|
+
catch (...)
|
|
97
|
+
{
|
|
98
|
+
py::to_PyErr();
|
|
99
|
+
return nullptr;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
else
|
|
103
|
+
{
|
|
104
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
105
|
+
return nullptr;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
static PyObject* CommunicationBlockingAccessManager_ShowBlockedMessagesUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
110
|
+
{
|
|
111
|
+
auto arg_count = PyTuple_Size(args);
|
|
112
|
+
|
|
113
|
+
if (arg_count == 0)
|
|
114
|
+
{
|
|
115
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager", L"ShowBlockedMessagesUI", 0))
|
|
116
|
+
{
|
|
117
|
+
py::set_arg_count_version_error(0);
|
|
118
|
+
return nullptr;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
try
|
|
122
|
+
{
|
|
123
|
+
winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::ShowBlockedMessagesUI();
|
|
124
|
+
Py_RETURN_NONE;
|
|
125
|
+
}
|
|
126
|
+
catch (...)
|
|
127
|
+
{
|
|
128
|
+
py::to_PyErr();
|
|
129
|
+
return nullptr;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else
|
|
133
|
+
{
|
|
134
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
135
|
+
return nullptr;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
static PyObject* CommunicationBlockingAccessManager_ShowUnblockNumbersUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
140
|
+
{
|
|
141
|
+
auto arg_count = PyTuple_Size(args);
|
|
142
|
+
|
|
143
|
+
if (arg_count == 1)
|
|
144
|
+
{
|
|
145
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager", L"ShowUnblockNumbersUI", 1))
|
|
146
|
+
{
|
|
147
|
+
py::set_arg_count_version_error(1);
|
|
148
|
+
return nullptr;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
try
|
|
152
|
+
{
|
|
153
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
154
|
+
|
|
155
|
+
return py::convert(winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::ShowUnblockNumbersUI(param0));
|
|
156
|
+
}
|
|
157
|
+
catch (...)
|
|
158
|
+
{
|
|
159
|
+
py::to_PyErr();
|
|
160
|
+
return nullptr;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else
|
|
164
|
+
{
|
|
165
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
166
|
+
return nullptr;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
static PyObject* CommunicationBlockingAccessManager_get_IsBlockingActive(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
171
|
+
{
|
|
172
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAccessManager", L"IsBlockingActive"))
|
|
173
|
+
{
|
|
174
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
175
|
+
return nullptr;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
try
|
|
179
|
+
{
|
|
180
|
+
return py::convert(winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAccessManager::IsBlockingActive());
|
|
181
|
+
}
|
|
182
|
+
catch (...)
|
|
183
|
+
{
|
|
184
|
+
py::to_PyErr();
|
|
185
|
+
return nullptr;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static PyMethodDef _methods_CommunicationBlockingAccessManager[] = {
|
|
190
|
+
{ }
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
static PyGetSetDef _getset_CommunicationBlockingAccessManager[] = {
|
|
194
|
+
{ }
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
static PyType_Slot _type_slots_CommunicationBlockingAccessManager[] =
|
|
198
|
+
{
|
|
199
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_CommunicationBlockingAccessManager) },
|
|
200
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CommunicationBlockingAccessManager) },
|
|
201
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CommunicationBlockingAccessManager) },
|
|
202
|
+
{ },
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
static PyType_Spec type_spec_CommunicationBlockingAccessManager =
|
|
206
|
+
{
|
|
207
|
+
"winrt._winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAccessManager",
|
|
208
|
+
0,
|
|
209
|
+
0,
|
|
210
|
+
Py_TPFLAGS_DEFAULT,
|
|
211
|
+
_type_slots_CommunicationBlockingAccessManager
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
static PyGetSetDef getset_CommunicationBlockingAccessManager_Static[] = {
|
|
215
|
+
{ "is_blocking_active", reinterpret_cast<getter>(CommunicationBlockingAccessManager_get_IsBlockingActive), nullptr, nullptr, nullptr },
|
|
216
|
+
{ }
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
static PyMethodDef methods_CommunicationBlockingAccessManager_Static[] = {
|
|
220
|
+
{ "is_blocked_number_async", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_IsBlockedNumberAsync), METH_VARARGS, nullptr },
|
|
221
|
+
{ "show_block_numbers_u_i", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_ShowBlockNumbersUI), METH_VARARGS, nullptr },
|
|
222
|
+
{ "show_blocked_calls_u_i", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_ShowBlockedCallsUI), METH_VARARGS, nullptr },
|
|
223
|
+
{ "show_blocked_messages_u_i", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_ShowBlockedMessagesUI), METH_VARARGS, nullptr },
|
|
224
|
+
{ "show_unblock_numbers_u_i", reinterpret_cast<PyCFunction>(CommunicationBlockingAccessManager_ShowUnblockNumbersUI), METH_VARARGS, nullptr },
|
|
225
|
+
{ }
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
static PyType_Slot type_slots_CommunicationBlockingAccessManager_Static[] =
|
|
229
|
+
{
|
|
230
|
+
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
231
|
+
{ Py_tp_getset, reinterpret_cast<void*>(getset_CommunicationBlockingAccessManager_Static) },
|
|
232
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_CommunicationBlockingAccessManager_Static) },
|
|
233
|
+
{ }
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
static PyType_Spec type_spec_CommunicationBlockingAccessManager_Static =
|
|
237
|
+
{
|
|
238
|
+
"winrt._winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAccessManager_Static",
|
|
239
|
+
static_cast<int>(PyType_Type.tp_basicsize),
|
|
240
|
+
static_cast<int>(PyType_Type.tp_itemsize),
|
|
241
|
+
Py_TPFLAGS_DEFAULT,
|
|
242
|
+
type_slots_CommunicationBlockingAccessManager_Static
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// ----- CommunicationBlockingAppManager class --------------------
|
|
246
|
+
|
|
247
|
+
static PyObject* _new_CommunicationBlockingAppManager(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
248
|
+
{
|
|
249
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAppManager>::type_name);
|
|
250
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAppManager>::type_name);
|
|
251
|
+
return nullptr;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
static PyObject* CommunicationBlockingAppManager_RequestSetAsActiveBlockingAppAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
255
|
+
{
|
|
256
|
+
auto arg_count = PyTuple_Size(args);
|
|
257
|
+
|
|
258
|
+
if (arg_count == 0)
|
|
259
|
+
{
|
|
260
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAppManager", L"RequestSetAsActiveBlockingAppAsync", 0))
|
|
261
|
+
{
|
|
262
|
+
py::set_arg_count_version_error(0);
|
|
263
|
+
return nullptr;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
try
|
|
267
|
+
{
|
|
268
|
+
return py::convert(winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAppManager::RequestSetAsActiveBlockingAppAsync());
|
|
269
|
+
}
|
|
270
|
+
catch (...)
|
|
271
|
+
{
|
|
272
|
+
py::to_PyErr();
|
|
273
|
+
return nullptr;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else
|
|
277
|
+
{
|
|
278
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
279
|
+
return nullptr;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
static PyObject* CommunicationBlockingAppManager_ShowCommunicationBlockingSettingsUI(PyObject* /*unused*/, PyObject* args) noexcept
|
|
284
|
+
{
|
|
285
|
+
auto arg_count = PyTuple_Size(args);
|
|
286
|
+
|
|
287
|
+
if (arg_count == 0)
|
|
288
|
+
{
|
|
289
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAppManager", L"ShowCommunicationBlockingSettingsUI", 0))
|
|
290
|
+
{
|
|
291
|
+
py::set_arg_count_version_error(0);
|
|
292
|
+
return nullptr;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
try
|
|
296
|
+
{
|
|
297
|
+
winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAppManager::ShowCommunicationBlockingSettingsUI();
|
|
298
|
+
Py_RETURN_NONE;
|
|
299
|
+
}
|
|
300
|
+
catch (...)
|
|
301
|
+
{
|
|
302
|
+
py::to_PyErr();
|
|
303
|
+
return nullptr;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
else
|
|
307
|
+
{
|
|
308
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
309
|
+
return nullptr;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
static PyObject* CommunicationBlockingAppManager_get_IsCurrentAppActiveBlockingApp(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
314
|
+
{
|
|
315
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingAppManager", L"IsCurrentAppActiveBlockingApp"))
|
|
316
|
+
{
|
|
317
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
318
|
+
return nullptr;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
try
|
|
322
|
+
{
|
|
323
|
+
return py::convert(winrt::Windows::ApplicationModel::CommunicationBlocking::CommunicationBlockingAppManager::IsCurrentAppActiveBlockingApp());
|
|
324
|
+
}
|
|
325
|
+
catch (...)
|
|
326
|
+
{
|
|
327
|
+
py::to_PyErr();
|
|
328
|
+
return nullptr;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
static PyMethodDef _methods_CommunicationBlockingAppManager[] = {
|
|
333
|
+
{ }
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
static PyGetSetDef _getset_CommunicationBlockingAppManager[] = {
|
|
337
|
+
{ }
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
static PyType_Slot _type_slots_CommunicationBlockingAppManager[] =
|
|
341
|
+
{
|
|
342
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_CommunicationBlockingAppManager) },
|
|
343
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CommunicationBlockingAppManager) },
|
|
344
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CommunicationBlockingAppManager) },
|
|
345
|
+
{ },
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
static PyType_Spec type_spec_CommunicationBlockingAppManager =
|
|
349
|
+
{
|
|
350
|
+
"winrt._winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAppManager",
|
|
351
|
+
0,
|
|
352
|
+
0,
|
|
353
|
+
Py_TPFLAGS_DEFAULT,
|
|
354
|
+
_type_slots_CommunicationBlockingAppManager
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
static PyGetSetDef getset_CommunicationBlockingAppManager_Static[] = {
|
|
358
|
+
{ "is_current_app_active_blocking_app", reinterpret_cast<getter>(CommunicationBlockingAppManager_get_IsCurrentAppActiveBlockingApp), nullptr, nullptr, nullptr },
|
|
359
|
+
{ }
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
static PyMethodDef methods_CommunicationBlockingAppManager_Static[] = {
|
|
363
|
+
{ "request_set_as_active_blocking_app_async", reinterpret_cast<PyCFunction>(CommunicationBlockingAppManager_RequestSetAsActiveBlockingAppAsync), METH_VARARGS, nullptr },
|
|
364
|
+
{ "show_communication_blocking_settings_u_i", reinterpret_cast<PyCFunction>(CommunicationBlockingAppManager_ShowCommunicationBlockingSettingsUI), METH_VARARGS, nullptr },
|
|
365
|
+
{ }
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
static PyType_Slot type_slots_CommunicationBlockingAppManager_Static[] =
|
|
369
|
+
{
|
|
370
|
+
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
371
|
+
{ Py_tp_getset, reinterpret_cast<void*>(getset_CommunicationBlockingAppManager_Static) },
|
|
372
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_CommunicationBlockingAppManager_Static) },
|
|
373
|
+
{ }
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
static PyType_Spec type_spec_CommunicationBlockingAppManager_Static =
|
|
377
|
+
{
|
|
378
|
+
"winrt._winrt_windows_applicationmodel_communicationblocking.CommunicationBlockingAppManager_Static",
|
|
379
|
+
static_cast<int>(PyType_Type.tp_basicsize),
|
|
380
|
+
static_cast<int>(PyType_Type.tp_itemsize),
|
|
381
|
+
Py_TPFLAGS_DEFAULT,
|
|
382
|
+
type_slots_CommunicationBlockingAppManager_Static
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
// ----- Windows.ApplicationModel.CommunicationBlocking Initialization --------------------
|
|
386
|
+
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::CommunicationBlocking");
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
static PyModuleDef module_def
|
|
390
|
+
= {PyModuleDef_HEAD_INIT,
|
|
391
|
+
"_winrt_windows_applicationmodel_communicationblocking",
|
|
392
|
+
module_doc,
|
|
393
|
+
0,
|
|
394
|
+
nullptr,
|
|
395
|
+
nullptr,
|
|
396
|
+
nullptr,
|
|
397
|
+
nullptr,
|
|
398
|
+
nullptr};
|
|
399
|
+
|
|
400
|
+
} // py::cpp::Windows::ApplicationModel::CommunicationBlocking
|
|
401
|
+
|
|
402
|
+
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_communicationblocking(void) noexcept
|
|
403
|
+
{
|
|
404
|
+
using namespace py::cpp::Windows::ApplicationModel::CommunicationBlocking;
|
|
405
|
+
|
|
406
|
+
if (py::import_winrt_runtime() == -1)
|
|
407
|
+
{
|
|
408
|
+
return nullptr;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
412
|
+
|
|
413
|
+
if (!module)
|
|
414
|
+
{
|
|
415
|
+
return nullptr;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
auto object_type = py::get_object_type();
|
|
419
|
+
if (!object_type)
|
|
420
|
+
{
|
|
421
|
+
return nullptr;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
425
|
+
|
|
426
|
+
if (!object_bases)
|
|
427
|
+
{
|
|
428
|
+
return nullptr;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
py::pyobj_handle type_CommunicationBlockingAccessManager_Static{PyType_FromSpec(&type_spec_CommunicationBlockingAccessManager_Static)};
|
|
432
|
+
if (!type_CommunicationBlockingAccessManager_Static)
|
|
433
|
+
{
|
|
434
|
+
return nullptr;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
if (py::register_python_type(module.get(), &type_spec_CommunicationBlockingAccessManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CommunicationBlockingAccessManager_Static.get())) == -1)
|
|
438
|
+
{
|
|
439
|
+
return nullptr;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
py::pyobj_handle type_CommunicationBlockingAppManager_Static{PyType_FromSpec(&type_spec_CommunicationBlockingAppManager_Static)};
|
|
443
|
+
if (!type_CommunicationBlockingAppManager_Static)
|
|
444
|
+
{
|
|
445
|
+
return nullptr;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
if (py::register_python_type(module.get(), &type_spec_CommunicationBlockingAppManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CommunicationBlockingAppManager_Static.get())) == -1)
|
|
449
|
+
{
|
|
450
|
+
return nullptr;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
return module.detach();
|
|
455
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.ApplicationModel.CommunicationBlocking"
|
|
9
|
+
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Operating System :: Microsoft :: Windows",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
]
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.13"
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
# Homepage = "https://github.com/pywrint/pywrinrt"
|
|
23
|
+
# Documentation = "https://readthedocs.org"
|
|
24
|
+
Repository = "https://github.com/pywrint/pywrinrt"
|
|
25
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = { file = "pywinrt-version.txt" }
|
|
29
|
+
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
+
|
|
32
|
+
[tool.cibuildwheel]
|
|
33
|
+
# use local winrt-sdk build dependency
|
|
34
|
+
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
35
|
+
# don't install winrt-sdk from PyPI
|
|
36
|
+
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
37
|
+
# don't build for PyPy
|
|
38
|
+
skip = "pp*"
|
|
39
|
+
# suppress warnings about ARM64 testing
|
|
40
|
+
test-skip = "*-win_arm64"
|
|
41
|
+
|
|
42
|
+
[tool.cibuildwheel.windows]
|
|
43
|
+
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from winrt_sdk import get_include_dirs
|
|
5
|
+
|
|
6
|
+
setup(
|
|
7
|
+
ext_modules=[
|
|
8
|
+
Extension(
|
|
9
|
+
"winrt._winrt_windows_applicationmodel_communicationblocking",
|
|
10
|
+
sources=["py.Windows.ApplicationModel.CommunicationBlocking.cpp"],
|
|
11
|
+
include_dirs=get_include_dirs(),
|
|
12
|
+
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
+
libraries=["windowsapp"],
|
|
14
|
+
)
|
|
15
|
+
],
|
|
16
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation
|
|
13
|
+
import winrt.windows.foundation.collections
|
|
14
|
+
|
|
15
|
+
Self = typing.TypeVar('Self')
|
|
16
|
+
|
|
17
|
+
class CommunicationBlockingAccessManager_Static(type):
|
|
18
|
+
def is_blocked_number_async(cls, number: str, /) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
|
|
19
|
+
def show_block_numbers_u_i(cls, phone_numbers: typing.Iterable[str], /) -> bool: ...
|
|
20
|
+
def show_blocked_calls_u_i(cls) -> None: ...
|
|
21
|
+
def show_blocked_messages_u_i(cls) -> None: ...
|
|
22
|
+
def show_unblock_numbers_u_i(cls, phone_numbers: typing.Iterable[str], /) -> bool: ...
|
|
23
|
+
@_property
|
|
24
|
+
def is_blocking_active(cls) -> bool: ...
|
|
25
|
+
|
|
26
|
+
class CommunicationBlockingAccessManager(winrt.system.Object, metaclass=CommunicationBlockingAccessManager_Static):
|
|
27
|
+
@staticmethod
|
|
28
|
+
def _from(obj: winrt.system.Object, /) -> CommunicationBlockingAccessManager: ...
|
|
29
|
+
|
|
30
|
+
class CommunicationBlockingAppManager_Static(type):
|
|
31
|
+
def request_set_as_active_blocking_app_async(cls) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
|
|
32
|
+
def show_communication_blocking_settings_u_i(cls) -> None: ...
|
|
33
|
+
@_property
|
|
34
|
+
def is_current_app_active_blocking_app(cls) -> bool: ...
|
|
35
|
+
|
|
36
|
+
class CommunicationBlockingAppManager(winrt.system.Object, metaclass=CommunicationBlockingAppManager_Static):
|
|
37
|
+
@staticmethod
|
|
38
|
+
def _from(obj: winrt.system.Object, /) -> CommunicationBlockingAppManager: ...
|
|
39
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
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
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.CommunicationBlocking
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.ApplicationModel.CommunicationBlocking
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.CommunicationBlocking` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.communicationblocking` module.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.ApplicationModel.CommunicationBlocking.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_applicationmodel_communicationblocking.pyi
|
|
9
|
+
winrt/windows/applicationmodel/communicationblocking/__init__.py
|
|
10
|
+
winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.ApplicationModel.CommunicationBlocking.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|