winrt-Windows.ApplicationModel.LockScreen 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.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/PKG-INFO +5 -1
- winrt_windows_applicationmodel_lockscreen-2.1.0/all-requirements.txt +5 -0
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/py.Windows.ApplicationModel.LockScreen.cpp +176 -193
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_lockscreen-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/requirements.txt +2 -2
- winrt_windows_applicationmodel_lockscreen-2.1.0/setup.py +31 -0
- winrt_windows_applicationmodel_lockscreen-2.1.0/winrt/_winrt_windows_applicationmodel_lockscreen.pyi +78 -0
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/winrt/windows/applicationmodel/lockscreen/__init__.py +1 -1
- winrt_windows_applicationmodel_lockscreen-2.1.0/winrt/windows/applicationmodel/lockscreen/py.typed +0 -0
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/PKG-INFO +5 -1
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/SOURCES.txt +1 -0
- winrt_windows_applicationmodel_lockscreen-2.1.0/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +6 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b2/all-requirements.txt +0 -5
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b2/setup.py +0 -16
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b2/winrt/_winrt_windows_applicationmodel_lockscreen.pyi +0 -78
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b2/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +0 -6
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/README.md +0 -0
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.ApplicationModel.LockScreen-2.0.0b2 → winrt_windows_applicationmodel_lockscreen-2.1.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.LockScreen
|
|
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,11 @@ 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.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -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.ApplicationModel.LockScreen.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
7
6
|
{
|
|
8
7
|
// ----- LockApplicationHost class --------------------
|
|
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"GetForCurrentView", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"GetForCurrentView", 0))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(0);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
return py::convert(winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost::GetForCurrentView());
|
|
40
39
|
}
|
|
41
40
|
catch (...)
|
|
@@ -57,14 +56,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
57
56
|
|
|
58
57
|
if (arg_count == 0)
|
|
59
58
|
{
|
|
60
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"RequestUnlock", 0))
|
|
61
|
-
{
|
|
62
|
-
py::set_arg_count_version_error(0);
|
|
63
|
-
return nullptr;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
59
|
try
|
|
67
60
|
{
|
|
61
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"RequestUnlock", 0))
|
|
62
|
+
{
|
|
63
|
+
py::set_arg_count_version_error(0);
|
|
64
|
+
return nullptr;
|
|
65
|
+
}
|
|
66
|
+
|
|
68
67
|
self->obj.RequestUnlock();
|
|
69
68
|
Py_RETURN_NONE;
|
|
70
69
|
}
|
|
@@ -83,14 +82,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
83
82
|
|
|
84
83
|
static PyObject* LockApplicationHost_add_Unlocking(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self, PyObject* arg) noexcept
|
|
85
84
|
{
|
|
86
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking"))
|
|
87
|
-
{
|
|
88
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
89
|
-
return nullptr;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
85
|
try
|
|
93
86
|
{
|
|
87
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking"))
|
|
88
|
+
{
|
|
89
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
90
|
+
return nullptr;
|
|
91
|
+
}
|
|
92
|
+
|
|
94
93
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost, winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs>>(arg);
|
|
95
94
|
|
|
96
95
|
return py::convert(self->obj.Unlocking(param0));
|
|
@@ -104,14 +103,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
104
103
|
|
|
105
104
|
static PyObject* LockApplicationHost_remove_Unlocking(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self, PyObject* arg) noexcept
|
|
106
105
|
{
|
|
107
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking"))
|
|
108
|
-
{
|
|
109
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
110
|
-
return nullptr;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
106
|
try
|
|
114
107
|
{
|
|
108
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking"))
|
|
109
|
+
{
|
|
110
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
111
|
+
return nullptr;
|
|
112
|
+
}
|
|
113
|
+
|
|
115
114
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
116
115
|
|
|
117
116
|
self->obj.Unlocking(param0);
|
|
@@ -161,23 +160,20 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
161
160
|
{ }
|
|
162
161
|
};
|
|
163
162
|
|
|
164
|
-
static PyType_Slot _type_slots_LockApplicationHost[] =
|
|
165
|
-
{
|
|
163
|
+
static PyType_Slot _type_slots_LockApplicationHost[] = {
|
|
166
164
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockApplicationHost) },
|
|
167
165
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockApplicationHost) },
|
|
168
166
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockApplicationHost) },
|
|
169
167
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockApplicationHost) },
|
|
170
|
-
{ }
|
|
168
|
+
{ }
|
|
171
169
|
};
|
|
172
170
|
|
|
173
|
-
static PyType_Spec type_spec_LockApplicationHost =
|
|
174
|
-
{
|
|
171
|
+
static PyType_Spec type_spec_LockApplicationHost = {
|
|
175
172
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockApplicationHost",
|
|
176
173
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost),
|
|
177
174
|
0,
|
|
178
175
|
Py_TPFLAGS_DEFAULT,
|
|
179
|
-
_type_slots_LockApplicationHost
|
|
180
|
-
};
|
|
176
|
+
_type_slots_LockApplicationHost};
|
|
181
177
|
|
|
182
178
|
static PyGetSetDef getset_LockApplicationHost_Static[] = {
|
|
183
179
|
{ }
|
|
@@ -228,14 +224,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
228
224
|
|
|
229
225
|
if (arg_count == 0)
|
|
230
226
|
{
|
|
231
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"LaunchApp", 0))
|
|
232
|
-
{
|
|
233
|
-
py::set_arg_count_version_error(0);
|
|
234
|
-
return nullptr;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
227
|
try
|
|
238
228
|
{
|
|
229
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"LaunchApp", 0))
|
|
230
|
+
{
|
|
231
|
+
py::set_arg_count_version_error(0);
|
|
232
|
+
return nullptr;
|
|
233
|
+
}
|
|
234
|
+
|
|
239
235
|
self->obj.LaunchApp();
|
|
240
236
|
Py_RETURN_NONE;
|
|
241
237
|
}
|
|
@@ -254,14 +250,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
254
250
|
|
|
255
251
|
static PyObject* LockScreenBadge_get_AutomationName(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
256
252
|
{
|
|
257
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"AutomationName"))
|
|
258
|
-
{
|
|
259
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
260
|
-
return nullptr;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
253
|
try
|
|
264
254
|
{
|
|
255
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"AutomationName"))
|
|
256
|
+
{
|
|
257
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
258
|
+
return nullptr;
|
|
259
|
+
}
|
|
260
|
+
|
|
265
261
|
return py::convert(self->obj.AutomationName());
|
|
266
262
|
}
|
|
267
263
|
catch (...)
|
|
@@ -273,14 +269,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
273
269
|
|
|
274
270
|
static PyObject* LockScreenBadge_get_Glyph(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
275
271
|
{
|
|
276
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Glyph"))
|
|
277
|
-
{
|
|
278
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
279
|
-
return nullptr;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
272
|
try
|
|
283
273
|
{
|
|
274
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Glyph"))
|
|
275
|
+
{
|
|
276
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
277
|
+
return nullptr;
|
|
278
|
+
}
|
|
279
|
+
|
|
284
280
|
return py::convert(self->obj.Glyph());
|
|
285
281
|
}
|
|
286
282
|
catch (...)
|
|
@@ -292,14 +288,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
292
288
|
|
|
293
289
|
static PyObject* LockScreenBadge_get_Logo(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
294
290
|
{
|
|
295
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Logo"))
|
|
296
|
-
{
|
|
297
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
298
|
-
return nullptr;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
291
|
try
|
|
302
292
|
{
|
|
293
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Logo"))
|
|
294
|
+
{
|
|
295
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
296
|
+
return nullptr;
|
|
297
|
+
}
|
|
298
|
+
|
|
303
299
|
return py::convert(self->obj.Logo());
|
|
304
300
|
}
|
|
305
301
|
catch (...)
|
|
@@ -311,14 +307,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
311
307
|
|
|
312
308
|
static PyObject* LockScreenBadge_get_Number(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
313
309
|
{
|
|
314
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Number"))
|
|
315
|
-
{
|
|
316
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
317
|
-
return nullptr;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
310
|
try
|
|
321
311
|
{
|
|
312
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Number"))
|
|
313
|
+
{
|
|
314
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
315
|
+
return nullptr;
|
|
316
|
+
}
|
|
317
|
+
|
|
322
318
|
return py::convert(self->obj.Number());
|
|
323
319
|
}
|
|
324
320
|
catch (...)
|
|
@@ -367,23 +363,20 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
367
363
|
{ }
|
|
368
364
|
};
|
|
369
365
|
|
|
370
|
-
static PyType_Slot _type_slots_LockScreenBadge[] =
|
|
371
|
-
{
|
|
366
|
+
static PyType_Slot _type_slots_LockScreenBadge[] = {
|
|
372
367
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenBadge) },
|
|
373
368
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenBadge) },
|
|
374
369
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenBadge) },
|
|
375
370
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenBadge) },
|
|
376
|
-
{ }
|
|
371
|
+
{ }
|
|
377
372
|
};
|
|
378
373
|
|
|
379
|
-
static PyType_Spec type_spec_LockScreenBadge =
|
|
380
|
-
{
|
|
374
|
+
static PyType_Spec type_spec_LockScreenBadge = {
|
|
381
375
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenBadge",
|
|
382
376
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge),
|
|
383
377
|
0,
|
|
384
378
|
Py_TPFLAGS_DEFAULT,
|
|
385
|
-
_type_slots_LockScreenBadge
|
|
386
|
-
};
|
|
379
|
+
_type_slots_LockScreenBadge};
|
|
387
380
|
|
|
388
381
|
// ----- LockScreenInfo class --------------------
|
|
389
382
|
|
|
@@ -404,14 +397,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
404
397
|
|
|
405
398
|
static PyObject* LockScreenInfo_get_AlarmIcon(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
406
399
|
{
|
|
407
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIcon"))
|
|
408
|
-
{
|
|
409
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
410
|
-
return nullptr;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
400
|
try
|
|
414
401
|
{
|
|
402
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIcon"))
|
|
403
|
+
{
|
|
404
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
405
|
+
return nullptr;
|
|
406
|
+
}
|
|
407
|
+
|
|
415
408
|
return py::convert(self->obj.AlarmIcon());
|
|
416
409
|
}
|
|
417
410
|
catch (...)
|
|
@@ -423,14 +416,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
423
416
|
|
|
424
417
|
static PyObject* LockScreenInfo_get_Badges(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
425
418
|
{
|
|
426
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"Badges"))
|
|
427
|
-
{
|
|
428
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
429
|
-
return nullptr;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
419
|
try
|
|
433
420
|
{
|
|
421
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"Badges"))
|
|
422
|
+
{
|
|
423
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
424
|
+
return nullptr;
|
|
425
|
+
}
|
|
426
|
+
|
|
434
427
|
return py::convert(self->obj.Badges());
|
|
435
428
|
}
|
|
436
429
|
catch (...)
|
|
@@ -442,14 +435,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
442
435
|
|
|
443
436
|
static PyObject* LockScreenInfo_get_DetailText(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
444
437
|
{
|
|
445
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailText"))
|
|
446
|
-
{
|
|
447
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
448
|
-
return nullptr;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
438
|
try
|
|
452
439
|
{
|
|
440
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailText"))
|
|
441
|
+
{
|
|
442
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
443
|
+
return nullptr;
|
|
444
|
+
}
|
|
445
|
+
|
|
453
446
|
return py::convert(self->obj.DetailText());
|
|
454
447
|
}
|
|
455
448
|
catch (...)
|
|
@@ -461,14 +454,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
461
454
|
|
|
462
455
|
static PyObject* LockScreenInfo_get_LockScreenImage(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
463
456
|
{
|
|
464
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImage"))
|
|
465
|
-
{
|
|
466
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
467
|
-
return nullptr;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
457
|
try
|
|
471
458
|
{
|
|
459
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImage"))
|
|
460
|
+
{
|
|
461
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
462
|
+
return nullptr;
|
|
463
|
+
}
|
|
464
|
+
|
|
472
465
|
return py::convert(self->obj.LockScreenImage());
|
|
473
466
|
}
|
|
474
467
|
catch (...)
|
|
@@ -480,14 +473,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
480
473
|
|
|
481
474
|
static PyObject* LockScreenInfo_add_AlarmIconChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
482
475
|
{
|
|
483
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged"))
|
|
484
|
-
{
|
|
485
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
486
|
-
return nullptr;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
476
|
try
|
|
490
477
|
{
|
|
478
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged"))
|
|
479
|
+
{
|
|
480
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
481
|
+
return nullptr;
|
|
482
|
+
}
|
|
483
|
+
|
|
491
484
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
492
485
|
|
|
493
486
|
return py::convert(self->obj.AlarmIconChanged(param0));
|
|
@@ -501,14 +494,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
501
494
|
|
|
502
495
|
static PyObject* LockScreenInfo_remove_AlarmIconChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
503
496
|
{
|
|
504
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged"))
|
|
505
|
-
{
|
|
506
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
507
|
-
return nullptr;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
497
|
try
|
|
511
498
|
{
|
|
499
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged"))
|
|
500
|
+
{
|
|
501
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
502
|
+
return nullptr;
|
|
503
|
+
}
|
|
504
|
+
|
|
512
505
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
513
506
|
|
|
514
507
|
self->obj.AlarmIconChanged(param0);
|
|
@@ -523,14 +516,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
523
516
|
|
|
524
517
|
static PyObject* LockScreenInfo_add_BadgesChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
525
518
|
{
|
|
526
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged"))
|
|
527
|
-
{
|
|
528
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
529
|
-
return nullptr;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
519
|
try
|
|
533
520
|
{
|
|
521
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged"))
|
|
522
|
+
{
|
|
523
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
524
|
+
return nullptr;
|
|
525
|
+
}
|
|
526
|
+
|
|
534
527
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
535
528
|
|
|
536
529
|
return py::convert(self->obj.BadgesChanged(param0));
|
|
@@ -544,14 +537,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
544
537
|
|
|
545
538
|
static PyObject* LockScreenInfo_remove_BadgesChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
546
539
|
{
|
|
547
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged"))
|
|
548
|
-
{
|
|
549
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
550
|
-
return nullptr;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
540
|
try
|
|
554
541
|
{
|
|
542
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged"))
|
|
543
|
+
{
|
|
544
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
545
|
+
return nullptr;
|
|
546
|
+
}
|
|
547
|
+
|
|
555
548
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
556
549
|
|
|
557
550
|
self->obj.BadgesChanged(param0);
|
|
@@ -566,14 +559,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
566
559
|
|
|
567
560
|
static PyObject* LockScreenInfo_add_DetailTextChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
568
561
|
{
|
|
569
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged"))
|
|
570
|
-
{
|
|
571
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
572
|
-
return nullptr;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
562
|
try
|
|
576
563
|
{
|
|
564
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged"))
|
|
565
|
+
{
|
|
566
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
567
|
+
return nullptr;
|
|
568
|
+
}
|
|
569
|
+
|
|
577
570
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
578
571
|
|
|
579
572
|
return py::convert(self->obj.DetailTextChanged(param0));
|
|
@@ -587,14 +580,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
587
580
|
|
|
588
581
|
static PyObject* LockScreenInfo_remove_DetailTextChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
589
582
|
{
|
|
590
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged"))
|
|
591
|
-
{
|
|
592
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
593
|
-
return nullptr;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
583
|
try
|
|
597
584
|
{
|
|
585
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged"))
|
|
586
|
+
{
|
|
587
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
588
|
+
return nullptr;
|
|
589
|
+
}
|
|
590
|
+
|
|
598
591
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
599
592
|
|
|
600
593
|
self->obj.DetailTextChanged(param0);
|
|
@@ -609,14 +602,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
609
602
|
|
|
610
603
|
static PyObject* LockScreenInfo_add_LockScreenImageChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
611
604
|
{
|
|
612
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged"))
|
|
613
|
-
{
|
|
614
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
615
|
-
return nullptr;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
605
|
try
|
|
619
606
|
{
|
|
607
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged"))
|
|
608
|
+
{
|
|
609
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
610
|
+
return nullptr;
|
|
611
|
+
}
|
|
612
|
+
|
|
620
613
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
621
614
|
|
|
622
615
|
return py::convert(self->obj.LockScreenImageChanged(param0));
|
|
@@ -630,14 +623,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
630
623
|
|
|
631
624
|
static PyObject* LockScreenInfo_remove_LockScreenImageChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
632
625
|
{
|
|
633
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged"))
|
|
634
|
-
{
|
|
635
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
636
|
-
return nullptr;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
626
|
try
|
|
640
627
|
{
|
|
628
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged"))
|
|
629
|
+
{
|
|
630
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
631
|
+
return nullptr;
|
|
632
|
+
}
|
|
633
|
+
|
|
641
634
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
642
635
|
|
|
643
636
|
self->obj.LockScreenImageChanged(param0);
|
|
@@ -696,23 +689,20 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
696
689
|
{ }
|
|
697
690
|
};
|
|
698
691
|
|
|
699
|
-
static PyType_Slot _type_slots_LockScreenInfo[] =
|
|
700
|
-
{
|
|
692
|
+
static PyType_Slot _type_slots_LockScreenInfo[] = {
|
|
701
693
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenInfo) },
|
|
702
694
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenInfo) },
|
|
703
695
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenInfo) },
|
|
704
696
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenInfo) },
|
|
705
|
-
{ }
|
|
697
|
+
{ }
|
|
706
698
|
};
|
|
707
699
|
|
|
708
|
-
static PyType_Spec type_spec_LockScreenInfo =
|
|
709
|
-
{
|
|
700
|
+
static PyType_Spec type_spec_LockScreenInfo = {
|
|
710
701
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenInfo",
|
|
711
702
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo),
|
|
712
703
|
0,
|
|
713
704
|
Py_TPFLAGS_DEFAULT,
|
|
714
|
-
_type_slots_LockScreenInfo
|
|
715
|
-
};
|
|
705
|
+
_type_slots_LockScreenInfo};
|
|
716
706
|
|
|
717
707
|
// ----- LockScreenUnlockingDeferral class --------------------
|
|
718
708
|
|
|
@@ -737,14 +727,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
737
727
|
|
|
738
728
|
if (arg_count == 0)
|
|
739
729
|
{
|
|
740
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral", L"Complete", 0))
|
|
741
|
-
{
|
|
742
|
-
py::set_arg_count_version_error(0);
|
|
743
|
-
return nullptr;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
730
|
try
|
|
747
731
|
{
|
|
732
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral", L"Complete", 0))
|
|
733
|
+
{
|
|
734
|
+
py::set_arg_count_version_error(0);
|
|
735
|
+
return nullptr;
|
|
736
|
+
}
|
|
737
|
+
|
|
748
738
|
self->obj.Complete();
|
|
749
739
|
Py_RETURN_NONE;
|
|
750
740
|
}
|
|
@@ -796,23 +786,20 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
796
786
|
{ }
|
|
797
787
|
};
|
|
798
788
|
|
|
799
|
-
static PyType_Slot _type_slots_LockScreenUnlockingDeferral[] =
|
|
800
|
-
{
|
|
789
|
+
static PyType_Slot _type_slots_LockScreenUnlockingDeferral[] = {
|
|
801
790
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenUnlockingDeferral) },
|
|
802
791
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenUnlockingDeferral) },
|
|
803
792
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenUnlockingDeferral) },
|
|
804
793
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenUnlockingDeferral) },
|
|
805
|
-
{ }
|
|
794
|
+
{ }
|
|
806
795
|
};
|
|
807
796
|
|
|
808
|
-
static PyType_Spec type_spec_LockScreenUnlockingDeferral =
|
|
809
|
-
{
|
|
797
|
+
static PyType_Spec type_spec_LockScreenUnlockingDeferral = {
|
|
810
798
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingDeferral",
|
|
811
799
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral),
|
|
812
800
|
0,
|
|
813
801
|
Py_TPFLAGS_DEFAULT,
|
|
814
|
-
_type_slots_LockScreenUnlockingDeferral
|
|
815
|
-
};
|
|
802
|
+
_type_slots_LockScreenUnlockingDeferral};
|
|
816
803
|
|
|
817
804
|
// ----- LockScreenUnlockingEventArgs class --------------------
|
|
818
805
|
|
|
@@ -837,14 +824,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
837
824
|
|
|
838
825
|
if (arg_count == 0)
|
|
839
826
|
{
|
|
840
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"GetDeferral", 0))
|
|
841
|
-
{
|
|
842
|
-
py::set_arg_count_version_error(0);
|
|
843
|
-
return nullptr;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
827
|
try
|
|
847
828
|
{
|
|
829
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"GetDeferral", 0))
|
|
830
|
+
{
|
|
831
|
+
py::set_arg_count_version_error(0);
|
|
832
|
+
return nullptr;
|
|
833
|
+
}
|
|
834
|
+
|
|
848
835
|
return py::convert(self->obj.GetDeferral());
|
|
849
836
|
}
|
|
850
837
|
catch (...)
|
|
@@ -862,14 +849,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
862
849
|
|
|
863
850
|
static PyObject* LockScreenUnlockingEventArgs_get_Deadline(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs* self, void* /*unused*/) noexcept
|
|
864
851
|
{
|
|
865
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"Deadline"))
|
|
866
|
-
{
|
|
867
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
868
|
-
return nullptr;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
852
|
try
|
|
872
853
|
{
|
|
854
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"Deadline"))
|
|
855
|
+
{
|
|
856
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
857
|
+
return nullptr;
|
|
858
|
+
}
|
|
859
|
+
|
|
873
860
|
return py::convert(self->obj.Deadline());
|
|
874
861
|
}
|
|
875
862
|
catch (...)
|
|
@@ -915,39 +902,35 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
915
902
|
{ }
|
|
916
903
|
};
|
|
917
904
|
|
|
918
|
-
static PyType_Slot _type_slots_LockScreenUnlockingEventArgs[] =
|
|
919
|
-
{
|
|
905
|
+
static PyType_Slot _type_slots_LockScreenUnlockingEventArgs[] = {
|
|
920
906
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenUnlockingEventArgs) },
|
|
921
907
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenUnlockingEventArgs) },
|
|
922
908
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenUnlockingEventArgs) },
|
|
923
909
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenUnlockingEventArgs) },
|
|
924
|
-
{ }
|
|
910
|
+
{ }
|
|
925
911
|
};
|
|
926
912
|
|
|
927
|
-
static PyType_Spec type_spec_LockScreenUnlockingEventArgs =
|
|
928
|
-
{
|
|
913
|
+
static PyType_Spec type_spec_LockScreenUnlockingEventArgs = {
|
|
929
914
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingEventArgs",
|
|
930
915
|
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs),
|
|
931
916
|
0,
|
|
932
917
|
Py_TPFLAGS_DEFAULT,
|
|
933
|
-
_type_slots_LockScreenUnlockingEventArgs
|
|
934
|
-
};
|
|
918
|
+
_type_slots_LockScreenUnlockingEventArgs};
|
|
935
919
|
|
|
936
920
|
// ----- Windows.ApplicationModel.LockScreen Initialization --------------------
|
|
937
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::LockScreen");
|
|
938
|
-
|
|
939
921
|
|
|
940
|
-
|
|
941
|
-
= {PyModuleDef_HEAD_INIT,
|
|
942
|
-
"_winrt_windows_applicationmodel_lockscreen",
|
|
943
|
-
module_doc,
|
|
944
|
-
0,
|
|
945
|
-
nullptr,
|
|
946
|
-
nullptr,
|
|
947
|
-
nullptr,
|
|
948
|
-
nullptr,
|
|
949
|
-
nullptr};
|
|
922
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.LockScreen");
|
|
950
923
|
|
|
924
|
+
static PyModuleDef module_def = {
|
|
925
|
+
PyModuleDef_HEAD_INIT,
|
|
926
|
+
"_winrt_windows_applicationmodel_lockscreen",
|
|
927
|
+
module_doc,
|
|
928
|
+
0,
|
|
929
|
+
nullptr,
|
|
930
|
+
nullptr,
|
|
931
|
+
nullptr,
|
|
932
|
+
nullptr,
|
|
933
|
+
nullptr};
|
|
951
934
|
} // py::cpp::Windows::ApplicationModel::LockScreen
|
|
952
935
|
|
|
953
936
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_lockscreen(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_applicationmodel_lockscreen",
|
|
26
|
+
sources=["py.Windows.ApplicationModel.LockScreen.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
winrt_windows_applicationmodel_lockscreen-2.1.0/winrt/_winrt_windows_applicationmodel_lockscreen.pyi
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
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.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class LockApplicationHost_Static(type):
|
|
20
|
+
def get_for_current_view(cls) -> typing.Optional[LockApplicationHost]: ...
|
|
21
|
+
|
|
22
|
+
@typing.final
|
|
23
|
+
class LockApplicationHost(winrt.system.Object, metaclass=LockApplicationHost_Static):
|
|
24
|
+
@staticmethod
|
|
25
|
+
def _from(obj: winrt.system.Object, /) -> LockApplicationHost: ...
|
|
26
|
+
def request_unlock(self) -> None: ...
|
|
27
|
+
def add_unlocking(self, handler: windows_foundation.TypedEventHandler[LockApplicationHost, LockScreenUnlockingEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
28
|
+
def remove_unlocking(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
29
|
+
|
|
30
|
+
@typing.final
|
|
31
|
+
class LockScreenBadge(winrt.system.Object):
|
|
32
|
+
@staticmethod
|
|
33
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenBadge: ...
|
|
34
|
+
def launch_app(self) -> None: ...
|
|
35
|
+
@_property
|
|
36
|
+
def automation_name(self) -> str: ...
|
|
37
|
+
@_property
|
|
38
|
+
def glyph(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
39
|
+
@_property
|
|
40
|
+
def logo(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
41
|
+
@_property
|
|
42
|
+
def number(self) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
|
|
43
|
+
|
|
44
|
+
@typing.final
|
|
45
|
+
class LockScreenInfo(winrt.system.Object):
|
|
46
|
+
@staticmethod
|
|
47
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenInfo: ...
|
|
48
|
+
def add_alarm_icon_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
49
|
+
def remove_alarm_icon_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
50
|
+
def add_badges_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
51
|
+
def remove_badges_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
52
|
+
def add_detail_text_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
53
|
+
def remove_detail_text_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
54
|
+
def add_lock_screen_image_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
55
|
+
def remove_lock_screen_image_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
+
@_property
|
|
57
|
+
def alarm_icon(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
58
|
+
@_property
|
|
59
|
+
def badges(self) -> typing.Optional[windows_foundation_collections.IVectorView[LockScreenBadge]]: ...
|
|
60
|
+
@_property
|
|
61
|
+
def detail_text(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
62
|
+
@_property
|
|
63
|
+
def lock_screen_image(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
64
|
+
|
|
65
|
+
@typing.final
|
|
66
|
+
class LockScreenUnlockingDeferral(winrt.system.Object):
|
|
67
|
+
@staticmethod
|
|
68
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingDeferral: ...
|
|
69
|
+
def complete(self) -> None: ...
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class LockScreenUnlockingEventArgs(winrt.system.Object):
|
|
73
|
+
@staticmethod
|
|
74
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingEventArgs: ...
|
|
75
|
+
def get_deferral(self) -> typing.Optional[LockScreenUnlockingDeferral]: ...
|
|
76
|
+
@_property
|
|
77
|
+
def deadline(self) -> datetime.datetime: ...
|
|
78
|
+
|
winrt_windows_applicationmodel_lockscreen-2.1.0/winrt/windows/applicationmodel/lockscreen/py.typed
ADDED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.LockScreen
|
|
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,11 @@ 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.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_applicationmodel_lockscreen.pyi
|
|
9
9
|
winrt/windows/applicationmodel/lockscreen/__init__.py
|
|
10
|
+
winrt/windows/applicationmodel/lockscreen/py.typed
|
|
10
11
|
winrt_Windows.ApplicationModel.LockScreen.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.ApplicationModel.LockScreen.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.ApplicationModel.LockScreen.egg-info/dependency_links.txt
|
|
@@ -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_applicationmodel_lockscreen",
|
|
10
|
-
sources=["py.Windows.ApplicationModel.LockScreen.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
@@ -1,78 +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.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
14
|
-
import winrt.windows.storage.streams
|
|
15
|
-
|
|
16
|
-
Self = typing.TypeVar('Self')
|
|
17
|
-
|
|
18
|
-
@typing.final
|
|
19
|
-
class LockApplicationHost_Static(type):
|
|
20
|
-
def get_for_current_view(cls) -> typing.Optional[LockApplicationHost]: ...
|
|
21
|
-
|
|
22
|
-
@typing.final
|
|
23
|
-
class LockApplicationHost(winrt.system.Object, metaclass=LockApplicationHost_Static):
|
|
24
|
-
@staticmethod
|
|
25
|
-
def _from(obj: winrt.system.Object, /) -> LockApplicationHost: ...
|
|
26
|
-
def request_unlock(self) -> None: ...
|
|
27
|
-
def add_unlocking(self, handler: winrt.windows.foundation.TypedEventHandler[LockApplicationHost, LockScreenUnlockingEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
28
|
-
def remove_unlocking(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
29
|
-
|
|
30
|
-
@typing.final
|
|
31
|
-
class LockScreenBadge(winrt.system.Object):
|
|
32
|
-
@staticmethod
|
|
33
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenBadge: ...
|
|
34
|
-
def launch_app(self) -> None: ...
|
|
35
|
-
@_property
|
|
36
|
-
def automation_name(self) -> str: ...
|
|
37
|
-
@_property
|
|
38
|
-
def glyph(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
39
|
-
@_property
|
|
40
|
-
def logo(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
41
|
-
@_property
|
|
42
|
-
def number(self) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
|
|
43
|
-
|
|
44
|
-
@typing.final
|
|
45
|
-
class LockScreenInfo(winrt.system.Object):
|
|
46
|
-
@staticmethod
|
|
47
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenInfo: ...
|
|
48
|
-
def add_alarm_icon_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
49
|
-
def remove_alarm_icon_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
50
|
-
def add_badges_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
51
|
-
def remove_badges_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
52
|
-
def add_detail_text_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
53
|
-
def remove_detail_text_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
54
|
-
def add_lock_screen_image_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
55
|
-
def remove_lock_screen_image_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
-
@_property
|
|
57
|
-
def alarm_icon(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
58
|
-
@_property
|
|
59
|
-
def badges(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[LockScreenBadge]]: ...
|
|
60
|
-
@_property
|
|
61
|
-
def detail_text(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[str]]: ...
|
|
62
|
-
@_property
|
|
63
|
-
def lock_screen_image(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
64
|
-
|
|
65
|
-
@typing.final
|
|
66
|
-
class LockScreenUnlockingDeferral(winrt.system.Object):
|
|
67
|
-
@staticmethod
|
|
68
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingDeferral: ...
|
|
69
|
-
def complete(self) -> None: ...
|
|
70
|
-
|
|
71
|
-
@typing.final
|
|
72
|
-
class LockScreenUnlockingEventArgs(winrt.system.Object):
|
|
73
|
-
@staticmethod
|
|
74
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingEventArgs: ...
|
|
75
|
-
def get_deferral(self) -> typing.Optional[LockScreenUnlockingDeferral]: ...
|
|
76
|
-
@_property
|
|
77
|
-
def deadline(self) -> datetime.datetime: ...
|
|
78
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|