winrt-Windows.ApplicationModel.LockScreen 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.LockScreen-2.0.0b1/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/README.md +7 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/all-requirements.txt +5 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/py.Windows.ApplicationModel.LockScreen.cpp +1015 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/setup.py +17 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/winrt/_winrt_windows_applicationmodel_lockscreen.pyi +72 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/winrt/windows/applicationmodel/lockscreen/__init__.py +18 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/winrt_Windows.ApplicationModel.LockScreen.egg-info/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/winrt_Windows.ApplicationModel.LockScreen.egg-info/SOURCES.txt +14 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/winrt_Windows.ApplicationModel.LockScreen.egg-info/dependency_links.txt +1 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +6 -0
- winrt-Windows.ApplicationModel.LockScreen-2.0.0b1/winrt_Windows.ApplicationModel.LockScreen.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.LockScreen
|
|
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.LockScreen
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.LockScreen` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.lockscreen` module.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.ApplicationModel.LockScreen
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.LockScreen` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.applicationmodel.lockscreen` module.
|
|
@@ -0,0 +1,1015 @@
|
|
|
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.LockScreen.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
7
|
+
{
|
|
8
|
+
// ----- LockApplicationHost class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_LockApplicationHost(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
11
|
+
{
|
|
12
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost>::type_name);
|
|
13
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost>::type_name);
|
|
14
|
+
return nullptr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static void _dealloc_LockApplicationHost(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self) noexcept
|
|
18
|
+
{
|
|
19
|
+
auto tp = Py_TYPE(self);
|
|
20
|
+
std::destroy_at(&self->obj);
|
|
21
|
+
tp->tp_free(self);
|
|
22
|
+
Py_DECREF(tp);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static PyObject* LockApplicationHost_GetForCurrentView(PyObject* /*unused*/, PyObject* args) noexcept
|
|
26
|
+
{
|
|
27
|
+
auto arg_count = PyTuple_Size(args);
|
|
28
|
+
|
|
29
|
+
if (arg_count == 0)
|
|
30
|
+
{
|
|
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
|
+
try
|
|
38
|
+
{
|
|
39
|
+
return py::convert(winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost::GetForCurrentView());
|
|
40
|
+
}
|
|
41
|
+
catch (...)
|
|
42
|
+
{
|
|
43
|
+
py::to_PyErr();
|
|
44
|
+
return nullptr;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else
|
|
48
|
+
{
|
|
49
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
50
|
+
return nullptr;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static PyObject* LockApplicationHost_RequestUnlock(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self, PyObject* args) noexcept
|
|
55
|
+
{
|
|
56
|
+
auto arg_count = PyTuple_Size(args);
|
|
57
|
+
|
|
58
|
+
if (arg_count == 0)
|
|
59
|
+
{
|
|
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
|
+
try
|
|
67
|
+
{
|
|
68
|
+
self->obj.RequestUnlock();
|
|
69
|
+
Py_RETURN_NONE;
|
|
70
|
+
}
|
|
71
|
+
catch (...)
|
|
72
|
+
{
|
|
73
|
+
py::to_PyErr();
|
|
74
|
+
return nullptr;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
else
|
|
78
|
+
{
|
|
79
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
80
|
+
return nullptr;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static PyObject* LockApplicationHost_add_Unlocking(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self, PyObject* arg) noexcept
|
|
85
|
+
{
|
|
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
|
+
try
|
|
93
|
+
{
|
|
94
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost, winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs>>(arg);
|
|
95
|
+
|
|
96
|
+
return py::convert(self->obj.Unlocking(param0));
|
|
97
|
+
}
|
|
98
|
+
catch (...)
|
|
99
|
+
{
|
|
100
|
+
py::to_PyErr();
|
|
101
|
+
return nullptr;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static PyObject* LockApplicationHost_remove_Unlocking(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self, PyObject* arg) noexcept
|
|
106
|
+
{
|
|
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
|
+
try
|
|
114
|
+
{
|
|
115
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
116
|
+
|
|
117
|
+
self->obj.Unlocking(param0);
|
|
118
|
+
Py_RETURN_NONE;
|
|
119
|
+
}
|
|
120
|
+
catch (...)
|
|
121
|
+
{
|
|
122
|
+
py::to_PyErr();
|
|
123
|
+
return nullptr;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
static PyObject* _assign_array_LockApplicationHost(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
128
|
+
{
|
|
129
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost>>();
|
|
130
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
131
|
+
{
|
|
132
|
+
return nullptr;
|
|
133
|
+
}
|
|
134
|
+
Py_RETURN_NONE;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
static PyObject* _from_LockApplicationHost(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
138
|
+
{
|
|
139
|
+
try
|
|
140
|
+
{
|
|
141
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
142
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost>());
|
|
143
|
+
}
|
|
144
|
+
catch (...)
|
|
145
|
+
{
|
|
146
|
+
py::to_PyErr();
|
|
147
|
+
return nullptr;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
static PyMethodDef _methods_LockApplicationHost[] = {
|
|
152
|
+
{ "request_unlock", reinterpret_cast<PyCFunction>(LockApplicationHost_RequestUnlock), METH_VARARGS, nullptr },
|
|
153
|
+
{ "add_unlocking", reinterpret_cast<PyCFunction>(LockApplicationHost_add_Unlocking), METH_O, nullptr },
|
|
154
|
+
{ "remove_unlocking", reinterpret_cast<PyCFunction>(LockApplicationHost_remove_Unlocking), METH_O, nullptr },
|
|
155
|
+
{ "_assign_array_", _assign_array_LockApplicationHost, METH_O | METH_STATIC, nullptr },
|
|
156
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_LockApplicationHost), METH_O | METH_STATIC, nullptr },
|
|
157
|
+
{ }
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
static PyGetSetDef _getset_LockApplicationHost[] = {
|
|
161
|
+
{ }
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
static PyType_Slot _type_slots_LockApplicationHost[] =
|
|
165
|
+
{
|
|
166
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_LockApplicationHost) },
|
|
167
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockApplicationHost) },
|
|
168
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockApplicationHost) },
|
|
169
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockApplicationHost) },
|
|
170
|
+
{ },
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
static PyType_Spec type_spec_LockApplicationHost =
|
|
174
|
+
{
|
|
175
|
+
"winrt._winrt_windows_applicationmodel_lockscreen.LockApplicationHost",
|
|
176
|
+
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost),
|
|
177
|
+
0,
|
|
178
|
+
Py_TPFLAGS_DEFAULT,
|
|
179
|
+
_type_slots_LockApplicationHost
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
static PyGetSetDef getset_LockApplicationHost_Static[] = {
|
|
183
|
+
{ }
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
static PyMethodDef methods_LockApplicationHost_Static[] = {
|
|
187
|
+
{ "get_for_current_view", reinterpret_cast<PyCFunction>(LockApplicationHost_GetForCurrentView), METH_VARARGS, nullptr },
|
|
188
|
+
{ }
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
static PyType_Slot type_slots_LockApplicationHost_Static[] =
|
|
192
|
+
{
|
|
193
|
+
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
194
|
+
{ Py_tp_getset, reinterpret_cast<void*>(getset_LockApplicationHost_Static) },
|
|
195
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_LockApplicationHost_Static) },
|
|
196
|
+
{ }
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
static PyType_Spec type_spec_LockApplicationHost_Static =
|
|
200
|
+
{
|
|
201
|
+
"winrt._winrt_windows_applicationmodel_lockscreen.LockApplicationHost_Static",
|
|
202
|
+
static_cast<int>(PyType_Type.tp_basicsize),
|
|
203
|
+
static_cast<int>(PyType_Type.tp_itemsize),
|
|
204
|
+
Py_TPFLAGS_DEFAULT,
|
|
205
|
+
type_slots_LockApplicationHost_Static
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
// ----- LockScreenBadge class --------------------
|
|
209
|
+
|
|
210
|
+
static PyObject* _new_LockScreenBadge(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
211
|
+
{
|
|
212
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockScreenBadge>::type_name);
|
|
213
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockScreenBadge>::type_name);
|
|
214
|
+
return nullptr;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
static void _dealloc_LockScreenBadge(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self) noexcept
|
|
218
|
+
{
|
|
219
|
+
auto tp = Py_TYPE(self);
|
|
220
|
+
std::destroy_at(&self->obj);
|
|
221
|
+
tp->tp_free(self);
|
|
222
|
+
Py_DECREF(tp);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
static PyObject* LockScreenBadge_LaunchApp(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, PyObject* args) noexcept
|
|
226
|
+
{
|
|
227
|
+
auto arg_count = PyTuple_Size(args);
|
|
228
|
+
|
|
229
|
+
if (arg_count == 0)
|
|
230
|
+
{
|
|
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
|
+
try
|
|
238
|
+
{
|
|
239
|
+
self->obj.LaunchApp();
|
|
240
|
+
Py_RETURN_NONE;
|
|
241
|
+
}
|
|
242
|
+
catch (...)
|
|
243
|
+
{
|
|
244
|
+
py::to_PyErr();
|
|
245
|
+
return nullptr;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
else
|
|
249
|
+
{
|
|
250
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
251
|
+
return nullptr;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
static PyObject* LockScreenBadge_get_AutomationName(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
256
|
+
{
|
|
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
|
+
try
|
|
264
|
+
{
|
|
265
|
+
return py::convert(self->obj.AutomationName());
|
|
266
|
+
}
|
|
267
|
+
catch (...)
|
|
268
|
+
{
|
|
269
|
+
py::to_PyErr();
|
|
270
|
+
return nullptr;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
static PyObject* LockScreenBadge_get_Glyph(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
275
|
+
{
|
|
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
|
+
try
|
|
283
|
+
{
|
|
284
|
+
return py::convert(self->obj.Glyph());
|
|
285
|
+
}
|
|
286
|
+
catch (...)
|
|
287
|
+
{
|
|
288
|
+
py::to_PyErr();
|
|
289
|
+
return nullptr;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
static PyObject* LockScreenBadge_get_Logo(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
294
|
+
{
|
|
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
|
+
try
|
|
302
|
+
{
|
|
303
|
+
return py::convert(self->obj.Logo());
|
|
304
|
+
}
|
|
305
|
+
catch (...)
|
|
306
|
+
{
|
|
307
|
+
py::to_PyErr();
|
|
308
|
+
return nullptr;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
static PyObject* LockScreenBadge_get_Number(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, void* /*unused*/) noexcept
|
|
313
|
+
{
|
|
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
|
+
try
|
|
321
|
+
{
|
|
322
|
+
return py::convert(self->obj.Number());
|
|
323
|
+
}
|
|
324
|
+
catch (...)
|
|
325
|
+
{
|
|
326
|
+
py::to_PyErr();
|
|
327
|
+
return nullptr;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
static PyObject* _assign_array_LockScreenBadge(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
332
|
+
{
|
|
333
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::LockScreen::LockScreenBadge>>();
|
|
334
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
335
|
+
{
|
|
336
|
+
return nullptr;
|
|
337
|
+
}
|
|
338
|
+
Py_RETURN_NONE;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
static PyObject* _from_LockScreenBadge(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
342
|
+
{
|
|
343
|
+
try
|
|
344
|
+
{
|
|
345
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
346
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::LockScreen::LockScreenBadge>());
|
|
347
|
+
}
|
|
348
|
+
catch (...)
|
|
349
|
+
{
|
|
350
|
+
py::to_PyErr();
|
|
351
|
+
return nullptr;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
static PyMethodDef _methods_LockScreenBadge[] = {
|
|
356
|
+
{ "launch_app", reinterpret_cast<PyCFunction>(LockScreenBadge_LaunchApp), METH_VARARGS, nullptr },
|
|
357
|
+
{ "_assign_array_", _assign_array_LockScreenBadge, METH_O | METH_STATIC, nullptr },
|
|
358
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_LockScreenBadge), METH_O | METH_STATIC, nullptr },
|
|
359
|
+
{ }
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
static PyGetSetDef _getset_LockScreenBadge[] = {
|
|
363
|
+
{ "automation_name", reinterpret_cast<getter>(LockScreenBadge_get_AutomationName), nullptr, nullptr, nullptr },
|
|
364
|
+
{ "glyph", reinterpret_cast<getter>(LockScreenBadge_get_Glyph), nullptr, nullptr, nullptr },
|
|
365
|
+
{ "logo", reinterpret_cast<getter>(LockScreenBadge_get_Logo), nullptr, nullptr, nullptr },
|
|
366
|
+
{ "number", reinterpret_cast<getter>(LockScreenBadge_get_Number), nullptr, nullptr, nullptr },
|
|
367
|
+
{ }
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
static PyType_Slot _type_slots_LockScreenBadge[] =
|
|
371
|
+
{
|
|
372
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenBadge) },
|
|
373
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenBadge) },
|
|
374
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenBadge) },
|
|
375
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenBadge) },
|
|
376
|
+
{ },
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
static PyType_Spec type_spec_LockScreenBadge =
|
|
380
|
+
{
|
|
381
|
+
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenBadge",
|
|
382
|
+
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge),
|
|
383
|
+
0,
|
|
384
|
+
Py_TPFLAGS_DEFAULT,
|
|
385
|
+
_type_slots_LockScreenBadge
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
// ----- LockScreenInfo class --------------------
|
|
389
|
+
|
|
390
|
+
static PyObject* _new_LockScreenInfo(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
391
|
+
{
|
|
392
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo>::type_name);
|
|
393
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo>::type_name);
|
|
394
|
+
return nullptr;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
static void _dealloc_LockScreenInfo(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self) noexcept
|
|
398
|
+
{
|
|
399
|
+
auto tp = Py_TYPE(self);
|
|
400
|
+
std::destroy_at(&self->obj);
|
|
401
|
+
tp->tp_free(self);
|
|
402
|
+
Py_DECREF(tp);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
static PyObject* LockScreenInfo_get_AlarmIcon(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
406
|
+
{
|
|
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
|
+
try
|
|
414
|
+
{
|
|
415
|
+
return py::convert(self->obj.AlarmIcon());
|
|
416
|
+
}
|
|
417
|
+
catch (...)
|
|
418
|
+
{
|
|
419
|
+
py::to_PyErr();
|
|
420
|
+
return nullptr;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
static PyObject* LockScreenInfo_get_Badges(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
425
|
+
{
|
|
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
|
+
try
|
|
433
|
+
{
|
|
434
|
+
return py::convert(self->obj.Badges());
|
|
435
|
+
}
|
|
436
|
+
catch (...)
|
|
437
|
+
{
|
|
438
|
+
py::to_PyErr();
|
|
439
|
+
return nullptr;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
static PyObject* LockScreenInfo_get_DetailText(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
444
|
+
{
|
|
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
|
+
try
|
|
452
|
+
{
|
|
453
|
+
return py::convert(self->obj.DetailText());
|
|
454
|
+
}
|
|
455
|
+
catch (...)
|
|
456
|
+
{
|
|
457
|
+
py::to_PyErr();
|
|
458
|
+
return nullptr;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
static PyObject* LockScreenInfo_get_LockScreenImage(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, void* /*unused*/) noexcept
|
|
463
|
+
{
|
|
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
|
+
try
|
|
471
|
+
{
|
|
472
|
+
return py::convert(self->obj.LockScreenImage());
|
|
473
|
+
}
|
|
474
|
+
catch (...)
|
|
475
|
+
{
|
|
476
|
+
py::to_PyErr();
|
|
477
|
+
return nullptr;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
static PyObject* LockScreenInfo_add_AlarmIconChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
482
|
+
{
|
|
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
|
+
try
|
|
490
|
+
{
|
|
491
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
492
|
+
|
|
493
|
+
return py::convert(self->obj.AlarmIconChanged(param0));
|
|
494
|
+
}
|
|
495
|
+
catch (...)
|
|
496
|
+
{
|
|
497
|
+
py::to_PyErr();
|
|
498
|
+
return nullptr;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
static PyObject* LockScreenInfo_remove_AlarmIconChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
503
|
+
{
|
|
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
|
+
try
|
|
511
|
+
{
|
|
512
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
513
|
+
|
|
514
|
+
self->obj.AlarmIconChanged(param0);
|
|
515
|
+
Py_RETURN_NONE;
|
|
516
|
+
}
|
|
517
|
+
catch (...)
|
|
518
|
+
{
|
|
519
|
+
py::to_PyErr();
|
|
520
|
+
return nullptr;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
static PyObject* LockScreenInfo_add_BadgesChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
525
|
+
{
|
|
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
|
+
try
|
|
533
|
+
{
|
|
534
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
535
|
+
|
|
536
|
+
return py::convert(self->obj.BadgesChanged(param0));
|
|
537
|
+
}
|
|
538
|
+
catch (...)
|
|
539
|
+
{
|
|
540
|
+
py::to_PyErr();
|
|
541
|
+
return nullptr;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
static PyObject* LockScreenInfo_remove_BadgesChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
546
|
+
{
|
|
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
|
+
try
|
|
554
|
+
{
|
|
555
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
556
|
+
|
|
557
|
+
self->obj.BadgesChanged(param0);
|
|
558
|
+
Py_RETURN_NONE;
|
|
559
|
+
}
|
|
560
|
+
catch (...)
|
|
561
|
+
{
|
|
562
|
+
py::to_PyErr();
|
|
563
|
+
return nullptr;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
static PyObject* LockScreenInfo_add_DetailTextChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
568
|
+
{
|
|
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
|
+
try
|
|
576
|
+
{
|
|
577
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
578
|
+
|
|
579
|
+
return py::convert(self->obj.DetailTextChanged(param0));
|
|
580
|
+
}
|
|
581
|
+
catch (...)
|
|
582
|
+
{
|
|
583
|
+
py::to_PyErr();
|
|
584
|
+
return nullptr;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
static PyObject* LockScreenInfo_remove_DetailTextChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
589
|
+
{
|
|
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
|
+
try
|
|
597
|
+
{
|
|
598
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
599
|
+
|
|
600
|
+
self->obj.DetailTextChanged(param0);
|
|
601
|
+
Py_RETURN_NONE;
|
|
602
|
+
}
|
|
603
|
+
catch (...)
|
|
604
|
+
{
|
|
605
|
+
py::to_PyErr();
|
|
606
|
+
return nullptr;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
static PyObject* LockScreenInfo_add_LockScreenImageChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
611
|
+
{
|
|
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
|
+
try
|
|
619
|
+
{
|
|
620
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
621
|
+
|
|
622
|
+
return py::convert(self->obj.LockScreenImageChanged(param0));
|
|
623
|
+
}
|
|
624
|
+
catch (...)
|
|
625
|
+
{
|
|
626
|
+
py::to_PyErr();
|
|
627
|
+
return nullptr;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
static PyObject* LockScreenInfo_remove_LockScreenImageChanged(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo* self, PyObject* arg) noexcept
|
|
632
|
+
{
|
|
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
|
+
try
|
|
640
|
+
{
|
|
641
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
642
|
+
|
|
643
|
+
self->obj.LockScreenImageChanged(param0);
|
|
644
|
+
Py_RETURN_NONE;
|
|
645
|
+
}
|
|
646
|
+
catch (...)
|
|
647
|
+
{
|
|
648
|
+
py::to_PyErr();
|
|
649
|
+
return nullptr;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
static PyObject* _assign_array_LockScreenInfo(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
654
|
+
{
|
|
655
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo>>();
|
|
656
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
657
|
+
{
|
|
658
|
+
return nullptr;
|
|
659
|
+
}
|
|
660
|
+
Py_RETURN_NONE;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
static PyObject* _from_LockScreenInfo(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
664
|
+
{
|
|
665
|
+
try
|
|
666
|
+
{
|
|
667
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
668
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo>());
|
|
669
|
+
}
|
|
670
|
+
catch (...)
|
|
671
|
+
{
|
|
672
|
+
py::to_PyErr();
|
|
673
|
+
return nullptr;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
static PyMethodDef _methods_LockScreenInfo[] = {
|
|
678
|
+
{ "add_alarm_icon_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_add_AlarmIconChanged), METH_O, nullptr },
|
|
679
|
+
{ "remove_alarm_icon_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_remove_AlarmIconChanged), METH_O, nullptr },
|
|
680
|
+
{ "add_badges_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_add_BadgesChanged), METH_O, nullptr },
|
|
681
|
+
{ "remove_badges_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_remove_BadgesChanged), METH_O, nullptr },
|
|
682
|
+
{ "add_detail_text_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_add_DetailTextChanged), METH_O, nullptr },
|
|
683
|
+
{ "remove_detail_text_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_remove_DetailTextChanged), METH_O, nullptr },
|
|
684
|
+
{ "add_lock_screen_image_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_add_LockScreenImageChanged), METH_O, nullptr },
|
|
685
|
+
{ "remove_lock_screen_image_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_remove_LockScreenImageChanged), METH_O, nullptr },
|
|
686
|
+
{ "_assign_array_", _assign_array_LockScreenInfo, METH_O | METH_STATIC, nullptr },
|
|
687
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_LockScreenInfo), METH_O | METH_STATIC, nullptr },
|
|
688
|
+
{ }
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
static PyGetSetDef _getset_LockScreenInfo[] = {
|
|
692
|
+
{ "alarm_icon", reinterpret_cast<getter>(LockScreenInfo_get_AlarmIcon), nullptr, nullptr, nullptr },
|
|
693
|
+
{ "badges", reinterpret_cast<getter>(LockScreenInfo_get_Badges), nullptr, nullptr, nullptr },
|
|
694
|
+
{ "detail_text", reinterpret_cast<getter>(LockScreenInfo_get_DetailText), nullptr, nullptr, nullptr },
|
|
695
|
+
{ "lock_screen_image", reinterpret_cast<getter>(LockScreenInfo_get_LockScreenImage), nullptr, nullptr, nullptr },
|
|
696
|
+
{ }
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
static PyType_Slot _type_slots_LockScreenInfo[] =
|
|
700
|
+
{
|
|
701
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenInfo) },
|
|
702
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenInfo) },
|
|
703
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenInfo) },
|
|
704
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenInfo) },
|
|
705
|
+
{ },
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
static PyType_Spec type_spec_LockScreenInfo =
|
|
709
|
+
{
|
|
710
|
+
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenInfo",
|
|
711
|
+
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenInfo),
|
|
712
|
+
0,
|
|
713
|
+
Py_TPFLAGS_DEFAULT,
|
|
714
|
+
_type_slots_LockScreenInfo
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
// ----- LockScreenUnlockingDeferral class --------------------
|
|
718
|
+
|
|
719
|
+
static PyObject* _new_LockScreenUnlockingDeferral(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
720
|
+
{
|
|
721
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral>::type_name);
|
|
722
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral>::type_name);
|
|
723
|
+
return nullptr;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
static void _dealloc_LockScreenUnlockingDeferral(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral* self) noexcept
|
|
727
|
+
{
|
|
728
|
+
auto tp = Py_TYPE(self);
|
|
729
|
+
std::destroy_at(&self->obj);
|
|
730
|
+
tp->tp_free(self);
|
|
731
|
+
Py_DECREF(tp);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
static PyObject* LockScreenUnlockingDeferral_Complete(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral* self, PyObject* args) noexcept
|
|
735
|
+
{
|
|
736
|
+
auto arg_count = PyTuple_Size(args);
|
|
737
|
+
|
|
738
|
+
if (arg_count == 0)
|
|
739
|
+
{
|
|
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
|
+
try
|
|
747
|
+
{
|
|
748
|
+
self->obj.Complete();
|
|
749
|
+
Py_RETURN_NONE;
|
|
750
|
+
}
|
|
751
|
+
catch (...)
|
|
752
|
+
{
|
|
753
|
+
py::to_PyErr();
|
|
754
|
+
return nullptr;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
else
|
|
758
|
+
{
|
|
759
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
760
|
+
return nullptr;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
static PyObject* _assign_array_LockScreenUnlockingDeferral(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
765
|
+
{
|
|
766
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral>>();
|
|
767
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
768
|
+
{
|
|
769
|
+
return nullptr;
|
|
770
|
+
}
|
|
771
|
+
Py_RETURN_NONE;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
static PyObject* _from_LockScreenUnlockingDeferral(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
775
|
+
{
|
|
776
|
+
try
|
|
777
|
+
{
|
|
778
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
779
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral>());
|
|
780
|
+
}
|
|
781
|
+
catch (...)
|
|
782
|
+
{
|
|
783
|
+
py::to_PyErr();
|
|
784
|
+
return nullptr;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
static PyMethodDef _methods_LockScreenUnlockingDeferral[] = {
|
|
789
|
+
{ "complete", reinterpret_cast<PyCFunction>(LockScreenUnlockingDeferral_Complete), METH_VARARGS, nullptr },
|
|
790
|
+
{ "_assign_array_", _assign_array_LockScreenUnlockingDeferral, METH_O | METH_STATIC, nullptr },
|
|
791
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_LockScreenUnlockingDeferral), METH_O | METH_STATIC, nullptr },
|
|
792
|
+
{ }
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
static PyGetSetDef _getset_LockScreenUnlockingDeferral[] = {
|
|
796
|
+
{ }
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
static PyType_Slot _type_slots_LockScreenUnlockingDeferral[] =
|
|
800
|
+
{
|
|
801
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenUnlockingDeferral) },
|
|
802
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenUnlockingDeferral) },
|
|
803
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenUnlockingDeferral) },
|
|
804
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenUnlockingDeferral) },
|
|
805
|
+
{ },
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
static PyType_Spec type_spec_LockScreenUnlockingDeferral =
|
|
809
|
+
{
|
|
810
|
+
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingDeferral",
|
|
811
|
+
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral),
|
|
812
|
+
0,
|
|
813
|
+
Py_TPFLAGS_DEFAULT,
|
|
814
|
+
_type_slots_LockScreenUnlockingDeferral
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
// ----- LockScreenUnlockingEventArgs class --------------------
|
|
818
|
+
|
|
819
|
+
static PyObject* _new_LockScreenUnlockingEventArgs(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
820
|
+
{
|
|
821
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs>::type_name);
|
|
822
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs>::type_name);
|
|
823
|
+
return nullptr;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
static void _dealloc_LockScreenUnlockingEventArgs(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs* self) noexcept
|
|
827
|
+
{
|
|
828
|
+
auto tp = Py_TYPE(self);
|
|
829
|
+
std::destroy_at(&self->obj);
|
|
830
|
+
tp->tp_free(self);
|
|
831
|
+
Py_DECREF(tp);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
static PyObject* LockScreenUnlockingEventArgs_GetDeferral(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs* self, PyObject* args) noexcept
|
|
835
|
+
{
|
|
836
|
+
auto arg_count = PyTuple_Size(args);
|
|
837
|
+
|
|
838
|
+
if (arg_count == 0)
|
|
839
|
+
{
|
|
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
|
+
try
|
|
847
|
+
{
|
|
848
|
+
return py::convert(self->obj.GetDeferral());
|
|
849
|
+
}
|
|
850
|
+
catch (...)
|
|
851
|
+
{
|
|
852
|
+
py::to_PyErr();
|
|
853
|
+
return nullptr;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
else
|
|
857
|
+
{
|
|
858
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
859
|
+
return nullptr;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
static PyObject* LockScreenUnlockingEventArgs_get_Deadline(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs* self, void* /*unused*/) noexcept
|
|
864
|
+
{
|
|
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
|
+
try
|
|
872
|
+
{
|
|
873
|
+
return py::convert(self->obj.Deadline());
|
|
874
|
+
}
|
|
875
|
+
catch (...)
|
|
876
|
+
{
|
|
877
|
+
py::to_PyErr();
|
|
878
|
+
return nullptr;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
static PyObject* _assign_array_LockScreenUnlockingEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
883
|
+
{
|
|
884
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs>>();
|
|
885
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
886
|
+
{
|
|
887
|
+
return nullptr;
|
|
888
|
+
}
|
|
889
|
+
Py_RETURN_NONE;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
static PyObject* _from_LockScreenUnlockingEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
893
|
+
{
|
|
894
|
+
try
|
|
895
|
+
{
|
|
896
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
897
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs>());
|
|
898
|
+
}
|
|
899
|
+
catch (...)
|
|
900
|
+
{
|
|
901
|
+
py::to_PyErr();
|
|
902
|
+
return nullptr;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
static PyMethodDef _methods_LockScreenUnlockingEventArgs[] = {
|
|
907
|
+
{ "get_deferral", reinterpret_cast<PyCFunction>(LockScreenUnlockingEventArgs_GetDeferral), METH_VARARGS, nullptr },
|
|
908
|
+
{ "_assign_array_", _assign_array_LockScreenUnlockingEventArgs, METH_O | METH_STATIC, nullptr },
|
|
909
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_LockScreenUnlockingEventArgs), METH_O | METH_STATIC, nullptr },
|
|
910
|
+
{ }
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
static PyGetSetDef _getset_LockScreenUnlockingEventArgs[] = {
|
|
914
|
+
{ "deadline", reinterpret_cast<getter>(LockScreenUnlockingEventArgs_get_Deadline), nullptr, nullptr, nullptr },
|
|
915
|
+
{ }
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
static PyType_Slot _type_slots_LockScreenUnlockingEventArgs[] =
|
|
919
|
+
{
|
|
920
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenUnlockingEventArgs) },
|
|
921
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenUnlockingEventArgs) },
|
|
922
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenUnlockingEventArgs) },
|
|
923
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenUnlockingEventArgs) },
|
|
924
|
+
{ },
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
static PyType_Spec type_spec_LockScreenUnlockingEventArgs =
|
|
928
|
+
{
|
|
929
|
+
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingEventArgs",
|
|
930
|
+
sizeof(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs),
|
|
931
|
+
0,
|
|
932
|
+
Py_TPFLAGS_DEFAULT,
|
|
933
|
+
_type_slots_LockScreenUnlockingEventArgs
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
// ----- Windows.ApplicationModel.LockScreen Initialization --------------------
|
|
937
|
+
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::LockScreen");
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
static PyModuleDef module_def
|
|
941
|
+
= {PyModuleDef_HEAD_INIT,
|
|
942
|
+
"_winrt_windows_applicationmodel_lockscreen",
|
|
943
|
+
module_doc,
|
|
944
|
+
0,
|
|
945
|
+
nullptr,
|
|
946
|
+
nullptr,
|
|
947
|
+
nullptr,
|
|
948
|
+
nullptr,
|
|
949
|
+
nullptr};
|
|
950
|
+
|
|
951
|
+
} // py::cpp::Windows::ApplicationModel::LockScreen
|
|
952
|
+
|
|
953
|
+
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_lockscreen(void) noexcept
|
|
954
|
+
{
|
|
955
|
+
using namespace py::cpp::Windows::ApplicationModel::LockScreen;
|
|
956
|
+
|
|
957
|
+
if (py::import_winrt_runtime() == -1)
|
|
958
|
+
{
|
|
959
|
+
return nullptr;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
963
|
+
|
|
964
|
+
if (!module)
|
|
965
|
+
{
|
|
966
|
+
return nullptr;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
auto object_type = py::get_object_type();
|
|
970
|
+
if (!object_type)
|
|
971
|
+
{
|
|
972
|
+
return nullptr;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
976
|
+
|
|
977
|
+
if (!object_bases)
|
|
978
|
+
{
|
|
979
|
+
return nullptr;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
py::pyobj_handle type_LockApplicationHost_Static{PyType_FromSpec(&type_spec_LockApplicationHost_Static)};
|
|
983
|
+
if (!type_LockApplicationHost_Static)
|
|
984
|
+
{
|
|
985
|
+
return nullptr;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
if (py::register_python_type(module.get(), &type_spec_LockApplicationHost, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_LockApplicationHost_Static.get())) == -1)
|
|
989
|
+
{
|
|
990
|
+
return nullptr;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
if (py::register_python_type(module.get(), &type_spec_LockScreenBadge, object_bases.get(), nullptr) == -1)
|
|
994
|
+
{
|
|
995
|
+
return nullptr;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
if (py::register_python_type(module.get(), &type_spec_LockScreenInfo, object_bases.get(), nullptr) == -1)
|
|
999
|
+
{
|
|
1000
|
+
return nullptr;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
if (py::register_python_type(module.get(), &type_spec_LockScreenUnlockingDeferral, object_bases.get(), nullptr) == -1)
|
|
1004
|
+
{
|
|
1005
|
+
return nullptr;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
if (py::register_python_type(module.get(), &type_spec_LockScreenUnlockingEventArgs, object_bases.get(), nullptr) == -1)
|
|
1009
|
+
{
|
|
1010
|
+
return nullptr;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
return module.detach();
|
|
1015
|
+
}
|
|
@@ -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.LockScreen"
|
|
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_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
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
import winrt.windows.storage.streams
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
class LockApplicationHost_Static(type):
|
|
19
|
+
def get_for_current_view(cls) -> typing.Optional[LockApplicationHost]: ...
|
|
20
|
+
|
|
21
|
+
class LockApplicationHost(winrt.system.Object, metaclass=LockApplicationHost_Static):
|
|
22
|
+
@staticmethod
|
|
23
|
+
def _from(obj: winrt.system.Object, /) -> LockApplicationHost: ...
|
|
24
|
+
def request_unlock(self) -> None: ...
|
|
25
|
+
def add_unlocking(self, handler: winrt.windows.foundation.TypedEventHandler[LockApplicationHost, LockScreenUnlockingEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
26
|
+
def remove_unlocking(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
27
|
+
|
|
28
|
+
class LockScreenBadge(winrt.system.Object):
|
|
29
|
+
@staticmethod
|
|
30
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenBadge: ...
|
|
31
|
+
def launch_app(self) -> None: ...
|
|
32
|
+
@_property
|
|
33
|
+
def automation_name(self) -> str: ...
|
|
34
|
+
@_property
|
|
35
|
+
def glyph(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
36
|
+
@_property
|
|
37
|
+
def logo(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
38
|
+
@_property
|
|
39
|
+
def number(self) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
|
|
40
|
+
|
|
41
|
+
class LockScreenInfo(winrt.system.Object):
|
|
42
|
+
@staticmethod
|
|
43
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenInfo: ...
|
|
44
|
+
def add_alarm_icon_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
45
|
+
def remove_alarm_icon_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
46
|
+
def add_badges_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
47
|
+
def remove_badges_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
48
|
+
def add_detail_text_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
49
|
+
def remove_detail_text_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
50
|
+
def add_lock_screen_image_changed(self, handler: winrt.windows.foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
51
|
+
def remove_lock_screen_image_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
52
|
+
@_property
|
|
53
|
+
def alarm_icon(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
54
|
+
@_property
|
|
55
|
+
def badges(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[LockScreenBadge]]: ...
|
|
56
|
+
@_property
|
|
57
|
+
def detail_text(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[str]]: ...
|
|
58
|
+
@_property
|
|
59
|
+
def lock_screen_image(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
60
|
+
|
|
61
|
+
class LockScreenUnlockingDeferral(winrt.system.Object):
|
|
62
|
+
@staticmethod
|
|
63
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingDeferral: ...
|
|
64
|
+
def complete(self) -> None: ...
|
|
65
|
+
|
|
66
|
+
class LockScreenUnlockingEventArgs(winrt.system.Object):
|
|
67
|
+
@staticmethod
|
|
68
|
+
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingEventArgs: ...
|
|
69
|
+
def get_deferral(self) -> typing.Optional[LockScreenUnlockingDeferral]: ...
|
|
70
|
+
@_property
|
|
71
|
+
def deadline(self) -> datetime.datetime: ...
|
|
72
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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_lockscreen
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"LockApplicationHost",
|
|
8
|
+
"LockScreenBadge",
|
|
9
|
+
"LockScreenInfo",
|
|
10
|
+
"LockScreenUnlockingDeferral",
|
|
11
|
+
"LockScreenUnlockingEventArgs",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
LockApplicationHost = _winrt_windows_applicationmodel_lockscreen.LockApplicationHost
|
|
15
|
+
LockScreenBadge = _winrt_windows_applicationmodel_lockscreen.LockScreenBadge
|
|
16
|
+
LockScreenInfo = _winrt_windows_applicationmodel_lockscreen.LockScreenInfo
|
|
17
|
+
LockScreenUnlockingDeferral = _winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingDeferral
|
|
18
|
+
LockScreenUnlockingEventArgs = _winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingEventArgs
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.LockScreen
|
|
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.LockScreen
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.LockScreen` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.lockscreen` module.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.ApplicationModel.LockScreen.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_applicationmodel_lockscreen.pyi
|
|
9
|
+
winrt/windows/applicationmodel/lockscreen/__init__.py
|
|
10
|
+
winrt_Windows.ApplicationModel.LockScreen.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.ApplicationModel.LockScreen.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.ApplicationModel.LockScreen.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.ApplicationModel.LockScreen.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|