winrt-Windows.System.Update 2.2.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/PKG-INFO +5 -5
- winrt_windows_system_update-3.0.0/all-requirements.txt +4 -0
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/py.Windows.System.Update.cpp +215 -76
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/pyproject.toml +2 -2
- winrt_windows_system_update-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/requirements.txt +2 -2
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/setup.py +1 -1
- winrt_windows_system_update-3.0.0/winrt/_winrt_windows_system_update.pyi +123 -0
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/winrt/windows/system/update/__init__.py +6 -5
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/winrt_Windows.System.Update.egg-info/PKG-INFO +5 -5
- winrt_windows_system_update-3.0.0/winrt_Windows.System.Update.egg-info/requires.txt +5 -0
- winrt_windows_system_update-2.2.0/all-requirements.txt +0 -4
- winrt_windows_system_update-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_system_update-2.2.0/winrt/_winrt_windows_system_update.pyi +0 -92
- winrt_windows_system_update-2.2.0/winrt_Windows.System.Update.egg-info/requires.txt +0 -5
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/README.md +0 -0
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/setup.cfg +0 -0
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/winrt/windows/system/update/py.typed +0 -0
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/winrt_Windows.System.Update.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/winrt_Windows.System.Update.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/winrt_Windows.System.Update.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Update
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
{winrt_windows_system_update-2.2.0 → winrt_windows_system_update-3.0.0}/py.Windows.System.Update.cpp
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Update.h"
|
|
4
4
|
|
|
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
38
38
|
return nullptr;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
return py::convert(
|
|
41
|
+
return py::convert([&]()
|
|
42
|
+
{
|
|
43
|
+
auto _gil = release_gil();
|
|
44
|
+
return self->obj.Description();
|
|
45
|
+
}());
|
|
42
46
|
}
|
|
43
47
|
catch (...)
|
|
44
48
|
{
|
|
@@ -64,7 +68,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
64
68
|
return nullptr;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
return py::convert(
|
|
71
|
+
return py::convert([&]()
|
|
72
|
+
{
|
|
73
|
+
auto _gil = release_gil();
|
|
74
|
+
return self->obj.DownloadProgress();
|
|
75
|
+
}());
|
|
68
76
|
}
|
|
69
77
|
catch (...)
|
|
70
78
|
{
|
|
@@ -90,7 +98,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
90
98
|
return nullptr;
|
|
91
99
|
}
|
|
92
100
|
|
|
93
|
-
return py::convert(
|
|
101
|
+
return py::convert([&]()
|
|
102
|
+
{
|
|
103
|
+
auto _gil = release_gil();
|
|
104
|
+
return self->obj.ExtendedError();
|
|
105
|
+
}());
|
|
94
106
|
}
|
|
95
107
|
catch (...)
|
|
96
108
|
{
|
|
@@ -116,7 +128,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
116
128
|
return nullptr;
|
|
117
129
|
}
|
|
118
130
|
|
|
119
|
-
return py::convert(
|
|
131
|
+
return py::convert([&]()
|
|
132
|
+
{
|
|
133
|
+
auto _gil = release_gil();
|
|
134
|
+
return self->obj.Id();
|
|
135
|
+
}());
|
|
120
136
|
}
|
|
121
137
|
catch (...)
|
|
122
138
|
{
|
|
@@ -142,7 +158,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
142
158
|
return nullptr;
|
|
143
159
|
}
|
|
144
160
|
|
|
145
|
-
return py::convert(
|
|
161
|
+
return py::convert([&]()
|
|
162
|
+
{
|
|
163
|
+
auto _gil = release_gil();
|
|
164
|
+
return self->obj.InstallProgress();
|
|
165
|
+
}());
|
|
146
166
|
}
|
|
147
167
|
catch (...)
|
|
148
168
|
{
|
|
@@ -168,7 +188,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
168
188
|
return nullptr;
|
|
169
189
|
}
|
|
170
190
|
|
|
171
|
-
return py::convert(
|
|
191
|
+
return py::convert([&]()
|
|
192
|
+
{
|
|
193
|
+
auto _gil = release_gil();
|
|
194
|
+
return self->obj.Revision();
|
|
195
|
+
}());
|
|
172
196
|
}
|
|
173
197
|
catch (...)
|
|
174
198
|
{
|
|
@@ -194,7 +218,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
194
218
|
return nullptr;
|
|
195
219
|
}
|
|
196
220
|
|
|
197
|
-
return py::convert(
|
|
221
|
+
return py::convert([&]()
|
|
222
|
+
{
|
|
223
|
+
auto _gil = release_gil();
|
|
224
|
+
return self->obj.State();
|
|
225
|
+
}());
|
|
198
226
|
}
|
|
199
227
|
catch (...)
|
|
200
228
|
{
|
|
@@ -220,7 +248,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
220
248
|
return nullptr;
|
|
221
249
|
}
|
|
222
250
|
|
|
223
|
-
return py::convert(
|
|
251
|
+
return py::convert([&]()
|
|
252
|
+
{
|
|
253
|
+
auto _gil = release_gil();
|
|
254
|
+
return self->obj.Title();
|
|
255
|
+
}());
|
|
224
256
|
}
|
|
225
257
|
catch (...)
|
|
226
258
|
{
|
|
@@ -256,8 +288,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
256
288
|
static PyMethodDef _methods_SystemUpdateItem[] = {
|
|
257
289
|
{ "_assign_array_", _assign_array_SystemUpdateItem, METH_O | METH_STATIC, nullptr },
|
|
258
290
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SystemUpdateItem), METH_O | METH_STATIC, nullptr },
|
|
259
|
-
{ }
|
|
260
|
-
};
|
|
291
|
+
{ }};
|
|
261
292
|
|
|
262
293
|
static PyGetSetDef _getset_SystemUpdateItem[] = {
|
|
263
294
|
{ "description", reinterpret_cast<getter>(SystemUpdateItem_get_Description), nullptr, nullptr, nullptr },
|
|
@@ -268,16 +299,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
268
299
|
{ "revision", reinterpret_cast<getter>(SystemUpdateItem_get_Revision), nullptr, nullptr, nullptr },
|
|
269
300
|
{ "state", reinterpret_cast<getter>(SystemUpdateItem_get_State), nullptr, nullptr, nullptr },
|
|
270
301
|
{ "title", reinterpret_cast<getter>(SystemUpdateItem_get_Title), nullptr, nullptr, nullptr },
|
|
271
|
-
{ }
|
|
272
|
-
};
|
|
302
|
+
{ }};
|
|
273
303
|
|
|
274
304
|
static PyType_Slot _type_slots_SystemUpdateItem[] = {
|
|
275
305
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemUpdateItem) },
|
|
276
306
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemUpdateItem) },
|
|
277
307
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemUpdateItem) },
|
|
278
308
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemUpdateItem) },
|
|
279
|
-
{ }
|
|
280
|
-
};
|
|
309
|
+
{ }};
|
|
281
310
|
|
|
282
311
|
static PyType_Spec type_spec_SystemUpdateItem = {
|
|
283
312
|
"winrt._winrt_windows_system_update.SystemUpdateItem",
|
|
@@ -320,7 +349,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
320
349
|
return nullptr;
|
|
321
350
|
}
|
|
322
351
|
|
|
323
|
-
return py::convert(
|
|
352
|
+
return py::convert([&]()
|
|
353
|
+
{
|
|
354
|
+
auto _gil = release_gil();
|
|
355
|
+
return self->obj.ExtendedError();
|
|
356
|
+
}());
|
|
324
357
|
}
|
|
325
358
|
catch (...)
|
|
326
359
|
{
|
|
@@ -346,7 +379,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
346
379
|
return nullptr;
|
|
347
380
|
}
|
|
348
381
|
|
|
349
|
-
return py::convert(
|
|
382
|
+
return py::convert([&]()
|
|
383
|
+
{
|
|
384
|
+
auto _gil = release_gil();
|
|
385
|
+
return self->obj.IsInteractive();
|
|
386
|
+
}());
|
|
350
387
|
}
|
|
351
388
|
catch (...)
|
|
352
389
|
{
|
|
@@ -372,7 +409,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
372
409
|
return nullptr;
|
|
373
410
|
}
|
|
374
411
|
|
|
375
|
-
return py::convert(
|
|
412
|
+
return py::convert([&]()
|
|
413
|
+
{
|
|
414
|
+
auto _gil = release_gil();
|
|
415
|
+
return self->obj.State();
|
|
416
|
+
}());
|
|
376
417
|
}
|
|
377
418
|
catch (...)
|
|
378
419
|
{
|
|
@@ -408,23 +449,20 @@ namespace py::cpp::Windows::System::Update
|
|
|
408
449
|
static PyMethodDef _methods_SystemUpdateLastErrorInfo[] = {
|
|
409
450
|
{ "_assign_array_", _assign_array_SystemUpdateLastErrorInfo, METH_O | METH_STATIC, nullptr },
|
|
410
451
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SystemUpdateLastErrorInfo), METH_O | METH_STATIC, nullptr },
|
|
411
|
-
{ }
|
|
412
|
-
};
|
|
452
|
+
{ }};
|
|
413
453
|
|
|
414
454
|
static PyGetSetDef _getset_SystemUpdateLastErrorInfo[] = {
|
|
415
455
|
{ "extended_error", reinterpret_cast<getter>(SystemUpdateLastErrorInfo_get_ExtendedError), nullptr, nullptr, nullptr },
|
|
416
456
|
{ "is_interactive", reinterpret_cast<getter>(SystemUpdateLastErrorInfo_get_IsInteractive), nullptr, nullptr, nullptr },
|
|
417
457
|
{ "state", reinterpret_cast<getter>(SystemUpdateLastErrorInfo_get_State), nullptr, nullptr, nullptr },
|
|
418
|
-
{ }
|
|
419
|
-
};
|
|
458
|
+
{ }};
|
|
420
459
|
|
|
421
460
|
static PyType_Slot _type_slots_SystemUpdateLastErrorInfo[] = {
|
|
422
461
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemUpdateLastErrorInfo) },
|
|
423
462
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemUpdateLastErrorInfo) },
|
|
424
463
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemUpdateLastErrorInfo) },
|
|
425
464
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemUpdateLastErrorInfo) },
|
|
426
|
-
{ }
|
|
427
|
-
};
|
|
465
|
+
{ }};
|
|
428
466
|
|
|
429
467
|
static PyType_Spec type_spec_SystemUpdateLastErrorInfo = {
|
|
430
468
|
"winrt._winrt_windows_system_update.SystemUpdateLastErrorInfo",
|
|
@@ -444,7 +482,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
444
482
|
|
|
445
483
|
static PyObject* SystemUpdateManager_BlockAutomaticRebootAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
446
484
|
{
|
|
447
|
-
auto arg_count =
|
|
485
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
448
486
|
|
|
449
487
|
if (arg_count == 1)
|
|
450
488
|
{
|
|
@@ -465,7 +503,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
465
503
|
|
|
466
504
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
467
505
|
|
|
468
|
-
return py::convert(
|
|
506
|
+
return py::convert([&]()
|
|
507
|
+
{
|
|
508
|
+
auto _gil = release_gil();
|
|
509
|
+
return winrt::Windows::System::Update::SystemUpdateManager::BlockAutomaticRebootAsync(param0);
|
|
510
|
+
}());
|
|
469
511
|
}
|
|
470
512
|
catch (...)
|
|
471
513
|
{
|
|
@@ -482,7 +524,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
482
524
|
|
|
483
525
|
static PyObject* SystemUpdateManager_GetAutomaticRebootBlockIds(PyObject* /*unused*/, PyObject* args) noexcept
|
|
484
526
|
{
|
|
485
|
-
auto arg_count =
|
|
527
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
486
528
|
|
|
487
529
|
if (arg_count == 0)
|
|
488
530
|
{
|
|
@@ -501,7 +543,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
501
543
|
return nullptr;
|
|
502
544
|
}
|
|
503
545
|
|
|
504
|
-
return py::convert(
|
|
546
|
+
return py::convert([&]()
|
|
547
|
+
{
|
|
548
|
+
auto _gil = release_gil();
|
|
549
|
+
return winrt::Windows::System::Update::SystemUpdateManager::GetAutomaticRebootBlockIds();
|
|
550
|
+
}());
|
|
505
551
|
}
|
|
506
552
|
catch (...)
|
|
507
553
|
{
|
|
@@ -518,7 +564,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
518
564
|
|
|
519
565
|
static PyObject* SystemUpdateManager_GetFlightRing(PyObject* /*unused*/, PyObject* args) noexcept
|
|
520
566
|
{
|
|
521
|
-
auto arg_count =
|
|
567
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
522
568
|
|
|
523
569
|
if (arg_count == 0)
|
|
524
570
|
{
|
|
@@ -537,7 +583,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
537
583
|
return nullptr;
|
|
538
584
|
}
|
|
539
585
|
|
|
540
|
-
return py::convert(
|
|
586
|
+
return py::convert([&]()
|
|
587
|
+
{
|
|
588
|
+
auto _gil = release_gil();
|
|
589
|
+
return winrt::Windows::System::Update::SystemUpdateManager::GetFlightRing();
|
|
590
|
+
}());
|
|
541
591
|
}
|
|
542
592
|
catch (...)
|
|
543
593
|
{
|
|
@@ -554,7 +604,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
554
604
|
|
|
555
605
|
static PyObject* SystemUpdateManager_GetUpdateItems(PyObject* /*unused*/, PyObject* args) noexcept
|
|
556
606
|
{
|
|
557
|
-
auto arg_count =
|
|
607
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
558
608
|
|
|
559
609
|
if (arg_count == 0)
|
|
560
610
|
{
|
|
@@ -573,7 +623,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
573
623
|
return nullptr;
|
|
574
624
|
}
|
|
575
625
|
|
|
576
|
-
return py::convert(
|
|
626
|
+
return py::convert([&]()
|
|
627
|
+
{
|
|
628
|
+
auto _gil = release_gil();
|
|
629
|
+
return winrt::Windows::System::Update::SystemUpdateManager::GetUpdateItems();
|
|
630
|
+
}());
|
|
577
631
|
}
|
|
578
632
|
catch (...)
|
|
579
633
|
{
|
|
@@ -590,7 +644,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
590
644
|
|
|
591
645
|
static PyObject* SystemUpdateManager_IsSupported(PyObject* /*unused*/, PyObject* args) noexcept
|
|
592
646
|
{
|
|
593
|
-
auto arg_count =
|
|
647
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
594
648
|
|
|
595
649
|
if (arg_count == 0)
|
|
596
650
|
{
|
|
@@ -609,7 +663,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
609
663
|
return nullptr;
|
|
610
664
|
}
|
|
611
665
|
|
|
612
|
-
return py::convert(
|
|
666
|
+
return py::convert([&]()
|
|
667
|
+
{
|
|
668
|
+
auto _gil = release_gil();
|
|
669
|
+
return winrt::Windows::System::Update::SystemUpdateManager::IsSupported();
|
|
670
|
+
}());
|
|
613
671
|
}
|
|
614
672
|
catch (...)
|
|
615
673
|
{
|
|
@@ -626,7 +684,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
626
684
|
|
|
627
685
|
static PyObject* SystemUpdateManager_RebootToCompleteInstall(PyObject* /*unused*/, PyObject* args) noexcept
|
|
628
686
|
{
|
|
629
|
-
auto arg_count =
|
|
687
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
630
688
|
|
|
631
689
|
if (arg_count == 0)
|
|
632
690
|
{
|
|
@@ -645,7 +703,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
645
703
|
return nullptr;
|
|
646
704
|
}
|
|
647
705
|
|
|
648
|
-
|
|
706
|
+
{
|
|
707
|
+
auto _gil = release_gil();
|
|
708
|
+
winrt::Windows::System::Update::SystemUpdateManager::RebootToCompleteInstall();
|
|
709
|
+
}
|
|
710
|
+
|
|
649
711
|
Py_RETURN_NONE;
|
|
650
712
|
}
|
|
651
713
|
catch (...)
|
|
@@ -663,7 +725,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
663
725
|
|
|
664
726
|
static PyObject* SystemUpdateManager_SetFlightRing(PyObject* /*unused*/, PyObject* args) noexcept
|
|
665
727
|
{
|
|
666
|
-
auto arg_count =
|
|
728
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
667
729
|
|
|
668
730
|
if (arg_count == 1)
|
|
669
731
|
{
|
|
@@ -684,7 +746,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
684
746
|
|
|
685
747
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
686
748
|
|
|
687
|
-
return py::convert(
|
|
749
|
+
return py::convert([&]()
|
|
750
|
+
{
|
|
751
|
+
auto _gil = release_gil();
|
|
752
|
+
return winrt::Windows::System::Update::SystemUpdateManager::SetFlightRing(param0);
|
|
753
|
+
}());
|
|
688
754
|
}
|
|
689
755
|
catch (...)
|
|
690
756
|
{
|
|
@@ -701,7 +767,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
701
767
|
|
|
702
768
|
static PyObject* SystemUpdateManager_StartCancelUpdates(PyObject* /*unused*/, PyObject* args) noexcept
|
|
703
769
|
{
|
|
704
|
-
auto arg_count =
|
|
770
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
705
771
|
|
|
706
772
|
if (arg_count == 0)
|
|
707
773
|
{
|
|
@@ -720,7 +786,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
720
786
|
return nullptr;
|
|
721
787
|
}
|
|
722
788
|
|
|
723
|
-
|
|
789
|
+
{
|
|
790
|
+
auto _gil = release_gil();
|
|
791
|
+
winrt::Windows::System::Update::SystemUpdateManager::StartCancelUpdates();
|
|
792
|
+
}
|
|
793
|
+
|
|
724
794
|
Py_RETURN_NONE;
|
|
725
795
|
}
|
|
726
796
|
catch (...)
|
|
@@ -738,7 +808,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
738
808
|
|
|
739
809
|
static PyObject* SystemUpdateManager_StartInstall(PyObject* /*unused*/, PyObject* args) noexcept
|
|
740
810
|
{
|
|
741
|
-
auto arg_count =
|
|
811
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
742
812
|
|
|
743
813
|
if (arg_count == 1)
|
|
744
814
|
{
|
|
@@ -759,7 +829,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
759
829
|
|
|
760
830
|
auto param0 = py::convert_to<winrt::Windows::System::Update::SystemUpdateStartInstallAction>(args, 0);
|
|
761
831
|
|
|
762
|
-
|
|
832
|
+
{
|
|
833
|
+
auto _gil = release_gil();
|
|
834
|
+
winrt::Windows::System::Update::SystemUpdateManager::StartInstall(param0);
|
|
835
|
+
}
|
|
836
|
+
|
|
763
837
|
Py_RETURN_NONE;
|
|
764
838
|
}
|
|
765
839
|
catch (...)
|
|
@@ -777,7 +851,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
777
851
|
|
|
778
852
|
static PyObject* SystemUpdateManager_TrySetUserActiveHours(PyObject* /*unused*/, PyObject* args) noexcept
|
|
779
853
|
{
|
|
780
|
-
auto arg_count =
|
|
854
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
781
855
|
|
|
782
856
|
if (arg_count == 2)
|
|
783
857
|
{
|
|
@@ -799,7 +873,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
799
873
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 0);
|
|
800
874
|
auto param1 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 1);
|
|
801
875
|
|
|
802
|
-
return py::convert(
|
|
876
|
+
return py::convert([&]()
|
|
877
|
+
{
|
|
878
|
+
auto _gil = release_gil();
|
|
879
|
+
return winrt::Windows::System::Update::SystemUpdateManager::TrySetUserActiveHours(param0, param1);
|
|
880
|
+
}());
|
|
803
881
|
}
|
|
804
882
|
catch (...)
|
|
805
883
|
{
|
|
@@ -816,7 +894,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
816
894
|
|
|
817
895
|
static PyObject* SystemUpdateManager_UnblockAutomaticRebootAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
818
896
|
{
|
|
819
|
-
auto arg_count =
|
|
897
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
820
898
|
|
|
821
899
|
if (arg_count == 1)
|
|
822
900
|
{
|
|
@@ -837,7 +915,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
837
915
|
|
|
838
916
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
839
917
|
|
|
840
|
-
return py::convert(
|
|
918
|
+
return py::convert([&]()
|
|
919
|
+
{
|
|
920
|
+
auto _gil = release_gil();
|
|
921
|
+
return winrt::Windows::System::Update::SystemUpdateManager::UnblockAutomaticRebootAsync(param0);
|
|
922
|
+
}());
|
|
841
923
|
}
|
|
842
924
|
catch (...)
|
|
843
925
|
{
|
|
@@ -869,7 +951,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
869
951
|
return nullptr;
|
|
870
952
|
}
|
|
871
953
|
|
|
872
|
-
return py::convert(
|
|
954
|
+
return py::convert([&]()
|
|
955
|
+
{
|
|
956
|
+
auto _gil = release_gil();
|
|
957
|
+
return winrt::Windows::System::Update::SystemUpdateManager::AttentionRequiredReason();
|
|
958
|
+
}());
|
|
873
959
|
}
|
|
874
960
|
catch (...)
|
|
875
961
|
{
|
|
@@ -895,7 +981,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
895
981
|
return nullptr;
|
|
896
982
|
}
|
|
897
983
|
|
|
898
|
-
return py::convert(
|
|
984
|
+
return py::convert([&]()
|
|
985
|
+
{
|
|
986
|
+
auto _gil = release_gil();
|
|
987
|
+
return winrt::Windows::System::Update::SystemUpdateManager::DownloadProgress();
|
|
988
|
+
}());
|
|
899
989
|
}
|
|
900
990
|
catch (...)
|
|
901
991
|
{
|
|
@@ -921,7 +1011,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
921
1011
|
return nullptr;
|
|
922
1012
|
}
|
|
923
1013
|
|
|
924
|
-
return py::convert(
|
|
1014
|
+
return py::convert([&]()
|
|
1015
|
+
{
|
|
1016
|
+
auto _gil = release_gil();
|
|
1017
|
+
return winrt::Windows::System::Update::SystemUpdateManager::ExtendedError();
|
|
1018
|
+
}());
|
|
925
1019
|
}
|
|
926
1020
|
catch (...)
|
|
927
1021
|
{
|
|
@@ -947,7 +1041,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
947
1041
|
return nullptr;
|
|
948
1042
|
}
|
|
949
1043
|
|
|
950
|
-
return py::convert(
|
|
1044
|
+
return py::convert([&]()
|
|
1045
|
+
{
|
|
1046
|
+
auto _gil = release_gil();
|
|
1047
|
+
return winrt::Windows::System::Update::SystemUpdateManager::InstallProgress();
|
|
1048
|
+
}());
|
|
951
1049
|
}
|
|
952
1050
|
catch (...)
|
|
953
1051
|
{
|
|
@@ -973,7 +1071,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
973
1071
|
return nullptr;
|
|
974
1072
|
}
|
|
975
1073
|
|
|
976
|
-
return py::convert(
|
|
1074
|
+
return py::convert([&]()
|
|
1075
|
+
{
|
|
1076
|
+
auto _gil = release_gil();
|
|
1077
|
+
return winrt::Windows::System::Update::SystemUpdateManager::LastErrorInfo();
|
|
1078
|
+
}());
|
|
977
1079
|
}
|
|
978
1080
|
catch (...)
|
|
979
1081
|
{
|
|
@@ -999,7 +1101,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
999
1101
|
return nullptr;
|
|
1000
1102
|
}
|
|
1001
1103
|
|
|
1002
|
-
return py::convert(
|
|
1104
|
+
return py::convert([&]()
|
|
1105
|
+
{
|
|
1106
|
+
auto _gil = release_gil();
|
|
1107
|
+
return winrt::Windows::System::Update::SystemUpdateManager::LastUpdateCheckTime();
|
|
1108
|
+
}());
|
|
1003
1109
|
}
|
|
1004
1110
|
catch (...)
|
|
1005
1111
|
{
|
|
@@ -1025,7 +1131,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
1025
1131
|
return nullptr;
|
|
1026
1132
|
}
|
|
1027
1133
|
|
|
1028
|
-
return py::convert(
|
|
1134
|
+
return py::convert([&]()
|
|
1135
|
+
{
|
|
1136
|
+
auto _gil = release_gil();
|
|
1137
|
+
return winrt::Windows::System::Update::SystemUpdateManager::LastUpdateInstallTime();
|
|
1138
|
+
}());
|
|
1029
1139
|
}
|
|
1030
1140
|
catch (...)
|
|
1031
1141
|
{
|
|
@@ -1051,7 +1161,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
1051
1161
|
return nullptr;
|
|
1052
1162
|
}
|
|
1053
1163
|
|
|
1054
|
-
return py::convert(
|
|
1164
|
+
return py::convert([&]()
|
|
1165
|
+
{
|
|
1166
|
+
auto _gil = release_gil();
|
|
1167
|
+
return winrt::Windows::System::Update::SystemUpdateManager::State();
|
|
1168
|
+
}());
|
|
1055
1169
|
}
|
|
1056
1170
|
catch (...)
|
|
1057
1171
|
{
|
|
@@ -1077,7 +1191,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
1077
1191
|
return nullptr;
|
|
1078
1192
|
}
|
|
1079
1193
|
|
|
1080
|
-
return py::convert(
|
|
1194
|
+
return py::convert([&]()
|
|
1195
|
+
{
|
|
1196
|
+
auto _gil = release_gil();
|
|
1197
|
+
return winrt::Windows::System::Update::SystemUpdateManager::UserActiveHoursEnd();
|
|
1198
|
+
}());
|
|
1081
1199
|
}
|
|
1082
1200
|
catch (...)
|
|
1083
1201
|
{
|
|
@@ -1103,7 +1221,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
1103
1221
|
return nullptr;
|
|
1104
1222
|
}
|
|
1105
1223
|
|
|
1106
|
-
return py::convert(
|
|
1224
|
+
return py::convert([&]()
|
|
1225
|
+
{
|
|
1226
|
+
auto _gil = release_gil();
|
|
1227
|
+
return winrt::Windows::System::Update::SystemUpdateManager::UserActiveHoursMax();
|
|
1228
|
+
}());
|
|
1107
1229
|
}
|
|
1108
1230
|
catch (...)
|
|
1109
1231
|
{
|
|
@@ -1129,7 +1251,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
1129
1251
|
return nullptr;
|
|
1130
1252
|
}
|
|
1131
1253
|
|
|
1132
|
-
return py::convert(
|
|
1254
|
+
return py::convert([&]()
|
|
1255
|
+
{
|
|
1256
|
+
auto _gil = release_gil();
|
|
1257
|
+
return winrt::Windows::System::Update::SystemUpdateManager::UserActiveHoursStart();
|
|
1258
|
+
}());
|
|
1133
1259
|
}
|
|
1134
1260
|
catch (...)
|
|
1135
1261
|
{
|
|
@@ -1157,7 +1283,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
1157
1283
|
|
|
1158
1284
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1159
1285
|
|
|
1160
|
-
return py::convert(
|
|
1286
|
+
return py::convert([&]()
|
|
1287
|
+
{
|
|
1288
|
+
auto _gil = release_gil();
|
|
1289
|
+
return winrt::Windows::System::Update::SystemUpdateManager::StateChanged(param0);
|
|
1290
|
+
}());
|
|
1161
1291
|
}
|
|
1162
1292
|
catch (...)
|
|
1163
1293
|
{
|
|
@@ -1185,7 +1315,11 @@ namespace py::cpp::Windows::System::Update
|
|
|
1185
1315
|
|
|
1186
1316
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1187
1317
|
|
|
1188
|
-
|
|
1318
|
+
{
|
|
1319
|
+
auto _gil = release_gil();
|
|
1320
|
+
winrt::Windows::System::Update::SystemUpdateManager::StateChanged(param0);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1189
1323
|
Py_RETURN_NONE;
|
|
1190
1324
|
}
|
|
1191
1325
|
catch (...)
|
|
@@ -1196,19 +1330,16 @@ namespace py::cpp::Windows::System::Update
|
|
|
1196
1330
|
}
|
|
1197
1331
|
|
|
1198
1332
|
static PyMethodDef _methods_SystemUpdateManager[] = {
|
|
1199
|
-
{ }
|
|
1200
|
-
};
|
|
1333
|
+
{ }};
|
|
1201
1334
|
|
|
1202
1335
|
static PyGetSetDef _getset_SystemUpdateManager[] = {
|
|
1203
|
-
{ }
|
|
1204
|
-
};
|
|
1336
|
+
{ }};
|
|
1205
1337
|
|
|
1206
1338
|
static PyType_Slot _type_slots_SystemUpdateManager[] = {
|
|
1207
1339
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemUpdateManager) },
|
|
1208
1340
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemUpdateManager) },
|
|
1209
1341
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemUpdateManager) },
|
|
1210
|
-
{ }
|
|
1211
|
-
};
|
|
1342
|
+
{ }};
|
|
1212
1343
|
|
|
1213
1344
|
static PyType_Spec type_spec_SystemUpdateManager = {
|
|
1214
1345
|
"winrt._winrt_windows_system_update.SystemUpdateManager",
|
|
@@ -1229,8 +1360,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
1229
1360
|
{ "user_active_hours_end", reinterpret_cast<getter>(SystemUpdateManager_get_UserActiveHoursEnd), nullptr, nullptr, nullptr },
|
|
1230
1361
|
{ "user_active_hours_max", reinterpret_cast<getter>(SystemUpdateManager_get_UserActiveHoursMax), nullptr, nullptr, nullptr },
|
|
1231
1362
|
{ "user_active_hours_start", reinterpret_cast<getter>(SystemUpdateManager_get_UserActiveHoursStart), nullptr, nullptr, nullptr },
|
|
1232
|
-
{ }
|
|
1233
|
-
};
|
|
1363
|
+
{ }};
|
|
1234
1364
|
|
|
1235
1365
|
static PyMethodDef methods_SystemUpdateManager_Static[] = {
|
|
1236
1366
|
{ "block_automatic_reboot_async", reinterpret_cast<PyCFunction>(SystemUpdateManager_BlockAutomaticRebootAsync), METH_VARARGS, nullptr },
|
|
@@ -1246,8 +1376,7 @@ namespace py::cpp::Windows::System::Update
|
|
|
1246
1376
|
{ "unblock_automatic_reboot_async", reinterpret_cast<PyCFunction>(SystemUpdateManager_UnblockAutomaticRebootAsync), METH_VARARGS, nullptr },
|
|
1247
1377
|
{ "add_state_changed", reinterpret_cast<PyCFunction>(SystemUpdateManager_add_StateChanged), METH_O, nullptr },
|
|
1248
1378
|
{ "remove_state_changed", reinterpret_cast<PyCFunction>(SystemUpdateManager_remove_StateChanged), METH_O, nullptr },
|
|
1249
|
-
{ }
|
|
1250
|
-
};
|
|
1379
|
+
{ }};
|
|
1251
1380
|
|
|
1252
1381
|
static PyType_Slot type_slots_SystemUpdateManager_Static[] =
|
|
1253
1382
|
{
|
|
@@ -1257,14 +1386,12 @@ namespace py::cpp::Windows::System::Update
|
|
|
1257
1386
|
{ }
|
|
1258
1387
|
};
|
|
1259
1388
|
|
|
1260
|
-
static PyType_Spec type_spec_SystemUpdateManager_Static =
|
|
1261
|
-
{
|
|
1389
|
+
static PyType_Spec type_spec_SystemUpdateManager_Static = {
|
|
1262
1390
|
"winrt._winrt_windows_system_update.SystemUpdateManager_Static",
|
|
1263
1391
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
1264
1392
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
1265
1393
|
Py_TPFLAGS_DEFAULT,
|
|
1266
|
-
type_slots_SystemUpdateManager_Static
|
|
1267
|
-
};
|
|
1394
|
+
type_slots_SystemUpdateManager_Static};
|
|
1268
1395
|
|
|
1269
1396
|
// ----- Windows.System.Update Initialization --------------------
|
|
1270
1397
|
|
|
@@ -1298,6 +1425,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_update(void) noexcept
|
|
|
1298
1425
|
return nullptr;
|
|
1299
1426
|
}
|
|
1300
1427
|
|
|
1428
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1429
|
+
if (!inspectable_meta_type)
|
|
1430
|
+
{
|
|
1431
|
+
return nullptr;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1301
1434
|
auto object_type = py::get_object_type();
|
|
1302
1435
|
if (!object_type)
|
|
1303
1436
|
{
|
|
@@ -1311,19 +1444,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_update(void) noexcept
|
|
|
1311
1444
|
return nullptr;
|
|
1312
1445
|
}
|
|
1313
1446
|
|
|
1314
|
-
py::pytype_handle SystemUpdateItem_type{py::register_python_type(module.get(), &type_spec_SystemUpdateItem, object_bases.get(),
|
|
1447
|
+
py::pytype_handle SystemUpdateItem_type{py::register_python_type(module.get(), &type_spec_SystemUpdateItem, object_bases.get(), inspectable_meta_type)};
|
|
1315
1448
|
if (!SystemUpdateItem_type)
|
|
1316
1449
|
{
|
|
1317
1450
|
return nullptr;
|
|
1318
1451
|
}
|
|
1319
1452
|
|
|
1320
|
-
py::pytype_handle SystemUpdateLastErrorInfo_type{py::register_python_type(module.get(), &type_spec_SystemUpdateLastErrorInfo, object_bases.get(),
|
|
1453
|
+
py::pytype_handle SystemUpdateLastErrorInfo_type{py::register_python_type(module.get(), &type_spec_SystemUpdateLastErrorInfo, object_bases.get(), inspectable_meta_type)};
|
|
1321
1454
|
if (!SystemUpdateLastErrorInfo_type)
|
|
1322
1455
|
{
|
|
1323
1456
|
return nullptr;
|
|
1324
1457
|
}
|
|
1325
1458
|
|
|
1326
|
-
py::pyobj_handle
|
|
1459
|
+
py::pyobj_handle SystemUpdateManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1460
|
+
if (!SystemUpdateManager_Static_bases)
|
|
1461
|
+
{
|
|
1462
|
+
return nullptr;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
py::pyobj_handle type_SystemUpdateManager_Static{PyType_FromSpecWithBases(&type_spec_SystemUpdateManager_Static, SystemUpdateManager_Static_bases.get())};
|
|
1327
1466
|
if (!type_SystemUpdateManager_Static)
|
|
1328
1467
|
{
|
|
1329
1468
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
|
|
15
|
+
from winrt.windows.system.update import SystemUpdateAttentionRequiredReason, SystemUpdateItemState, SystemUpdateManagerState, SystemUpdateStartInstallAction
|
|
16
|
+
|
|
17
|
+
Self = typing.TypeVar('Self')
|
|
18
|
+
|
|
19
|
+
@typing.final
|
|
20
|
+
class SystemUpdateItem(winrt.system.Object):
|
|
21
|
+
# System.String Windows.System.Update.SystemUpdateItem::get_Description()
|
|
22
|
+
@_property
|
|
23
|
+
def description(self) -> str: ...
|
|
24
|
+
# System.Double Windows.System.Update.SystemUpdateItem::get_DownloadProgress()
|
|
25
|
+
@_property
|
|
26
|
+
def download_progress(self) -> winrt.system.Double: ...
|
|
27
|
+
# Windows.Foundation.HResult Windows.System.Update.SystemUpdateItem::get_ExtendedError()
|
|
28
|
+
@_property
|
|
29
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
30
|
+
# System.String Windows.System.Update.SystemUpdateItem::get_Id()
|
|
31
|
+
@_property
|
|
32
|
+
def id(self) -> str: ...
|
|
33
|
+
# System.Double Windows.System.Update.SystemUpdateItem::get_InstallProgress()
|
|
34
|
+
@_property
|
|
35
|
+
def install_progress(self) -> winrt.system.Double: ...
|
|
36
|
+
# System.UInt32 Windows.System.Update.SystemUpdateItem::get_Revision()
|
|
37
|
+
@_property
|
|
38
|
+
def revision(self) -> winrt.system.UInt32: ...
|
|
39
|
+
# Windows.System.Update.SystemUpdateItemState Windows.System.Update.SystemUpdateItem::get_State()
|
|
40
|
+
@_property
|
|
41
|
+
def state(self) -> SystemUpdateItemState: ...
|
|
42
|
+
# System.String Windows.System.Update.SystemUpdateItem::get_Title()
|
|
43
|
+
@_property
|
|
44
|
+
def title(self) -> str: ...
|
|
45
|
+
|
|
46
|
+
@typing.final
|
|
47
|
+
class SystemUpdateLastErrorInfo(winrt.system.Object):
|
|
48
|
+
# Windows.Foundation.HResult Windows.System.Update.SystemUpdateLastErrorInfo::get_ExtendedError()
|
|
49
|
+
@_property
|
|
50
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
51
|
+
# System.Boolean Windows.System.Update.SystemUpdateLastErrorInfo::get_IsInteractive()
|
|
52
|
+
@_property
|
|
53
|
+
def is_interactive(self) -> bool: ...
|
|
54
|
+
# Windows.System.Update.SystemUpdateManagerState Windows.System.Update.SystemUpdateLastErrorInfo::get_State()
|
|
55
|
+
@_property
|
|
56
|
+
def state(self) -> SystemUpdateManagerState: ...
|
|
57
|
+
|
|
58
|
+
@typing.final
|
|
59
|
+
class SystemUpdateManager_Static(winrt._winrt.IInspectable_Static):
|
|
60
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.System.Update.SystemUpdateManager::BlockAutomaticRebootAsync(System.String)
|
|
61
|
+
def block_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
62
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Windows.System.Update.SystemUpdateManager::GetAutomaticRebootBlockIds()
|
|
63
|
+
def get_automatic_reboot_block_ids(cls) -> typing.Sequence[str]: ...
|
|
64
|
+
# System.String Windows.System.Update.SystemUpdateManager::GetFlightRing()
|
|
65
|
+
def get_flight_ring(cls) -> str: ...
|
|
66
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.System.Update.SystemUpdateItem> Windows.System.Update.SystemUpdateManager::GetUpdateItems()
|
|
67
|
+
def get_update_items(cls) -> typing.Sequence[SystemUpdateItem]: ...
|
|
68
|
+
# System.Boolean Windows.System.Update.SystemUpdateManager::IsSupported()
|
|
69
|
+
def is_supported(cls) -> bool: ...
|
|
70
|
+
# System.Void Windows.System.Update.SystemUpdateManager::RebootToCompleteInstall()
|
|
71
|
+
def reboot_to_complete_install(cls) -> None: ...
|
|
72
|
+
# System.Boolean Windows.System.Update.SystemUpdateManager::SetFlightRing(System.String)
|
|
73
|
+
def set_flight_ring(cls, flight_ring: str, /) -> bool: ...
|
|
74
|
+
# System.Void Windows.System.Update.SystemUpdateManager::StartCancelUpdates()
|
|
75
|
+
def start_cancel_updates(cls) -> None: ...
|
|
76
|
+
# System.Void Windows.System.Update.SystemUpdateManager::StartInstall(Windows.System.Update.SystemUpdateStartInstallAction)
|
|
77
|
+
def start_install(cls, action: SystemUpdateStartInstallAction, /) -> None: ...
|
|
78
|
+
# System.Boolean Windows.System.Update.SystemUpdateManager::TrySetUserActiveHours(Windows.Foundation.TimeSpan,Windows.Foundation.TimeSpan)
|
|
79
|
+
def try_set_user_active_hours(cls, start: datetime.timedelta, end: datetime.timedelta, /) -> bool: ...
|
|
80
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.System.Update.SystemUpdateManager::UnblockAutomaticRebootAsync(System.String)
|
|
81
|
+
def unblock_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
82
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Update.SystemUpdateManager::add_StateChanged(Windows.Foundation.EventHandler`1<System.Object>)
|
|
83
|
+
def add_state_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
84
|
+
# System.Void Windows.System.Update.SystemUpdateManager::remove_StateChanged(Windows.Foundation.EventRegistrationToken)
|
|
85
|
+
def remove_state_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
86
|
+
# Windows.System.Update.SystemUpdateAttentionRequiredReason Windows.System.Update.SystemUpdateManager::get_AttentionRequiredReason()
|
|
87
|
+
@_property
|
|
88
|
+
def attention_required_reason(cls) -> SystemUpdateAttentionRequiredReason: ...
|
|
89
|
+
# System.Double Windows.System.Update.SystemUpdateManager::get_DownloadProgress()
|
|
90
|
+
@_property
|
|
91
|
+
def download_progress(cls) -> winrt.system.Double: ...
|
|
92
|
+
# Windows.Foundation.HResult Windows.System.Update.SystemUpdateManager::get_ExtendedError()
|
|
93
|
+
@_property
|
|
94
|
+
def extended_error(cls) -> windows_foundation.HResult: ...
|
|
95
|
+
# System.Double Windows.System.Update.SystemUpdateManager::get_InstallProgress()
|
|
96
|
+
@_property
|
|
97
|
+
def install_progress(cls) -> winrt.system.Double: ...
|
|
98
|
+
# Windows.System.Update.SystemUpdateLastErrorInfo Windows.System.Update.SystemUpdateManager::get_LastErrorInfo()
|
|
99
|
+
@_property
|
|
100
|
+
def last_error_info(cls) -> SystemUpdateLastErrorInfo: ...
|
|
101
|
+
# Windows.Foundation.DateTime Windows.System.Update.SystemUpdateManager::get_LastUpdateCheckTime()
|
|
102
|
+
@_property
|
|
103
|
+
def last_update_check_time(cls) -> datetime.datetime: ...
|
|
104
|
+
# Windows.Foundation.DateTime Windows.System.Update.SystemUpdateManager::get_LastUpdateInstallTime()
|
|
105
|
+
@_property
|
|
106
|
+
def last_update_install_time(cls) -> datetime.datetime: ...
|
|
107
|
+
# Windows.System.Update.SystemUpdateManagerState Windows.System.Update.SystemUpdateManager::get_State()
|
|
108
|
+
@_property
|
|
109
|
+
def state(cls) -> SystemUpdateManagerState: ...
|
|
110
|
+
# Windows.Foundation.TimeSpan Windows.System.Update.SystemUpdateManager::get_UserActiveHoursEnd()
|
|
111
|
+
@_property
|
|
112
|
+
def user_active_hours_end(cls) -> datetime.timedelta: ...
|
|
113
|
+
# System.Int32 Windows.System.Update.SystemUpdateManager::get_UserActiveHoursMax()
|
|
114
|
+
@_property
|
|
115
|
+
def user_active_hours_max(cls) -> winrt.system.Int32: ...
|
|
116
|
+
# Windows.Foundation.TimeSpan Windows.System.Update.SystemUpdateManager::get_UserActiveHoursStart()
|
|
117
|
+
@_property
|
|
118
|
+
def user_active_hours_start(cls) -> datetime.timedelta: ...
|
|
119
|
+
|
|
120
|
+
@typing.final
|
|
121
|
+
class SystemUpdateManager(winrt.system.Object, metaclass=SystemUpdateManager_Static):
|
|
122
|
+
pass
|
|
123
|
+
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_system_update import (
|
|
7
|
+
SystemUpdateItem,
|
|
8
|
+
SystemUpdateLastErrorInfo,
|
|
9
|
+
SystemUpdateManager,
|
|
10
|
+
)
|
|
7
11
|
|
|
8
12
|
__all__ = [
|
|
9
13
|
"SystemUpdateAttentionRequiredReason",
|
|
@@ -51,6 +55,3 @@ class SystemUpdateStartInstallAction(enum.IntEnum):
|
|
|
51
55
|
UP_TO_REBOOT = 0
|
|
52
56
|
ALLOW_REBOOT = 1
|
|
53
57
|
|
|
54
|
-
SystemUpdateItem = _winrt_windows_system_update.SystemUpdateItem
|
|
55
|
-
SystemUpdateLastErrorInfo = _winrt_windows_system_update.SystemUpdateLastErrorInfo
|
|
56
|
-
SystemUpdateManager = _winrt_windows_system_update.SystemUpdateManager
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Update
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.0
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.foundation as windows_foundation
|
|
13
|
-
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
-
|
|
15
|
-
from winrt.windows.system.update import SystemUpdateAttentionRequiredReason, SystemUpdateItemState, SystemUpdateManagerState, SystemUpdateStartInstallAction
|
|
16
|
-
|
|
17
|
-
Self = typing.TypeVar('Self')
|
|
18
|
-
|
|
19
|
-
@typing.final
|
|
20
|
-
class SystemUpdateItem(winrt.system.Object):
|
|
21
|
-
@staticmethod
|
|
22
|
-
def _from(obj: winrt.system.Object, /) -> SystemUpdateItem: ...
|
|
23
|
-
@_property
|
|
24
|
-
def description(self) -> str: ...
|
|
25
|
-
@_property
|
|
26
|
-
def download_progress(self) -> winrt.system.Double: ...
|
|
27
|
-
@_property
|
|
28
|
-
def extended_error(self) -> windows_foundation.HResult: ...
|
|
29
|
-
@_property
|
|
30
|
-
def id(self) -> str: ...
|
|
31
|
-
@_property
|
|
32
|
-
def install_progress(self) -> winrt.system.Double: ...
|
|
33
|
-
@_property
|
|
34
|
-
def revision(self) -> winrt.system.UInt32: ...
|
|
35
|
-
@_property
|
|
36
|
-
def state(self) -> SystemUpdateItemState: ...
|
|
37
|
-
@_property
|
|
38
|
-
def title(self) -> str: ...
|
|
39
|
-
|
|
40
|
-
@typing.final
|
|
41
|
-
class SystemUpdateLastErrorInfo(winrt.system.Object):
|
|
42
|
-
@staticmethod
|
|
43
|
-
def _from(obj: winrt.system.Object, /) -> SystemUpdateLastErrorInfo: ...
|
|
44
|
-
@_property
|
|
45
|
-
def extended_error(self) -> windows_foundation.HResult: ...
|
|
46
|
-
@_property
|
|
47
|
-
def is_interactive(self) -> bool: ...
|
|
48
|
-
@_property
|
|
49
|
-
def state(self) -> SystemUpdateManagerState: ...
|
|
50
|
-
|
|
51
|
-
@typing.final
|
|
52
|
-
class SystemUpdateManager_Static(type):
|
|
53
|
-
def block_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
54
|
-
def get_automatic_reboot_block_ids(cls) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
55
|
-
def get_flight_ring(cls) -> str: ...
|
|
56
|
-
def get_update_items(cls) -> typing.Optional[windows_foundation_collections.IVectorView[SystemUpdateItem]]: ...
|
|
57
|
-
def is_supported(cls) -> bool: ...
|
|
58
|
-
def reboot_to_complete_install(cls) -> None: ...
|
|
59
|
-
def set_flight_ring(cls, flight_ring: str, /) -> bool: ...
|
|
60
|
-
def start_cancel_updates(cls) -> None: ...
|
|
61
|
-
def start_install(cls, action: SystemUpdateStartInstallAction, /) -> None: ...
|
|
62
|
-
def try_set_user_active_hours(cls, start: datetime.timedelta, end: datetime.timedelta, /) -> bool: ...
|
|
63
|
-
def unblock_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
64
|
-
def add_state_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
65
|
-
def remove_state_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
66
|
-
@_property
|
|
67
|
-
def attention_required_reason(cls) -> SystemUpdateAttentionRequiredReason: ...
|
|
68
|
-
@_property
|
|
69
|
-
def download_progress(cls) -> winrt.system.Double: ...
|
|
70
|
-
@_property
|
|
71
|
-
def extended_error(cls) -> windows_foundation.HResult: ...
|
|
72
|
-
@_property
|
|
73
|
-
def install_progress(cls) -> winrt.system.Double: ...
|
|
74
|
-
@_property
|
|
75
|
-
def last_error_info(cls) -> typing.Optional[SystemUpdateLastErrorInfo]: ...
|
|
76
|
-
@_property
|
|
77
|
-
def last_update_check_time(cls) -> datetime.datetime: ...
|
|
78
|
-
@_property
|
|
79
|
-
def last_update_install_time(cls) -> datetime.datetime: ...
|
|
80
|
-
@_property
|
|
81
|
-
def state(cls) -> SystemUpdateManagerState: ...
|
|
82
|
-
@_property
|
|
83
|
-
def user_active_hours_end(cls) -> datetime.timedelta: ...
|
|
84
|
-
@_property
|
|
85
|
-
def user_active_hours_max(cls) -> winrt.system.Int32: ...
|
|
86
|
-
@_property
|
|
87
|
-
def user_active_hours_start(cls) -> datetime.timedelta: ...
|
|
88
|
-
|
|
89
|
-
@typing.final
|
|
90
|
-
class SystemUpdateManager(winrt.system.Object, metaclass=SystemUpdateManager_Static):
|
|
91
|
-
pass
|
|
92
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|