winrt-Windows.System.Power 2.3.0__tar.gz → 3.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_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/PKG-INFO +6 -6
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/all-requirements.txt +2 -2
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/py.Windows.System.Power.cpp +234 -83
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/pyproject.toml +4 -4
- winrt_windows_system_power-3.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/requirements.txt +2 -2
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/setup.py +1 -1
- winrt_windows_system_power-3.1.0/winrt/_winrt_windows_system_power.pyi +139 -0
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/winrt/windows/system/power/__init__.py +6 -5
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/winrt_Windows.System.Power.egg-info/PKG-INFO +6 -6
- winrt_windows_system_power-3.1.0/winrt_Windows.System.Power.egg-info/requires.txt +4 -0
- winrt_windows_system_power-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_system_power-2.3.0/winrt/_winrt_windows_system_power.pyi +0 -94
- winrt_windows_system_power-2.3.0/winrt_Windows.System.Power.egg-info/requires.txt +0 -4
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/README.md +0 -0
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/setup.cfg +0 -0
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/winrt/windows/system/power/py.typed +0 -0
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/winrt_Windows.System.Power.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/winrt_Windows.System.Power.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/winrt_Windows.System.Power.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.System.Power
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,11 +10,11 @@ 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.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.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
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation[all]==
|
|
3
|
+
winrt-Windows.Foundation[all]==3.1.0
|
{winrt_windows_system_power-2.3.0 → winrt_windows_system_power-3.1.0}/py.Windows.System.Power.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.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Power.h"
|
|
4
4
|
|
|
@@ -30,7 +30,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
30
30
|
return nullptr;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
return py::convert(
|
|
33
|
+
return py::convert([&]()
|
|
34
|
+
{
|
|
35
|
+
auto _gil = release_gil();
|
|
36
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::ExcessiveUsageLevel();
|
|
37
|
+
}());
|
|
34
38
|
}
|
|
35
39
|
catch (...)
|
|
36
40
|
{
|
|
@@ -56,7 +60,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
56
60
|
return nullptr;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
|
-
return py::convert(
|
|
63
|
+
return py::convert([&]()
|
|
64
|
+
{
|
|
65
|
+
auto _gil = release_gil();
|
|
66
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::LowUsageLevel();
|
|
67
|
+
}());
|
|
60
68
|
}
|
|
61
69
|
catch (...)
|
|
62
70
|
{
|
|
@@ -82,7 +90,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
82
90
|
return nullptr;
|
|
83
91
|
}
|
|
84
92
|
|
|
85
|
-
return py::convert(
|
|
93
|
+
return py::convert([&]()
|
|
94
|
+
{
|
|
95
|
+
auto _gil = release_gil();
|
|
96
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::MaxAcceptableUsageLevel();
|
|
97
|
+
}());
|
|
86
98
|
}
|
|
87
99
|
catch (...)
|
|
88
100
|
{
|
|
@@ -108,7 +120,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
108
120
|
return nullptr;
|
|
109
121
|
}
|
|
110
122
|
|
|
111
|
-
return py::convert(
|
|
123
|
+
return py::convert([&]()
|
|
124
|
+
{
|
|
125
|
+
auto _gil = release_gil();
|
|
126
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::NearMaxAcceptableUsageLevel();
|
|
127
|
+
}());
|
|
112
128
|
}
|
|
113
129
|
catch (...)
|
|
114
130
|
{
|
|
@@ -134,7 +150,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
134
150
|
return nullptr;
|
|
135
151
|
}
|
|
136
152
|
|
|
137
|
-
return py::convert(
|
|
153
|
+
return py::convert([&]()
|
|
154
|
+
{
|
|
155
|
+
auto _gil = release_gil();
|
|
156
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::NearTerminationUsageLevel();
|
|
157
|
+
}());
|
|
138
158
|
}
|
|
139
159
|
catch (...)
|
|
140
160
|
{
|
|
@@ -160,7 +180,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
160
180
|
return nullptr;
|
|
161
181
|
}
|
|
162
182
|
|
|
163
|
-
return py::convert(
|
|
183
|
+
return py::convert([&]()
|
|
184
|
+
{
|
|
185
|
+
auto _gil = release_gil();
|
|
186
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::RecentEnergyUsage();
|
|
187
|
+
}());
|
|
164
188
|
}
|
|
165
189
|
catch (...)
|
|
166
190
|
{
|
|
@@ -186,7 +210,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
186
210
|
return nullptr;
|
|
187
211
|
}
|
|
188
212
|
|
|
189
|
-
return py::convert(
|
|
213
|
+
return py::convert([&]()
|
|
214
|
+
{
|
|
215
|
+
auto _gil = release_gil();
|
|
216
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::RecentEnergyUsageLevel();
|
|
217
|
+
}());
|
|
190
218
|
}
|
|
191
219
|
catch (...)
|
|
192
220
|
{
|
|
@@ -212,7 +240,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
212
240
|
return nullptr;
|
|
213
241
|
}
|
|
214
242
|
|
|
215
|
-
return py::convert(
|
|
243
|
+
return py::convert([&]()
|
|
244
|
+
{
|
|
245
|
+
auto _gil = release_gil();
|
|
246
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::TerminationUsageLevel();
|
|
247
|
+
}());
|
|
216
248
|
}
|
|
217
249
|
catch (...)
|
|
218
250
|
{
|
|
@@ -240,7 +272,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
240
272
|
|
|
241
273
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
242
274
|
|
|
243
|
-
return py::convert(
|
|
275
|
+
return py::convert([&]()
|
|
276
|
+
{
|
|
277
|
+
auto _gil = release_gil();
|
|
278
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::RecentEnergyUsageIncreased(param0);
|
|
279
|
+
}());
|
|
244
280
|
}
|
|
245
281
|
catch (...)
|
|
246
282
|
{
|
|
@@ -268,7 +304,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
268
304
|
|
|
269
305
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
270
306
|
|
|
271
|
-
|
|
307
|
+
{
|
|
308
|
+
auto _gil = release_gil();
|
|
309
|
+
winrt::Windows::System::Power::BackgroundEnergyManager::RecentEnergyUsageIncreased(param0);
|
|
310
|
+
}
|
|
311
|
+
|
|
272
312
|
Py_RETURN_NONE;
|
|
273
313
|
}
|
|
274
314
|
catch (...)
|
|
@@ -297,7 +337,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
297
337
|
|
|
298
338
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
299
339
|
|
|
300
|
-
return py::convert(
|
|
340
|
+
return py::convert([&]()
|
|
341
|
+
{
|
|
342
|
+
auto _gil = release_gil();
|
|
343
|
+
return winrt::Windows::System::Power::BackgroundEnergyManager::RecentEnergyUsageReturnedToLow(param0);
|
|
344
|
+
}());
|
|
301
345
|
}
|
|
302
346
|
catch (...)
|
|
303
347
|
{
|
|
@@ -325,7 +369,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
325
369
|
|
|
326
370
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
327
371
|
|
|
328
|
-
|
|
372
|
+
{
|
|
373
|
+
auto _gil = release_gil();
|
|
374
|
+
winrt::Windows::System::Power::BackgroundEnergyManager::RecentEnergyUsageReturnedToLow(param0);
|
|
375
|
+
}
|
|
376
|
+
|
|
329
377
|
Py_RETURN_NONE;
|
|
330
378
|
}
|
|
331
379
|
catch (...)
|
|
@@ -336,19 +384,16 @@ namespace py::cpp::Windows::System::Power
|
|
|
336
384
|
}
|
|
337
385
|
|
|
338
386
|
static PyMethodDef _methods_BackgroundEnergyManager[] = {
|
|
339
|
-
{ }
|
|
340
|
-
};
|
|
387
|
+
{ }};
|
|
341
388
|
|
|
342
389
|
static PyGetSetDef _getset_BackgroundEnergyManager[] = {
|
|
343
|
-
{ }
|
|
344
|
-
};
|
|
390
|
+
{ }};
|
|
345
391
|
|
|
346
392
|
static PyType_Slot _type_slots_BackgroundEnergyManager[] = {
|
|
347
393
|
{ Py_tp_new, reinterpret_cast<void*>(_new_BackgroundEnergyManager) },
|
|
348
394
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_BackgroundEnergyManager) },
|
|
349
395
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_BackgroundEnergyManager) },
|
|
350
|
-
{ }
|
|
351
|
-
};
|
|
396
|
+
{ }};
|
|
352
397
|
|
|
353
398
|
static PyType_Spec type_spec_BackgroundEnergyManager = {
|
|
354
399
|
"winrt._winrt_windows_system_power.BackgroundEnergyManager",
|
|
@@ -366,16 +411,14 @@ namespace py::cpp::Windows::System::Power
|
|
|
366
411
|
{ "recent_energy_usage", reinterpret_cast<getter>(BackgroundEnergyManager_get_RecentEnergyUsage), nullptr, nullptr, nullptr },
|
|
367
412
|
{ "recent_energy_usage_level", reinterpret_cast<getter>(BackgroundEnergyManager_get_RecentEnergyUsageLevel), nullptr, nullptr, nullptr },
|
|
368
413
|
{ "termination_usage_level", reinterpret_cast<getter>(BackgroundEnergyManager_get_TerminationUsageLevel), nullptr, nullptr, nullptr },
|
|
369
|
-
{ }
|
|
370
|
-
};
|
|
414
|
+
{ }};
|
|
371
415
|
|
|
372
416
|
static PyMethodDef methods_BackgroundEnergyManager_Static[] = {
|
|
373
417
|
{ "add_recent_energy_usage_increased", reinterpret_cast<PyCFunction>(BackgroundEnergyManager_add_RecentEnergyUsageIncreased), METH_O, nullptr },
|
|
374
418
|
{ "remove_recent_energy_usage_increased", reinterpret_cast<PyCFunction>(BackgroundEnergyManager_remove_RecentEnergyUsageIncreased), METH_O, nullptr },
|
|
375
419
|
{ "add_recent_energy_usage_returned_to_low", reinterpret_cast<PyCFunction>(BackgroundEnergyManager_add_RecentEnergyUsageReturnedToLow), METH_O, nullptr },
|
|
376
420
|
{ "remove_recent_energy_usage_returned_to_low", reinterpret_cast<PyCFunction>(BackgroundEnergyManager_remove_RecentEnergyUsageReturnedToLow), METH_O, nullptr },
|
|
377
|
-
{ }
|
|
378
|
-
};
|
|
421
|
+
{ }};
|
|
379
422
|
|
|
380
423
|
static PyType_Slot type_slots_BackgroundEnergyManager_Static[] =
|
|
381
424
|
{
|
|
@@ -385,14 +428,12 @@ namespace py::cpp::Windows::System::Power
|
|
|
385
428
|
{ }
|
|
386
429
|
};
|
|
387
430
|
|
|
388
|
-
static PyType_Spec type_spec_BackgroundEnergyManager_Static =
|
|
389
|
-
{
|
|
431
|
+
static PyType_Spec type_spec_BackgroundEnergyManager_Static = {
|
|
390
432
|
"winrt._winrt_windows_system_power.BackgroundEnergyManager_Static",
|
|
391
433
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
392
434
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
393
435
|
Py_TPFLAGS_DEFAULT,
|
|
394
|
-
type_slots_BackgroundEnergyManager_Static
|
|
395
|
-
};
|
|
436
|
+
type_slots_BackgroundEnergyManager_Static};
|
|
396
437
|
|
|
397
438
|
// ----- ForegroundEnergyManager class --------------------
|
|
398
439
|
|
|
@@ -420,7 +461,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
420
461
|
return nullptr;
|
|
421
462
|
}
|
|
422
463
|
|
|
423
|
-
return py::convert(
|
|
464
|
+
return py::convert([&]()
|
|
465
|
+
{
|
|
466
|
+
auto _gil = release_gil();
|
|
467
|
+
return winrt::Windows::System::Power::ForegroundEnergyManager::ExcessiveUsageLevel();
|
|
468
|
+
}());
|
|
424
469
|
}
|
|
425
470
|
catch (...)
|
|
426
471
|
{
|
|
@@ -446,7 +491,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
446
491
|
return nullptr;
|
|
447
492
|
}
|
|
448
493
|
|
|
449
|
-
return py::convert(
|
|
494
|
+
return py::convert([&]()
|
|
495
|
+
{
|
|
496
|
+
auto _gil = release_gil();
|
|
497
|
+
return winrt::Windows::System::Power::ForegroundEnergyManager::LowUsageLevel();
|
|
498
|
+
}());
|
|
450
499
|
}
|
|
451
500
|
catch (...)
|
|
452
501
|
{
|
|
@@ -472,7 +521,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
472
521
|
return nullptr;
|
|
473
522
|
}
|
|
474
523
|
|
|
475
|
-
return py::convert(
|
|
524
|
+
return py::convert([&]()
|
|
525
|
+
{
|
|
526
|
+
auto _gil = release_gil();
|
|
527
|
+
return winrt::Windows::System::Power::ForegroundEnergyManager::MaxAcceptableUsageLevel();
|
|
528
|
+
}());
|
|
476
529
|
}
|
|
477
530
|
catch (...)
|
|
478
531
|
{
|
|
@@ -498,7 +551,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
498
551
|
return nullptr;
|
|
499
552
|
}
|
|
500
553
|
|
|
501
|
-
return py::convert(
|
|
554
|
+
return py::convert([&]()
|
|
555
|
+
{
|
|
556
|
+
auto _gil = release_gil();
|
|
557
|
+
return winrt::Windows::System::Power::ForegroundEnergyManager::NearMaxAcceptableUsageLevel();
|
|
558
|
+
}());
|
|
502
559
|
}
|
|
503
560
|
catch (...)
|
|
504
561
|
{
|
|
@@ -524,7 +581,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
524
581
|
return nullptr;
|
|
525
582
|
}
|
|
526
583
|
|
|
527
|
-
return py::convert(
|
|
584
|
+
return py::convert([&]()
|
|
585
|
+
{
|
|
586
|
+
auto _gil = release_gil();
|
|
587
|
+
return winrt::Windows::System::Power::ForegroundEnergyManager::RecentEnergyUsage();
|
|
588
|
+
}());
|
|
528
589
|
}
|
|
529
590
|
catch (...)
|
|
530
591
|
{
|
|
@@ -550,7 +611,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
550
611
|
return nullptr;
|
|
551
612
|
}
|
|
552
613
|
|
|
553
|
-
return py::convert(
|
|
614
|
+
return py::convert([&]()
|
|
615
|
+
{
|
|
616
|
+
auto _gil = release_gil();
|
|
617
|
+
return winrt::Windows::System::Power::ForegroundEnergyManager::RecentEnergyUsageLevel();
|
|
618
|
+
}());
|
|
554
619
|
}
|
|
555
620
|
catch (...)
|
|
556
621
|
{
|
|
@@ -578,7 +643,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
578
643
|
|
|
579
644
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
580
645
|
|
|
581
|
-
return py::convert(
|
|
646
|
+
return py::convert([&]()
|
|
647
|
+
{
|
|
648
|
+
auto _gil = release_gil();
|
|
649
|
+
return winrt::Windows::System::Power::ForegroundEnergyManager::RecentEnergyUsageIncreased(param0);
|
|
650
|
+
}());
|
|
582
651
|
}
|
|
583
652
|
catch (...)
|
|
584
653
|
{
|
|
@@ -606,7 +675,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
606
675
|
|
|
607
676
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
608
677
|
|
|
609
|
-
|
|
678
|
+
{
|
|
679
|
+
auto _gil = release_gil();
|
|
680
|
+
winrt::Windows::System::Power::ForegroundEnergyManager::RecentEnergyUsageIncreased(param0);
|
|
681
|
+
}
|
|
682
|
+
|
|
610
683
|
Py_RETURN_NONE;
|
|
611
684
|
}
|
|
612
685
|
catch (...)
|
|
@@ -635,7 +708,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
635
708
|
|
|
636
709
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
637
710
|
|
|
638
|
-
return py::convert(
|
|
711
|
+
return py::convert([&]()
|
|
712
|
+
{
|
|
713
|
+
auto _gil = release_gil();
|
|
714
|
+
return winrt::Windows::System::Power::ForegroundEnergyManager::RecentEnergyUsageReturnedToLow(param0);
|
|
715
|
+
}());
|
|
639
716
|
}
|
|
640
717
|
catch (...)
|
|
641
718
|
{
|
|
@@ -663,7 +740,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
663
740
|
|
|
664
741
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
665
742
|
|
|
666
|
-
|
|
743
|
+
{
|
|
744
|
+
auto _gil = release_gil();
|
|
745
|
+
winrt::Windows::System::Power::ForegroundEnergyManager::RecentEnergyUsageReturnedToLow(param0);
|
|
746
|
+
}
|
|
747
|
+
|
|
667
748
|
Py_RETURN_NONE;
|
|
668
749
|
}
|
|
669
750
|
catch (...)
|
|
@@ -674,19 +755,16 @@ namespace py::cpp::Windows::System::Power
|
|
|
674
755
|
}
|
|
675
756
|
|
|
676
757
|
static PyMethodDef _methods_ForegroundEnergyManager[] = {
|
|
677
|
-
{ }
|
|
678
|
-
};
|
|
758
|
+
{ }};
|
|
679
759
|
|
|
680
760
|
static PyGetSetDef _getset_ForegroundEnergyManager[] = {
|
|
681
|
-
{ }
|
|
682
|
-
};
|
|
761
|
+
{ }};
|
|
683
762
|
|
|
684
763
|
static PyType_Slot _type_slots_ForegroundEnergyManager[] = {
|
|
685
764
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ForegroundEnergyManager) },
|
|
686
765
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ForegroundEnergyManager) },
|
|
687
766
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ForegroundEnergyManager) },
|
|
688
|
-
{ }
|
|
689
|
-
};
|
|
767
|
+
{ }};
|
|
690
768
|
|
|
691
769
|
static PyType_Spec type_spec_ForegroundEnergyManager = {
|
|
692
770
|
"winrt._winrt_windows_system_power.ForegroundEnergyManager",
|
|
@@ -702,16 +780,14 @@ namespace py::cpp::Windows::System::Power
|
|
|
702
780
|
{ "near_max_acceptable_usage_level", reinterpret_cast<getter>(ForegroundEnergyManager_get_NearMaxAcceptableUsageLevel), nullptr, nullptr, nullptr },
|
|
703
781
|
{ "recent_energy_usage", reinterpret_cast<getter>(ForegroundEnergyManager_get_RecentEnergyUsage), nullptr, nullptr, nullptr },
|
|
704
782
|
{ "recent_energy_usage_level", reinterpret_cast<getter>(ForegroundEnergyManager_get_RecentEnergyUsageLevel), nullptr, nullptr, nullptr },
|
|
705
|
-
{ }
|
|
706
|
-
};
|
|
783
|
+
{ }};
|
|
707
784
|
|
|
708
785
|
static PyMethodDef methods_ForegroundEnergyManager_Static[] = {
|
|
709
786
|
{ "add_recent_energy_usage_increased", reinterpret_cast<PyCFunction>(ForegroundEnergyManager_add_RecentEnergyUsageIncreased), METH_O, nullptr },
|
|
710
787
|
{ "remove_recent_energy_usage_increased", reinterpret_cast<PyCFunction>(ForegroundEnergyManager_remove_RecentEnergyUsageIncreased), METH_O, nullptr },
|
|
711
788
|
{ "add_recent_energy_usage_returned_to_low", reinterpret_cast<PyCFunction>(ForegroundEnergyManager_add_RecentEnergyUsageReturnedToLow), METH_O, nullptr },
|
|
712
789
|
{ "remove_recent_energy_usage_returned_to_low", reinterpret_cast<PyCFunction>(ForegroundEnergyManager_remove_RecentEnergyUsageReturnedToLow), METH_O, nullptr },
|
|
713
|
-
{ }
|
|
714
|
-
};
|
|
790
|
+
{ }};
|
|
715
791
|
|
|
716
792
|
static PyType_Slot type_slots_ForegroundEnergyManager_Static[] =
|
|
717
793
|
{
|
|
@@ -721,14 +797,12 @@ namespace py::cpp::Windows::System::Power
|
|
|
721
797
|
{ }
|
|
722
798
|
};
|
|
723
799
|
|
|
724
|
-
static PyType_Spec type_spec_ForegroundEnergyManager_Static =
|
|
725
|
-
{
|
|
800
|
+
static PyType_Spec type_spec_ForegroundEnergyManager_Static = {
|
|
726
801
|
"winrt._winrt_windows_system_power.ForegroundEnergyManager_Static",
|
|
727
802
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
728
803
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
729
804
|
Py_TPFLAGS_DEFAULT,
|
|
730
|
-
type_slots_ForegroundEnergyManager_Static
|
|
731
|
-
};
|
|
805
|
+
type_slots_ForegroundEnergyManager_Static};
|
|
732
806
|
|
|
733
807
|
// ----- PowerManager class --------------------
|
|
734
808
|
|
|
@@ -756,7 +830,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
756
830
|
return nullptr;
|
|
757
831
|
}
|
|
758
832
|
|
|
759
|
-
return py::convert(
|
|
833
|
+
return py::convert([&]()
|
|
834
|
+
{
|
|
835
|
+
auto _gil = release_gil();
|
|
836
|
+
return winrt::Windows::System::Power::PowerManager::BatteryStatus();
|
|
837
|
+
}());
|
|
760
838
|
}
|
|
761
839
|
catch (...)
|
|
762
840
|
{
|
|
@@ -782,7 +860,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
782
860
|
return nullptr;
|
|
783
861
|
}
|
|
784
862
|
|
|
785
|
-
return py::convert(
|
|
863
|
+
return py::convert([&]()
|
|
864
|
+
{
|
|
865
|
+
auto _gil = release_gil();
|
|
866
|
+
return winrt::Windows::System::Power::PowerManager::EnergySaverStatus();
|
|
867
|
+
}());
|
|
786
868
|
}
|
|
787
869
|
catch (...)
|
|
788
870
|
{
|
|
@@ -808,7 +890,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
808
890
|
return nullptr;
|
|
809
891
|
}
|
|
810
892
|
|
|
811
|
-
return py::convert(
|
|
893
|
+
return py::convert([&]()
|
|
894
|
+
{
|
|
895
|
+
auto _gil = release_gil();
|
|
896
|
+
return winrt::Windows::System::Power::PowerManager::PowerSupplyStatus();
|
|
897
|
+
}());
|
|
812
898
|
}
|
|
813
899
|
catch (...)
|
|
814
900
|
{
|
|
@@ -834,7 +920,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
834
920
|
return nullptr;
|
|
835
921
|
}
|
|
836
922
|
|
|
837
|
-
return py::convert(
|
|
923
|
+
return py::convert([&]()
|
|
924
|
+
{
|
|
925
|
+
auto _gil = release_gil();
|
|
926
|
+
return winrt::Windows::System::Power::PowerManager::RemainingChargePercent();
|
|
927
|
+
}());
|
|
838
928
|
}
|
|
839
929
|
catch (...)
|
|
840
930
|
{
|
|
@@ -860,7 +950,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
860
950
|
return nullptr;
|
|
861
951
|
}
|
|
862
952
|
|
|
863
|
-
return py::convert(
|
|
953
|
+
return py::convert([&]()
|
|
954
|
+
{
|
|
955
|
+
auto _gil = release_gil();
|
|
956
|
+
return winrt::Windows::System::Power::PowerManager::RemainingDischargeTime();
|
|
957
|
+
}());
|
|
864
958
|
}
|
|
865
959
|
catch (...)
|
|
866
960
|
{
|
|
@@ -888,7 +982,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
888
982
|
|
|
889
983
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
890
984
|
|
|
891
|
-
return py::convert(
|
|
985
|
+
return py::convert([&]()
|
|
986
|
+
{
|
|
987
|
+
auto _gil = release_gil();
|
|
988
|
+
return winrt::Windows::System::Power::PowerManager::BatteryStatusChanged(param0);
|
|
989
|
+
}());
|
|
892
990
|
}
|
|
893
991
|
catch (...)
|
|
894
992
|
{
|
|
@@ -916,7 +1014,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
916
1014
|
|
|
917
1015
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
918
1016
|
|
|
919
|
-
|
|
1017
|
+
{
|
|
1018
|
+
auto _gil = release_gil();
|
|
1019
|
+
winrt::Windows::System::Power::PowerManager::BatteryStatusChanged(param0);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
920
1022
|
Py_RETURN_NONE;
|
|
921
1023
|
}
|
|
922
1024
|
catch (...)
|
|
@@ -945,7 +1047,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
945
1047
|
|
|
946
1048
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
947
1049
|
|
|
948
|
-
return py::convert(
|
|
1050
|
+
return py::convert([&]()
|
|
1051
|
+
{
|
|
1052
|
+
auto _gil = release_gil();
|
|
1053
|
+
return winrt::Windows::System::Power::PowerManager::EnergySaverStatusChanged(param0);
|
|
1054
|
+
}());
|
|
949
1055
|
}
|
|
950
1056
|
catch (...)
|
|
951
1057
|
{
|
|
@@ -973,7 +1079,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
973
1079
|
|
|
974
1080
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
975
1081
|
|
|
976
|
-
|
|
1082
|
+
{
|
|
1083
|
+
auto _gil = release_gil();
|
|
1084
|
+
winrt::Windows::System::Power::PowerManager::EnergySaverStatusChanged(param0);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
977
1087
|
Py_RETURN_NONE;
|
|
978
1088
|
}
|
|
979
1089
|
catch (...)
|
|
@@ -1002,7 +1112,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
1002
1112
|
|
|
1003
1113
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1004
1114
|
|
|
1005
|
-
return py::convert(
|
|
1115
|
+
return py::convert([&]()
|
|
1116
|
+
{
|
|
1117
|
+
auto _gil = release_gil();
|
|
1118
|
+
return winrt::Windows::System::Power::PowerManager::PowerSupplyStatusChanged(param0);
|
|
1119
|
+
}());
|
|
1006
1120
|
}
|
|
1007
1121
|
catch (...)
|
|
1008
1122
|
{
|
|
@@ -1030,7 +1144,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
1030
1144
|
|
|
1031
1145
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1032
1146
|
|
|
1033
|
-
|
|
1147
|
+
{
|
|
1148
|
+
auto _gil = release_gil();
|
|
1149
|
+
winrt::Windows::System::Power::PowerManager::PowerSupplyStatusChanged(param0);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1034
1152
|
Py_RETURN_NONE;
|
|
1035
1153
|
}
|
|
1036
1154
|
catch (...)
|
|
@@ -1059,7 +1177,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
1059
1177
|
|
|
1060
1178
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1061
1179
|
|
|
1062
|
-
return py::convert(
|
|
1180
|
+
return py::convert([&]()
|
|
1181
|
+
{
|
|
1182
|
+
auto _gil = release_gil();
|
|
1183
|
+
return winrt::Windows::System::Power::PowerManager::RemainingChargePercentChanged(param0);
|
|
1184
|
+
}());
|
|
1063
1185
|
}
|
|
1064
1186
|
catch (...)
|
|
1065
1187
|
{
|
|
@@ -1087,7 +1209,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
1087
1209
|
|
|
1088
1210
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1089
1211
|
|
|
1090
|
-
|
|
1212
|
+
{
|
|
1213
|
+
auto _gil = release_gil();
|
|
1214
|
+
winrt::Windows::System::Power::PowerManager::RemainingChargePercentChanged(param0);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1091
1217
|
Py_RETURN_NONE;
|
|
1092
1218
|
}
|
|
1093
1219
|
catch (...)
|
|
@@ -1116,7 +1242,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
1116
1242
|
|
|
1117
1243
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1118
1244
|
|
|
1119
|
-
return py::convert(
|
|
1245
|
+
return py::convert([&]()
|
|
1246
|
+
{
|
|
1247
|
+
auto _gil = release_gil();
|
|
1248
|
+
return winrt::Windows::System::Power::PowerManager::RemainingDischargeTimeChanged(param0);
|
|
1249
|
+
}());
|
|
1120
1250
|
}
|
|
1121
1251
|
catch (...)
|
|
1122
1252
|
{
|
|
@@ -1144,7 +1274,11 @@ namespace py::cpp::Windows::System::Power
|
|
|
1144
1274
|
|
|
1145
1275
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1146
1276
|
|
|
1147
|
-
|
|
1277
|
+
{
|
|
1278
|
+
auto _gil = release_gil();
|
|
1279
|
+
winrt::Windows::System::Power::PowerManager::RemainingDischargeTimeChanged(param0);
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1148
1282
|
Py_RETURN_NONE;
|
|
1149
1283
|
}
|
|
1150
1284
|
catch (...)
|
|
@@ -1155,19 +1289,16 @@ namespace py::cpp::Windows::System::Power
|
|
|
1155
1289
|
}
|
|
1156
1290
|
|
|
1157
1291
|
static PyMethodDef _methods_PowerManager[] = {
|
|
1158
|
-
{ }
|
|
1159
|
-
};
|
|
1292
|
+
{ }};
|
|
1160
1293
|
|
|
1161
1294
|
static PyGetSetDef _getset_PowerManager[] = {
|
|
1162
|
-
{ }
|
|
1163
|
-
};
|
|
1295
|
+
{ }};
|
|
1164
1296
|
|
|
1165
1297
|
static PyType_Slot _type_slots_PowerManager[] = {
|
|
1166
1298
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PowerManager) },
|
|
1167
1299
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PowerManager) },
|
|
1168
1300
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PowerManager) },
|
|
1169
|
-
{ }
|
|
1170
|
-
};
|
|
1301
|
+
{ }};
|
|
1171
1302
|
|
|
1172
1303
|
static PyType_Spec type_spec_PowerManager = {
|
|
1173
1304
|
"winrt._winrt_windows_system_power.PowerManager",
|
|
@@ -1182,8 +1313,7 @@ namespace py::cpp::Windows::System::Power
|
|
|
1182
1313
|
{ "power_supply_status", reinterpret_cast<getter>(PowerManager_get_PowerSupplyStatus), nullptr, nullptr, nullptr },
|
|
1183
1314
|
{ "remaining_charge_percent", reinterpret_cast<getter>(PowerManager_get_RemainingChargePercent), nullptr, nullptr, nullptr },
|
|
1184
1315
|
{ "remaining_discharge_time", reinterpret_cast<getter>(PowerManager_get_RemainingDischargeTime), nullptr, nullptr, nullptr },
|
|
1185
|
-
{ }
|
|
1186
|
-
};
|
|
1316
|
+
{ }};
|
|
1187
1317
|
|
|
1188
1318
|
static PyMethodDef methods_PowerManager_Static[] = {
|
|
1189
1319
|
{ "add_battery_status_changed", reinterpret_cast<PyCFunction>(PowerManager_add_BatteryStatusChanged), METH_O, nullptr },
|
|
@@ -1196,8 +1326,7 @@ namespace py::cpp::Windows::System::Power
|
|
|
1196
1326
|
{ "remove_remaining_charge_percent_changed", reinterpret_cast<PyCFunction>(PowerManager_remove_RemainingChargePercentChanged), METH_O, nullptr },
|
|
1197
1327
|
{ "add_remaining_discharge_time_changed", reinterpret_cast<PyCFunction>(PowerManager_add_RemainingDischargeTimeChanged), METH_O, nullptr },
|
|
1198
1328
|
{ "remove_remaining_discharge_time_changed", reinterpret_cast<PyCFunction>(PowerManager_remove_RemainingDischargeTimeChanged), METH_O, nullptr },
|
|
1199
|
-
{ }
|
|
1200
|
-
};
|
|
1329
|
+
{ }};
|
|
1201
1330
|
|
|
1202
1331
|
static PyType_Slot type_slots_PowerManager_Static[] =
|
|
1203
1332
|
{
|
|
@@ -1207,14 +1336,12 @@ namespace py::cpp::Windows::System::Power
|
|
|
1207
1336
|
{ }
|
|
1208
1337
|
};
|
|
1209
1338
|
|
|
1210
|
-
static PyType_Spec type_spec_PowerManager_Static =
|
|
1211
|
-
{
|
|
1339
|
+
static PyType_Spec type_spec_PowerManager_Static = {
|
|
1212
1340
|
"winrt._winrt_windows_system_power.PowerManager_Static",
|
|
1213
1341
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
1214
1342
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
1215
1343
|
Py_TPFLAGS_DEFAULT,
|
|
1216
|
-
type_slots_PowerManager_Static
|
|
1217
|
-
};
|
|
1344
|
+
type_slots_PowerManager_Static};
|
|
1218
1345
|
|
|
1219
1346
|
// ----- Windows.System.Power Initialization --------------------
|
|
1220
1347
|
|
|
@@ -1248,6 +1375,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_power(void) noexcept
|
|
|
1248
1375
|
return nullptr;
|
|
1249
1376
|
}
|
|
1250
1377
|
|
|
1378
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1379
|
+
if (!inspectable_meta_type)
|
|
1380
|
+
{
|
|
1381
|
+
return nullptr;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1251
1384
|
auto object_type = py::get_object_type();
|
|
1252
1385
|
if (!object_type)
|
|
1253
1386
|
{
|
|
@@ -1261,7 +1394,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_power(void) noexcept
|
|
|
1261
1394
|
return nullptr;
|
|
1262
1395
|
}
|
|
1263
1396
|
|
|
1264
|
-
py::pyobj_handle
|
|
1397
|
+
py::pyobj_handle BackgroundEnergyManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1398
|
+
if (!BackgroundEnergyManager_Static_bases)
|
|
1399
|
+
{
|
|
1400
|
+
return nullptr;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
py::pyobj_handle type_BackgroundEnergyManager_Static{PyType_FromSpecWithBases(&type_spec_BackgroundEnergyManager_Static, BackgroundEnergyManager_Static_bases.get())};
|
|
1265
1404
|
if (!type_BackgroundEnergyManager_Static)
|
|
1266
1405
|
{
|
|
1267
1406
|
return nullptr;
|
|
@@ -1273,7 +1412,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_power(void) noexcept
|
|
|
1273
1412
|
return nullptr;
|
|
1274
1413
|
}
|
|
1275
1414
|
|
|
1276
|
-
py::pyobj_handle
|
|
1415
|
+
py::pyobj_handle ForegroundEnergyManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1416
|
+
if (!ForegroundEnergyManager_Static_bases)
|
|
1417
|
+
{
|
|
1418
|
+
return nullptr;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
py::pyobj_handle type_ForegroundEnergyManager_Static{PyType_FromSpecWithBases(&type_spec_ForegroundEnergyManager_Static, ForegroundEnergyManager_Static_bases.get())};
|
|
1277
1422
|
if (!type_ForegroundEnergyManager_Static)
|
|
1278
1423
|
{
|
|
1279
1424
|
return nullptr;
|
|
@@ -1285,7 +1430,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_power(void) noexcept
|
|
|
1285
1430
|
return nullptr;
|
|
1286
1431
|
}
|
|
1287
1432
|
|
|
1288
|
-
py::pyobj_handle
|
|
1433
|
+
py::pyobj_handle PowerManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1434
|
+
if (!PowerManager_Static_bases)
|
|
1435
|
+
{
|
|
1436
|
+
return nullptr;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
py::pyobj_handle type_PowerManager_Static{PyType_FromSpecWithBases(&type_spec_PowerManager_Static, PowerManager_Static_bases.get())};
|
|
1289
1440
|
if (!type_PowerManager_Static)
|
|
1290
1441
|
{
|
|
1291
1442
|
return nullptr;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "winrt-sdk"]
|
|
4
|
+
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Windows.System.Power"
|
|
9
9
|
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
10
|
readme = "README.md"
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Operating System :: Microsoft :: Windows",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
@@ -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.1.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.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.1.0
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
|
|
14
|
+
from winrt.windows.system.power import BatteryStatus, EnergySaverStatus, PowerSupplyStatus
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class BackgroundEnergyManager_Static(winrt._winrt.IInspectable_Static):
|
|
20
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.BackgroundEnergyManager::add_RecentEnergyUsageIncreased(Windows.Foundation.EventHandler`1<System.Object>)
|
|
21
|
+
# @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
|
|
22
|
+
def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
23
|
+
# System.Void Windows.System.Power.BackgroundEnergyManager::remove_RecentEnergyUsageIncreased(Windows.Foundation.EventRegistrationToken)
|
|
24
|
+
# @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
|
|
25
|
+
def remove_recent_energy_usage_increased(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
26
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.BackgroundEnergyManager::add_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventHandler`1<System.Object>)
|
|
27
|
+
# @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
|
|
28
|
+
def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
29
|
+
# System.Void Windows.System.Power.BackgroundEnergyManager::remove_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventRegistrationToken)
|
|
30
|
+
# @deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.")
|
|
31
|
+
def remove_recent_energy_usage_returned_to_low(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
32
|
+
# System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_ExcessiveUsageLevel()
|
|
33
|
+
@_property
|
|
34
|
+
def excessive_usage_level(cls) -> winrt.system.UInt32: ...
|
|
35
|
+
# System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_LowUsageLevel()
|
|
36
|
+
@_property
|
|
37
|
+
def low_usage_level(cls) -> winrt.system.UInt32: ...
|
|
38
|
+
# System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_MaxAcceptableUsageLevel()
|
|
39
|
+
@_property
|
|
40
|
+
def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
41
|
+
# System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_NearMaxAcceptableUsageLevel()
|
|
42
|
+
@_property
|
|
43
|
+
def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
44
|
+
# System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_NearTerminationUsageLevel()
|
|
45
|
+
@_property
|
|
46
|
+
def near_termination_usage_level(cls) -> winrt.system.UInt32: ...
|
|
47
|
+
# System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_RecentEnergyUsage()
|
|
48
|
+
@_property
|
|
49
|
+
def recent_energy_usage(cls) -> winrt.system.UInt32: ...
|
|
50
|
+
# System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_RecentEnergyUsageLevel()
|
|
51
|
+
@_property
|
|
52
|
+
def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
|
|
53
|
+
# System.UInt32 Windows.System.Power.BackgroundEnergyManager::get_TerminationUsageLevel()
|
|
54
|
+
@_property
|
|
55
|
+
def termination_usage_level(cls) -> winrt.system.UInt32: ...
|
|
56
|
+
|
|
57
|
+
@typing.final
|
|
58
|
+
class BackgroundEnergyManager(winrt.system.Object, metaclass=BackgroundEnergyManager_Static):
|
|
59
|
+
pass
|
|
60
|
+
|
|
61
|
+
@typing.final
|
|
62
|
+
class ForegroundEnergyManager_Static(winrt._winrt.IInspectable_Static):
|
|
63
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.ForegroundEnergyManager::add_RecentEnergyUsageIncreased(Windows.Foundation.EventHandler`1<System.Object>)
|
|
64
|
+
# @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
|
|
65
|
+
def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
66
|
+
# System.Void Windows.System.Power.ForegroundEnergyManager::remove_RecentEnergyUsageIncreased(Windows.Foundation.EventRegistrationToken)
|
|
67
|
+
# @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
|
|
68
|
+
def remove_recent_energy_usage_increased(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
69
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.ForegroundEnergyManager::add_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventHandler`1<System.Object>)
|
|
70
|
+
# @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
|
|
71
|
+
def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
72
|
+
# System.Void Windows.System.Power.ForegroundEnergyManager::remove_RecentEnergyUsageReturnedToLow(Windows.Foundation.EventRegistrationToken)
|
|
73
|
+
# @deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.")
|
|
74
|
+
def remove_recent_energy_usage_returned_to_low(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
75
|
+
# System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_ExcessiveUsageLevel()
|
|
76
|
+
@_property
|
|
77
|
+
def excessive_usage_level(cls) -> winrt.system.UInt32: ...
|
|
78
|
+
# System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_LowUsageLevel()
|
|
79
|
+
@_property
|
|
80
|
+
def low_usage_level(cls) -> winrt.system.UInt32: ...
|
|
81
|
+
# System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_MaxAcceptableUsageLevel()
|
|
82
|
+
@_property
|
|
83
|
+
def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
84
|
+
# System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_NearMaxAcceptableUsageLevel()
|
|
85
|
+
@_property
|
|
86
|
+
def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
87
|
+
# System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_RecentEnergyUsage()
|
|
88
|
+
@_property
|
|
89
|
+
def recent_energy_usage(cls) -> winrt.system.UInt32: ...
|
|
90
|
+
# System.UInt32 Windows.System.Power.ForegroundEnergyManager::get_RecentEnergyUsageLevel()
|
|
91
|
+
@_property
|
|
92
|
+
def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
|
|
93
|
+
|
|
94
|
+
@typing.final
|
|
95
|
+
class ForegroundEnergyManager(winrt.system.Object, metaclass=ForegroundEnergyManager_Static):
|
|
96
|
+
pass
|
|
97
|
+
|
|
98
|
+
@typing.final
|
|
99
|
+
class PowerManager_Static(winrt._winrt.IInspectable_Static):
|
|
100
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_BatteryStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
|
|
101
|
+
def add_battery_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
102
|
+
# System.Void Windows.System.Power.PowerManager::remove_BatteryStatusChanged(Windows.Foundation.EventRegistrationToken)
|
|
103
|
+
def remove_battery_status_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
104
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_EnergySaverStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
|
|
105
|
+
def add_energy_saver_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
106
|
+
# System.Void Windows.System.Power.PowerManager::remove_EnergySaverStatusChanged(Windows.Foundation.EventRegistrationToken)
|
|
107
|
+
def remove_energy_saver_status_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
108
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_PowerSupplyStatusChanged(Windows.Foundation.EventHandler`1<System.Object>)
|
|
109
|
+
def add_power_supply_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
110
|
+
# System.Void Windows.System.Power.PowerManager::remove_PowerSupplyStatusChanged(Windows.Foundation.EventRegistrationToken)
|
|
111
|
+
def remove_power_supply_status_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
112
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_RemainingChargePercentChanged(Windows.Foundation.EventHandler`1<System.Object>)
|
|
113
|
+
def add_remaining_charge_percent_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
114
|
+
# System.Void Windows.System.Power.PowerManager::remove_RemainingChargePercentChanged(Windows.Foundation.EventRegistrationToken)
|
|
115
|
+
def remove_remaining_charge_percent_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
116
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Power.PowerManager::add_RemainingDischargeTimeChanged(Windows.Foundation.EventHandler`1<System.Object>)
|
|
117
|
+
def add_remaining_discharge_time_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
118
|
+
# System.Void Windows.System.Power.PowerManager::remove_RemainingDischargeTimeChanged(Windows.Foundation.EventRegistrationToken)
|
|
119
|
+
def remove_remaining_discharge_time_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
120
|
+
# Windows.System.Power.BatteryStatus Windows.System.Power.PowerManager::get_BatteryStatus()
|
|
121
|
+
@_property
|
|
122
|
+
def battery_status(cls) -> BatteryStatus: ...
|
|
123
|
+
# Windows.System.Power.EnergySaverStatus Windows.System.Power.PowerManager::get_EnergySaverStatus()
|
|
124
|
+
@_property
|
|
125
|
+
def energy_saver_status(cls) -> EnergySaverStatus: ...
|
|
126
|
+
# Windows.System.Power.PowerSupplyStatus Windows.System.Power.PowerManager::get_PowerSupplyStatus()
|
|
127
|
+
@_property
|
|
128
|
+
def power_supply_status(cls) -> PowerSupplyStatus: ...
|
|
129
|
+
# System.Int32 Windows.System.Power.PowerManager::get_RemainingChargePercent()
|
|
130
|
+
@_property
|
|
131
|
+
def remaining_charge_percent(cls) -> winrt.system.Int32: ...
|
|
132
|
+
# Windows.Foundation.TimeSpan Windows.System.Power.PowerManager::get_RemainingDischargeTime()
|
|
133
|
+
@_property
|
|
134
|
+
def remaining_discharge_time(cls) -> datetime.timedelta: ...
|
|
135
|
+
|
|
136
|
+
@typing.final
|
|
137
|
+
class PowerManager(winrt.system.Object, metaclass=PowerManager_Static):
|
|
138
|
+
pass
|
|
139
|
+
|
|
@@ -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.1.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_system_power import (
|
|
7
|
+
BackgroundEnergyManager,
|
|
8
|
+
ForegroundEnergyManager,
|
|
9
|
+
PowerManager,
|
|
10
|
+
)
|
|
7
11
|
|
|
8
12
|
__all__ = [
|
|
9
13
|
"BatteryStatus",
|
|
@@ -30,6 +34,3 @@ class PowerSupplyStatus(enum.IntEnum):
|
|
|
30
34
|
INADEQUATE = 1
|
|
31
35
|
ADEQUATE = 2
|
|
32
36
|
|
|
33
|
-
BackgroundEnergyManager = _winrt_windows_system_power.BackgroundEnergyManager
|
|
34
|
-
ForegroundEnergyManager = _winrt_windows_system_power.ForegroundEnergyManager
|
|
35
|
-
PowerManager = _winrt_windows_system_power.PowerManager
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.System.Power
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,11 +10,11 @@ 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.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.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.3.0
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.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
|
-
|
|
14
|
-
from winrt.windows.system.power import BatteryStatus, EnergySaverStatus, PowerSupplyStatus
|
|
15
|
-
|
|
16
|
-
Self = typing.TypeVar('Self')
|
|
17
|
-
|
|
18
|
-
@typing.final
|
|
19
|
-
class BackgroundEnergyManager_Static(type):
|
|
20
|
-
def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
21
|
-
def remove_recent_energy_usage_increased(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
22
|
-
def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
23
|
-
def remove_recent_energy_usage_returned_to_low(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
24
|
-
@_property
|
|
25
|
-
def excessive_usage_level(cls) -> winrt.system.UInt32: ...
|
|
26
|
-
@_property
|
|
27
|
-
def low_usage_level(cls) -> winrt.system.UInt32: ...
|
|
28
|
-
@_property
|
|
29
|
-
def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
30
|
-
@_property
|
|
31
|
-
def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
32
|
-
@_property
|
|
33
|
-
def near_termination_usage_level(cls) -> winrt.system.UInt32: ...
|
|
34
|
-
@_property
|
|
35
|
-
def recent_energy_usage(cls) -> winrt.system.UInt32: ...
|
|
36
|
-
@_property
|
|
37
|
-
def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
|
|
38
|
-
@_property
|
|
39
|
-
def termination_usage_level(cls) -> winrt.system.UInt32: ...
|
|
40
|
-
|
|
41
|
-
@typing.final
|
|
42
|
-
class BackgroundEnergyManager(winrt.system.Object, metaclass=BackgroundEnergyManager_Static):
|
|
43
|
-
pass
|
|
44
|
-
|
|
45
|
-
@typing.final
|
|
46
|
-
class ForegroundEnergyManager_Static(type):
|
|
47
|
-
def add_recent_energy_usage_increased(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
48
|
-
def remove_recent_energy_usage_increased(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
49
|
-
def add_recent_energy_usage_returned_to_low(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
50
|
-
def remove_recent_energy_usage_returned_to_low(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
51
|
-
@_property
|
|
52
|
-
def excessive_usage_level(cls) -> winrt.system.UInt32: ...
|
|
53
|
-
@_property
|
|
54
|
-
def low_usage_level(cls) -> winrt.system.UInt32: ...
|
|
55
|
-
@_property
|
|
56
|
-
def max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
57
|
-
@_property
|
|
58
|
-
def near_max_acceptable_usage_level(cls) -> winrt.system.UInt32: ...
|
|
59
|
-
@_property
|
|
60
|
-
def recent_energy_usage(cls) -> winrt.system.UInt32: ...
|
|
61
|
-
@_property
|
|
62
|
-
def recent_energy_usage_level(cls) -> winrt.system.UInt32: ...
|
|
63
|
-
|
|
64
|
-
@typing.final
|
|
65
|
-
class ForegroundEnergyManager(winrt.system.Object, metaclass=ForegroundEnergyManager_Static):
|
|
66
|
-
pass
|
|
67
|
-
|
|
68
|
-
@typing.final
|
|
69
|
-
class PowerManager_Static(type):
|
|
70
|
-
def add_battery_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
71
|
-
def remove_battery_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
72
|
-
def add_energy_saver_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
73
|
-
def remove_energy_saver_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
74
|
-
def add_power_supply_status_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
75
|
-
def remove_power_supply_status_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
76
|
-
def add_remaining_charge_percent_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
77
|
-
def remove_remaining_charge_percent_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
78
|
-
def add_remaining_discharge_time_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
79
|
-
def remove_remaining_discharge_time_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
80
|
-
@_property
|
|
81
|
-
def battery_status(cls) -> BatteryStatus: ...
|
|
82
|
-
@_property
|
|
83
|
-
def energy_saver_status(cls) -> EnergySaverStatus: ...
|
|
84
|
-
@_property
|
|
85
|
-
def power_supply_status(cls) -> PowerSupplyStatus: ...
|
|
86
|
-
@_property
|
|
87
|
-
def remaining_charge_percent(cls) -> winrt.system.Int32: ...
|
|
88
|
-
@_property
|
|
89
|
-
def remaining_discharge_time(cls) -> datetime.timedelta: ...
|
|
90
|
-
|
|
91
|
-
@typing.final
|
|
92
|
-
class PowerManager(winrt.system.Object, metaclass=PowerManager_Static):
|
|
93
|
-
pass
|
|
94
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|