winrt-Windows.ApplicationModel.ExtendedExecution 2.0.1__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_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/PKG-INFO +3 -3
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/all-requirements.txt +2 -2
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/py.Windows.ApplicationModel.ExtendedExecution.cpp +87 -95
- winrt_windows_applicationmodel_extendedexecution-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/winrt/_winrt_windows_applicationmodel_extendedexecution.pyi +6 -6
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/winrt/windows/applicationmodel/extendedexecution/__init__.py +1 -1
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/PKG-INFO +3 -3
- winrt_windows_applicationmodel_extendedexecution-2.1.0/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/requires.txt +4 -0
- winrt_windows_applicationmodel_extendedexecution-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_extendedexecution-2.0.1/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/requires.txt +0 -4
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/README.md +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/winrt/windows/applicationmodel/extendedexecution/py.typed +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.0.1 → winrt_windows_applicationmodel_extendedexecution-2.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.ExtendedExecution
|
|
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,9 +12,9 @@ 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.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0
|
|
3
|
+
winrt-Windows.Foundation[all]==2.1.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
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.ExtendedExecution.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
7
6
|
{
|
|
8
7
|
// ----- ExtendedExecutionRevokedEventArgs class --------------------
|
|
@@ -24,14 +23,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
24
23
|
|
|
25
24
|
static PyObject* ExtendedExecutionRevokedEventArgs_get_Reason(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionRevokedEventArgs* self, void* /*unused*/) noexcept
|
|
26
25
|
{
|
|
27
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionRevokedEventArgs", L"Reason"))
|
|
28
|
-
{
|
|
29
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
30
|
-
return nullptr;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
try
|
|
34
27
|
{
|
|
28
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionRevokedEventArgs", L"Reason"))
|
|
29
|
+
{
|
|
30
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
31
|
+
return nullptr;
|
|
32
|
+
}
|
|
33
|
+
|
|
35
34
|
return py::convert(self->obj.Reason());
|
|
36
35
|
}
|
|
37
36
|
catch (...)
|
|
@@ -76,23 +75,20 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
76
75
|
{ }
|
|
77
76
|
};
|
|
78
77
|
|
|
79
|
-
static PyType_Slot _type_slots_ExtendedExecutionRevokedEventArgs[] =
|
|
80
|
-
{
|
|
78
|
+
static PyType_Slot _type_slots_ExtendedExecutionRevokedEventArgs[] = {
|
|
81
79
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ExtendedExecutionRevokedEventArgs) },
|
|
82
80
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ExtendedExecutionRevokedEventArgs) },
|
|
83
81
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ExtendedExecutionRevokedEventArgs) },
|
|
84
82
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ExtendedExecutionRevokedEventArgs) },
|
|
85
|
-
{ }
|
|
83
|
+
{ }
|
|
86
84
|
};
|
|
87
85
|
|
|
88
|
-
static PyType_Spec type_spec_ExtendedExecutionRevokedEventArgs =
|
|
89
|
-
{
|
|
86
|
+
static PyType_Spec type_spec_ExtendedExecutionRevokedEventArgs = {
|
|
90
87
|
"winrt._winrt_windows_applicationmodel_extendedexecution.ExtendedExecutionRevokedEventArgs",
|
|
91
88
|
sizeof(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionRevokedEventArgs),
|
|
92
89
|
0,
|
|
93
90
|
Py_TPFLAGS_DEFAULT,
|
|
94
|
-
_type_slots_ExtendedExecutionRevokedEventArgs
|
|
95
|
-
};
|
|
91
|
+
_type_slots_ExtendedExecutionRevokedEventArgs};
|
|
96
92
|
|
|
97
93
|
// ----- ExtendedExecutionSession class --------------------
|
|
98
94
|
|
|
@@ -139,14 +135,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
139
135
|
|
|
140
136
|
if (arg_count == 0)
|
|
141
137
|
{
|
|
142
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Close", 0))
|
|
143
|
-
{
|
|
144
|
-
py::set_arg_count_version_error(0);
|
|
145
|
-
return nullptr;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
138
|
try
|
|
149
139
|
{
|
|
140
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Close", 0))
|
|
141
|
+
{
|
|
142
|
+
py::set_arg_count_version_error(0);
|
|
143
|
+
return nullptr;
|
|
144
|
+
}
|
|
145
|
+
|
|
150
146
|
self->obj.Close();
|
|
151
147
|
Py_RETURN_NONE;
|
|
152
148
|
}
|
|
@@ -169,14 +165,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
169
165
|
|
|
170
166
|
if (arg_count == 0)
|
|
171
167
|
{
|
|
172
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"RequestExtensionAsync", 0))
|
|
173
|
-
{
|
|
174
|
-
py::set_arg_count_version_error(0);
|
|
175
|
-
return nullptr;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
168
|
try
|
|
179
169
|
{
|
|
170
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"RequestExtensionAsync", 0))
|
|
171
|
+
{
|
|
172
|
+
py::set_arg_count_version_error(0);
|
|
173
|
+
return nullptr;
|
|
174
|
+
}
|
|
175
|
+
|
|
180
176
|
return py::convert(self->obj.RequestExtensionAsync());
|
|
181
177
|
}
|
|
182
178
|
catch (...)
|
|
@@ -194,14 +190,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
194
190
|
|
|
195
191
|
static PyObject* ExtendedExecutionSession_get_Reason(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, void* /*unused*/) noexcept
|
|
196
192
|
{
|
|
197
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Reason"))
|
|
198
|
-
{
|
|
199
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
200
|
-
return nullptr;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
193
|
try
|
|
204
194
|
{
|
|
195
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Reason"))
|
|
196
|
+
{
|
|
197
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
198
|
+
return nullptr;
|
|
199
|
+
}
|
|
200
|
+
|
|
205
201
|
return py::convert(self->obj.Reason());
|
|
206
202
|
}
|
|
207
203
|
catch (...)
|
|
@@ -213,12 +209,6 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
213
209
|
|
|
214
210
|
static int ExtendedExecutionSession_put_Reason(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
215
211
|
{
|
|
216
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Reason"))
|
|
217
|
-
{
|
|
218
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
219
|
-
return -1;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
212
|
if (arg == nullptr)
|
|
223
213
|
{
|
|
224
214
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -227,6 +217,12 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
227
217
|
|
|
228
218
|
try
|
|
229
219
|
{
|
|
220
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Reason"))
|
|
221
|
+
{
|
|
222
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
223
|
+
return -1;
|
|
224
|
+
}
|
|
225
|
+
|
|
230
226
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionReason>(arg);
|
|
231
227
|
|
|
232
228
|
self->obj.Reason(param0);
|
|
@@ -241,14 +237,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
241
237
|
|
|
242
238
|
static PyObject* ExtendedExecutionSession_get_PercentProgress(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, void* /*unused*/) noexcept
|
|
243
239
|
{
|
|
244
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"PercentProgress"))
|
|
245
|
-
{
|
|
246
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
247
|
-
return nullptr;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
240
|
try
|
|
251
241
|
{
|
|
242
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"PercentProgress"))
|
|
243
|
+
{
|
|
244
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
245
|
+
return nullptr;
|
|
246
|
+
}
|
|
247
|
+
|
|
252
248
|
return py::convert(self->obj.PercentProgress());
|
|
253
249
|
}
|
|
254
250
|
catch (...)
|
|
@@ -260,12 +256,6 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
260
256
|
|
|
261
257
|
static int ExtendedExecutionSession_put_PercentProgress(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
262
258
|
{
|
|
263
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"PercentProgress"))
|
|
264
|
-
{
|
|
265
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
266
|
-
return -1;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
259
|
if (arg == nullptr)
|
|
270
260
|
{
|
|
271
261
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -274,6 +264,12 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
274
264
|
|
|
275
265
|
try
|
|
276
266
|
{
|
|
267
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"PercentProgress"))
|
|
268
|
+
{
|
|
269
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
270
|
+
return -1;
|
|
271
|
+
}
|
|
272
|
+
|
|
277
273
|
auto param0 = py::convert_to<uint32_t>(arg);
|
|
278
274
|
|
|
279
275
|
self->obj.PercentProgress(param0);
|
|
@@ -288,14 +284,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
288
284
|
|
|
289
285
|
static PyObject* ExtendedExecutionSession_get_Description(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, void* /*unused*/) noexcept
|
|
290
286
|
{
|
|
291
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Description"))
|
|
292
|
-
{
|
|
293
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
294
|
-
return nullptr;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
287
|
try
|
|
298
288
|
{
|
|
289
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Description"))
|
|
290
|
+
{
|
|
291
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
292
|
+
return nullptr;
|
|
293
|
+
}
|
|
294
|
+
|
|
299
295
|
return py::convert(self->obj.Description());
|
|
300
296
|
}
|
|
301
297
|
catch (...)
|
|
@@ -307,12 +303,6 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
307
303
|
|
|
308
304
|
static int ExtendedExecutionSession_put_Description(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
309
305
|
{
|
|
310
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Description"))
|
|
311
|
-
{
|
|
312
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
313
|
-
return -1;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
306
|
if (arg == nullptr)
|
|
317
307
|
{
|
|
318
308
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -321,6 +311,12 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
321
311
|
|
|
322
312
|
try
|
|
323
313
|
{
|
|
314
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Description"))
|
|
315
|
+
{
|
|
316
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
317
|
+
return -1;
|
|
318
|
+
}
|
|
319
|
+
|
|
324
320
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
325
321
|
|
|
326
322
|
self->obj.Description(param0);
|
|
@@ -335,14 +331,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
335
331
|
|
|
336
332
|
static PyObject* ExtendedExecutionSession_add_Revoked(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* arg) noexcept
|
|
337
333
|
{
|
|
338
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Revoked"))
|
|
339
|
-
{
|
|
340
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
341
|
-
return nullptr;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
334
|
try
|
|
345
335
|
{
|
|
336
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Revoked"))
|
|
337
|
+
{
|
|
338
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
339
|
+
return nullptr;
|
|
340
|
+
}
|
|
341
|
+
|
|
346
342
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable, winrt::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionRevokedEventArgs>>(arg);
|
|
347
343
|
|
|
348
344
|
return py::convert(self->obj.Revoked(param0));
|
|
@@ -356,14 +352,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
356
352
|
|
|
357
353
|
static PyObject* ExtendedExecutionSession_remove_Revoked(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* arg) noexcept
|
|
358
354
|
{
|
|
359
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Revoked"))
|
|
360
|
-
{
|
|
361
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
362
|
-
return nullptr;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
355
|
try
|
|
366
356
|
{
|
|
357
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession", L"Revoked"))
|
|
358
|
+
{
|
|
359
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
360
|
+
return nullptr;
|
|
361
|
+
}
|
|
362
|
+
|
|
367
363
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
368
364
|
|
|
369
365
|
self->obj.Revoked(param0);
|
|
@@ -427,7 +423,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
427
423
|
{ "_assign_array_", _assign_array_ExtendedExecutionSession, METH_O | METH_STATIC, nullptr },
|
|
428
424
|
{ "_from", reinterpret_cast<PyCFunction>(_from_ExtendedExecutionSession), METH_O | METH_STATIC, nullptr },
|
|
429
425
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_ExtendedExecutionSession), METH_NOARGS, nullptr },
|
|
430
|
-
{ "__exit__",
|
|
426
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_ExtendedExecutionSession), METH_VARARGS, nullptr },
|
|
431
427
|
{ }
|
|
432
428
|
};
|
|
433
429
|
|
|
@@ -438,39 +434,35 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
438
434
|
{ }
|
|
439
435
|
};
|
|
440
436
|
|
|
441
|
-
static PyType_Slot _type_slots_ExtendedExecutionSession[] =
|
|
442
|
-
{
|
|
437
|
+
static PyType_Slot _type_slots_ExtendedExecutionSession[] = {
|
|
443
438
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ExtendedExecutionSession) },
|
|
444
439
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ExtendedExecutionSession) },
|
|
445
440
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ExtendedExecutionSession) },
|
|
446
441
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ExtendedExecutionSession) },
|
|
447
|
-
{ }
|
|
442
|
+
{ }
|
|
448
443
|
};
|
|
449
444
|
|
|
450
|
-
static PyType_Spec type_spec_ExtendedExecutionSession =
|
|
451
|
-
{
|
|
445
|
+
static PyType_Spec type_spec_ExtendedExecutionSession = {
|
|
452
446
|
"winrt._winrt_windows_applicationmodel_extendedexecution.ExtendedExecutionSession",
|
|
453
447
|
sizeof(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession),
|
|
454
448
|
0,
|
|
455
449
|
Py_TPFLAGS_DEFAULT,
|
|
456
|
-
_type_slots_ExtendedExecutionSession
|
|
457
|
-
};
|
|
450
|
+
_type_slots_ExtendedExecutionSession};
|
|
458
451
|
|
|
459
452
|
// ----- Windows.ApplicationModel.ExtendedExecution Initialization --------------------
|
|
460
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::ExtendedExecution");
|
|
461
453
|
|
|
454
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.ExtendedExecution");
|
|
462
455
|
|
|
463
|
-
static PyModuleDef module_def
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
456
|
+
static PyModuleDef module_def = {
|
|
457
|
+
PyModuleDef_HEAD_INIT,
|
|
458
|
+
"_winrt_windows_applicationmodel_extendedexecution",
|
|
459
|
+
module_doc,
|
|
460
|
+
0,
|
|
461
|
+
nullptr,
|
|
462
|
+
nullptr,
|
|
463
|
+
nullptr,
|
|
464
|
+
nullptr,
|
|
465
|
+
nullptr};
|
|
474
466
|
} // py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
475
467
|
|
|
476
468
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_extendedexecution(void) noexcept
|
|
@@ -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.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,7 +9,7 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
13
|
|
|
14
14
|
from winrt.windows.applicationmodel.extendedexecution import ExtendedExecutionReason, ExtendedExecutionResult, ExtendedExecutionRevokedReason
|
|
15
15
|
|
|
@@ -28,11 +28,11 @@ class ExtendedExecutionSession(winrt.system.Object):
|
|
|
28
28
|
def __exit__(self, *args) -> None: ...
|
|
29
29
|
@staticmethod
|
|
30
30
|
def _from(obj: winrt.system.Object, /) -> ExtendedExecutionSession: ...
|
|
31
|
-
def __new__(cls: typing.Type[ExtendedExecutionSession]) -> ExtendedExecutionSession
|
|
31
|
+
def __new__(cls: typing.Type[ExtendedExecutionSession]) -> ExtendedExecutionSession: ...
|
|
32
32
|
def close(self) -> None: ...
|
|
33
|
-
def request_extension_async(self) ->
|
|
34
|
-
def add_revoked(self, handler:
|
|
35
|
-
def remove_revoked(self, token:
|
|
33
|
+
def request_extension_async(self) -> windows_foundation.IAsyncOperation[ExtendedExecutionResult]: ...
|
|
34
|
+
def add_revoked(self, handler: windows_foundation.TypedEventHandler[winrt.system.Object, ExtendedExecutionRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
35
|
+
def remove_revoked(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
36
36
|
@_property
|
|
37
37
|
def reason(self) -> ExtendedExecutionReason: ...
|
|
38
38
|
@reason.setter
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.ExtendedExecution
|
|
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,9 +12,9 @@ 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.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|