winrt-Windows.Networking.PushNotifications 2.1.0__tar.gz → 2.3.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_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/PKG-INFO +8 -8
- winrt_windows_networking_pushnotifications-2.3.0/all-requirements.txt +7 -0
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/py.Windows.Networking.PushNotifications.cpp +245 -36
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/pyproject.toml +3 -2
- winrt_windows_networking_pushnotifications-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/requirements.txt +2 -2
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/winrt/_winrt_windows_networking_pushnotifications.pyi +1 -1
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/winrt/windows/networking/pushnotifications/__init__.py +1 -1
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/winrt_Windows.Networking.PushNotifications.egg-info/PKG-INFO +8 -8
- winrt_windows_networking_pushnotifications-2.3.0/winrt_Windows.Networking.PushNotifications.egg-info/requires.txt +8 -0
- winrt_windows_networking_pushnotifications-2.1.0/all-requirements.txt +0 -7
- winrt_windows_networking_pushnotifications-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_networking_pushnotifications-2.1.0/winrt_Windows.Networking.PushNotifications.egg-info/requires.txt +0 -8
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/README.md +0 -0
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/setup.cfg +0 -0
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/setup.py +0 -0
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/winrt/windows/networking/pushnotifications/py.typed +0 -0
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/winrt_Windows.Networking.PushNotifications.egg-info/SOURCES.txt +0 -0
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/winrt_Windows.Networking.PushNotifications.egg-info/dependency_links.txt +0 -0
- {winrt_windows_networking_pushnotifications-2.1.0 → winrt_windows_networking_pushnotifications-2.3.0}/winrt_Windows.Networking.PushNotifications.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Networking.PushNotifications
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.System[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.UI.Notifications[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.UI.Notifications[all]==2.3.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.3.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==2.3.0
|
|
4
|
+
winrt-Windows.Foundation.Collections[all]==2.3.0
|
|
5
|
+
winrt-Windows.Storage.Streams[all]==2.3.0
|
|
6
|
+
winrt-Windows.System[all]==2.3.0
|
|
7
|
+
winrt-Windows.UI.Notifications[all]==2.3.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.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Networking.PushNotifications.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
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.Networking.PushNotifications.PushNotificationChannel", L"Close", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -55,7 +62,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
55
62
|
{
|
|
56
63
|
try
|
|
57
64
|
{
|
|
58
|
-
|
|
65
|
+
static std::optional<bool> is_property_present{};
|
|
66
|
+
|
|
67
|
+
if (!is_property_present.has_value())
|
|
68
|
+
{
|
|
69
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"ExpirationTime");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (!is_property_present.value())
|
|
59
73
|
{
|
|
60
74
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
61
75
|
return nullptr;
|
|
@@ -74,7 +88,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
74
88
|
{
|
|
75
89
|
try
|
|
76
90
|
{
|
|
77
|
-
|
|
91
|
+
static std::optional<bool> is_property_present{};
|
|
92
|
+
|
|
93
|
+
if (!is_property_present.has_value())
|
|
94
|
+
{
|
|
95
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"Uri");
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (!is_property_present.value())
|
|
78
99
|
{
|
|
79
100
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
80
101
|
return nullptr;
|
|
@@ -93,7 +114,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
93
114
|
{
|
|
94
115
|
try
|
|
95
116
|
{
|
|
96
|
-
|
|
117
|
+
static std::optional<bool> is_event_present{};
|
|
118
|
+
|
|
119
|
+
if (!is_event_present.has_value())
|
|
120
|
+
{
|
|
121
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"PushNotificationReceived");
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (!is_event_present.value())
|
|
97
125
|
{
|
|
98
126
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
99
127
|
return nullptr;
|
|
@@ -114,7 +142,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
114
142
|
{
|
|
115
143
|
try
|
|
116
144
|
{
|
|
117
|
-
|
|
145
|
+
static std::optional<bool> is_event_present{};
|
|
146
|
+
|
|
147
|
+
if (!is_event_present.has_value())
|
|
148
|
+
{
|
|
149
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"PushNotificationReceived");
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (!is_event_present.value())
|
|
118
153
|
{
|
|
119
154
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
120
155
|
return nullptr;
|
|
@@ -203,7 +238,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
203
238
|
{
|
|
204
239
|
try
|
|
205
240
|
{
|
|
206
|
-
|
|
241
|
+
static std::optional<bool> is_overload_present{};
|
|
242
|
+
|
|
243
|
+
if (!is_overload_present.has_value())
|
|
244
|
+
{
|
|
245
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForApplicationAsync", 0);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (!is_overload_present.value())
|
|
207
249
|
{
|
|
208
250
|
py::set_arg_count_version_error(0);
|
|
209
251
|
return nullptr;
|
|
@@ -221,7 +263,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
221
263
|
{
|
|
222
264
|
try
|
|
223
265
|
{
|
|
224
|
-
|
|
266
|
+
static std::optional<bool> is_overload_present{};
|
|
267
|
+
|
|
268
|
+
if (!is_overload_present.has_value())
|
|
269
|
+
{
|
|
270
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForApplicationAsync", 1);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
if (!is_overload_present.value())
|
|
225
274
|
{
|
|
226
275
|
py::set_arg_count_version_error(1);
|
|
227
276
|
return nullptr;
|
|
@@ -252,7 +301,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
252
301
|
{
|
|
253
302
|
try
|
|
254
303
|
{
|
|
255
|
-
|
|
304
|
+
static std::optional<bool> is_overload_present{};
|
|
305
|
+
|
|
306
|
+
if (!is_overload_present.has_value())
|
|
307
|
+
{
|
|
308
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForSecondaryTileAsync", 1);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (!is_overload_present.value())
|
|
256
312
|
{
|
|
257
313
|
py::set_arg_count_version_error(1);
|
|
258
314
|
return nullptr;
|
|
@@ -283,7 +339,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
283
339
|
{
|
|
284
340
|
try
|
|
285
341
|
{
|
|
286
|
-
|
|
342
|
+
static std::optional<bool> is_overload_present{};
|
|
343
|
+
|
|
344
|
+
if (!is_overload_present.has_value())
|
|
345
|
+
{
|
|
346
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"GetDefault", 0);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if (!is_overload_present.value())
|
|
287
350
|
{
|
|
288
351
|
py::set_arg_count_version_error(0);
|
|
289
352
|
return nullptr;
|
|
@@ -312,7 +375,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
312
375
|
{
|
|
313
376
|
try
|
|
314
377
|
{
|
|
315
|
-
|
|
378
|
+
static std::optional<bool> is_overload_present{};
|
|
379
|
+
|
|
380
|
+
if (!is_overload_present.has_value())
|
|
381
|
+
{
|
|
382
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"GetForUser", 1);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
if (!is_overload_present.value())
|
|
316
386
|
{
|
|
317
387
|
py::set_arg_count_version_error(1);
|
|
318
388
|
return nullptr;
|
|
@@ -339,7 +409,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
339
409
|
{
|
|
340
410
|
try
|
|
341
411
|
{
|
|
342
|
-
|
|
412
|
+
static std::optional<bool> is_event_present{};
|
|
413
|
+
|
|
414
|
+
if (!is_event_present.has_value())
|
|
415
|
+
{
|
|
416
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"ChannelsRevoked");
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
if (!is_event_present.value())
|
|
343
420
|
{
|
|
344
421
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
345
422
|
return nullptr;
|
|
@@ -360,7 +437,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
360
437
|
{
|
|
361
438
|
try
|
|
362
439
|
{
|
|
363
|
-
|
|
440
|
+
static std::optional<bool> is_event_present{};
|
|
441
|
+
|
|
442
|
+
if (!is_event_present.has_value())
|
|
443
|
+
{
|
|
444
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"ChannelsRevoked");
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
if (!is_event_present.value())
|
|
364
448
|
{
|
|
365
449
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
366
450
|
return nullptr;
|
|
@@ -456,7 +540,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
456
540
|
{
|
|
457
541
|
try
|
|
458
542
|
{
|
|
459
|
-
|
|
543
|
+
static std::optional<bool> is_overload_present{};
|
|
544
|
+
|
|
545
|
+
if (!is_overload_present.has_value())
|
|
546
|
+
{
|
|
547
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForApplicationAsync", 0);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
if (!is_overload_present.value())
|
|
460
551
|
{
|
|
461
552
|
py::set_arg_count_version_error(0);
|
|
462
553
|
return nullptr;
|
|
@@ -474,7 +565,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
474
565
|
{
|
|
475
566
|
try
|
|
476
567
|
{
|
|
477
|
-
|
|
568
|
+
static std::optional<bool> is_overload_present{};
|
|
569
|
+
|
|
570
|
+
if (!is_overload_present.has_value())
|
|
571
|
+
{
|
|
572
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForApplicationAsync", 1);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
if (!is_overload_present.value())
|
|
478
576
|
{
|
|
479
577
|
py::set_arg_count_version_error(1);
|
|
480
578
|
return nullptr;
|
|
@@ -505,7 +603,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
505
603
|
{
|
|
506
604
|
try
|
|
507
605
|
{
|
|
508
|
-
|
|
606
|
+
static std::optional<bool> is_overload_present{};
|
|
607
|
+
|
|
608
|
+
if (!is_overload_present.has_value())
|
|
609
|
+
{
|
|
610
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForSecondaryTileAsync", 1);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if (!is_overload_present.value())
|
|
509
614
|
{
|
|
510
615
|
py::set_arg_count_version_error(1);
|
|
511
616
|
return nullptr;
|
|
@@ -536,7 +641,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
536
641
|
{
|
|
537
642
|
try
|
|
538
643
|
{
|
|
539
|
-
|
|
644
|
+
static std::optional<bool> is_overload_present{};
|
|
645
|
+
|
|
646
|
+
if (!is_overload_present.has_value())
|
|
647
|
+
{
|
|
648
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync", 2);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
if (!is_overload_present.value())
|
|
540
652
|
{
|
|
541
653
|
py::set_arg_count_version_error(2);
|
|
542
654
|
return nullptr;
|
|
@@ -557,7 +669,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
557
669
|
{
|
|
558
670
|
try
|
|
559
671
|
{
|
|
560
|
-
|
|
672
|
+
static std::optional<bool> is_overload_present{};
|
|
673
|
+
|
|
674
|
+
if (!is_overload_present.has_value())
|
|
675
|
+
{
|
|
676
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync", 3);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
if (!is_overload_present.value())
|
|
561
680
|
{
|
|
562
681
|
py::set_arg_count_version_error(3);
|
|
563
682
|
return nullptr;
|
|
@@ -586,7 +705,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
586
705
|
{
|
|
587
706
|
try
|
|
588
707
|
{
|
|
589
|
-
|
|
708
|
+
static std::optional<bool> is_property_present{};
|
|
709
|
+
|
|
710
|
+
if (!is_property_present.has_value())
|
|
711
|
+
{
|
|
712
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"User");
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
if (!is_property_present.value())
|
|
590
716
|
{
|
|
591
717
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
592
718
|
return nullptr;
|
|
@@ -741,7 +867,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
741
867
|
{
|
|
742
868
|
try
|
|
743
869
|
{
|
|
744
|
-
|
|
870
|
+
static std::optional<bool> is_property_present{};
|
|
871
|
+
|
|
872
|
+
if (!is_property_present.has_value())
|
|
873
|
+
{
|
|
874
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"Cancel");
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
if (!is_property_present.value())
|
|
745
878
|
{
|
|
746
879
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
747
880
|
return nullptr;
|
|
@@ -766,7 +899,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
766
899
|
|
|
767
900
|
try
|
|
768
901
|
{
|
|
769
|
-
|
|
902
|
+
static std::optional<bool> is_property_present{};
|
|
903
|
+
|
|
904
|
+
if (!is_property_present.has_value())
|
|
905
|
+
{
|
|
906
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"Cancel");
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
if (!is_property_present.value())
|
|
770
910
|
{
|
|
771
911
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
772
912
|
return -1;
|
|
@@ -788,7 +928,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
788
928
|
{
|
|
789
929
|
try
|
|
790
930
|
{
|
|
791
|
-
|
|
931
|
+
static std::optional<bool> is_property_present{};
|
|
932
|
+
|
|
933
|
+
if (!is_property_present.has_value())
|
|
934
|
+
{
|
|
935
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"BadgeNotification");
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
if (!is_property_present.value())
|
|
792
939
|
{
|
|
793
940
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
794
941
|
return nullptr;
|
|
@@ -807,7 +954,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
807
954
|
{
|
|
808
955
|
try
|
|
809
956
|
{
|
|
810
|
-
|
|
957
|
+
static std::optional<bool> is_property_present{};
|
|
958
|
+
|
|
959
|
+
if (!is_property_present.has_value())
|
|
960
|
+
{
|
|
961
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"NotificationType");
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
if (!is_property_present.value())
|
|
811
965
|
{
|
|
812
966
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
813
967
|
return nullptr;
|
|
@@ -826,7 +980,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
826
980
|
{
|
|
827
981
|
try
|
|
828
982
|
{
|
|
829
|
-
|
|
983
|
+
static std::optional<bool> is_property_present{};
|
|
984
|
+
|
|
985
|
+
if (!is_property_present.has_value())
|
|
986
|
+
{
|
|
987
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"RawNotification");
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
if (!is_property_present.value())
|
|
830
991
|
{
|
|
831
992
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
832
993
|
return nullptr;
|
|
@@ -845,7 +1006,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
845
1006
|
{
|
|
846
1007
|
try
|
|
847
1008
|
{
|
|
848
|
-
|
|
1009
|
+
static std::optional<bool> is_property_present{};
|
|
1010
|
+
|
|
1011
|
+
if (!is_property_present.has_value())
|
|
1012
|
+
{
|
|
1013
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"TileNotification");
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
if (!is_property_present.value())
|
|
849
1017
|
{
|
|
850
1018
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
851
1019
|
return nullptr;
|
|
@@ -864,7 +1032,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
864
1032
|
{
|
|
865
1033
|
try
|
|
866
1034
|
{
|
|
867
|
-
|
|
1035
|
+
static std::optional<bool> is_property_present{};
|
|
1036
|
+
|
|
1037
|
+
if (!is_property_present.has_value())
|
|
1038
|
+
{
|
|
1039
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"ToastNotification");
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
if (!is_property_present.value())
|
|
868
1043
|
{
|
|
869
1044
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
870
1045
|
return nullptr;
|
|
@@ -955,7 +1130,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
955
1130
|
{
|
|
956
1131
|
try
|
|
957
1132
|
{
|
|
958
|
-
|
|
1133
|
+
static std::optional<bool> is_property_present{};
|
|
1134
|
+
|
|
1135
|
+
if (!is_property_present.has_value())
|
|
1136
|
+
{
|
|
1137
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"Content");
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
if (!is_property_present.value())
|
|
959
1141
|
{
|
|
960
1142
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
961
1143
|
return nullptr;
|
|
@@ -974,7 +1156,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
974
1156
|
{
|
|
975
1157
|
try
|
|
976
1158
|
{
|
|
977
|
-
|
|
1159
|
+
static std::optional<bool> is_property_present{};
|
|
1160
|
+
|
|
1161
|
+
if (!is_property_present.has_value())
|
|
1162
|
+
{
|
|
1163
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"ChannelId");
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
if (!is_property_present.value())
|
|
978
1167
|
{
|
|
979
1168
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
980
1169
|
return nullptr;
|
|
@@ -993,7 +1182,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
993
1182
|
{
|
|
994
1183
|
try
|
|
995
1184
|
{
|
|
996
|
-
|
|
1185
|
+
static std::optional<bool> is_property_present{};
|
|
1186
|
+
|
|
1187
|
+
if (!is_property_present.has_value())
|
|
1188
|
+
{
|
|
1189
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"Headers");
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
if (!is_property_present.value())
|
|
997
1193
|
{
|
|
998
1194
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
999
1195
|
return nullptr;
|
|
@@ -1012,7 +1208,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
|
|
|
1012
1208
|
{
|
|
1013
1209
|
try
|
|
1014
1210
|
{
|
|
1015
|
-
|
|
1211
|
+
static std::optional<bool> is_property_present{};
|
|
1212
|
+
|
|
1213
|
+
if (!is_property_present.has_value())
|
|
1214
|
+
{
|
|
1215
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"ContentBytes");
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
if (!is_property_present.value())
|
|
1016
1219
|
{
|
|
1017
1220
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1018
1221
|
return nullptr;
|
|
@@ -1125,7 +1328,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking_pushnotifications(void) noexcept
|
|
|
1125
1328
|
return nullptr;
|
|
1126
1329
|
}
|
|
1127
1330
|
|
|
1128
|
-
|
|
1331
|
+
py::pytype_handle PushNotificationChannel_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannel, object_bases.get(), nullptr)};
|
|
1332
|
+
if (!PushNotificationChannel_type)
|
|
1129
1333
|
{
|
|
1130
1334
|
return nullptr;
|
|
1131
1335
|
}
|
|
@@ -1136,27 +1340,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking_pushnotifications(void) noexcept
|
|
|
1136
1340
|
return nullptr;
|
|
1137
1341
|
}
|
|
1138
1342
|
|
|
1139
|
-
|
|
1343
|
+
py::pytype_handle PushNotificationChannelManager_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannelManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PushNotificationChannelManager_Static.get()))};
|
|
1344
|
+
if (!PushNotificationChannelManager_type)
|
|
1140
1345
|
{
|
|
1141
1346
|
return nullptr;
|
|
1142
1347
|
}
|
|
1143
1348
|
|
|
1144
|
-
|
|
1349
|
+
py::pytype_handle PushNotificationChannelManagerForUser_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannelManagerForUser, object_bases.get(), nullptr)};
|
|
1350
|
+
if (!PushNotificationChannelManagerForUser_type)
|
|
1145
1351
|
{
|
|
1146
1352
|
return nullptr;
|
|
1147
1353
|
}
|
|
1148
1354
|
|
|
1149
|
-
|
|
1355
|
+
py::pytype_handle PushNotificationChannelsRevokedEventArgs_type{py::register_python_type(module.get(), &type_spec_PushNotificationChannelsRevokedEventArgs, object_bases.get(), nullptr)};
|
|
1356
|
+
if (!PushNotificationChannelsRevokedEventArgs_type)
|
|
1150
1357
|
{
|
|
1151
1358
|
return nullptr;
|
|
1152
1359
|
}
|
|
1153
1360
|
|
|
1154
|
-
|
|
1361
|
+
py::pytype_handle PushNotificationReceivedEventArgs_type{py::register_python_type(module.get(), &type_spec_PushNotificationReceivedEventArgs, object_bases.get(), nullptr)};
|
|
1362
|
+
if (!PushNotificationReceivedEventArgs_type)
|
|
1155
1363
|
{
|
|
1156
1364
|
return nullptr;
|
|
1157
1365
|
}
|
|
1158
1366
|
|
|
1159
|
-
|
|
1367
|
+
py::pytype_handle RawNotification_type{py::register_python_type(module.get(), &type_spec_RawNotification, object_bases.get(), nullptr)};
|
|
1368
|
+
if (!RawNotification_type)
|
|
1160
1369
|
{
|
|
1161
1370
|
return nullptr;
|
|
1162
1371
|
}
|
|
@@ -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.3.0
|
|
@@ -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.3.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Networking.PushNotifications
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.System[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.UI.Notifications[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.UI.Notifications[all]==2.3.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.Foundation[all]==2.1.0
|
|
4
|
-
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
5
|
-
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
6
|
-
winrt-Windows.System[all]==2.1.0
|
|
7
|
-
winrt-Windows.UI.Notifications[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
|