winrt-Windows.UI.Notifications.Management 2.0.0b2__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/PKG-INFO +5 -1
- winrt_windows_ui_notifications_management-2.1.0/all-requirements.txt +5 -0
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/py.Windows.UI.Notifications.Management.cpp +70 -75
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/pyproject.toml +2 -2
- winrt_windows_ui_notifications_management-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/requirements.txt +2 -2
- winrt_windows_ui_notifications_management-2.1.0/setup.py +31 -0
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/winrt/_winrt_windows_ui_notifications_management.pyi +9 -9
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/winrt/windows/ui/notifications/management/__init__.py +1 -1
- winrt_windows_ui_notifications_management-2.1.0/winrt/windows/ui/notifications/management/py.typed +0 -0
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/winrt_Windows.UI.Notifications.Management.egg-info/PKG-INFO +5 -1
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/winrt_Windows.UI.Notifications.Management.egg-info/SOURCES.txt +1 -0
- winrt_windows_ui_notifications_management-2.1.0/winrt_Windows.UI.Notifications.Management.egg-info/requires.txt +6 -0
- winrt-Windows.UI.Notifications.Management-2.0.0b2/all-requirements.txt +0 -5
- winrt-Windows.UI.Notifications.Management-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.UI.Notifications.Management-2.0.0b2/setup.py +0 -16
- winrt-Windows.UI.Notifications.Management-2.0.0b2/winrt_Windows.UI.Notifications.Management.egg-info/requires.txt +0 -6
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/README.md +0 -0
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/winrt_Windows.UI.Notifications.Management.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.UI.Notifications.Management-2.0.0b2 → winrt_windows_ui_notifications_management-2.1.0}/winrt_Windows.UI.Notifications.Management.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Notifications.Management
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI.Notifications[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
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.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.UI.Notifications.Management.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::UI::Notifications::Management
|
|
7
6
|
{
|
|
8
7
|
// ----- UserNotificationListener class --------------------
|
|
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"ClearNotifications", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"ClearNotifications", 0))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(0);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
self->obj.ClearNotifications();
|
|
40
39
|
Py_RETURN_NONE;
|
|
41
40
|
}
|
|
@@ -58,14 +57,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
58
57
|
|
|
59
58
|
if (arg_count == 0)
|
|
60
59
|
{
|
|
61
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"GetAccessStatus", 0))
|
|
62
|
-
{
|
|
63
|
-
py::set_arg_count_version_error(0);
|
|
64
|
-
return nullptr;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
60
|
try
|
|
68
61
|
{
|
|
62
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"GetAccessStatus", 0))
|
|
63
|
+
{
|
|
64
|
+
py::set_arg_count_version_error(0);
|
|
65
|
+
return nullptr;
|
|
66
|
+
}
|
|
67
|
+
|
|
69
68
|
return py::convert(self->obj.GetAccessStatus());
|
|
70
69
|
}
|
|
71
70
|
catch (...)
|
|
@@ -87,14 +86,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
87
86
|
|
|
88
87
|
if (arg_count == 1)
|
|
89
88
|
{
|
|
90
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"GetNotification", 1))
|
|
91
|
-
{
|
|
92
|
-
py::set_arg_count_version_error(1);
|
|
93
|
-
return nullptr;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
89
|
try
|
|
97
90
|
{
|
|
91
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"GetNotification", 1))
|
|
92
|
+
{
|
|
93
|
+
py::set_arg_count_version_error(1);
|
|
94
|
+
return nullptr;
|
|
95
|
+
}
|
|
96
|
+
|
|
98
97
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
99
98
|
|
|
100
99
|
return py::convert(self->obj.GetNotification(param0));
|
|
@@ -118,14 +117,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
118
117
|
|
|
119
118
|
if (arg_count == 1)
|
|
120
119
|
{
|
|
121
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"GetNotificationsAsync", 1))
|
|
122
|
-
{
|
|
123
|
-
py::set_arg_count_version_error(1);
|
|
124
|
-
return nullptr;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
120
|
try
|
|
128
121
|
{
|
|
122
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"GetNotificationsAsync", 1))
|
|
123
|
+
{
|
|
124
|
+
py::set_arg_count_version_error(1);
|
|
125
|
+
return nullptr;
|
|
126
|
+
}
|
|
127
|
+
|
|
129
128
|
auto param0 = py::convert_to<winrt::Windows::UI::Notifications::NotificationKinds>(args, 0);
|
|
130
129
|
|
|
131
130
|
return py::convert(self->obj.GetNotificationsAsync(param0));
|
|
@@ -149,14 +148,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
149
148
|
|
|
150
149
|
if (arg_count == 1)
|
|
151
150
|
{
|
|
152
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"RemoveNotification", 1))
|
|
153
|
-
{
|
|
154
|
-
py::set_arg_count_version_error(1);
|
|
155
|
-
return nullptr;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
151
|
try
|
|
159
152
|
{
|
|
153
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"RemoveNotification", 1))
|
|
154
|
+
{
|
|
155
|
+
py::set_arg_count_version_error(1);
|
|
156
|
+
return nullptr;
|
|
157
|
+
}
|
|
158
|
+
|
|
160
159
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
161
160
|
|
|
162
161
|
self->obj.RemoveNotification(param0);
|
|
@@ -181,14 +180,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
181
180
|
|
|
182
181
|
if (arg_count == 0)
|
|
183
182
|
{
|
|
184
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"RequestAccessAsync", 0))
|
|
185
|
-
{
|
|
186
|
-
py::set_arg_count_version_error(0);
|
|
187
|
-
return nullptr;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
183
|
try
|
|
191
184
|
{
|
|
185
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"RequestAccessAsync", 0))
|
|
186
|
+
{
|
|
187
|
+
py::set_arg_count_version_error(0);
|
|
188
|
+
return nullptr;
|
|
189
|
+
}
|
|
190
|
+
|
|
192
191
|
return py::convert(self->obj.RequestAccessAsync());
|
|
193
192
|
}
|
|
194
193
|
catch (...)
|
|
@@ -206,14 +205,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
206
205
|
|
|
207
206
|
static PyObject* UserNotificationListener_get_Current(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
208
207
|
{
|
|
209
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"Current"))
|
|
210
|
-
{
|
|
211
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
212
|
-
return nullptr;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
208
|
try
|
|
216
209
|
{
|
|
210
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"Current"))
|
|
211
|
+
{
|
|
212
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
213
|
+
return nullptr;
|
|
214
|
+
}
|
|
215
|
+
|
|
217
216
|
return py::convert(winrt::Windows::UI::Notifications::Management::UserNotificationListener::Current());
|
|
218
217
|
}
|
|
219
218
|
catch (...)
|
|
@@ -225,14 +224,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
225
224
|
|
|
226
225
|
static PyObject* UserNotificationListener_add_NotificationChanged(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener* self, PyObject* arg) noexcept
|
|
227
226
|
{
|
|
228
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"NotificationChanged"))
|
|
229
|
-
{
|
|
230
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
231
|
-
return nullptr;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
227
|
try
|
|
235
228
|
{
|
|
229
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"NotificationChanged"))
|
|
230
|
+
{
|
|
231
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
232
|
+
return nullptr;
|
|
233
|
+
}
|
|
234
|
+
|
|
236
235
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::Notifications::Management::UserNotificationListener, winrt::Windows::UI::Notifications::UserNotificationChangedEventArgs>>(arg);
|
|
237
236
|
|
|
238
237
|
return py::convert(self->obj.NotificationChanged(param0));
|
|
@@ -246,14 +245,14 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
246
245
|
|
|
247
246
|
static PyObject* UserNotificationListener_remove_NotificationChanged(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener* self, PyObject* arg) noexcept
|
|
248
247
|
{
|
|
249
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"NotificationChanged"))
|
|
250
|
-
{
|
|
251
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
252
|
-
return nullptr;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
248
|
try
|
|
256
249
|
{
|
|
250
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Notifications.Management.UserNotificationListener", L"NotificationChanged"))
|
|
251
|
+
{
|
|
252
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
253
|
+
return nullptr;
|
|
254
|
+
}
|
|
255
|
+
|
|
257
256
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
258
257
|
|
|
259
258
|
self->obj.NotificationChanged(param0);
|
|
@@ -308,23 +307,20 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
308
307
|
{ }
|
|
309
308
|
};
|
|
310
309
|
|
|
311
|
-
static PyType_Slot _type_slots_UserNotificationListener[] =
|
|
312
|
-
{
|
|
310
|
+
static PyType_Slot _type_slots_UserNotificationListener[] = {
|
|
313
311
|
{ Py_tp_new, reinterpret_cast<void*>(_new_UserNotificationListener) },
|
|
314
312
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UserNotificationListener) },
|
|
315
313
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_UserNotificationListener) },
|
|
316
314
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_UserNotificationListener) },
|
|
317
|
-
{ }
|
|
315
|
+
{ }
|
|
318
316
|
};
|
|
319
317
|
|
|
320
|
-
static PyType_Spec type_spec_UserNotificationListener =
|
|
321
|
-
{
|
|
318
|
+
static PyType_Spec type_spec_UserNotificationListener = {
|
|
322
319
|
"winrt._winrt_windows_ui_notifications_management.UserNotificationListener",
|
|
323
320
|
sizeof(py::wrapper::Windows::UI::Notifications::Management::UserNotificationListener),
|
|
324
321
|
0,
|
|
325
322
|
Py_TPFLAGS_DEFAULT,
|
|
326
|
-
_type_slots_UserNotificationListener
|
|
327
|
-
};
|
|
323
|
+
_type_slots_UserNotificationListener};
|
|
328
324
|
|
|
329
325
|
static PyGetSetDef getset_UserNotificationListener_Static[] = {
|
|
330
326
|
{ "current", reinterpret_cast<getter>(UserNotificationListener_get_Current), nullptr, nullptr, nullptr },
|
|
@@ -353,20 +349,19 @@ namespace py::cpp::Windows::UI::Notifications::Management
|
|
|
353
349
|
};
|
|
354
350
|
|
|
355
351
|
// ----- Windows.UI.Notifications.Management Initialization --------------------
|
|
356
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Notifications::Management");
|
|
357
|
-
|
|
358
352
|
|
|
359
|
-
|
|
360
|
-
= {PyModuleDef_HEAD_INIT,
|
|
361
|
-
"_winrt_windows_ui_notifications_management",
|
|
362
|
-
module_doc,
|
|
363
|
-
0,
|
|
364
|
-
nullptr,
|
|
365
|
-
nullptr,
|
|
366
|
-
nullptr,
|
|
367
|
-
nullptr,
|
|
368
|
-
nullptr};
|
|
353
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Notifications.Management");
|
|
369
354
|
|
|
355
|
+
static PyModuleDef module_def = {
|
|
356
|
+
PyModuleDef_HEAD_INIT,
|
|
357
|
+
"_winrt_windows_ui_notifications_management",
|
|
358
|
+
module_doc,
|
|
359
|
+
0,
|
|
360
|
+
nullptr,
|
|
361
|
+
nullptr,
|
|
362
|
+
nullptr,
|
|
363
|
+
nullptr,
|
|
364
|
+
nullptr};
|
|
370
365
|
} // py::cpp::Windows::UI::Notifications::Management
|
|
371
366
|
|
|
372
367
|
PyMODINIT_FUNC PyInit__winrt_windows_ui_notifications_management(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_ui_notifications_management",
|
|
26
|
+
sources=["py.Windows.UI.Notifications.Management.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -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.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,9 +9,9 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
14
|
-
import winrt.windows.ui.notifications
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.ui.notifications as windows_ui_notifications
|
|
15
15
|
|
|
16
16
|
from winrt.windows.ui.notifications.management import UserNotificationListenerAccessStatus
|
|
17
17
|
|
|
@@ -28,10 +28,10 @@ class UserNotificationListener(winrt.system.Object, metaclass=UserNotificationLi
|
|
|
28
28
|
def _from(obj: winrt.system.Object, /) -> UserNotificationListener: ...
|
|
29
29
|
def clear_notifications(self) -> None: ...
|
|
30
30
|
def get_access_status(self) -> UserNotificationListenerAccessStatus: ...
|
|
31
|
-
def get_notification(self, notification_id: winrt.system.UInt32, /) -> typing.Optional[
|
|
32
|
-
def get_notifications_async(self, kinds:
|
|
31
|
+
def get_notification(self, notification_id: winrt.system.UInt32, /) -> typing.Optional[windows_ui_notifications.UserNotification]: ...
|
|
32
|
+
def get_notifications_async(self, kinds: windows_ui_notifications.NotificationKinds, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[windows_ui_notifications.UserNotification]]: ...
|
|
33
33
|
def remove_notification(self, notification_id: winrt.system.UInt32, /) -> None: ...
|
|
34
|
-
def request_access_async(self) ->
|
|
35
|
-
def add_notification_changed(self, handler:
|
|
36
|
-
def remove_notification_changed(self, token:
|
|
34
|
+
def request_access_async(self) -> windows_foundation.IAsyncOperation[UserNotificationListenerAccessStatus]: ...
|
|
35
|
+
def add_notification_changed(self, handler: windows_foundation.TypedEventHandler[UserNotificationListener, windows_ui_notifications.UserNotificationChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
36
|
+
def remove_notification_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
37
37
|
|
winrt_windows_ui_notifications_management-2.1.0/winrt/windows/ui/notifications/management/py.typed
ADDED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Notifications.Management
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI.Notifications[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_ui_notifications_management.pyi
|
|
9
9
|
winrt/windows/ui/notifications/management/__init__.py
|
|
10
|
+
winrt/windows/ui/notifications/management/py.typed
|
|
10
11
|
winrt_Windows.UI.Notifications.Management.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.UI.Notifications.Management.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.UI.Notifications.Management.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_ui_notifications_management",
|
|
10
|
-
sources=["py.Windows.UI.Notifications.Management.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|