winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider 2.0.1__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_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/PKG-INFO +5 -5
- winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/py.Windows.ApplicationModel.Appointments.AppointmentsProvider.cpp +374 -202
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/winrt/_winrt_windows_applicationmodel_appointments_appointmentsprovider.pyi +6 -7
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/winrt/windows/applicationmodel/appointments/appointmentsprovider/__init__.py +1 -1
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/PKG-INFO +5 -5
- winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/requires.txt +5 -0
- winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1/all-requirements.txt +0 -4
- winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/requires.txt +0 -5
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/winrt/windows/applicationmodel/appointments/appointmentsprovider/py.typed +0 -0
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_appointments_appointmentsprovider-2.0.1 → winrt_windows_applicationmodel_appointments_appointmentsprovider-2.2.0}/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider
|
|
3
|
-
Version: 2.0
|
|
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,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.Appointments[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Appointments[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.Appointments.AppointmentsProvider.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
7
6
|
{
|
|
8
7
|
// ----- AddAppointmentOperation class --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"DismissUI", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
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.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"DismissUI", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(0);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
self->obj.DismissUI();
|
|
40
46
|
Py_RETURN_NONE;
|
|
41
47
|
}
|
|
@@ -58,14 +64,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
58
64
|
|
|
59
65
|
if (arg_count == 0)
|
|
60
66
|
{
|
|
61
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"ReportCanceled", 0))
|
|
62
|
-
{
|
|
63
|
-
py::set_arg_count_version_error(0);
|
|
64
|
-
return nullptr;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
67
|
try
|
|
68
68
|
{
|
|
69
|
+
static std::optional<bool> is_overload_present{};
|
|
70
|
+
|
|
71
|
+
if (!is_overload_present.has_value())
|
|
72
|
+
{
|
|
73
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"ReportCanceled", 0);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (!is_overload_present.value())
|
|
77
|
+
{
|
|
78
|
+
py::set_arg_count_version_error(0);
|
|
79
|
+
return nullptr;
|
|
80
|
+
}
|
|
81
|
+
|
|
69
82
|
self->obj.ReportCanceled();
|
|
70
83
|
Py_RETURN_NONE;
|
|
71
84
|
}
|
|
@@ -88,14 +101,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
88
101
|
|
|
89
102
|
if (arg_count == 1)
|
|
90
103
|
{
|
|
91
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"ReportCompleted", 1))
|
|
92
|
-
{
|
|
93
|
-
py::set_arg_count_version_error(1);
|
|
94
|
-
return nullptr;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
104
|
try
|
|
98
105
|
{
|
|
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.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"ReportCompleted", 1);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!is_overload_present.value())
|
|
114
|
+
{
|
|
115
|
+
py::set_arg_count_version_error(1);
|
|
116
|
+
return nullptr;
|
|
117
|
+
}
|
|
118
|
+
|
|
99
119
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
100
120
|
|
|
101
121
|
self->obj.ReportCompleted(param0);
|
|
@@ -120,14 +140,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
120
140
|
|
|
121
141
|
if (arg_count == 1)
|
|
122
142
|
{
|
|
123
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"ReportError", 1))
|
|
124
|
-
{
|
|
125
|
-
py::set_arg_count_version_error(1);
|
|
126
|
-
return nullptr;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
143
|
try
|
|
130
144
|
{
|
|
145
|
+
static std::optional<bool> is_overload_present{};
|
|
146
|
+
|
|
147
|
+
if (!is_overload_present.has_value())
|
|
148
|
+
{
|
|
149
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"ReportError", 1);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (!is_overload_present.value())
|
|
153
|
+
{
|
|
154
|
+
py::set_arg_count_version_error(1);
|
|
155
|
+
return nullptr;
|
|
156
|
+
}
|
|
157
|
+
|
|
131
158
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
132
159
|
|
|
133
160
|
self->obj.ReportError(param0);
|
|
@@ -148,14 +175,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
148
175
|
|
|
149
176
|
static PyObject* AddAppointmentOperation_get_AppointmentInformation(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self, void* /*unused*/) noexcept
|
|
150
177
|
{
|
|
151
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"AppointmentInformation"))
|
|
152
|
-
{
|
|
153
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
154
|
-
return nullptr;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
178
|
try
|
|
158
179
|
{
|
|
180
|
+
static std::optional<bool> is_property_present{};
|
|
181
|
+
|
|
182
|
+
if (!is_property_present.has_value())
|
|
183
|
+
{
|
|
184
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"AppointmentInformation");
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (!is_property_present.value())
|
|
188
|
+
{
|
|
189
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
190
|
+
return nullptr;
|
|
191
|
+
}
|
|
192
|
+
|
|
159
193
|
return py::convert(self->obj.AppointmentInformation());
|
|
160
194
|
}
|
|
161
195
|
catch (...)
|
|
@@ -167,14 +201,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
167
201
|
|
|
168
202
|
static PyObject* AddAppointmentOperation_get_SourcePackageFamilyName(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self, void* /*unused*/) noexcept
|
|
169
203
|
{
|
|
170
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"SourcePackageFamilyName"))
|
|
171
|
-
{
|
|
172
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
173
|
-
return nullptr;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
204
|
try
|
|
177
205
|
{
|
|
206
|
+
static std::optional<bool> is_property_present{};
|
|
207
|
+
|
|
208
|
+
if (!is_property_present.has_value())
|
|
209
|
+
{
|
|
210
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation", L"SourcePackageFamilyName");
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (!is_property_present.value())
|
|
214
|
+
{
|
|
215
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
216
|
+
return nullptr;
|
|
217
|
+
}
|
|
218
|
+
|
|
178
219
|
return py::convert(self->obj.SourcePackageFamilyName());
|
|
179
220
|
}
|
|
180
221
|
catch (...)
|
|
@@ -224,23 +265,20 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
224
265
|
{ }
|
|
225
266
|
};
|
|
226
267
|
|
|
227
|
-
static PyType_Slot _type_slots_AddAppointmentOperation[] =
|
|
228
|
-
{
|
|
268
|
+
static PyType_Slot _type_slots_AddAppointmentOperation[] = {
|
|
229
269
|
{ Py_tp_new, reinterpret_cast<void*>(_new_AddAppointmentOperation) },
|
|
230
270
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AddAppointmentOperation) },
|
|
231
271
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_AddAppointmentOperation) },
|
|
232
272
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_AddAppointmentOperation) },
|
|
233
|
-
{ }
|
|
273
|
+
{ }
|
|
234
274
|
};
|
|
235
275
|
|
|
236
|
-
static PyType_Spec type_spec_AddAppointmentOperation =
|
|
237
|
-
{
|
|
276
|
+
static PyType_Spec type_spec_AddAppointmentOperation = {
|
|
238
277
|
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.AddAppointmentOperation",
|
|
239
278
|
sizeof(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation),
|
|
240
279
|
0,
|
|
241
280
|
Py_TPFLAGS_DEFAULT,
|
|
242
|
-
_type_slots_AddAppointmentOperation
|
|
243
|
-
};
|
|
281
|
+
_type_slots_AddAppointmentOperation};
|
|
244
282
|
|
|
245
283
|
// ----- AppointmentsProviderLaunchActionVerbs class --------------------
|
|
246
284
|
|
|
@@ -253,14 +291,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
253
291
|
|
|
254
292
|
static PyObject* AppointmentsProviderLaunchActionVerbs_get_AddAppointment(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
255
293
|
{
|
|
256
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"AddAppointment"))
|
|
257
|
-
{
|
|
258
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
259
|
-
return nullptr;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
294
|
try
|
|
263
295
|
{
|
|
296
|
+
static std::optional<bool> is_property_present{};
|
|
297
|
+
|
|
298
|
+
if (!is_property_present.has_value())
|
|
299
|
+
{
|
|
300
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"AddAppointment");
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if (!is_property_present.value())
|
|
304
|
+
{
|
|
305
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
306
|
+
return nullptr;
|
|
307
|
+
}
|
|
308
|
+
|
|
264
309
|
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::AddAppointment());
|
|
265
310
|
}
|
|
266
311
|
catch (...)
|
|
@@ -272,14 +317,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
272
317
|
|
|
273
318
|
static PyObject* AppointmentsProviderLaunchActionVerbs_get_RemoveAppointment(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
274
319
|
{
|
|
275
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"RemoveAppointment"))
|
|
276
|
-
{
|
|
277
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
278
|
-
return nullptr;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
320
|
try
|
|
282
321
|
{
|
|
322
|
+
static std::optional<bool> is_property_present{};
|
|
323
|
+
|
|
324
|
+
if (!is_property_present.has_value())
|
|
325
|
+
{
|
|
326
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"RemoveAppointment");
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (!is_property_present.value())
|
|
330
|
+
{
|
|
331
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
332
|
+
return nullptr;
|
|
333
|
+
}
|
|
334
|
+
|
|
283
335
|
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::RemoveAppointment());
|
|
284
336
|
}
|
|
285
337
|
catch (...)
|
|
@@ -291,14 +343,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
291
343
|
|
|
292
344
|
static PyObject* AppointmentsProviderLaunchActionVerbs_get_ReplaceAppointment(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
293
345
|
{
|
|
294
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"ReplaceAppointment"))
|
|
295
|
-
{
|
|
296
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
297
|
-
return nullptr;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
346
|
try
|
|
301
347
|
{
|
|
348
|
+
static std::optional<bool> is_property_present{};
|
|
349
|
+
|
|
350
|
+
if (!is_property_present.has_value())
|
|
351
|
+
{
|
|
352
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"ReplaceAppointment");
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if (!is_property_present.value())
|
|
356
|
+
{
|
|
357
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
358
|
+
return nullptr;
|
|
359
|
+
}
|
|
360
|
+
|
|
302
361
|
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::ReplaceAppointment());
|
|
303
362
|
}
|
|
304
363
|
catch (...)
|
|
@@ -310,14 +369,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
310
369
|
|
|
311
370
|
static PyObject* AppointmentsProviderLaunchActionVerbs_get_ShowTimeFrame(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
312
371
|
{
|
|
313
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"ShowTimeFrame"))
|
|
314
|
-
{
|
|
315
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
316
|
-
return nullptr;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
372
|
try
|
|
320
373
|
{
|
|
374
|
+
static std::optional<bool> is_property_present{};
|
|
375
|
+
|
|
376
|
+
if (!is_property_present.has_value())
|
|
377
|
+
{
|
|
378
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"ShowTimeFrame");
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if (!is_property_present.value())
|
|
382
|
+
{
|
|
383
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
384
|
+
return nullptr;
|
|
385
|
+
}
|
|
386
|
+
|
|
321
387
|
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::ShowTimeFrame());
|
|
322
388
|
}
|
|
323
389
|
catch (...)
|
|
@@ -329,14 +395,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
329
395
|
|
|
330
396
|
static PyObject* AppointmentsProviderLaunchActionVerbs_get_ShowAppointmentDetails(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
331
397
|
{
|
|
332
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"ShowAppointmentDetails"))
|
|
333
|
-
{
|
|
334
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
335
|
-
return nullptr;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
398
|
try
|
|
339
399
|
{
|
|
400
|
+
static std::optional<bool> is_property_present{};
|
|
401
|
+
|
|
402
|
+
if (!is_property_present.has_value())
|
|
403
|
+
{
|
|
404
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.AppointmentsProviderLaunchActionVerbs", L"ShowAppointmentDetails");
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (!is_property_present.value())
|
|
408
|
+
{
|
|
409
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
410
|
+
return nullptr;
|
|
411
|
+
}
|
|
412
|
+
|
|
340
413
|
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::ShowAppointmentDetails());
|
|
341
414
|
}
|
|
342
415
|
catch (...)
|
|
@@ -354,22 +427,19 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
354
427
|
{ }
|
|
355
428
|
};
|
|
356
429
|
|
|
357
|
-
static PyType_Slot _type_slots_AppointmentsProviderLaunchActionVerbs[] =
|
|
358
|
-
{
|
|
430
|
+
static PyType_Slot _type_slots_AppointmentsProviderLaunchActionVerbs[] = {
|
|
359
431
|
{ Py_tp_new, reinterpret_cast<void*>(_new_AppointmentsProviderLaunchActionVerbs) },
|
|
360
432
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_AppointmentsProviderLaunchActionVerbs) },
|
|
361
433
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_AppointmentsProviderLaunchActionVerbs) },
|
|
362
|
-
{ }
|
|
434
|
+
{ }
|
|
363
435
|
};
|
|
364
436
|
|
|
365
|
-
static PyType_Spec type_spec_AppointmentsProviderLaunchActionVerbs =
|
|
366
|
-
{
|
|
437
|
+
static PyType_Spec type_spec_AppointmentsProviderLaunchActionVerbs = {
|
|
367
438
|
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.AppointmentsProviderLaunchActionVerbs",
|
|
368
439
|
0,
|
|
369
440
|
0,
|
|
370
441
|
Py_TPFLAGS_DEFAULT,
|
|
371
|
-
_type_slots_AppointmentsProviderLaunchActionVerbs
|
|
372
|
-
};
|
|
442
|
+
_type_slots_AppointmentsProviderLaunchActionVerbs};
|
|
373
443
|
|
|
374
444
|
static PyGetSetDef getset_AppointmentsProviderLaunchActionVerbs_Static[] = {
|
|
375
445
|
{ "add_appointment", reinterpret_cast<getter>(AppointmentsProviderLaunchActionVerbs_get_AddAppointment), nullptr, nullptr, nullptr },
|
|
@@ -424,14 +494,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
424
494
|
|
|
425
495
|
if (arg_count == 0)
|
|
426
496
|
{
|
|
427
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"DismissUI", 0))
|
|
428
|
-
{
|
|
429
|
-
py::set_arg_count_version_error(0);
|
|
430
|
-
return nullptr;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
497
|
try
|
|
434
498
|
{
|
|
499
|
+
static std::optional<bool> is_overload_present{};
|
|
500
|
+
|
|
501
|
+
if (!is_overload_present.has_value())
|
|
502
|
+
{
|
|
503
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"DismissUI", 0);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (!is_overload_present.value())
|
|
507
|
+
{
|
|
508
|
+
py::set_arg_count_version_error(0);
|
|
509
|
+
return nullptr;
|
|
510
|
+
}
|
|
511
|
+
|
|
435
512
|
self->obj.DismissUI();
|
|
436
513
|
Py_RETURN_NONE;
|
|
437
514
|
}
|
|
@@ -454,14 +531,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
454
531
|
|
|
455
532
|
if (arg_count == 0)
|
|
456
533
|
{
|
|
457
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"ReportCanceled", 0))
|
|
458
|
-
{
|
|
459
|
-
py::set_arg_count_version_error(0);
|
|
460
|
-
return nullptr;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
534
|
try
|
|
464
535
|
{
|
|
536
|
+
static std::optional<bool> is_overload_present{};
|
|
537
|
+
|
|
538
|
+
if (!is_overload_present.has_value())
|
|
539
|
+
{
|
|
540
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"ReportCanceled", 0);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
if (!is_overload_present.value())
|
|
544
|
+
{
|
|
545
|
+
py::set_arg_count_version_error(0);
|
|
546
|
+
return nullptr;
|
|
547
|
+
}
|
|
548
|
+
|
|
465
549
|
self->obj.ReportCanceled();
|
|
466
550
|
Py_RETURN_NONE;
|
|
467
551
|
}
|
|
@@ -484,14 +568,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
484
568
|
|
|
485
569
|
if (arg_count == 0)
|
|
486
570
|
{
|
|
487
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"ReportCompleted", 0))
|
|
488
|
-
{
|
|
489
|
-
py::set_arg_count_version_error(0);
|
|
490
|
-
return nullptr;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
571
|
try
|
|
494
572
|
{
|
|
573
|
+
static std::optional<bool> is_overload_present{};
|
|
574
|
+
|
|
575
|
+
if (!is_overload_present.has_value())
|
|
576
|
+
{
|
|
577
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"ReportCompleted", 0);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
if (!is_overload_present.value())
|
|
581
|
+
{
|
|
582
|
+
py::set_arg_count_version_error(0);
|
|
583
|
+
return nullptr;
|
|
584
|
+
}
|
|
585
|
+
|
|
495
586
|
self->obj.ReportCompleted();
|
|
496
587
|
Py_RETURN_NONE;
|
|
497
588
|
}
|
|
@@ -514,14 +605,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
514
605
|
|
|
515
606
|
if (arg_count == 1)
|
|
516
607
|
{
|
|
517
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"ReportError", 1))
|
|
518
|
-
{
|
|
519
|
-
py::set_arg_count_version_error(1);
|
|
520
|
-
return nullptr;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
608
|
try
|
|
524
609
|
{
|
|
610
|
+
static std::optional<bool> is_overload_present{};
|
|
611
|
+
|
|
612
|
+
if (!is_overload_present.has_value())
|
|
613
|
+
{
|
|
614
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"ReportError", 1);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
if (!is_overload_present.value())
|
|
618
|
+
{
|
|
619
|
+
py::set_arg_count_version_error(1);
|
|
620
|
+
return nullptr;
|
|
621
|
+
}
|
|
622
|
+
|
|
525
623
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
526
624
|
|
|
527
625
|
self->obj.ReportError(param0);
|
|
@@ -542,14 +640,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
542
640
|
|
|
543
641
|
static PyObject* RemoveAppointmentOperation_get_AppointmentId(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, void* /*unused*/) noexcept
|
|
544
642
|
{
|
|
545
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"AppointmentId"))
|
|
546
|
-
{
|
|
547
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
548
|
-
return nullptr;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
643
|
try
|
|
552
644
|
{
|
|
645
|
+
static std::optional<bool> is_property_present{};
|
|
646
|
+
|
|
647
|
+
if (!is_property_present.has_value())
|
|
648
|
+
{
|
|
649
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"AppointmentId");
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
if (!is_property_present.value())
|
|
653
|
+
{
|
|
654
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
655
|
+
return nullptr;
|
|
656
|
+
}
|
|
657
|
+
|
|
553
658
|
return py::convert(self->obj.AppointmentId());
|
|
554
659
|
}
|
|
555
660
|
catch (...)
|
|
@@ -561,14 +666,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
561
666
|
|
|
562
667
|
static PyObject* RemoveAppointmentOperation_get_InstanceStartDate(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, void* /*unused*/) noexcept
|
|
563
668
|
{
|
|
564
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"InstanceStartDate"))
|
|
565
|
-
{
|
|
566
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
567
|
-
return nullptr;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
669
|
try
|
|
571
670
|
{
|
|
671
|
+
static std::optional<bool> is_property_present{};
|
|
672
|
+
|
|
673
|
+
if (!is_property_present.has_value())
|
|
674
|
+
{
|
|
675
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"InstanceStartDate");
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if (!is_property_present.value())
|
|
679
|
+
{
|
|
680
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
681
|
+
return nullptr;
|
|
682
|
+
}
|
|
683
|
+
|
|
572
684
|
return py::convert(self->obj.InstanceStartDate());
|
|
573
685
|
}
|
|
574
686
|
catch (...)
|
|
@@ -580,14 +692,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
580
692
|
|
|
581
693
|
static PyObject* RemoveAppointmentOperation_get_SourcePackageFamilyName(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, void* /*unused*/) noexcept
|
|
582
694
|
{
|
|
583
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"SourcePackageFamilyName"))
|
|
584
|
-
{
|
|
585
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
586
|
-
return nullptr;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
695
|
try
|
|
590
696
|
{
|
|
697
|
+
static std::optional<bool> is_property_present{};
|
|
698
|
+
|
|
699
|
+
if (!is_property_present.has_value())
|
|
700
|
+
{
|
|
701
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation", L"SourcePackageFamilyName");
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
if (!is_property_present.value())
|
|
705
|
+
{
|
|
706
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
707
|
+
return nullptr;
|
|
708
|
+
}
|
|
709
|
+
|
|
591
710
|
return py::convert(self->obj.SourcePackageFamilyName());
|
|
592
711
|
}
|
|
593
712
|
catch (...)
|
|
@@ -638,23 +757,20 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
638
757
|
{ }
|
|
639
758
|
};
|
|
640
759
|
|
|
641
|
-
static PyType_Slot _type_slots_RemoveAppointmentOperation[] =
|
|
642
|
-
{
|
|
760
|
+
static PyType_Slot _type_slots_RemoveAppointmentOperation[] = {
|
|
643
761
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoveAppointmentOperation) },
|
|
644
762
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoveAppointmentOperation) },
|
|
645
763
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoveAppointmentOperation) },
|
|
646
764
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoveAppointmentOperation) },
|
|
647
|
-
{ }
|
|
765
|
+
{ }
|
|
648
766
|
};
|
|
649
767
|
|
|
650
|
-
static PyType_Spec type_spec_RemoveAppointmentOperation =
|
|
651
|
-
{
|
|
768
|
+
static PyType_Spec type_spec_RemoveAppointmentOperation = {
|
|
652
769
|
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.RemoveAppointmentOperation",
|
|
653
770
|
sizeof(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation),
|
|
654
771
|
0,
|
|
655
772
|
Py_TPFLAGS_DEFAULT,
|
|
656
|
-
_type_slots_RemoveAppointmentOperation
|
|
657
|
-
};
|
|
773
|
+
_type_slots_RemoveAppointmentOperation};
|
|
658
774
|
|
|
659
775
|
// ----- ReplaceAppointmentOperation class --------------------
|
|
660
776
|
|
|
@@ -679,14 +795,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
679
795
|
|
|
680
796
|
if (arg_count == 0)
|
|
681
797
|
{
|
|
682
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"DismissUI", 0))
|
|
683
|
-
{
|
|
684
|
-
py::set_arg_count_version_error(0);
|
|
685
|
-
return nullptr;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
798
|
try
|
|
689
799
|
{
|
|
800
|
+
static std::optional<bool> is_overload_present{};
|
|
801
|
+
|
|
802
|
+
if (!is_overload_present.has_value())
|
|
803
|
+
{
|
|
804
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"DismissUI", 0);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
if (!is_overload_present.value())
|
|
808
|
+
{
|
|
809
|
+
py::set_arg_count_version_error(0);
|
|
810
|
+
return nullptr;
|
|
811
|
+
}
|
|
812
|
+
|
|
690
813
|
self->obj.DismissUI();
|
|
691
814
|
Py_RETURN_NONE;
|
|
692
815
|
}
|
|
@@ -709,14 +832,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
709
832
|
|
|
710
833
|
if (arg_count == 0)
|
|
711
834
|
{
|
|
712
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"ReportCanceled", 0))
|
|
713
|
-
{
|
|
714
|
-
py::set_arg_count_version_error(0);
|
|
715
|
-
return nullptr;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
835
|
try
|
|
719
836
|
{
|
|
837
|
+
static std::optional<bool> is_overload_present{};
|
|
838
|
+
|
|
839
|
+
if (!is_overload_present.has_value())
|
|
840
|
+
{
|
|
841
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"ReportCanceled", 0);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
if (!is_overload_present.value())
|
|
845
|
+
{
|
|
846
|
+
py::set_arg_count_version_error(0);
|
|
847
|
+
return nullptr;
|
|
848
|
+
}
|
|
849
|
+
|
|
720
850
|
self->obj.ReportCanceled();
|
|
721
851
|
Py_RETURN_NONE;
|
|
722
852
|
}
|
|
@@ -739,14 +869,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
739
869
|
|
|
740
870
|
if (arg_count == 1)
|
|
741
871
|
{
|
|
742
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"ReportCompleted", 1))
|
|
743
|
-
{
|
|
744
|
-
py::set_arg_count_version_error(1);
|
|
745
|
-
return nullptr;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
872
|
try
|
|
749
873
|
{
|
|
874
|
+
static std::optional<bool> is_overload_present{};
|
|
875
|
+
|
|
876
|
+
if (!is_overload_present.has_value())
|
|
877
|
+
{
|
|
878
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"ReportCompleted", 1);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
if (!is_overload_present.value())
|
|
882
|
+
{
|
|
883
|
+
py::set_arg_count_version_error(1);
|
|
884
|
+
return nullptr;
|
|
885
|
+
}
|
|
886
|
+
|
|
750
887
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
751
888
|
|
|
752
889
|
self->obj.ReportCompleted(param0);
|
|
@@ -771,14 +908,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
771
908
|
|
|
772
909
|
if (arg_count == 1)
|
|
773
910
|
{
|
|
774
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"ReportError", 1))
|
|
775
|
-
{
|
|
776
|
-
py::set_arg_count_version_error(1);
|
|
777
|
-
return nullptr;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
911
|
try
|
|
781
912
|
{
|
|
913
|
+
static std::optional<bool> is_overload_present{};
|
|
914
|
+
|
|
915
|
+
if (!is_overload_present.has_value())
|
|
916
|
+
{
|
|
917
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"ReportError", 1);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
if (!is_overload_present.value())
|
|
921
|
+
{
|
|
922
|
+
py::set_arg_count_version_error(1);
|
|
923
|
+
return nullptr;
|
|
924
|
+
}
|
|
925
|
+
|
|
782
926
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
783
927
|
|
|
784
928
|
self->obj.ReportError(param0);
|
|
@@ -799,14 +943,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
799
943
|
|
|
800
944
|
static PyObject* ReplaceAppointmentOperation_get_AppointmentId(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, void* /*unused*/) noexcept
|
|
801
945
|
{
|
|
802
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"AppointmentId"))
|
|
803
|
-
{
|
|
804
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
805
|
-
return nullptr;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
946
|
try
|
|
809
947
|
{
|
|
948
|
+
static std::optional<bool> is_property_present{};
|
|
949
|
+
|
|
950
|
+
if (!is_property_present.has_value())
|
|
951
|
+
{
|
|
952
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"AppointmentId");
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
if (!is_property_present.value())
|
|
956
|
+
{
|
|
957
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
958
|
+
return nullptr;
|
|
959
|
+
}
|
|
960
|
+
|
|
810
961
|
return py::convert(self->obj.AppointmentId());
|
|
811
962
|
}
|
|
812
963
|
catch (...)
|
|
@@ -818,14 +969,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
818
969
|
|
|
819
970
|
static PyObject* ReplaceAppointmentOperation_get_AppointmentInformation(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, void* /*unused*/) noexcept
|
|
820
971
|
{
|
|
821
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"AppointmentInformation"))
|
|
822
|
-
{
|
|
823
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
824
|
-
return nullptr;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
972
|
try
|
|
828
973
|
{
|
|
974
|
+
static std::optional<bool> is_property_present{};
|
|
975
|
+
|
|
976
|
+
if (!is_property_present.has_value())
|
|
977
|
+
{
|
|
978
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"AppointmentInformation");
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
if (!is_property_present.value())
|
|
982
|
+
{
|
|
983
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
984
|
+
return nullptr;
|
|
985
|
+
}
|
|
986
|
+
|
|
829
987
|
return py::convert(self->obj.AppointmentInformation());
|
|
830
988
|
}
|
|
831
989
|
catch (...)
|
|
@@ -837,14 +995,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
837
995
|
|
|
838
996
|
static PyObject* ReplaceAppointmentOperation_get_InstanceStartDate(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, void* /*unused*/) noexcept
|
|
839
997
|
{
|
|
840
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"InstanceStartDate"))
|
|
841
|
-
{
|
|
842
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
843
|
-
return nullptr;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
998
|
try
|
|
847
999
|
{
|
|
1000
|
+
static std::optional<bool> is_property_present{};
|
|
1001
|
+
|
|
1002
|
+
if (!is_property_present.has_value())
|
|
1003
|
+
{
|
|
1004
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"InstanceStartDate");
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
if (!is_property_present.value())
|
|
1008
|
+
{
|
|
1009
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1010
|
+
return nullptr;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
848
1013
|
return py::convert(self->obj.InstanceStartDate());
|
|
849
1014
|
}
|
|
850
1015
|
catch (...)
|
|
@@ -856,14 +1021,21 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
856
1021
|
|
|
857
1022
|
static PyObject* ReplaceAppointmentOperation_get_SourcePackageFamilyName(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, void* /*unused*/) noexcept
|
|
858
1023
|
{
|
|
859
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"SourcePackageFamilyName"))
|
|
860
|
-
{
|
|
861
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
862
|
-
return nullptr;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
1024
|
try
|
|
866
1025
|
{
|
|
1026
|
+
static std::optional<bool> is_property_present{};
|
|
1027
|
+
|
|
1028
|
+
if (!is_property_present.has_value())
|
|
1029
|
+
{
|
|
1030
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation", L"SourcePackageFamilyName");
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
if (!is_property_present.value())
|
|
1034
|
+
{
|
|
1035
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1036
|
+
return nullptr;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
867
1039
|
return py::convert(self->obj.SourcePackageFamilyName());
|
|
868
1040
|
}
|
|
869
1041
|
catch (...)
|
|
@@ -915,39 +1087,35 @@ namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
|
915
1087
|
{ }
|
|
916
1088
|
};
|
|
917
1089
|
|
|
918
|
-
static PyType_Slot _type_slots_ReplaceAppointmentOperation[] =
|
|
919
|
-
{
|
|
1090
|
+
static PyType_Slot _type_slots_ReplaceAppointmentOperation[] = {
|
|
920
1091
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ReplaceAppointmentOperation) },
|
|
921
1092
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ReplaceAppointmentOperation) },
|
|
922
1093
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ReplaceAppointmentOperation) },
|
|
923
1094
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ReplaceAppointmentOperation) },
|
|
924
|
-
{ }
|
|
1095
|
+
{ }
|
|
925
1096
|
};
|
|
926
1097
|
|
|
927
|
-
static PyType_Spec type_spec_ReplaceAppointmentOperation =
|
|
928
|
-
{
|
|
1098
|
+
static PyType_Spec type_spec_ReplaceAppointmentOperation = {
|
|
929
1099
|
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.ReplaceAppointmentOperation",
|
|
930
1100
|
sizeof(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation),
|
|
931
1101
|
0,
|
|
932
1102
|
Py_TPFLAGS_DEFAULT,
|
|
933
|
-
_type_slots_ReplaceAppointmentOperation
|
|
934
|
-
};
|
|
1103
|
+
_type_slots_ReplaceAppointmentOperation};
|
|
935
1104
|
|
|
936
1105
|
// ----- Windows.ApplicationModel.Appointments.AppointmentsProvider Initialization --------------------
|
|
937
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Appointments::AppointmentsProvider");
|
|
938
1106
|
|
|
1107
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Appointments.AppointmentsProvider");
|
|
939
1108
|
|
|
940
|
-
static PyModuleDef module_def
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
1109
|
+
static PyModuleDef module_def = {
|
|
1110
|
+
PyModuleDef_HEAD_INIT,
|
|
1111
|
+
"_winrt_windows_applicationmodel_appointments_appointmentsprovider",
|
|
1112
|
+
module_doc,
|
|
1113
|
+
0,
|
|
1114
|
+
nullptr,
|
|
1115
|
+
nullptr,
|
|
1116
|
+
nullptr,
|
|
1117
|
+
nullptr,
|
|
1118
|
+
nullptr};
|
|
951
1119
|
} // py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
952
1120
|
|
|
953
1121
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_appointments_appointmentsprovider(void) noexcept
|
|
@@ -979,7 +1147,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_appointments_appointmentsp
|
|
|
979
1147
|
return nullptr;
|
|
980
1148
|
}
|
|
981
1149
|
|
|
982
|
-
|
|
1150
|
+
py::pytype_handle AddAppointmentOperation_type{py::register_python_type(module.get(), &type_spec_AddAppointmentOperation, object_bases.get(), nullptr)};
|
|
1151
|
+
if (!AddAppointmentOperation_type)
|
|
983
1152
|
{
|
|
984
1153
|
return nullptr;
|
|
985
1154
|
}
|
|
@@ -990,17 +1159,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_appointments_appointmentsp
|
|
|
990
1159
|
return nullptr;
|
|
991
1160
|
}
|
|
992
1161
|
|
|
993
|
-
|
|
1162
|
+
py::pytype_handle AppointmentsProviderLaunchActionVerbs_type{py::register_python_type(module.get(), &type_spec_AppointmentsProviderLaunchActionVerbs, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AppointmentsProviderLaunchActionVerbs_Static.get()))};
|
|
1163
|
+
if (!AppointmentsProviderLaunchActionVerbs_type)
|
|
994
1164
|
{
|
|
995
1165
|
return nullptr;
|
|
996
1166
|
}
|
|
997
1167
|
|
|
998
|
-
|
|
1168
|
+
py::pytype_handle RemoveAppointmentOperation_type{py::register_python_type(module.get(), &type_spec_RemoveAppointmentOperation, object_bases.get(), nullptr)};
|
|
1169
|
+
if (!RemoveAppointmentOperation_type)
|
|
999
1170
|
{
|
|
1000
1171
|
return nullptr;
|
|
1001
1172
|
}
|
|
1002
1173
|
|
|
1003
|
-
|
|
1174
|
+
py::pytype_handle ReplaceAppointmentOperation_type{py::register_python_type(module.get(), &type_spec_ReplaceAppointmentOperation, object_bases.get(), nullptr)};
|
|
1175
|
+
if (!ReplaceAppointmentOperation_type)
|
|
1004
1176
|
{
|
|
1005
1177
|
return nullptr;
|
|
1006
1178
|
}
|
|
@@ -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
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,8 +9,8 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.applicationmodel.appointments
|
|
13
|
-
import winrt.windows.foundation
|
|
12
|
+
import winrt.windows.applicationmodel.appointments as windows_applicationmodel_appointments
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
14
|
|
|
15
15
|
Self = typing.TypeVar('Self')
|
|
16
16
|
|
|
@@ -23,7 +23,7 @@ class AddAppointmentOperation(winrt.system.Object):
|
|
|
23
23
|
def report_completed(self, item_id: str, /) -> None: ...
|
|
24
24
|
def report_error(self, value: str, /) -> None: ...
|
|
25
25
|
@_property
|
|
26
|
-
def appointment_information(self) -> typing.Optional[
|
|
26
|
+
def appointment_information(self) -> typing.Optional[windows_applicationmodel_appointments.Appointment]: ...
|
|
27
27
|
@_property
|
|
28
28
|
def source_package_family_name(self) -> str: ...
|
|
29
29
|
|
|
@@ -42,8 +42,7 @@ class AppointmentsProviderLaunchActionVerbs_Static(type):
|
|
|
42
42
|
|
|
43
43
|
@typing.final
|
|
44
44
|
class AppointmentsProviderLaunchActionVerbs(winrt.system.Object, metaclass=AppointmentsProviderLaunchActionVerbs_Static):
|
|
45
|
-
|
|
46
|
-
def _from(obj: winrt.system.Object, /) -> AppointmentsProviderLaunchActionVerbs: ...
|
|
45
|
+
pass
|
|
47
46
|
|
|
48
47
|
@typing.final
|
|
49
48
|
class RemoveAppointmentOperation(winrt.system.Object):
|
|
@@ -71,7 +70,7 @@ class ReplaceAppointmentOperation(winrt.system.Object):
|
|
|
71
70
|
@_property
|
|
72
71
|
def appointment_id(self) -> str: ...
|
|
73
72
|
@_property
|
|
74
|
-
def appointment_information(self) -> typing.Optional[
|
|
73
|
+
def appointment_information(self) -> typing.Optional[windows_applicationmodel_appointments.Appointment]: ...
|
|
75
74
|
@_property
|
|
76
75
|
def instance_start_date(self) -> typing.Optional[typing.Optional[datetime.datetime]]: ...
|
|
77
76
|
@_property
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider
|
|
3
|
-
Version: 2.0
|
|
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,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.Appointments[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Appointments[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|