winrt-Windows.Media.DialProtocol 2.1.0__tar.gz → 2.2.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_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/PKG-INFO +8 -8
- winrt_windows_media_dialprotocol-2.2.0/all-requirements.txt +7 -0
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/py.Windows.Media.DialProtocol.cpp +290 -44
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/pyproject.toml +3 -2
- winrt_windows_media_dialprotocol-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/requirements.txt +2 -2
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/winrt/_winrt_windows_media_dialprotocol.pyi +1 -1
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/winrt/windows/media/dialprotocol/__init__.py +1 -1
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/winrt_Windows.Media.DialProtocol.egg-info/PKG-INFO +8 -8
- winrt_windows_media_dialprotocol-2.2.0/winrt_Windows.Media.DialProtocol.egg-info/requires.txt +8 -0
- winrt_windows_media_dialprotocol-2.1.0/all-requirements.txt +0 -7
- winrt_windows_media_dialprotocol-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_media_dialprotocol-2.1.0/winrt_Windows.Media.DialProtocol.egg-info/requires.txt +0 -8
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/README.md +0 -0
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/setup.cfg +0 -0
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/setup.py +0 -0
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/winrt/windows/media/dialprotocol/py.typed +0 -0
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/winrt_Windows.Media.DialProtocol.egg-info/SOURCES.txt +0 -0
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/winrt_Windows.Media.DialProtocol.egg-info/dependency_links.txt +0 -0
- {winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/winrt_Windows.Media.DialProtocol.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Media.DialProtocol
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.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,15 +10,15 @@ 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: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.UI.Popups[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.UI.Popups[all]==2.2.0; extra == "all"
|
|
22
22
|
|
|
23
23
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
24
24
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Devices.Enumeration[all]==2.2.0
|
|
4
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
5
|
+
winrt-Windows.Foundation.Collections[all]==2.2.0
|
|
6
|
+
winrt-Windows.Storage.Streams[all]==2.2.0
|
|
7
|
+
winrt-Windows.UI.Popups[all]==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Media.DialProtocol.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialApp", L"GetAppStateAsync", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -58,7 +65,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
58
65
|
{
|
|
59
66
|
try
|
|
60
67
|
{
|
|
61
|
-
|
|
68
|
+
static std::optional<bool> is_overload_present{};
|
|
69
|
+
|
|
70
|
+
if (!is_overload_present.has_value())
|
|
71
|
+
{
|
|
72
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialApp", L"RequestLaunchAsync", 1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
62
76
|
{
|
|
63
77
|
py::set_arg_count_version_error(1);
|
|
64
78
|
return nullptr;
|
|
@@ -89,7 +103,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
89
103
|
{
|
|
90
104
|
try
|
|
91
105
|
{
|
|
92
|
-
|
|
106
|
+
static std::optional<bool> is_overload_present{};
|
|
107
|
+
|
|
108
|
+
if (!is_overload_present.has_value())
|
|
109
|
+
{
|
|
110
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialApp", L"StopAsync", 0);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!is_overload_present.value())
|
|
93
114
|
{
|
|
94
115
|
py::set_arg_count_version_error(0);
|
|
95
116
|
return nullptr;
|
|
@@ -114,7 +135,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
114
135
|
{
|
|
115
136
|
try
|
|
116
137
|
{
|
|
117
|
-
|
|
138
|
+
static std::optional<bool> is_property_present{};
|
|
139
|
+
|
|
140
|
+
if (!is_property_present.has_value())
|
|
141
|
+
{
|
|
142
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialApp", L"AppName");
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (!is_property_present.value())
|
|
118
146
|
{
|
|
119
147
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
120
148
|
return nullptr;
|
|
@@ -203,7 +231,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
203
231
|
{
|
|
204
232
|
try
|
|
205
233
|
{
|
|
206
|
-
|
|
234
|
+
static std::optional<bool> is_property_present{};
|
|
235
|
+
|
|
236
|
+
if (!is_property_present.has_value())
|
|
237
|
+
{
|
|
238
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialAppStateDetails", L"FullXml");
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if (!is_property_present.value())
|
|
207
242
|
{
|
|
208
243
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
209
244
|
return nullptr;
|
|
@@ -222,7 +257,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
222
257
|
{
|
|
223
258
|
try
|
|
224
259
|
{
|
|
225
|
-
|
|
260
|
+
static std::optional<bool> is_property_present{};
|
|
261
|
+
|
|
262
|
+
if (!is_property_present.has_value())
|
|
263
|
+
{
|
|
264
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialAppStateDetails", L"State");
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (!is_property_present.value())
|
|
226
268
|
{
|
|
227
269
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
228
270
|
return nullptr;
|
|
@@ -313,7 +355,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
313
355
|
{
|
|
314
356
|
try
|
|
315
357
|
{
|
|
316
|
-
|
|
358
|
+
static std::optional<bool> is_overload_present{};
|
|
359
|
+
|
|
360
|
+
if (!is_overload_present.has_value())
|
|
361
|
+
{
|
|
362
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevice", L"DeviceInfoSupportsDialAsync", 1);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if (!is_overload_present.value())
|
|
317
366
|
{
|
|
318
367
|
py::set_arg_count_version_error(1);
|
|
319
368
|
return nullptr;
|
|
@@ -344,7 +393,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
344
393
|
{
|
|
345
394
|
try
|
|
346
395
|
{
|
|
347
|
-
|
|
396
|
+
static std::optional<bool> is_overload_present{};
|
|
397
|
+
|
|
398
|
+
if (!is_overload_present.has_value())
|
|
399
|
+
{
|
|
400
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevice", L"FromIdAsync", 1);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
if (!is_overload_present.value())
|
|
348
404
|
{
|
|
349
405
|
py::set_arg_count_version_error(1);
|
|
350
406
|
return nullptr;
|
|
@@ -375,7 +431,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
375
431
|
{
|
|
376
432
|
try
|
|
377
433
|
{
|
|
378
|
-
|
|
434
|
+
static std::optional<bool> is_overload_present{};
|
|
435
|
+
|
|
436
|
+
if (!is_overload_present.has_value())
|
|
437
|
+
{
|
|
438
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevice", L"GetDeviceSelector", 1);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
if (!is_overload_present.value())
|
|
379
442
|
{
|
|
380
443
|
py::set_arg_count_version_error(1);
|
|
381
444
|
return nullptr;
|
|
@@ -406,7 +469,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
406
469
|
{
|
|
407
470
|
try
|
|
408
471
|
{
|
|
409
|
-
|
|
472
|
+
static std::optional<bool> is_overload_present{};
|
|
473
|
+
|
|
474
|
+
if (!is_overload_present.has_value())
|
|
475
|
+
{
|
|
476
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevice", L"GetDialApp", 1);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
if (!is_overload_present.value())
|
|
410
480
|
{
|
|
411
481
|
py::set_arg_count_version_error(1);
|
|
412
482
|
return nullptr;
|
|
@@ -433,7 +503,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
433
503
|
{
|
|
434
504
|
try
|
|
435
505
|
{
|
|
436
|
-
|
|
506
|
+
static std::optional<bool> is_property_present{};
|
|
507
|
+
|
|
508
|
+
if (!is_property_present.has_value())
|
|
509
|
+
{
|
|
510
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialDevice", L"Id");
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
if (!is_property_present.value())
|
|
437
514
|
{
|
|
438
515
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
439
516
|
return nullptr;
|
|
@@ -452,7 +529,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
452
529
|
{
|
|
453
530
|
try
|
|
454
531
|
{
|
|
455
|
-
|
|
532
|
+
static std::optional<bool> is_property_present{};
|
|
533
|
+
|
|
534
|
+
if (!is_property_present.has_value())
|
|
535
|
+
{
|
|
536
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialDevice", L"FriendlyName");
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
if (!is_property_present.value())
|
|
456
540
|
{
|
|
457
541
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
458
542
|
return nullptr;
|
|
@@ -471,7 +555,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
471
555
|
{
|
|
472
556
|
try
|
|
473
557
|
{
|
|
474
|
-
|
|
558
|
+
static std::optional<bool> is_property_present{};
|
|
559
|
+
|
|
560
|
+
if (!is_property_present.has_value())
|
|
561
|
+
{
|
|
562
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialDevice", L"Thumbnail");
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
if (!is_property_present.value())
|
|
475
566
|
{
|
|
476
567
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
477
568
|
return nullptr;
|
|
@@ -582,7 +673,7 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
582
673
|
{
|
|
583
674
|
try
|
|
584
675
|
{
|
|
585
|
-
winrt::Windows::Media::DialProtocol::DialDevicePicker instance{
|
|
676
|
+
winrt::Windows::Media::DialProtocol::DialDevicePicker instance{};
|
|
586
677
|
return py::wrap(instance, type);
|
|
587
678
|
}
|
|
588
679
|
catch (...)
|
|
@@ -614,7 +705,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
614
705
|
{
|
|
615
706
|
try
|
|
616
707
|
{
|
|
617
|
-
|
|
708
|
+
static std::optional<bool> is_overload_present{};
|
|
709
|
+
|
|
710
|
+
if (!is_overload_present.has_value())
|
|
711
|
+
{
|
|
712
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"Hide", 0);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
if (!is_overload_present.value())
|
|
618
716
|
{
|
|
619
717
|
py::set_arg_count_version_error(0);
|
|
620
718
|
return nullptr;
|
|
@@ -644,7 +742,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
644
742
|
{
|
|
645
743
|
try
|
|
646
744
|
{
|
|
647
|
-
|
|
745
|
+
static std::optional<bool> is_overload_present{};
|
|
746
|
+
|
|
747
|
+
if (!is_overload_present.has_value())
|
|
748
|
+
{
|
|
749
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"PickSingleDialDeviceAsync", 1);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
if (!is_overload_present.value())
|
|
648
753
|
{
|
|
649
754
|
py::set_arg_count_version_error(1);
|
|
650
755
|
return nullptr;
|
|
@@ -664,7 +769,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
664
769
|
{
|
|
665
770
|
try
|
|
666
771
|
{
|
|
667
|
-
|
|
772
|
+
static std::optional<bool> is_overload_present{};
|
|
773
|
+
|
|
774
|
+
if (!is_overload_present.has_value())
|
|
775
|
+
{
|
|
776
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"PickSingleDialDeviceAsync", 2);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
if (!is_overload_present.value())
|
|
668
780
|
{
|
|
669
781
|
py::set_arg_count_version_error(2);
|
|
670
782
|
return nullptr;
|
|
@@ -696,7 +808,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
696
808
|
{
|
|
697
809
|
try
|
|
698
810
|
{
|
|
699
|
-
|
|
811
|
+
static std::optional<bool> is_overload_present{};
|
|
812
|
+
|
|
813
|
+
if (!is_overload_present.has_value())
|
|
814
|
+
{
|
|
815
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"SetDisplayStatus", 2);
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
if (!is_overload_present.value())
|
|
700
819
|
{
|
|
701
820
|
py::set_arg_count_version_error(2);
|
|
702
821
|
return nullptr;
|
|
@@ -729,7 +848,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
729
848
|
{
|
|
730
849
|
try
|
|
731
850
|
{
|
|
732
|
-
|
|
851
|
+
static std::optional<bool> is_overload_present{};
|
|
852
|
+
|
|
853
|
+
if (!is_overload_present.has_value())
|
|
854
|
+
{
|
|
855
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"Show", 1);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
if (!is_overload_present.value())
|
|
733
859
|
{
|
|
734
860
|
py::set_arg_count_version_error(1);
|
|
735
861
|
return nullptr;
|
|
@@ -750,7 +876,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
750
876
|
{
|
|
751
877
|
try
|
|
752
878
|
{
|
|
753
|
-
|
|
879
|
+
static std::optional<bool> is_overload_present{};
|
|
880
|
+
|
|
881
|
+
if (!is_overload_present.has_value())
|
|
882
|
+
{
|
|
883
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"Show", 2);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
if (!is_overload_present.value())
|
|
754
887
|
{
|
|
755
888
|
py::set_arg_count_version_error(2);
|
|
756
889
|
return nullptr;
|
|
@@ -779,7 +912,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
779
912
|
{
|
|
780
913
|
try
|
|
781
914
|
{
|
|
782
|
-
|
|
915
|
+
static std::optional<bool> is_property_present{};
|
|
916
|
+
|
|
917
|
+
if (!is_property_present.has_value())
|
|
918
|
+
{
|
|
919
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"Appearance");
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
if (!is_property_present.value())
|
|
783
923
|
{
|
|
784
924
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
785
925
|
return nullptr;
|
|
@@ -798,7 +938,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
798
938
|
{
|
|
799
939
|
try
|
|
800
940
|
{
|
|
801
|
-
|
|
941
|
+
static std::optional<bool> is_property_present{};
|
|
942
|
+
|
|
943
|
+
if (!is_property_present.has_value())
|
|
944
|
+
{
|
|
945
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"Filter");
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
if (!is_property_present.value())
|
|
802
949
|
{
|
|
803
950
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
804
951
|
return nullptr;
|
|
@@ -817,7 +964,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
817
964
|
{
|
|
818
965
|
try
|
|
819
966
|
{
|
|
820
|
-
|
|
967
|
+
static std::optional<bool> is_event_present{};
|
|
968
|
+
|
|
969
|
+
if (!is_event_present.has_value())
|
|
970
|
+
{
|
|
971
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"DialDevicePickerDismissed");
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
if (!is_event_present.value())
|
|
821
975
|
{
|
|
822
976
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
823
977
|
return nullptr;
|
|
@@ -838,7 +992,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
838
992
|
{
|
|
839
993
|
try
|
|
840
994
|
{
|
|
841
|
-
|
|
995
|
+
static std::optional<bool> is_event_present{};
|
|
996
|
+
|
|
997
|
+
if (!is_event_present.has_value())
|
|
998
|
+
{
|
|
999
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"DialDevicePickerDismissed");
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
if (!is_event_present.value())
|
|
842
1003
|
{
|
|
843
1004
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
844
1005
|
return nullptr;
|
|
@@ -860,7 +1021,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
860
1021
|
{
|
|
861
1022
|
try
|
|
862
1023
|
{
|
|
863
|
-
|
|
1024
|
+
static std::optional<bool> is_event_present{};
|
|
1025
|
+
|
|
1026
|
+
if (!is_event_present.has_value())
|
|
1027
|
+
{
|
|
1028
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"DialDeviceSelected");
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
if (!is_event_present.value())
|
|
864
1032
|
{
|
|
865
1033
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
866
1034
|
return nullptr;
|
|
@@ -881,7 +1049,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
881
1049
|
{
|
|
882
1050
|
try
|
|
883
1051
|
{
|
|
884
|
-
|
|
1052
|
+
static std::optional<bool> is_event_present{};
|
|
1053
|
+
|
|
1054
|
+
if (!is_event_present.has_value())
|
|
1055
|
+
{
|
|
1056
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"DialDeviceSelected");
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
if (!is_event_present.value())
|
|
885
1060
|
{
|
|
886
1061
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
887
1062
|
return nullptr;
|
|
@@ -903,7 +1078,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
903
1078
|
{
|
|
904
1079
|
try
|
|
905
1080
|
{
|
|
906
|
-
|
|
1081
|
+
static std::optional<bool> is_event_present{};
|
|
1082
|
+
|
|
1083
|
+
if (!is_event_present.has_value())
|
|
1084
|
+
{
|
|
1085
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"DisconnectButtonClicked");
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
if (!is_event_present.value())
|
|
907
1089
|
{
|
|
908
1090
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
909
1091
|
return nullptr;
|
|
@@ -924,7 +1106,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
924
1106
|
{
|
|
925
1107
|
try
|
|
926
1108
|
{
|
|
927
|
-
|
|
1109
|
+
static std::optional<bool> is_event_present{};
|
|
1110
|
+
|
|
1111
|
+
if (!is_event_present.has_value())
|
|
1112
|
+
{
|
|
1113
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Media.DialProtocol.DialDevicePicker", L"DisconnectButtonClicked");
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
if (!is_event_present.value())
|
|
928
1117
|
{
|
|
929
1118
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
930
1119
|
return nullptr;
|
|
@@ -1024,7 +1213,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
1024
1213
|
{
|
|
1025
1214
|
try
|
|
1026
1215
|
{
|
|
1027
|
-
|
|
1216
|
+
static std::optional<bool> is_property_present{};
|
|
1217
|
+
|
|
1218
|
+
if (!is_property_present.has_value())
|
|
1219
|
+
{
|
|
1220
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialDevicePickerFilter", L"SupportedAppNames");
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
if (!is_property_present.value())
|
|
1028
1224
|
{
|
|
1029
1225
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1030
1226
|
return nullptr;
|
|
@@ -1110,7 +1306,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
1110
1306
|
{
|
|
1111
1307
|
try
|
|
1112
1308
|
{
|
|
1113
|
-
|
|
1309
|
+
static std::optional<bool> is_property_present{};
|
|
1310
|
+
|
|
1311
|
+
if (!is_property_present.has_value())
|
|
1312
|
+
{
|
|
1313
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialDeviceSelectedEventArgs", L"SelectedDialDevice");
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
if (!is_property_present.value())
|
|
1114
1317
|
{
|
|
1115
1318
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1116
1319
|
return nullptr;
|
|
@@ -1196,7 +1399,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
1196
1399
|
{
|
|
1197
1400
|
try
|
|
1198
1401
|
{
|
|
1199
|
-
|
|
1402
|
+
static std::optional<bool> is_property_present{};
|
|
1403
|
+
|
|
1404
|
+
if (!is_property_present.has_value())
|
|
1405
|
+
{
|
|
1406
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialDisconnectButtonClickedEventArgs", L"Device");
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
if (!is_property_present.value())
|
|
1200
1410
|
{
|
|
1201
1411
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1202
1412
|
return nullptr;
|
|
@@ -1286,7 +1496,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
1286
1496
|
{
|
|
1287
1497
|
try
|
|
1288
1498
|
{
|
|
1289
|
-
|
|
1499
|
+
static std::optional<bool> is_overload_present{};
|
|
1500
|
+
|
|
1501
|
+
if (!is_overload_present.has_value())
|
|
1502
|
+
{
|
|
1503
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialReceiverApp", L"GetAdditionalDataAsync", 0);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
if (!is_overload_present.value())
|
|
1290
1507
|
{
|
|
1291
1508
|
py::set_arg_count_version_error(0);
|
|
1292
1509
|
return nullptr;
|
|
@@ -1315,7 +1532,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
1315
1532
|
{
|
|
1316
1533
|
try
|
|
1317
1534
|
{
|
|
1318
|
-
|
|
1535
|
+
static std::optional<bool> is_overload_present{};
|
|
1536
|
+
|
|
1537
|
+
if (!is_overload_present.has_value())
|
|
1538
|
+
{
|
|
1539
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialReceiverApp", L"GetUniqueDeviceNameAsync", 0);
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
if (!is_overload_present.value())
|
|
1319
1543
|
{
|
|
1320
1544
|
py::set_arg_count_version_error(0);
|
|
1321
1545
|
return nullptr;
|
|
@@ -1344,7 +1568,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
1344
1568
|
{
|
|
1345
1569
|
try
|
|
1346
1570
|
{
|
|
1347
|
-
|
|
1571
|
+
static std::optional<bool> is_overload_present{};
|
|
1572
|
+
|
|
1573
|
+
if (!is_overload_present.has_value())
|
|
1574
|
+
{
|
|
1575
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.DialProtocol.DialReceiverApp", L"SetAdditionalDataAsync", 1);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
if (!is_overload_present.value())
|
|
1348
1579
|
{
|
|
1349
1580
|
py::set_arg_count_version_error(1);
|
|
1350
1581
|
return nullptr;
|
|
@@ -1371,7 +1602,14 @@ namespace py::cpp::Windows::Media::DialProtocol
|
|
|
1371
1602
|
{
|
|
1372
1603
|
try
|
|
1373
1604
|
{
|
|
1374
|
-
|
|
1605
|
+
static std::optional<bool> is_property_present{};
|
|
1606
|
+
|
|
1607
|
+
if (!is_property_present.has_value())
|
|
1608
|
+
{
|
|
1609
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.DialProtocol.DialReceiverApp", L"Current");
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
if (!is_property_present.value())
|
|
1375
1613
|
{
|
|
1376
1614
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1377
1615
|
return nullptr;
|
|
@@ -1509,12 +1747,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_media_dialprotocol(void) noexcept
|
|
|
1509
1747
|
return nullptr;
|
|
1510
1748
|
}
|
|
1511
1749
|
|
|
1512
|
-
|
|
1750
|
+
py::pytype_handle DialApp_type{py::register_python_type(module.get(), &type_spec_DialApp, object_bases.get(), nullptr)};
|
|
1751
|
+
if (!DialApp_type)
|
|
1513
1752
|
{
|
|
1514
1753
|
return nullptr;
|
|
1515
1754
|
}
|
|
1516
1755
|
|
|
1517
|
-
|
|
1756
|
+
py::pytype_handle DialAppStateDetails_type{py::register_python_type(module.get(), &type_spec_DialAppStateDetails, object_bases.get(), nullptr)};
|
|
1757
|
+
if (!DialAppStateDetails_type)
|
|
1518
1758
|
{
|
|
1519
1759
|
return nullptr;
|
|
1520
1760
|
}
|
|
@@ -1525,27 +1765,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_media_dialprotocol(void) noexcept
|
|
|
1525
1765
|
return nullptr;
|
|
1526
1766
|
}
|
|
1527
1767
|
|
|
1528
|
-
|
|
1768
|
+
py::pytype_handle DialDevice_type{py::register_python_type(module.get(), &type_spec_DialDevice, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DialDevice_Static.get()))};
|
|
1769
|
+
if (!DialDevice_type)
|
|
1529
1770
|
{
|
|
1530
1771
|
return nullptr;
|
|
1531
1772
|
}
|
|
1532
1773
|
|
|
1533
|
-
|
|
1774
|
+
py::pytype_handle DialDevicePicker_type{py::register_python_type(module.get(), &type_spec_DialDevicePicker, object_bases.get(), nullptr)};
|
|
1775
|
+
if (!DialDevicePicker_type)
|
|
1534
1776
|
{
|
|
1535
1777
|
return nullptr;
|
|
1536
1778
|
}
|
|
1537
1779
|
|
|
1538
|
-
|
|
1780
|
+
py::pytype_handle DialDevicePickerFilter_type{py::register_python_type(module.get(), &type_spec_DialDevicePickerFilter, object_bases.get(), nullptr)};
|
|
1781
|
+
if (!DialDevicePickerFilter_type)
|
|
1539
1782
|
{
|
|
1540
1783
|
return nullptr;
|
|
1541
1784
|
}
|
|
1542
1785
|
|
|
1543
|
-
|
|
1786
|
+
py::pytype_handle DialDeviceSelectedEventArgs_type{py::register_python_type(module.get(), &type_spec_DialDeviceSelectedEventArgs, object_bases.get(), nullptr)};
|
|
1787
|
+
if (!DialDeviceSelectedEventArgs_type)
|
|
1544
1788
|
{
|
|
1545
1789
|
return nullptr;
|
|
1546
1790
|
}
|
|
1547
1791
|
|
|
1548
|
-
|
|
1792
|
+
py::pytype_handle DialDisconnectButtonClickedEventArgs_type{py::register_python_type(module.get(), &type_spec_DialDisconnectButtonClickedEventArgs, object_bases.get(), nullptr)};
|
|
1793
|
+
if (!DialDisconnectButtonClickedEventArgs_type)
|
|
1549
1794
|
{
|
|
1550
1795
|
return nullptr;
|
|
1551
1796
|
}
|
|
@@ -1556,7 +1801,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_media_dialprotocol(void) noexcept
|
|
|
1556
1801
|
return nullptr;
|
|
1557
1802
|
}
|
|
1558
1803
|
|
|
1559
|
-
|
|
1804
|
+
py::pytype_handle DialReceiverApp_type{py::register_python_type(module.get(), &type_spec_DialReceiverApp, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DialReceiverApp_Static.get()))};
|
|
1805
|
+
if (!DialReceiverApp_type)
|
|
1560
1806
|
{
|
|
1561
1807
|
return nullptr;
|
|
1562
1808
|
}
|
{winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/pyproject.toml
RENAMED
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
{winrt_windows_media_dialprotocol-2.1.0 → winrt_windows_media_dialprotocol-2.2.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Media.DialProtocol
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.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,15 +10,15 @@ 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: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.UI.Popups[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.UI.Popups[all]==2.2.0; extra == "all"
|
|
22
22
|
|
|
23
23
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
24
24
|
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Devices.Enumeration[all]==2.1.0
|
|
4
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
5
|
-
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
6
|
-
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
7
|
-
winrt-Windows.UI.Popups[all]==2.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|