winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider 2.0.0b1__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.0b1/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/README.md +7 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/all-requirements.txt +4 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/py.Windows.ApplicationModel.Appointments.AppointmentsProvider.cpp +1010 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/setup.py +17 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/winrt/_winrt_windows_applicationmodel_appointments_appointmentsprovider.pyi +74 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/winrt/windows/applicationmodel/appointments/appointmentsprovider/__init__.py +16 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/SOURCES.txt +14 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/dependency_links.txt +1 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/requires.txt +5 -0
- winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider-2.0.0b1/winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Appointments.AppointmentsProvider` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.appointments.appointmentsprovider` module.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Appointments.AppointmentsProvider` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.applicationmodel.appointments.appointmentsprovider` module.
|
|
@@ -0,0 +1,1010 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.ApplicationModel.Appointments.AppointmentsProvider.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
7
|
+
{
|
|
8
|
+
// ----- AddAppointmentOperation class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_AddAppointmentOperation(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
11
|
+
{
|
|
12
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation>::type_name);
|
|
13
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation>::type_name);
|
|
14
|
+
return nullptr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static void _dealloc_AddAppointmentOperation(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self) noexcept
|
|
18
|
+
{
|
|
19
|
+
auto tp = Py_TYPE(self);
|
|
20
|
+
std::destroy_at(&self->obj);
|
|
21
|
+
tp->tp_free(self);
|
|
22
|
+
Py_DECREF(tp);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static PyObject* AddAppointmentOperation_DismissUI(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self, PyObject* args) noexcept
|
|
26
|
+
{
|
|
27
|
+
auto arg_count = PyTuple_Size(args);
|
|
28
|
+
|
|
29
|
+
if (arg_count == 0)
|
|
30
|
+
{
|
|
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
|
+
try
|
|
38
|
+
{
|
|
39
|
+
self->obj.DismissUI();
|
|
40
|
+
Py_RETURN_NONE;
|
|
41
|
+
}
|
|
42
|
+
catch (...)
|
|
43
|
+
{
|
|
44
|
+
py::to_PyErr();
|
|
45
|
+
return nullptr;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else
|
|
49
|
+
{
|
|
50
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
51
|
+
return nullptr;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static PyObject* AddAppointmentOperation_ReportCanceled(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self, PyObject* args) noexcept
|
|
56
|
+
{
|
|
57
|
+
auto arg_count = PyTuple_Size(args);
|
|
58
|
+
|
|
59
|
+
if (arg_count == 0)
|
|
60
|
+
{
|
|
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
|
+
try
|
|
68
|
+
{
|
|
69
|
+
self->obj.ReportCanceled();
|
|
70
|
+
Py_RETURN_NONE;
|
|
71
|
+
}
|
|
72
|
+
catch (...)
|
|
73
|
+
{
|
|
74
|
+
py::to_PyErr();
|
|
75
|
+
return nullptr;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else
|
|
79
|
+
{
|
|
80
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
81
|
+
return nullptr;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static PyObject* AddAppointmentOperation_ReportCompleted(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self, PyObject* args) noexcept
|
|
86
|
+
{
|
|
87
|
+
auto arg_count = PyTuple_Size(args);
|
|
88
|
+
|
|
89
|
+
if (arg_count == 1)
|
|
90
|
+
{
|
|
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
|
+
try
|
|
98
|
+
{
|
|
99
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
100
|
+
|
|
101
|
+
self->obj.ReportCompleted(param0);
|
|
102
|
+
Py_RETURN_NONE;
|
|
103
|
+
}
|
|
104
|
+
catch (...)
|
|
105
|
+
{
|
|
106
|
+
py::to_PyErr();
|
|
107
|
+
return nullptr;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
else
|
|
111
|
+
{
|
|
112
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
113
|
+
return nullptr;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
static PyObject* AddAppointmentOperation_ReportError(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self, PyObject* args) noexcept
|
|
118
|
+
{
|
|
119
|
+
auto arg_count = PyTuple_Size(args);
|
|
120
|
+
|
|
121
|
+
if (arg_count == 1)
|
|
122
|
+
{
|
|
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
|
+
try
|
|
130
|
+
{
|
|
131
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
132
|
+
|
|
133
|
+
self->obj.ReportError(param0);
|
|
134
|
+
Py_RETURN_NONE;
|
|
135
|
+
}
|
|
136
|
+
catch (...)
|
|
137
|
+
{
|
|
138
|
+
py::to_PyErr();
|
|
139
|
+
return nullptr;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
else
|
|
143
|
+
{
|
|
144
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
145
|
+
return nullptr;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
static PyObject* AddAppointmentOperation_get_AppointmentInformation(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self, void* /*unused*/) noexcept
|
|
150
|
+
{
|
|
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
|
+
try
|
|
158
|
+
{
|
|
159
|
+
return py::convert(self->obj.AppointmentInformation());
|
|
160
|
+
}
|
|
161
|
+
catch (...)
|
|
162
|
+
{
|
|
163
|
+
py::to_PyErr();
|
|
164
|
+
return nullptr;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
static PyObject* AddAppointmentOperation_get_SourcePackageFamilyName(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation* self, void* /*unused*/) noexcept
|
|
169
|
+
{
|
|
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
|
+
try
|
|
177
|
+
{
|
|
178
|
+
return py::convert(self->obj.SourcePackageFamilyName());
|
|
179
|
+
}
|
|
180
|
+
catch (...)
|
|
181
|
+
{
|
|
182
|
+
py::to_PyErr();
|
|
183
|
+
return nullptr;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
static PyObject* _assign_array_AddAppointmentOperation(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
188
|
+
{
|
|
189
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation>>();
|
|
190
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
191
|
+
{
|
|
192
|
+
return nullptr;
|
|
193
|
+
}
|
|
194
|
+
Py_RETURN_NONE;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
static PyObject* _from_AddAppointmentOperation(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
198
|
+
{
|
|
199
|
+
try
|
|
200
|
+
{
|
|
201
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
202
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation>());
|
|
203
|
+
}
|
|
204
|
+
catch (...)
|
|
205
|
+
{
|
|
206
|
+
py::to_PyErr();
|
|
207
|
+
return nullptr;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
static PyMethodDef _methods_AddAppointmentOperation[] = {
|
|
212
|
+
{ "dismiss_u_i", reinterpret_cast<PyCFunction>(AddAppointmentOperation_DismissUI), METH_VARARGS, nullptr },
|
|
213
|
+
{ "report_canceled", reinterpret_cast<PyCFunction>(AddAppointmentOperation_ReportCanceled), METH_VARARGS, nullptr },
|
|
214
|
+
{ "report_completed", reinterpret_cast<PyCFunction>(AddAppointmentOperation_ReportCompleted), METH_VARARGS, nullptr },
|
|
215
|
+
{ "report_error", reinterpret_cast<PyCFunction>(AddAppointmentOperation_ReportError), METH_VARARGS, nullptr },
|
|
216
|
+
{ "_assign_array_", _assign_array_AddAppointmentOperation, METH_O | METH_STATIC, nullptr },
|
|
217
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_AddAppointmentOperation), METH_O | METH_STATIC, nullptr },
|
|
218
|
+
{ }
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
static PyGetSetDef _getset_AddAppointmentOperation[] = {
|
|
222
|
+
{ "appointment_information", reinterpret_cast<getter>(AddAppointmentOperation_get_AppointmentInformation), nullptr, nullptr, nullptr },
|
|
223
|
+
{ "source_package_family_name", reinterpret_cast<getter>(AddAppointmentOperation_get_SourcePackageFamilyName), nullptr, nullptr, nullptr },
|
|
224
|
+
{ }
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
static PyType_Slot _type_slots_AddAppointmentOperation[] =
|
|
228
|
+
{
|
|
229
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_AddAppointmentOperation) },
|
|
230
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AddAppointmentOperation) },
|
|
231
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_AddAppointmentOperation) },
|
|
232
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_AddAppointmentOperation) },
|
|
233
|
+
{ },
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
static PyType_Spec type_spec_AddAppointmentOperation =
|
|
237
|
+
{
|
|
238
|
+
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.AddAppointmentOperation",
|
|
239
|
+
sizeof(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::AddAppointmentOperation),
|
|
240
|
+
0,
|
|
241
|
+
Py_TPFLAGS_DEFAULT,
|
|
242
|
+
_type_slots_AddAppointmentOperation
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// ----- AppointmentsProviderLaunchActionVerbs class --------------------
|
|
246
|
+
|
|
247
|
+
static PyObject* _new_AppointmentsProviderLaunchActionVerbs(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
248
|
+
{
|
|
249
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs>::type_name);
|
|
250
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs>::type_name);
|
|
251
|
+
return nullptr;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
static PyObject* AppointmentsProviderLaunchActionVerbs_get_AddAppointment(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
255
|
+
{
|
|
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
|
+
try
|
|
263
|
+
{
|
|
264
|
+
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::AddAppointment());
|
|
265
|
+
}
|
|
266
|
+
catch (...)
|
|
267
|
+
{
|
|
268
|
+
py::to_PyErr();
|
|
269
|
+
return nullptr;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
static PyObject* AppointmentsProviderLaunchActionVerbs_get_RemoveAppointment(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
274
|
+
{
|
|
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
|
+
try
|
|
282
|
+
{
|
|
283
|
+
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::RemoveAppointment());
|
|
284
|
+
}
|
|
285
|
+
catch (...)
|
|
286
|
+
{
|
|
287
|
+
py::to_PyErr();
|
|
288
|
+
return nullptr;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
static PyObject* AppointmentsProviderLaunchActionVerbs_get_ReplaceAppointment(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
293
|
+
{
|
|
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
|
+
try
|
|
301
|
+
{
|
|
302
|
+
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::ReplaceAppointment());
|
|
303
|
+
}
|
|
304
|
+
catch (...)
|
|
305
|
+
{
|
|
306
|
+
py::to_PyErr();
|
|
307
|
+
return nullptr;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
static PyObject* AppointmentsProviderLaunchActionVerbs_get_ShowTimeFrame(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
312
|
+
{
|
|
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
|
+
try
|
|
320
|
+
{
|
|
321
|
+
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::ShowTimeFrame());
|
|
322
|
+
}
|
|
323
|
+
catch (...)
|
|
324
|
+
{
|
|
325
|
+
py::to_PyErr();
|
|
326
|
+
return nullptr;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
static PyObject* AppointmentsProviderLaunchActionVerbs_get_ShowAppointmentDetails(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
331
|
+
{
|
|
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
|
+
try
|
|
339
|
+
{
|
|
340
|
+
return py::convert(winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::AppointmentsProviderLaunchActionVerbs::ShowAppointmentDetails());
|
|
341
|
+
}
|
|
342
|
+
catch (...)
|
|
343
|
+
{
|
|
344
|
+
py::to_PyErr();
|
|
345
|
+
return nullptr;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
static PyMethodDef _methods_AppointmentsProviderLaunchActionVerbs[] = {
|
|
350
|
+
{ }
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
static PyGetSetDef _getset_AppointmentsProviderLaunchActionVerbs[] = {
|
|
354
|
+
{ }
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
static PyType_Slot _type_slots_AppointmentsProviderLaunchActionVerbs[] =
|
|
358
|
+
{
|
|
359
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_AppointmentsProviderLaunchActionVerbs) },
|
|
360
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_AppointmentsProviderLaunchActionVerbs) },
|
|
361
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_AppointmentsProviderLaunchActionVerbs) },
|
|
362
|
+
{ },
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
static PyType_Spec type_spec_AppointmentsProviderLaunchActionVerbs =
|
|
366
|
+
{
|
|
367
|
+
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.AppointmentsProviderLaunchActionVerbs",
|
|
368
|
+
0,
|
|
369
|
+
0,
|
|
370
|
+
Py_TPFLAGS_DEFAULT,
|
|
371
|
+
_type_slots_AppointmentsProviderLaunchActionVerbs
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
static PyGetSetDef getset_AppointmentsProviderLaunchActionVerbs_Static[] = {
|
|
375
|
+
{ "add_appointment", reinterpret_cast<getter>(AppointmentsProviderLaunchActionVerbs_get_AddAppointment), nullptr, nullptr, nullptr },
|
|
376
|
+
{ "remove_appointment", reinterpret_cast<getter>(AppointmentsProviderLaunchActionVerbs_get_RemoveAppointment), nullptr, nullptr, nullptr },
|
|
377
|
+
{ "replace_appointment", reinterpret_cast<getter>(AppointmentsProviderLaunchActionVerbs_get_ReplaceAppointment), nullptr, nullptr, nullptr },
|
|
378
|
+
{ "show_time_frame", reinterpret_cast<getter>(AppointmentsProviderLaunchActionVerbs_get_ShowTimeFrame), nullptr, nullptr, nullptr },
|
|
379
|
+
{ "show_appointment_details", reinterpret_cast<getter>(AppointmentsProviderLaunchActionVerbs_get_ShowAppointmentDetails), nullptr, nullptr, nullptr },
|
|
380
|
+
{ }
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
static PyMethodDef methods_AppointmentsProviderLaunchActionVerbs_Static[] = {
|
|
384
|
+
{ }
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
static PyType_Slot type_slots_AppointmentsProviderLaunchActionVerbs_Static[] =
|
|
388
|
+
{
|
|
389
|
+
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
390
|
+
{ Py_tp_getset, reinterpret_cast<void*>(getset_AppointmentsProviderLaunchActionVerbs_Static) },
|
|
391
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_AppointmentsProviderLaunchActionVerbs_Static) },
|
|
392
|
+
{ }
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
static PyType_Spec type_spec_AppointmentsProviderLaunchActionVerbs_Static =
|
|
396
|
+
{
|
|
397
|
+
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.AppointmentsProviderLaunchActionVerbs_Static",
|
|
398
|
+
static_cast<int>(PyType_Type.tp_basicsize),
|
|
399
|
+
static_cast<int>(PyType_Type.tp_itemsize),
|
|
400
|
+
Py_TPFLAGS_DEFAULT,
|
|
401
|
+
type_slots_AppointmentsProviderLaunchActionVerbs_Static
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
// ----- RemoveAppointmentOperation class --------------------
|
|
405
|
+
|
|
406
|
+
static PyObject* _new_RemoveAppointmentOperation(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
407
|
+
{
|
|
408
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation>::type_name);
|
|
409
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation>::type_name);
|
|
410
|
+
return nullptr;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
static void _dealloc_RemoveAppointmentOperation(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self) noexcept
|
|
414
|
+
{
|
|
415
|
+
auto tp = Py_TYPE(self);
|
|
416
|
+
std::destroy_at(&self->obj);
|
|
417
|
+
tp->tp_free(self);
|
|
418
|
+
Py_DECREF(tp);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
static PyObject* RemoveAppointmentOperation_DismissUI(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, PyObject* args) noexcept
|
|
422
|
+
{
|
|
423
|
+
auto arg_count = PyTuple_Size(args);
|
|
424
|
+
|
|
425
|
+
if (arg_count == 0)
|
|
426
|
+
{
|
|
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
|
+
try
|
|
434
|
+
{
|
|
435
|
+
self->obj.DismissUI();
|
|
436
|
+
Py_RETURN_NONE;
|
|
437
|
+
}
|
|
438
|
+
catch (...)
|
|
439
|
+
{
|
|
440
|
+
py::to_PyErr();
|
|
441
|
+
return nullptr;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
else
|
|
445
|
+
{
|
|
446
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
447
|
+
return nullptr;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
static PyObject* RemoveAppointmentOperation_ReportCanceled(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, PyObject* args) noexcept
|
|
452
|
+
{
|
|
453
|
+
auto arg_count = PyTuple_Size(args);
|
|
454
|
+
|
|
455
|
+
if (arg_count == 0)
|
|
456
|
+
{
|
|
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
|
+
try
|
|
464
|
+
{
|
|
465
|
+
self->obj.ReportCanceled();
|
|
466
|
+
Py_RETURN_NONE;
|
|
467
|
+
}
|
|
468
|
+
catch (...)
|
|
469
|
+
{
|
|
470
|
+
py::to_PyErr();
|
|
471
|
+
return nullptr;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
else
|
|
475
|
+
{
|
|
476
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
477
|
+
return nullptr;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
static PyObject* RemoveAppointmentOperation_ReportCompleted(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, PyObject* args) noexcept
|
|
482
|
+
{
|
|
483
|
+
auto arg_count = PyTuple_Size(args);
|
|
484
|
+
|
|
485
|
+
if (arg_count == 0)
|
|
486
|
+
{
|
|
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
|
+
try
|
|
494
|
+
{
|
|
495
|
+
self->obj.ReportCompleted();
|
|
496
|
+
Py_RETURN_NONE;
|
|
497
|
+
}
|
|
498
|
+
catch (...)
|
|
499
|
+
{
|
|
500
|
+
py::to_PyErr();
|
|
501
|
+
return nullptr;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
else
|
|
505
|
+
{
|
|
506
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
507
|
+
return nullptr;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
static PyObject* RemoveAppointmentOperation_ReportError(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, PyObject* args) noexcept
|
|
512
|
+
{
|
|
513
|
+
auto arg_count = PyTuple_Size(args);
|
|
514
|
+
|
|
515
|
+
if (arg_count == 1)
|
|
516
|
+
{
|
|
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
|
+
try
|
|
524
|
+
{
|
|
525
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
526
|
+
|
|
527
|
+
self->obj.ReportError(param0);
|
|
528
|
+
Py_RETURN_NONE;
|
|
529
|
+
}
|
|
530
|
+
catch (...)
|
|
531
|
+
{
|
|
532
|
+
py::to_PyErr();
|
|
533
|
+
return nullptr;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
else
|
|
537
|
+
{
|
|
538
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
539
|
+
return nullptr;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
static PyObject* RemoveAppointmentOperation_get_AppointmentId(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, void* /*unused*/) noexcept
|
|
544
|
+
{
|
|
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
|
+
try
|
|
552
|
+
{
|
|
553
|
+
return py::convert(self->obj.AppointmentId());
|
|
554
|
+
}
|
|
555
|
+
catch (...)
|
|
556
|
+
{
|
|
557
|
+
py::to_PyErr();
|
|
558
|
+
return nullptr;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
static PyObject* RemoveAppointmentOperation_get_InstanceStartDate(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, void* /*unused*/) noexcept
|
|
563
|
+
{
|
|
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
|
+
try
|
|
571
|
+
{
|
|
572
|
+
return py::convert(self->obj.InstanceStartDate());
|
|
573
|
+
}
|
|
574
|
+
catch (...)
|
|
575
|
+
{
|
|
576
|
+
py::to_PyErr();
|
|
577
|
+
return nullptr;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
static PyObject* RemoveAppointmentOperation_get_SourcePackageFamilyName(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation* self, void* /*unused*/) noexcept
|
|
582
|
+
{
|
|
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
|
+
try
|
|
590
|
+
{
|
|
591
|
+
return py::convert(self->obj.SourcePackageFamilyName());
|
|
592
|
+
}
|
|
593
|
+
catch (...)
|
|
594
|
+
{
|
|
595
|
+
py::to_PyErr();
|
|
596
|
+
return nullptr;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
static PyObject* _assign_array_RemoveAppointmentOperation(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
601
|
+
{
|
|
602
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation>>();
|
|
603
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
604
|
+
{
|
|
605
|
+
return nullptr;
|
|
606
|
+
}
|
|
607
|
+
Py_RETURN_NONE;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
static PyObject* _from_RemoveAppointmentOperation(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
611
|
+
{
|
|
612
|
+
try
|
|
613
|
+
{
|
|
614
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
615
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation>());
|
|
616
|
+
}
|
|
617
|
+
catch (...)
|
|
618
|
+
{
|
|
619
|
+
py::to_PyErr();
|
|
620
|
+
return nullptr;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
static PyMethodDef _methods_RemoveAppointmentOperation[] = {
|
|
625
|
+
{ "dismiss_u_i", reinterpret_cast<PyCFunction>(RemoveAppointmentOperation_DismissUI), METH_VARARGS, nullptr },
|
|
626
|
+
{ "report_canceled", reinterpret_cast<PyCFunction>(RemoveAppointmentOperation_ReportCanceled), METH_VARARGS, nullptr },
|
|
627
|
+
{ "report_completed", reinterpret_cast<PyCFunction>(RemoveAppointmentOperation_ReportCompleted), METH_VARARGS, nullptr },
|
|
628
|
+
{ "report_error", reinterpret_cast<PyCFunction>(RemoveAppointmentOperation_ReportError), METH_VARARGS, nullptr },
|
|
629
|
+
{ "_assign_array_", _assign_array_RemoveAppointmentOperation, METH_O | METH_STATIC, nullptr },
|
|
630
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_RemoveAppointmentOperation), METH_O | METH_STATIC, nullptr },
|
|
631
|
+
{ }
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
static PyGetSetDef _getset_RemoveAppointmentOperation[] = {
|
|
635
|
+
{ "appointment_id", reinterpret_cast<getter>(RemoveAppointmentOperation_get_AppointmentId), nullptr, nullptr, nullptr },
|
|
636
|
+
{ "instance_start_date", reinterpret_cast<getter>(RemoveAppointmentOperation_get_InstanceStartDate), nullptr, nullptr, nullptr },
|
|
637
|
+
{ "source_package_family_name", reinterpret_cast<getter>(RemoveAppointmentOperation_get_SourcePackageFamilyName), nullptr, nullptr, nullptr },
|
|
638
|
+
{ }
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
static PyType_Slot _type_slots_RemoveAppointmentOperation[] =
|
|
642
|
+
{
|
|
643
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoveAppointmentOperation) },
|
|
644
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoveAppointmentOperation) },
|
|
645
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoveAppointmentOperation) },
|
|
646
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoveAppointmentOperation) },
|
|
647
|
+
{ },
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
static PyType_Spec type_spec_RemoveAppointmentOperation =
|
|
651
|
+
{
|
|
652
|
+
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.RemoveAppointmentOperation",
|
|
653
|
+
sizeof(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::RemoveAppointmentOperation),
|
|
654
|
+
0,
|
|
655
|
+
Py_TPFLAGS_DEFAULT,
|
|
656
|
+
_type_slots_RemoveAppointmentOperation
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
// ----- ReplaceAppointmentOperation class --------------------
|
|
660
|
+
|
|
661
|
+
static PyObject* _new_ReplaceAppointmentOperation(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
662
|
+
{
|
|
663
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation>::type_name);
|
|
664
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation>::type_name);
|
|
665
|
+
return nullptr;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
static void _dealloc_ReplaceAppointmentOperation(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self) noexcept
|
|
669
|
+
{
|
|
670
|
+
auto tp = Py_TYPE(self);
|
|
671
|
+
std::destroy_at(&self->obj);
|
|
672
|
+
tp->tp_free(self);
|
|
673
|
+
Py_DECREF(tp);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
static PyObject* ReplaceAppointmentOperation_DismissUI(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, PyObject* args) noexcept
|
|
677
|
+
{
|
|
678
|
+
auto arg_count = PyTuple_Size(args);
|
|
679
|
+
|
|
680
|
+
if (arg_count == 0)
|
|
681
|
+
{
|
|
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
|
+
try
|
|
689
|
+
{
|
|
690
|
+
self->obj.DismissUI();
|
|
691
|
+
Py_RETURN_NONE;
|
|
692
|
+
}
|
|
693
|
+
catch (...)
|
|
694
|
+
{
|
|
695
|
+
py::to_PyErr();
|
|
696
|
+
return nullptr;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
else
|
|
700
|
+
{
|
|
701
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
702
|
+
return nullptr;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
static PyObject* ReplaceAppointmentOperation_ReportCanceled(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, PyObject* args) noexcept
|
|
707
|
+
{
|
|
708
|
+
auto arg_count = PyTuple_Size(args);
|
|
709
|
+
|
|
710
|
+
if (arg_count == 0)
|
|
711
|
+
{
|
|
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
|
+
try
|
|
719
|
+
{
|
|
720
|
+
self->obj.ReportCanceled();
|
|
721
|
+
Py_RETURN_NONE;
|
|
722
|
+
}
|
|
723
|
+
catch (...)
|
|
724
|
+
{
|
|
725
|
+
py::to_PyErr();
|
|
726
|
+
return nullptr;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
else
|
|
730
|
+
{
|
|
731
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
732
|
+
return nullptr;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
static PyObject* ReplaceAppointmentOperation_ReportCompleted(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, PyObject* args) noexcept
|
|
737
|
+
{
|
|
738
|
+
auto arg_count = PyTuple_Size(args);
|
|
739
|
+
|
|
740
|
+
if (arg_count == 1)
|
|
741
|
+
{
|
|
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
|
+
try
|
|
749
|
+
{
|
|
750
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
751
|
+
|
|
752
|
+
self->obj.ReportCompleted(param0);
|
|
753
|
+
Py_RETURN_NONE;
|
|
754
|
+
}
|
|
755
|
+
catch (...)
|
|
756
|
+
{
|
|
757
|
+
py::to_PyErr();
|
|
758
|
+
return nullptr;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
else
|
|
762
|
+
{
|
|
763
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
764
|
+
return nullptr;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
static PyObject* ReplaceAppointmentOperation_ReportError(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, PyObject* args) noexcept
|
|
769
|
+
{
|
|
770
|
+
auto arg_count = PyTuple_Size(args);
|
|
771
|
+
|
|
772
|
+
if (arg_count == 1)
|
|
773
|
+
{
|
|
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
|
+
try
|
|
781
|
+
{
|
|
782
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
783
|
+
|
|
784
|
+
self->obj.ReportError(param0);
|
|
785
|
+
Py_RETURN_NONE;
|
|
786
|
+
}
|
|
787
|
+
catch (...)
|
|
788
|
+
{
|
|
789
|
+
py::to_PyErr();
|
|
790
|
+
return nullptr;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
else
|
|
794
|
+
{
|
|
795
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
796
|
+
return nullptr;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
static PyObject* ReplaceAppointmentOperation_get_AppointmentId(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, void* /*unused*/) noexcept
|
|
801
|
+
{
|
|
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
|
+
try
|
|
809
|
+
{
|
|
810
|
+
return py::convert(self->obj.AppointmentId());
|
|
811
|
+
}
|
|
812
|
+
catch (...)
|
|
813
|
+
{
|
|
814
|
+
py::to_PyErr();
|
|
815
|
+
return nullptr;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
static PyObject* ReplaceAppointmentOperation_get_AppointmentInformation(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, void* /*unused*/) noexcept
|
|
820
|
+
{
|
|
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
|
+
try
|
|
828
|
+
{
|
|
829
|
+
return py::convert(self->obj.AppointmentInformation());
|
|
830
|
+
}
|
|
831
|
+
catch (...)
|
|
832
|
+
{
|
|
833
|
+
py::to_PyErr();
|
|
834
|
+
return nullptr;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
static PyObject* ReplaceAppointmentOperation_get_InstanceStartDate(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, void* /*unused*/) noexcept
|
|
839
|
+
{
|
|
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
|
+
try
|
|
847
|
+
{
|
|
848
|
+
return py::convert(self->obj.InstanceStartDate());
|
|
849
|
+
}
|
|
850
|
+
catch (...)
|
|
851
|
+
{
|
|
852
|
+
py::to_PyErr();
|
|
853
|
+
return nullptr;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
static PyObject* ReplaceAppointmentOperation_get_SourcePackageFamilyName(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation* self, void* /*unused*/) noexcept
|
|
858
|
+
{
|
|
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
|
+
try
|
|
866
|
+
{
|
|
867
|
+
return py::convert(self->obj.SourcePackageFamilyName());
|
|
868
|
+
}
|
|
869
|
+
catch (...)
|
|
870
|
+
{
|
|
871
|
+
py::to_PyErr();
|
|
872
|
+
return nullptr;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
static PyObject* _assign_array_ReplaceAppointmentOperation(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
877
|
+
{
|
|
878
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation>>();
|
|
879
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
880
|
+
{
|
|
881
|
+
return nullptr;
|
|
882
|
+
}
|
|
883
|
+
Py_RETURN_NONE;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
static PyObject* _from_ReplaceAppointmentOperation(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
887
|
+
{
|
|
888
|
+
try
|
|
889
|
+
{
|
|
890
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
891
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation>());
|
|
892
|
+
}
|
|
893
|
+
catch (...)
|
|
894
|
+
{
|
|
895
|
+
py::to_PyErr();
|
|
896
|
+
return nullptr;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
static PyMethodDef _methods_ReplaceAppointmentOperation[] = {
|
|
901
|
+
{ "dismiss_u_i", reinterpret_cast<PyCFunction>(ReplaceAppointmentOperation_DismissUI), METH_VARARGS, nullptr },
|
|
902
|
+
{ "report_canceled", reinterpret_cast<PyCFunction>(ReplaceAppointmentOperation_ReportCanceled), METH_VARARGS, nullptr },
|
|
903
|
+
{ "report_completed", reinterpret_cast<PyCFunction>(ReplaceAppointmentOperation_ReportCompleted), METH_VARARGS, nullptr },
|
|
904
|
+
{ "report_error", reinterpret_cast<PyCFunction>(ReplaceAppointmentOperation_ReportError), METH_VARARGS, nullptr },
|
|
905
|
+
{ "_assign_array_", _assign_array_ReplaceAppointmentOperation, METH_O | METH_STATIC, nullptr },
|
|
906
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_ReplaceAppointmentOperation), METH_O | METH_STATIC, nullptr },
|
|
907
|
+
{ }
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
static PyGetSetDef _getset_ReplaceAppointmentOperation[] = {
|
|
911
|
+
{ "appointment_id", reinterpret_cast<getter>(ReplaceAppointmentOperation_get_AppointmentId), nullptr, nullptr, nullptr },
|
|
912
|
+
{ "appointment_information", reinterpret_cast<getter>(ReplaceAppointmentOperation_get_AppointmentInformation), nullptr, nullptr, nullptr },
|
|
913
|
+
{ "instance_start_date", reinterpret_cast<getter>(ReplaceAppointmentOperation_get_InstanceStartDate), nullptr, nullptr, nullptr },
|
|
914
|
+
{ "source_package_family_name", reinterpret_cast<getter>(ReplaceAppointmentOperation_get_SourcePackageFamilyName), nullptr, nullptr, nullptr },
|
|
915
|
+
{ }
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
static PyType_Slot _type_slots_ReplaceAppointmentOperation[] =
|
|
919
|
+
{
|
|
920
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_ReplaceAppointmentOperation) },
|
|
921
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ReplaceAppointmentOperation) },
|
|
922
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ReplaceAppointmentOperation) },
|
|
923
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ReplaceAppointmentOperation) },
|
|
924
|
+
{ },
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
static PyType_Spec type_spec_ReplaceAppointmentOperation =
|
|
928
|
+
{
|
|
929
|
+
"winrt._winrt_windows_applicationmodel_appointments_appointmentsprovider.ReplaceAppointmentOperation",
|
|
930
|
+
sizeof(py::wrapper::Windows::ApplicationModel::Appointments::AppointmentsProvider::ReplaceAppointmentOperation),
|
|
931
|
+
0,
|
|
932
|
+
Py_TPFLAGS_DEFAULT,
|
|
933
|
+
_type_slots_ReplaceAppointmentOperation
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
// ----- Windows.ApplicationModel.Appointments.AppointmentsProvider Initialization --------------------
|
|
937
|
+
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Appointments::AppointmentsProvider");
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
static PyModuleDef module_def
|
|
941
|
+
= {PyModuleDef_HEAD_INIT,
|
|
942
|
+
"_winrt_windows_applicationmodel_appointments_appointmentsprovider",
|
|
943
|
+
module_doc,
|
|
944
|
+
0,
|
|
945
|
+
nullptr,
|
|
946
|
+
nullptr,
|
|
947
|
+
nullptr,
|
|
948
|
+
nullptr,
|
|
949
|
+
nullptr};
|
|
950
|
+
|
|
951
|
+
} // py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider
|
|
952
|
+
|
|
953
|
+
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_appointments_appointmentsprovider(void) noexcept
|
|
954
|
+
{
|
|
955
|
+
using namespace py::cpp::Windows::ApplicationModel::Appointments::AppointmentsProvider;
|
|
956
|
+
|
|
957
|
+
if (py::import_winrt_runtime() == -1)
|
|
958
|
+
{
|
|
959
|
+
return nullptr;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
963
|
+
|
|
964
|
+
if (!module)
|
|
965
|
+
{
|
|
966
|
+
return nullptr;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
auto object_type = py::get_object_type();
|
|
970
|
+
if (!object_type)
|
|
971
|
+
{
|
|
972
|
+
return nullptr;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
976
|
+
|
|
977
|
+
if (!object_bases)
|
|
978
|
+
{
|
|
979
|
+
return nullptr;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
if (py::register_python_type(module.get(), &type_spec_AddAppointmentOperation, object_bases.get(), nullptr) == -1)
|
|
983
|
+
{
|
|
984
|
+
return nullptr;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
py::pyobj_handle type_AppointmentsProviderLaunchActionVerbs_Static{PyType_FromSpec(&type_spec_AppointmentsProviderLaunchActionVerbs_Static)};
|
|
988
|
+
if (!type_AppointmentsProviderLaunchActionVerbs_Static)
|
|
989
|
+
{
|
|
990
|
+
return nullptr;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
if (py::register_python_type(module.get(), &type_spec_AppointmentsProviderLaunchActionVerbs, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AppointmentsProviderLaunchActionVerbs_Static.get())) == -1)
|
|
994
|
+
{
|
|
995
|
+
return nullptr;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
if (py::register_python_type(module.get(), &type_spec_RemoveAppointmentOperation, object_bases.get(), nullptr) == -1)
|
|
999
|
+
{
|
|
1000
|
+
return nullptr;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
if (py::register_python_type(module.get(), &type_spec_ReplaceAppointmentOperation, object_bases.get(), nullptr) == -1)
|
|
1004
|
+
{
|
|
1005
|
+
return nullptr;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
return module.detach();
|
|
1010
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider"
|
|
9
|
+
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Operating System :: Microsoft :: Windows",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
]
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.13"
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
# Homepage = "https://github.com/pywrint/pywrinrt"
|
|
23
|
+
# Documentation = "https://readthedocs.org"
|
|
24
|
+
Repository = "https://github.com/pywrint/pywrinrt"
|
|
25
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = { file = "pywinrt-version.txt" }
|
|
29
|
+
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
+
|
|
32
|
+
[tool.cibuildwheel]
|
|
33
|
+
# use local winrt-sdk build dependency
|
|
34
|
+
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
35
|
+
# don't install winrt-sdk from PyPI
|
|
36
|
+
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
37
|
+
# don't build for PyPy
|
|
38
|
+
skip = "pp*"
|
|
39
|
+
# suppress warnings about ARM64 testing
|
|
40
|
+
test-skip = "*-win_arm64"
|
|
41
|
+
|
|
42
|
+
[tool.cibuildwheel.windows]
|
|
43
|
+
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
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_applicationmodel_appointments_appointmentsprovider",
|
|
10
|
+
sources=["py.Windows.ApplicationModel.Appointments.AppointmentsProvider.cpp"],
|
|
11
|
+
include_dirs=get_include_dirs(),
|
|
12
|
+
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
+
libraries=["windowsapp"],
|
|
14
|
+
)
|
|
15
|
+
],
|
|
16
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.applicationmodel.appointments
|
|
13
|
+
import winrt.windows.foundation
|
|
14
|
+
|
|
15
|
+
Self = typing.TypeVar('Self')
|
|
16
|
+
|
|
17
|
+
class AddAppointmentOperation(winrt.system.Object):
|
|
18
|
+
@staticmethod
|
|
19
|
+
def _from(obj: winrt.system.Object, /) -> AddAppointmentOperation: ...
|
|
20
|
+
def dismiss_u_i(self) -> None: ...
|
|
21
|
+
def report_canceled(self) -> None: ...
|
|
22
|
+
def report_completed(self, item_id: str, /) -> None: ...
|
|
23
|
+
def report_error(self, value: str, /) -> None: ...
|
|
24
|
+
@_property
|
|
25
|
+
def appointment_information(self) -> typing.Optional[winrt.windows.applicationmodel.appointments.Appointment]: ...
|
|
26
|
+
@_property
|
|
27
|
+
def source_package_family_name(self) -> str: ...
|
|
28
|
+
|
|
29
|
+
class AppointmentsProviderLaunchActionVerbs_Static(type):
|
|
30
|
+
@_property
|
|
31
|
+
def add_appointment(cls) -> str: ...
|
|
32
|
+
@_property
|
|
33
|
+
def remove_appointment(cls) -> str: ...
|
|
34
|
+
@_property
|
|
35
|
+
def replace_appointment(cls) -> str: ...
|
|
36
|
+
@_property
|
|
37
|
+
def show_time_frame(cls) -> str: ...
|
|
38
|
+
@_property
|
|
39
|
+
def show_appointment_details(cls) -> str: ...
|
|
40
|
+
|
|
41
|
+
class AppointmentsProviderLaunchActionVerbs(winrt.system.Object, metaclass=AppointmentsProviderLaunchActionVerbs_Static):
|
|
42
|
+
@staticmethod
|
|
43
|
+
def _from(obj: winrt.system.Object, /) -> AppointmentsProviderLaunchActionVerbs: ...
|
|
44
|
+
|
|
45
|
+
class RemoveAppointmentOperation(winrt.system.Object):
|
|
46
|
+
@staticmethod
|
|
47
|
+
def _from(obj: winrt.system.Object, /) -> RemoveAppointmentOperation: ...
|
|
48
|
+
def dismiss_u_i(self) -> None: ...
|
|
49
|
+
def report_canceled(self) -> None: ...
|
|
50
|
+
def report_completed(self) -> None: ...
|
|
51
|
+
def report_error(self, value: str, /) -> None: ...
|
|
52
|
+
@_property
|
|
53
|
+
def appointment_id(self) -> str: ...
|
|
54
|
+
@_property
|
|
55
|
+
def instance_start_date(self) -> typing.Optional[typing.Optional[datetime.datetime]]: ...
|
|
56
|
+
@_property
|
|
57
|
+
def source_package_family_name(self) -> str: ...
|
|
58
|
+
|
|
59
|
+
class ReplaceAppointmentOperation(winrt.system.Object):
|
|
60
|
+
@staticmethod
|
|
61
|
+
def _from(obj: winrt.system.Object, /) -> ReplaceAppointmentOperation: ...
|
|
62
|
+
def dismiss_u_i(self) -> None: ...
|
|
63
|
+
def report_canceled(self) -> None: ...
|
|
64
|
+
def report_completed(self, item_id: str, /) -> None: ...
|
|
65
|
+
def report_error(self, value: str, /) -> None: ...
|
|
66
|
+
@_property
|
|
67
|
+
def appointment_id(self) -> str: ...
|
|
68
|
+
@_property
|
|
69
|
+
def appointment_information(self) -> typing.Optional[winrt.windows.applicationmodel.appointments.Appointment]: ...
|
|
70
|
+
@_property
|
|
71
|
+
def instance_start_date(self) -> typing.Optional[typing.Optional[datetime.datetime]]: ...
|
|
72
|
+
@_property
|
|
73
|
+
def source_package_family_name(self) -> str: ...
|
|
74
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import winrt.system
|
|
4
|
+
from winrt import _winrt_windows_applicationmodel_appointments_appointmentsprovider
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"AddAppointmentOperation",
|
|
8
|
+
"AppointmentsProviderLaunchActionVerbs",
|
|
9
|
+
"RemoveAppointmentOperation",
|
|
10
|
+
"ReplaceAppointmentOperation",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
AddAppointmentOperation = _winrt_windows_applicationmodel_appointments_appointmentsprovider.AddAppointmentOperation
|
|
14
|
+
AppointmentsProviderLaunchActionVerbs = _winrt_windows_applicationmodel_appointments_appointmentsprovider.AppointmentsProviderLaunchActionVerbs
|
|
15
|
+
RemoveAppointmentOperation = _winrt_windows_applicationmodel_appointments_appointmentsprovider.RemoveAppointmentOperation
|
|
16
|
+
ReplaceAppointmentOperation = _winrt_windows_applicationmodel_appointments_appointmentsprovider.ReplaceAppointmentOperation
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.ApplicationModel.Appointments.AppointmentsProvider
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Appointments.AppointmentsProvider` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.appointments.appointmentsprovider` module.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.ApplicationModel.Appointments.AppointmentsProvider.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_applicationmodel_appointments_appointmentsprovider.pyi
|
|
9
|
+
winrt/windows/applicationmodel/appointments/appointmentsprovider/__init__.py
|
|
10
|
+
winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.ApplicationModel.Appointments.AppointmentsProvider.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|