winrt-Windows.System.Implementation.FileExplorer 2.3.0__tar.gz → 3.0.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_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/PKG-INFO +5 -5
- winrt_windows_system_implementation_fileexplorer-3.0.0/all-requirements.txt +4 -0
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/py.Windows.System.Implementation.FileExplorer.cpp +515 -78
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/pyproject.toml +2 -2
- winrt_windows_system_implementation_fileexplorer-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/requirements.txt +2 -2
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/setup.py +1 -1
- winrt_windows_system_implementation_fileexplorer-3.0.0/winrt/_winrt_windows_system_implementation_fileexplorer.pyi +54 -0
- winrt_windows_system_implementation_fileexplorer-3.0.0/winrt/windows/system/implementation/fileexplorer/__init__.py +20 -0
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/winrt_Windows.System.Implementation.FileExplorer.egg-info/PKG-INFO +5 -5
- winrt_windows_system_implementation_fileexplorer-3.0.0/winrt_Windows.System.Implementation.FileExplorer.egg-info/requires.txt +5 -0
- winrt_windows_system_implementation_fileexplorer-2.3.0/all-requirements.txt +0 -4
- winrt_windows_system_implementation_fileexplorer-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_system_implementation_fileexplorer-2.3.0/winrt/_winrt_windows_system_implementation_fileexplorer.pyi +0 -44
- winrt_windows_system_implementation_fileexplorer-2.3.0/winrt/windows/system/implementation/fileexplorer/__init__.py +0 -16
- winrt_windows_system_implementation_fileexplorer-2.3.0/winrt_Windows.System.Implementation.FileExplorer.egg-info/requires.txt +0 -5
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/README.md +0 -0
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/setup.cfg +0 -0
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/winrt/windows/system/implementation/fileexplorer/py.typed +0 -0
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/winrt_Windows.System.Implementation.FileExplorer.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/winrt_Windows.System.Implementation.FileExplorer.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_implementation_fileexplorer-2.3.0 → winrt_windows_system_implementation_fileexplorer-3.0.0}/winrt_Windows.System.Implementation.FileExplorer.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Implementation.FileExplorer
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Web.Http[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Web.Http[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Implementation.FileExplorer.h"
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
8
8
|
|
|
9
9
|
static PyObject* _new_SysStorageProviderEventReceivedEventArgs(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
10
10
|
{
|
|
11
|
-
if (kwds
|
|
11
|
+
if (kwds)
|
|
12
12
|
{
|
|
13
13
|
py::set_invalid_kwd_args_error();
|
|
14
14
|
return nullptr;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
auto arg_count =
|
|
17
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
18
18
|
if (arg_count == 1)
|
|
19
19
|
{
|
|
20
20
|
try
|
|
@@ -62,7 +62,11 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
62
62
|
return nullptr;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
return py::convert(
|
|
65
|
+
return py::convert([&]()
|
|
66
|
+
{
|
|
67
|
+
auto _gil = release_gil();
|
|
68
|
+
return self->obj.Json();
|
|
69
|
+
}());
|
|
66
70
|
}
|
|
67
71
|
catch (...)
|
|
68
72
|
{
|
|
@@ -98,21 +102,18 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
98
102
|
static PyMethodDef _methods_SysStorageProviderEventReceivedEventArgs[] = {
|
|
99
103
|
{ "_assign_array_", _assign_array_SysStorageProviderEventReceivedEventArgs, METH_O | METH_STATIC, nullptr },
|
|
100
104
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SysStorageProviderEventReceivedEventArgs), METH_O | METH_STATIC, nullptr },
|
|
101
|
-
{ }
|
|
102
|
-
};
|
|
105
|
+
{ }};
|
|
103
106
|
|
|
104
107
|
static PyGetSetDef _getset_SysStorageProviderEventReceivedEventArgs[] = {
|
|
105
108
|
{ "json", reinterpret_cast<getter>(SysStorageProviderEventReceivedEventArgs_get_Json), nullptr, nullptr, nullptr },
|
|
106
|
-
{ }
|
|
107
|
-
};
|
|
109
|
+
{ }};
|
|
108
110
|
|
|
109
111
|
static PyType_Slot _type_slots_SysStorageProviderEventReceivedEventArgs[] = {
|
|
110
112
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SysStorageProviderEventReceivedEventArgs) },
|
|
111
113
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SysStorageProviderEventReceivedEventArgs) },
|
|
112
114
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SysStorageProviderEventReceivedEventArgs) },
|
|
113
115
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SysStorageProviderEventReceivedEventArgs) },
|
|
114
|
-
{ }
|
|
115
|
-
};
|
|
116
|
+
{ }};
|
|
116
117
|
|
|
117
118
|
static PyType_Spec type_spec_SysStorageProviderEventReceivedEventArgs = {
|
|
118
119
|
"winrt._winrt_windows_system_implementation_fileexplorer.SysStorageProviderEventReceivedEventArgs",
|
|
@@ -123,12 +124,14 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
123
124
|
|
|
124
125
|
// ----- ISysStorageProviderEventSource interface --------------------
|
|
125
126
|
|
|
127
|
+
#if PY_VERSION_HEX < 0x030A0000
|
|
126
128
|
static PyObject* _new_ISysStorageProviderEventSource(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
127
129
|
{
|
|
128
130
|
static_assert(py::py_type<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource>::type_name);
|
|
129
131
|
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource>::type_name);
|
|
130
132
|
return nullptr;
|
|
131
133
|
}
|
|
134
|
+
#endif
|
|
132
135
|
|
|
133
136
|
static void _dealloc_ISysStorageProviderEventSource(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource* self) noexcept
|
|
134
137
|
{
|
|
@@ -157,7 +160,11 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
157
160
|
|
|
158
161
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource, winrt::Windows::System::Implementation::FileExplorer::SysStorageProviderEventReceivedEventArgs>>(arg);
|
|
159
162
|
|
|
160
|
-
return py::convert(
|
|
163
|
+
return py::convert([&]()
|
|
164
|
+
{
|
|
165
|
+
auto _gil = release_gil();
|
|
166
|
+
return self->obj.EventReceived(param0);
|
|
167
|
+
}());
|
|
161
168
|
}
|
|
162
169
|
catch (...)
|
|
163
170
|
{
|
|
@@ -185,7 +192,11 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
185
192
|
|
|
186
193
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
187
194
|
|
|
188
|
-
|
|
195
|
+
{
|
|
196
|
+
auto _gil = release_gil();
|
|
197
|
+
self->obj.EventReceived(param0);
|
|
198
|
+
}
|
|
199
|
+
|
|
189
200
|
Py_RETURN_NONE;
|
|
190
201
|
}
|
|
191
202
|
catch (...)
|
|
@@ -195,6 +206,104 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
195
206
|
}
|
|
196
207
|
}
|
|
197
208
|
|
|
209
|
+
static PyMethodDef _methods_ISysStorageProviderEventSource[] = {
|
|
210
|
+
{ "add_event_received", reinterpret_cast<PyCFunction>(ISysStorageProviderEventSource_add_EventReceived), METH_O, nullptr },
|
|
211
|
+
{ "remove_event_received", reinterpret_cast<PyCFunction>(ISysStorageProviderEventSource_remove_EventReceived), METH_O, nullptr },
|
|
212
|
+
{ }};
|
|
213
|
+
|
|
214
|
+
static PyGetSetDef _getset_ISysStorageProviderEventSource[] = {
|
|
215
|
+
{ }};
|
|
216
|
+
|
|
217
|
+
static PyType_Slot _type_slots_ISysStorageProviderEventSource[] = {
|
|
218
|
+
#if PY_VERSION_HEX < 0x030A0000
|
|
219
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_ISysStorageProviderEventSource) },
|
|
220
|
+
#endif
|
|
221
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ISysStorageProviderEventSource) },
|
|
222
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ISysStorageProviderEventSource) },
|
|
223
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ISysStorageProviderEventSource) },
|
|
224
|
+
{ }};
|
|
225
|
+
|
|
226
|
+
static PyType_Spec type_spec_ISysStorageProviderEventSource = {
|
|
227
|
+
"winrt._winrt_windows_system_implementation_fileexplorer._ISysStorageProviderEventSource",
|
|
228
|
+
sizeof(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource),
|
|
229
|
+
0,
|
|
230
|
+
Py_TPFLAGS_DEFAULT
|
|
231
|
+
#if PY_VERSION_HEX >= 0x030A0000
|
|
232
|
+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
|
|
233
|
+
#endif
|
|
234
|
+
,
|
|
235
|
+
_type_slots_ISysStorageProviderEventSource};
|
|
236
|
+
|
|
237
|
+
struct ImplementsISysStorageProviderEventSource : py::ImplementsInterfaceT<ImplementsISysStorageProviderEventSource, winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource>
|
|
238
|
+
{
|
|
239
|
+
ImplementsISysStorageProviderEventSource() = delete;
|
|
240
|
+
ImplementsISysStorageProviderEventSource(PyObject* py_obj, winrt::impl::inspectable_abi* runtime_class) : py::ImplementsInterfaceT<ImplementsISysStorageProviderEventSource, winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource>(py_obj, runtime_class)
|
|
241
|
+
{
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
auto EventReceived(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource, winrt::Windows::System::Implementation::FileExplorer::SysStorageProviderEventReceivedEventArgs> const& param0)
|
|
245
|
+
{
|
|
246
|
+
try
|
|
247
|
+
{
|
|
248
|
+
py::pyobj_handle self{this->get_py_obj()};
|
|
249
|
+
|
|
250
|
+
py::pyobj_handle method{PyObject_GetAttrString(self.get(), "add_event_received")};
|
|
251
|
+
if (!method)
|
|
252
|
+
{
|
|
253
|
+
throw python_exception();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
py::pyobj_handle py_param0{py::convert(param0)};
|
|
257
|
+
if (!py_param0)
|
|
258
|
+
{
|
|
259
|
+
throw python_exception();
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
py::pyobj_handle return_value{PyObject_CallOneArg(method.get(), py_param0.get())};
|
|
263
|
+
if (!return_value)
|
|
264
|
+
{
|
|
265
|
+
throw python_exception();
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
return py::convert_to<winrt::event_token>(return_value.get());
|
|
269
|
+
}
|
|
270
|
+
catch (python_exception)
|
|
271
|
+
{
|
|
272
|
+
py::write_unraisable_and_throw();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
auto EventReceived(winrt::event_token param0)
|
|
277
|
+
{
|
|
278
|
+
try
|
|
279
|
+
{
|
|
280
|
+
py::pyobj_handle self{this->get_py_obj()};
|
|
281
|
+
|
|
282
|
+
py::pyobj_handle method{PyObject_GetAttrString(self.get(), "remove_event_received")};
|
|
283
|
+
if (!method)
|
|
284
|
+
{
|
|
285
|
+
throw python_exception();
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
py::pyobj_handle py_param0{py::convert(param0)};
|
|
289
|
+
if (!py_param0)
|
|
290
|
+
{
|
|
291
|
+
throw python_exception();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
py::pyobj_handle return_value{PyObject_CallOneArg(method.get(), py_param0.get())};
|
|
295
|
+
if (!return_value)
|
|
296
|
+
{
|
|
297
|
+
throw python_exception();
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
catch (python_exception)
|
|
301
|
+
{
|
|
302
|
+
py::write_unraisable_and_throw();
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
198
307
|
static PyObject* _assign_array_ISysStorageProviderEventSource(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
199
308
|
{
|
|
200
309
|
auto array = std::make_unique<py::ComArray<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource>>();
|
|
@@ -219,41 +328,74 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
219
328
|
}
|
|
220
329
|
}
|
|
221
330
|
|
|
222
|
-
static
|
|
223
|
-
|
|
224
|
-
|
|
331
|
+
static PyObject* _guid_ImplementsISysStorageProviderEventSource(PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
332
|
+
{
|
|
333
|
+
try
|
|
334
|
+
{
|
|
335
|
+
return py::convert(winrt::guid_of<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource>());
|
|
336
|
+
}
|
|
337
|
+
catch (...)
|
|
338
|
+
{
|
|
339
|
+
py::to_PyErr();
|
|
340
|
+
return nullptr;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
static PyObject* _make_ImplementsISysStorageProviderEventSource(PyObject* /*unused*/, PyObject* args) noexcept
|
|
345
|
+
{
|
|
346
|
+
try
|
|
347
|
+
{
|
|
348
|
+
PyObject* py_obj;
|
|
349
|
+
winrt::impl::inspectable_abi* runtime_class;
|
|
350
|
+
|
|
351
|
+
if (!PyArg_ParseTuple(args, "On", &py_obj, &runtime_class))
|
|
352
|
+
{
|
|
353
|
+
return nullptr;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
auto iface{std::make_unique<ImplementsISysStorageProviderEventSource>(py_obj, runtime_class)};
|
|
357
|
+
|
|
358
|
+
return PyLong_FromVoidPtr(iface.release());
|
|
359
|
+
}
|
|
360
|
+
catch (...)
|
|
361
|
+
{
|
|
362
|
+
py::to_PyErr();
|
|
363
|
+
return nullptr;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
static PyMethodDef methods_ImplementsISysStorageProviderEventSource[] = {
|
|
225
368
|
{ "_assign_array_", _assign_array_ISysStorageProviderEventSource, METH_O | METH_STATIC, nullptr },
|
|
226
369
|
{ "_from", reinterpret_cast<PyCFunction>(_from_ISysStorageProviderEventSource), METH_O | METH_STATIC, nullptr },
|
|
227
|
-
{ }
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
static PyGetSetDef _getset_ISysStorageProviderEventSource[] = {
|
|
231
|
-
{ }
|
|
232
|
-
};
|
|
370
|
+
{ "_guid_", reinterpret_cast<PyCFunction>(_guid_ImplementsISysStorageProviderEventSource), METH_NOARGS | METH_STATIC, nullptr },
|
|
371
|
+
{ "_make_", reinterpret_cast<PyCFunction>(_make_ImplementsISysStorageProviderEventSource), METH_VARARGS | METH_STATIC, nullptr },
|
|
372
|
+
{ }};
|
|
233
373
|
|
|
234
|
-
static PyType_Slot
|
|
235
|
-
{
|
|
236
|
-
{
|
|
237
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ISysStorageProviderEventSource) },
|
|
238
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ISysStorageProviderEventSource) },
|
|
239
|
-
{ }
|
|
240
|
-
};
|
|
374
|
+
static PyType_Slot type_slots_ImplementsISysStorageProviderEventSource[] = {
|
|
375
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_ImplementsISysStorageProviderEventSource) },
|
|
376
|
+
{ }};
|
|
241
377
|
|
|
242
|
-
static PyType_Spec
|
|
378
|
+
static PyType_Spec type_spec_ImplementsISysStorageProviderEventSource = {
|
|
243
379
|
"winrt._winrt_windows_system_implementation_fileexplorer.ISysStorageProviderEventSource",
|
|
244
|
-
sizeof(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource),
|
|
245
380
|
0,
|
|
246
|
-
|
|
247
|
-
|
|
381
|
+
0,
|
|
382
|
+
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE
|
|
383
|
+
#if PY_VERSION_HEX >= 0x030A0000
|
|
384
|
+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
|
|
385
|
+
#endif
|
|
386
|
+
,
|
|
387
|
+
type_slots_ImplementsISysStorageProviderEventSource};
|
|
248
388
|
|
|
249
389
|
// ----- ISysStorageProviderHandlerFactory interface --------------------
|
|
250
390
|
|
|
391
|
+
#if PY_VERSION_HEX < 0x030A0000
|
|
251
392
|
static PyObject* _new_ISysStorageProviderHandlerFactory(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
252
393
|
{
|
|
253
394
|
static_assert(py::py_type<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory>::type_name);
|
|
254
395
|
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory>::type_name);
|
|
255
396
|
return nullptr;
|
|
256
397
|
}
|
|
398
|
+
#endif
|
|
257
399
|
|
|
258
400
|
static void _dealloc_ISysStorageProviderHandlerFactory(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory* self) noexcept
|
|
259
401
|
{
|
|
@@ -265,7 +407,7 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
265
407
|
|
|
266
408
|
static PyObject* ISysStorageProviderHandlerFactory_GetEventSource(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory* self, PyObject* args) noexcept
|
|
267
409
|
{
|
|
268
|
-
auto arg_count =
|
|
410
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
269
411
|
|
|
270
412
|
if (arg_count == 2)
|
|
271
413
|
{
|
|
@@ -287,7 +429,11 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
287
429
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
288
430
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
289
431
|
|
|
290
|
-
return py::convert(
|
|
432
|
+
return py::convert([&]()
|
|
433
|
+
{
|
|
434
|
+
auto _gil = release_gil();
|
|
435
|
+
return self->obj.GetEventSource(param0, param1);
|
|
436
|
+
}());
|
|
291
437
|
}
|
|
292
438
|
catch (...)
|
|
293
439
|
{
|
|
@@ -304,7 +450,7 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
304
450
|
|
|
305
451
|
static PyObject* ISysStorageProviderHandlerFactory_GetHttpRequestProvider(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory* self, PyObject* args) noexcept
|
|
306
452
|
{
|
|
307
|
-
auto arg_count =
|
|
453
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
308
454
|
|
|
309
455
|
if (arg_count == 1)
|
|
310
456
|
{
|
|
@@ -325,7 +471,11 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
325
471
|
|
|
326
472
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
327
473
|
|
|
328
|
-
return py::convert(
|
|
474
|
+
return py::convert([&]()
|
|
475
|
+
{
|
|
476
|
+
auto _gil = release_gil();
|
|
477
|
+
return self->obj.GetHttpRequestProvider(param0);
|
|
478
|
+
}());
|
|
329
479
|
}
|
|
330
480
|
catch (...)
|
|
331
481
|
{
|
|
@@ -340,6 +490,118 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
340
490
|
}
|
|
341
491
|
}
|
|
342
492
|
|
|
493
|
+
static PyMethodDef _methods_ISysStorageProviderHandlerFactory[] = {
|
|
494
|
+
{ "get_event_source", reinterpret_cast<PyCFunction>(ISysStorageProviderHandlerFactory_GetEventSource), METH_VARARGS, nullptr },
|
|
495
|
+
{ "get_http_request_provider", reinterpret_cast<PyCFunction>(ISysStorageProviderHandlerFactory_GetHttpRequestProvider), METH_VARARGS, nullptr },
|
|
496
|
+
{ }};
|
|
497
|
+
|
|
498
|
+
static PyGetSetDef _getset_ISysStorageProviderHandlerFactory[] = {
|
|
499
|
+
{ }};
|
|
500
|
+
|
|
501
|
+
static PyType_Slot _type_slots_ISysStorageProviderHandlerFactory[] = {
|
|
502
|
+
#if PY_VERSION_HEX < 0x030A0000
|
|
503
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_ISysStorageProviderHandlerFactory) },
|
|
504
|
+
#endif
|
|
505
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ISysStorageProviderHandlerFactory) },
|
|
506
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ISysStorageProviderHandlerFactory) },
|
|
507
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ISysStorageProviderHandlerFactory) },
|
|
508
|
+
{ }};
|
|
509
|
+
|
|
510
|
+
static PyType_Spec type_spec_ISysStorageProviderHandlerFactory = {
|
|
511
|
+
"winrt._winrt_windows_system_implementation_fileexplorer._ISysStorageProviderHandlerFactory",
|
|
512
|
+
sizeof(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory),
|
|
513
|
+
0,
|
|
514
|
+
Py_TPFLAGS_DEFAULT
|
|
515
|
+
#if PY_VERSION_HEX >= 0x030A0000
|
|
516
|
+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
|
|
517
|
+
#endif
|
|
518
|
+
,
|
|
519
|
+
_type_slots_ISysStorageProviderHandlerFactory};
|
|
520
|
+
|
|
521
|
+
struct ImplementsISysStorageProviderHandlerFactory : py::ImplementsInterfaceT<ImplementsISysStorageProviderHandlerFactory, winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory>
|
|
522
|
+
{
|
|
523
|
+
ImplementsISysStorageProviderHandlerFactory() = delete;
|
|
524
|
+
ImplementsISysStorageProviderHandlerFactory(PyObject* py_obj, winrt::impl::inspectable_abi* runtime_class) : py::ImplementsInterfaceT<ImplementsISysStorageProviderHandlerFactory, winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory>(py_obj, runtime_class)
|
|
525
|
+
{
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
auto GetEventSource(winrt::hstring const& param0, winrt::hstring const& param1)
|
|
529
|
+
{
|
|
530
|
+
try
|
|
531
|
+
{
|
|
532
|
+
py::pyobj_handle self{this->get_py_obj()};
|
|
533
|
+
|
|
534
|
+
py::pyobj_handle method{PyObject_GetAttrString(self.get(), "get_event_source")};
|
|
535
|
+
if (!method)
|
|
536
|
+
{
|
|
537
|
+
throw python_exception();
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
py::pyobj_handle py_param0{py::convert(param0)};
|
|
541
|
+
if (!py_param0)
|
|
542
|
+
{
|
|
543
|
+
throw python_exception();
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
py::pyobj_handle py_param1{py::convert(param1)};
|
|
547
|
+
if (!py_param1)
|
|
548
|
+
{
|
|
549
|
+
throw python_exception();
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
py::pyobj_handle args{PyTuple_Pack(2, py_param0.get(), py_param1.get())};
|
|
553
|
+
if (!args)
|
|
554
|
+
{
|
|
555
|
+
throw python_exception();
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
py::pyobj_handle return_value{PyObject_CallObject(method.get(), args.get())};
|
|
559
|
+
if (!return_value)
|
|
560
|
+
{
|
|
561
|
+
throw python_exception();
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
return py::convert_to<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderEventSource>(return_value.get());
|
|
565
|
+
}
|
|
566
|
+
catch (python_exception)
|
|
567
|
+
{
|
|
568
|
+
py::write_unraisable_and_throw();
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
auto GetHttpRequestProvider(winrt::hstring const& param0)
|
|
573
|
+
{
|
|
574
|
+
try
|
|
575
|
+
{
|
|
576
|
+
py::pyobj_handle self{this->get_py_obj()};
|
|
577
|
+
|
|
578
|
+
py::pyobj_handle method{PyObject_GetAttrString(self.get(), "get_http_request_provider")};
|
|
579
|
+
if (!method)
|
|
580
|
+
{
|
|
581
|
+
throw python_exception();
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
py::pyobj_handle py_param0{py::convert(param0)};
|
|
585
|
+
if (!py_param0)
|
|
586
|
+
{
|
|
587
|
+
throw python_exception();
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
py::pyobj_handle return_value{PyObject_CallOneArg(method.get(), py_param0.get())};
|
|
591
|
+
if (!return_value)
|
|
592
|
+
{
|
|
593
|
+
throw python_exception();
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
return py::convert_to<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider>(return_value.get());
|
|
597
|
+
}
|
|
598
|
+
catch (python_exception)
|
|
599
|
+
{
|
|
600
|
+
py::write_unraisable_and_throw();
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
|
|
343
605
|
static PyObject* _assign_array_ISysStorageProviderHandlerFactory(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
344
606
|
{
|
|
345
607
|
auto array = std::make_unique<py::ComArray<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory>>();
|
|
@@ -364,41 +626,74 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
364
626
|
}
|
|
365
627
|
}
|
|
366
628
|
|
|
367
|
-
static
|
|
368
|
-
|
|
369
|
-
|
|
629
|
+
static PyObject* _guid_ImplementsISysStorageProviderHandlerFactory(PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
630
|
+
{
|
|
631
|
+
try
|
|
632
|
+
{
|
|
633
|
+
return py::convert(winrt::guid_of<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory>());
|
|
634
|
+
}
|
|
635
|
+
catch (...)
|
|
636
|
+
{
|
|
637
|
+
py::to_PyErr();
|
|
638
|
+
return nullptr;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
static PyObject* _make_ImplementsISysStorageProviderHandlerFactory(PyObject* /*unused*/, PyObject* args) noexcept
|
|
643
|
+
{
|
|
644
|
+
try
|
|
645
|
+
{
|
|
646
|
+
PyObject* py_obj;
|
|
647
|
+
winrt::impl::inspectable_abi* runtime_class;
|
|
648
|
+
|
|
649
|
+
if (!PyArg_ParseTuple(args, "On", &py_obj, &runtime_class))
|
|
650
|
+
{
|
|
651
|
+
return nullptr;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
auto iface{std::make_unique<ImplementsISysStorageProviderHandlerFactory>(py_obj, runtime_class)};
|
|
655
|
+
|
|
656
|
+
return PyLong_FromVoidPtr(iface.release());
|
|
657
|
+
}
|
|
658
|
+
catch (...)
|
|
659
|
+
{
|
|
660
|
+
py::to_PyErr();
|
|
661
|
+
return nullptr;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
static PyMethodDef methods_ImplementsISysStorageProviderHandlerFactory[] = {
|
|
370
666
|
{ "_assign_array_", _assign_array_ISysStorageProviderHandlerFactory, METH_O | METH_STATIC, nullptr },
|
|
371
667
|
{ "_from", reinterpret_cast<PyCFunction>(_from_ISysStorageProviderHandlerFactory), METH_O | METH_STATIC, nullptr },
|
|
372
|
-
{ }
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
static PyGetSetDef _getset_ISysStorageProviderHandlerFactory[] = {
|
|
376
|
-
{ }
|
|
377
|
-
};
|
|
668
|
+
{ "_guid_", reinterpret_cast<PyCFunction>(_guid_ImplementsISysStorageProviderHandlerFactory), METH_NOARGS | METH_STATIC, nullptr },
|
|
669
|
+
{ "_make_", reinterpret_cast<PyCFunction>(_make_ImplementsISysStorageProviderHandlerFactory), METH_VARARGS | METH_STATIC, nullptr },
|
|
670
|
+
{ }};
|
|
378
671
|
|
|
379
|
-
static PyType_Slot
|
|
380
|
-
{
|
|
381
|
-
{
|
|
382
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ISysStorageProviderHandlerFactory) },
|
|
383
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ISysStorageProviderHandlerFactory) },
|
|
384
|
-
{ }
|
|
385
|
-
};
|
|
672
|
+
static PyType_Slot type_slots_ImplementsISysStorageProviderHandlerFactory[] = {
|
|
673
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_ImplementsISysStorageProviderHandlerFactory) },
|
|
674
|
+
{ }};
|
|
386
675
|
|
|
387
|
-
static PyType_Spec
|
|
676
|
+
static PyType_Spec type_spec_ImplementsISysStorageProviderHandlerFactory = {
|
|
388
677
|
"winrt._winrt_windows_system_implementation_fileexplorer.ISysStorageProviderHandlerFactory",
|
|
389
|
-
sizeof(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHandlerFactory),
|
|
390
678
|
0,
|
|
391
|
-
|
|
392
|
-
|
|
679
|
+
0,
|
|
680
|
+
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE
|
|
681
|
+
#if PY_VERSION_HEX >= 0x030A0000
|
|
682
|
+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
|
|
683
|
+
#endif
|
|
684
|
+
,
|
|
685
|
+
type_slots_ImplementsISysStorageProviderHandlerFactory};
|
|
393
686
|
|
|
394
687
|
// ----- ISysStorageProviderHttpRequestProvider interface --------------------
|
|
395
688
|
|
|
689
|
+
#if PY_VERSION_HEX < 0x030A0000
|
|
396
690
|
static PyObject* _new_ISysStorageProviderHttpRequestProvider(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
397
691
|
{
|
|
398
692
|
static_assert(py::py_type<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider>::type_name);
|
|
399
693
|
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider>::type_name);
|
|
400
694
|
return nullptr;
|
|
401
695
|
}
|
|
696
|
+
#endif
|
|
402
697
|
|
|
403
698
|
static void _dealloc_ISysStorageProviderHttpRequestProvider(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider* self) noexcept
|
|
404
699
|
{
|
|
@@ -410,7 +705,7 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
410
705
|
|
|
411
706
|
static PyObject* ISysStorageProviderHttpRequestProvider_SendRequestAsync(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider* self, PyObject* args) noexcept
|
|
412
707
|
{
|
|
413
|
-
auto arg_count =
|
|
708
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
414
709
|
|
|
415
710
|
if (arg_count == 1)
|
|
416
711
|
{
|
|
@@ -431,7 +726,11 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
431
726
|
|
|
432
727
|
auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
|
|
433
728
|
|
|
434
|
-
return py::convert(
|
|
729
|
+
return py::convert([&]()
|
|
730
|
+
{
|
|
731
|
+
auto _gil = release_gil();
|
|
732
|
+
return self->obj.SendRequestAsync(param0);
|
|
733
|
+
}());
|
|
435
734
|
}
|
|
436
735
|
catch (...)
|
|
437
736
|
{
|
|
@@ -446,6 +745,73 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
446
745
|
}
|
|
447
746
|
}
|
|
448
747
|
|
|
748
|
+
static PyMethodDef _methods_ISysStorageProviderHttpRequestProvider[] = {
|
|
749
|
+
{ "send_request_async", reinterpret_cast<PyCFunction>(ISysStorageProviderHttpRequestProvider_SendRequestAsync), METH_VARARGS, nullptr },
|
|
750
|
+
{ }};
|
|
751
|
+
|
|
752
|
+
static PyGetSetDef _getset_ISysStorageProviderHttpRequestProvider[] = {
|
|
753
|
+
{ }};
|
|
754
|
+
|
|
755
|
+
static PyType_Slot _type_slots_ISysStorageProviderHttpRequestProvider[] = {
|
|
756
|
+
#if PY_VERSION_HEX < 0x030A0000
|
|
757
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_ISysStorageProviderHttpRequestProvider) },
|
|
758
|
+
#endif
|
|
759
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ISysStorageProviderHttpRequestProvider) },
|
|
760
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ISysStorageProviderHttpRequestProvider) },
|
|
761
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ISysStorageProviderHttpRequestProvider) },
|
|
762
|
+
{ }};
|
|
763
|
+
|
|
764
|
+
static PyType_Spec type_spec_ISysStorageProviderHttpRequestProvider = {
|
|
765
|
+
"winrt._winrt_windows_system_implementation_fileexplorer._ISysStorageProviderHttpRequestProvider",
|
|
766
|
+
sizeof(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider),
|
|
767
|
+
0,
|
|
768
|
+
Py_TPFLAGS_DEFAULT
|
|
769
|
+
#if PY_VERSION_HEX >= 0x030A0000
|
|
770
|
+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
|
|
771
|
+
#endif
|
|
772
|
+
,
|
|
773
|
+
_type_slots_ISysStorageProviderHttpRequestProvider};
|
|
774
|
+
|
|
775
|
+
struct ImplementsISysStorageProviderHttpRequestProvider : py::ImplementsInterfaceT<ImplementsISysStorageProviderHttpRequestProvider, winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider>
|
|
776
|
+
{
|
|
777
|
+
ImplementsISysStorageProviderHttpRequestProvider() = delete;
|
|
778
|
+
ImplementsISysStorageProviderHttpRequestProvider(PyObject* py_obj, winrt::impl::inspectable_abi* runtime_class) : py::ImplementsInterfaceT<ImplementsISysStorageProviderHttpRequestProvider, winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider>(py_obj, runtime_class)
|
|
779
|
+
{
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
auto SendRequestAsync(winrt::Windows::Web::Http::HttpRequestMessage const& param0)
|
|
783
|
+
{
|
|
784
|
+
try
|
|
785
|
+
{
|
|
786
|
+
py::pyobj_handle self{this->get_py_obj()};
|
|
787
|
+
|
|
788
|
+
py::pyobj_handle method{PyObject_GetAttrString(self.get(), "send_request_async")};
|
|
789
|
+
if (!method)
|
|
790
|
+
{
|
|
791
|
+
throw python_exception();
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
py::pyobj_handle py_param0{py::convert(param0)};
|
|
795
|
+
if (!py_param0)
|
|
796
|
+
{
|
|
797
|
+
throw python_exception();
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
py::pyobj_handle return_value{PyObject_CallOneArg(method.get(), py_param0.get())};
|
|
801
|
+
if (!return_value)
|
|
802
|
+
{
|
|
803
|
+
throw python_exception();
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
return py::convert_to<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Web::Http::HttpResponseMessage>>(return_value.get());
|
|
807
|
+
}
|
|
808
|
+
catch (python_exception)
|
|
809
|
+
{
|
|
810
|
+
py::write_unraisable_and_throw();
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
|
|
449
815
|
static PyObject* _assign_array_ISysStorageProviderHttpRequestProvider(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
450
816
|
{
|
|
451
817
|
auto array = std::make_unique<py::ComArray<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider>>();
|
|
@@ -470,31 +836,63 @@ namespace py::cpp::Windows::System::Implementation::FileExplorer
|
|
|
470
836
|
}
|
|
471
837
|
}
|
|
472
838
|
|
|
473
|
-
static
|
|
474
|
-
|
|
839
|
+
static PyObject* _guid_ImplementsISysStorageProviderHttpRequestProvider(PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
840
|
+
{
|
|
841
|
+
try
|
|
842
|
+
{
|
|
843
|
+
return py::convert(winrt::guid_of<winrt::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider>());
|
|
844
|
+
}
|
|
845
|
+
catch (...)
|
|
846
|
+
{
|
|
847
|
+
py::to_PyErr();
|
|
848
|
+
return nullptr;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
static PyObject* _make_ImplementsISysStorageProviderHttpRequestProvider(PyObject* /*unused*/, PyObject* args) noexcept
|
|
853
|
+
{
|
|
854
|
+
try
|
|
855
|
+
{
|
|
856
|
+
PyObject* py_obj;
|
|
857
|
+
winrt::impl::inspectable_abi* runtime_class;
|
|
858
|
+
|
|
859
|
+
if (!PyArg_ParseTuple(args, "On", &py_obj, &runtime_class))
|
|
860
|
+
{
|
|
861
|
+
return nullptr;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
auto iface{std::make_unique<ImplementsISysStorageProviderHttpRequestProvider>(py_obj, runtime_class)};
|
|
865
|
+
|
|
866
|
+
return PyLong_FromVoidPtr(iface.release());
|
|
867
|
+
}
|
|
868
|
+
catch (...)
|
|
869
|
+
{
|
|
870
|
+
py::to_PyErr();
|
|
871
|
+
return nullptr;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
static PyMethodDef methods_ImplementsISysStorageProviderHttpRequestProvider[] = {
|
|
475
876
|
{ "_assign_array_", _assign_array_ISysStorageProviderHttpRequestProvider, METH_O | METH_STATIC, nullptr },
|
|
476
877
|
{ "_from", reinterpret_cast<PyCFunction>(_from_ISysStorageProviderHttpRequestProvider), METH_O | METH_STATIC, nullptr },
|
|
477
|
-
{ }
|
|
478
|
-
|
|
878
|
+
{ "_guid_", reinterpret_cast<PyCFunction>(_guid_ImplementsISysStorageProviderHttpRequestProvider), METH_NOARGS | METH_STATIC, nullptr },
|
|
879
|
+
{ "_make_", reinterpret_cast<PyCFunction>(_make_ImplementsISysStorageProviderHttpRequestProvider), METH_VARARGS | METH_STATIC, nullptr },
|
|
880
|
+
{ }};
|
|
479
881
|
|
|
480
|
-
static
|
|
481
|
-
{ }
|
|
482
|
-
|
|
882
|
+
static PyType_Slot type_slots_ImplementsISysStorageProviderHttpRequestProvider[] = {
|
|
883
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_ImplementsISysStorageProviderHttpRequestProvider) },
|
|
884
|
+
{ }};
|
|
483
885
|
|
|
484
|
-
static
|
|
485
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_ISysStorageProviderHttpRequestProvider) },
|
|
486
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ISysStorageProviderHttpRequestProvider) },
|
|
487
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ISysStorageProviderHttpRequestProvider) },
|
|
488
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ISysStorageProviderHttpRequestProvider) },
|
|
489
|
-
{ }
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
static PyType_Spec type_spec_ISysStorageProviderHttpRequestProvider = {
|
|
886
|
+
static PyType_Spec type_spec_ImplementsISysStorageProviderHttpRequestProvider = {
|
|
493
887
|
"winrt._winrt_windows_system_implementation_fileexplorer.ISysStorageProviderHttpRequestProvider",
|
|
494
|
-
sizeof(py::wrapper::Windows::System::Implementation::FileExplorer::ISysStorageProviderHttpRequestProvider),
|
|
495
888
|
0,
|
|
496
|
-
|
|
497
|
-
|
|
889
|
+
0,
|
|
890
|
+
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE
|
|
891
|
+
#if PY_VERSION_HEX >= 0x030A0000
|
|
892
|
+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
|
|
893
|
+
#endif
|
|
894
|
+
,
|
|
895
|
+
type_slots_ImplementsISysStorageProviderHttpRequestProvider};
|
|
498
896
|
|
|
499
897
|
// ----- Windows.System.Implementation.FileExplorer Initialization --------------------
|
|
500
898
|
|
|
@@ -528,6 +926,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_implementation_fileexplorer(void) no
|
|
|
528
926
|
return nullptr;
|
|
529
927
|
}
|
|
530
928
|
|
|
929
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
930
|
+
if (!inspectable_meta_type)
|
|
931
|
+
{
|
|
932
|
+
return nullptr;
|
|
933
|
+
}
|
|
934
|
+
|
|
531
935
|
auto object_type = py::get_object_type();
|
|
532
936
|
if (!object_type)
|
|
533
937
|
{
|
|
@@ -541,7 +945,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_implementation_fileexplorer(void) no
|
|
|
541
945
|
return nullptr;
|
|
542
946
|
}
|
|
543
947
|
|
|
544
|
-
py::pytype_handle SysStorageProviderEventReceivedEventArgs_type{py::register_python_type(module.get(), &type_spec_SysStorageProviderEventReceivedEventArgs, object_bases.get(),
|
|
948
|
+
py::pytype_handle SysStorageProviderEventReceivedEventArgs_type{py::register_python_type(module.get(), &type_spec_SysStorageProviderEventReceivedEventArgs, object_bases.get(), inspectable_meta_type)};
|
|
545
949
|
if (!SysStorageProviderEventReceivedEventArgs_type)
|
|
546
950
|
{
|
|
547
951
|
return nullptr;
|
|
@@ -553,18 +957,51 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_implementation_fileexplorer(void) no
|
|
|
553
957
|
return nullptr;
|
|
554
958
|
}
|
|
555
959
|
|
|
960
|
+
py::pytype_handle ImplementsISysStorageProviderEventSource_type{py::register_python_type(module.get(), &type_spec_ImplementsISysStorageProviderEventSource, nullptr, inspectable_meta_type)};
|
|
961
|
+
if (!ImplementsISysStorageProviderEventSource_type)
|
|
962
|
+
{
|
|
963
|
+
return nullptr;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
if (PyModule_AddType(module.get(), ImplementsISysStorageProviderEventSource_type.get()) == -1)
|
|
967
|
+
{
|
|
968
|
+
return nullptr;
|
|
969
|
+
}
|
|
970
|
+
|
|
556
971
|
py::pytype_handle ISysStorageProviderHandlerFactory_type{py::register_python_type(module.get(), &type_spec_ISysStorageProviderHandlerFactory, object_bases.get(), nullptr)};
|
|
557
972
|
if (!ISysStorageProviderHandlerFactory_type)
|
|
558
973
|
{
|
|
559
974
|
return nullptr;
|
|
560
975
|
}
|
|
561
976
|
|
|
977
|
+
py::pytype_handle ImplementsISysStorageProviderHandlerFactory_type{py::register_python_type(module.get(), &type_spec_ImplementsISysStorageProviderHandlerFactory, nullptr, inspectable_meta_type)};
|
|
978
|
+
if (!ImplementsISysStorageProviderHandlerFactory_type)
|
|
979
|
+
{
|
|
980
|
+
return nullptr;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
if (PyModule_AddType(module.get(), ImplementsISysStorageProviderHandlerFactory_type.get()) == -1)
|
|
984
|
+
{
|
|
985
|
+
return nullptr;
|
|
986
|
+
}
|
|
987
|
+
|
|
562
988
|
py::pytype_handle ISysStorageProviderHttpRequestProvider_type{py::register_python_type(module.get(), &type_spec_ISysStorageProviderHttpRequestProvider, object_bases.get(), nullptr)};
|
|
563
989
|
if (!ISysStorageProviderHttpRequestProvider_type)
|
|
564
990
|
{
|
|
565
991
|
return nullptr;
|
|
566
992
|
}
|
|
567
993
|
|
|
994
|
+
py::pytype_handle ImplementsISysStorageProviderHttpRequestProvider_type{py::register_python_type(module.get(), &type_spec_ImplementsISysStorageProviderHttpRequestProvider, nullptr, inspectable_meta_type)};
|
|
995
|
+
if (!ImplementsISysStorageProviderHttpRequestProvider_type)
|
|
996
|
+
{
|
|
997
|
+
return nullptr;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
if (PyModule_AddType(module.get(), ImplementsISysStorageProviderHttpRequestProvider_type.get()) == -1)
|
|
1001
|
+
{
|
|
1002
|
+
return nullptr;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
568
1005
|
|
|
569
1006
|
return module.detach();
|
|
570
1007
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
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
|
+
from abc import abstractmethod
|
|
10
|
+
|
|
11
|
+
import winrt._winrt
|
|
12
|
+
import winrt.system
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.web.http as windows_web_http
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class SysStorageProviderEventReceivedEventArgs(winrt.system.Object):
|
|
20
|
+
def __new__(cls: typing.Type[Self], json: str) -> Self: ...
|
|
21
|
+
# System.String Windows.System.Implementation.FileExplorer.SysStorageProviderEventReceivedEventArgs::get_Json()
|
|
22
|
+
@_property
|
|
23
|
+
def json(self) -> str: ...
|
|
24
|
+
|
|
25
|
+
@typing.final
|
|
26
|
+
class _ISysStorageProviderEventSource: ...
|
|
27
|
+
|
|
28
|
+
class ISysStorageProviderEventSource(winrt._winrt.IInspectable):
|
|
29
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Implementation.FileExplorer.ISysStorageProviderEventSource::add_EventReceived(Windows.Foundation.TypedEventHandler`2<Windows.System.Implementation.FileExplorer.ISysStorageProviderEventSource,Windows.System.Implementation.FileExplorer.SysStorageProviderEventReceivedEventArgs>)
|
|
30
|
+
@abstractmethod
|
|
31
|
+
def add_event_received(self, handler: windows_foundation.TypedEventHandler[ISysStorageProviderEventSource, SysStorageProviderEventReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
32
|
+
# System.Void Windows.System.Implementation.FileExplorer.ISysStorageProviderEventSource::remove_EventReceived(Windows.Foundation.EventRegistrationToken)
|
|
33
|
+
@abstractmethod
|
|
34
|
+
def remove_event_received(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
35
|
+
|
|
36
|
+
@typing.final
|
|
37
|
+
class _ISysStorageProviderHandlerFactory: ...
|
|
38
|
+
|
|
39
|
+
class ISysStorageProviderHandlerFactory(winrt._winrt.IInspectable):
|
|
40
|
+
# Windows.System.Implementation.FileExplorer.ISysStorageProviderEventSource Windows.System.Implementation.FileExplorer.ISysStorageProviderHandlerFactory::GetEventSource(System.String,System.String)
|
|
41
|
+
@abstractmethod
|
|
42
|
+
def get_event_source(self, sync_root_id: str, event_name: str, /) -> ISysStorageProviderEventSource: ...
|
|
43
|
+
# Windows.System.Implementation.FileExplorer.ISysStorageProviderHttpRequestProvider Windows.System.Implementation.FileExplorer.ISysStorageProviderHandlerFactory::GetHttpRequestProvider(System.String)
|
|
44
|
+
@abstractmethod
|
|
45
|
+
def get_http_request_provider(self, sync_root_id: str, /) -> ISysStorageProviderHttpRequestProvider: ...
|
|
46
|
+
|
|
47
|
+
@typing.final
|
|
48
|
+
class _ISysStorageProviderHttpRequestProvider: ...
|
|
49
|
+
|
|
50
|
+
class ISysStorageProviderHttpRequestProvider(winrt._winrt.IInspectable):
|
|
51
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Web.Http.HttpResponseMessage> Windows.System.Implementation.FileExplorer.ISysStorageProviderHttpRequestProvider::SendRequestAsync(Windows.Web.Http.HttpRequestMessage)
|
|
52
|
+
@abstractmethod
|
|
53
|
+
def send_request_async(self, request: windows_web_http.HttpRequestMessage, /) -> windows_foundation.IAsyncOperation[windows_web_http.HttpResponseMessage]: ...
|
|
54
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
import winrt.system
|
|
4
|
+
from winrt._winrt_windows_system_implementation_fileexplorer import (
|
|
5
|
+
SysStorageProviderEventReceivedEventArgs,
|
|
6
|
+
_ISysStorageProviderEventSource,
|
|
7
|
+
ISysStorageProviderEventSource,
|
|
8
|
+
_ISysStorageProviderHandlerFactory,
|
|
9
|
+
ISysStorageProviderHandlerFactory,
|
|
10
|
+
_ISysStorageProviderHttpRequestProvider,
|
|
11
|
+
ISysStorageProviderHttpRequestProvider,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"SysStorageProviderEventReceivedEventArgs",
|
|
16
|
+
"ISysStorageProviderEventSource",
|
|
17
|
+
"ISysStorageProviderHandlerFactory",
|
|
18
|
+
"ISysStorageProviderHttpRequestProvider",
|
|
19
|
+
]
|
|
20
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Implementation.FileExplorer
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Web.Http[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Web.Http[all]==3.0.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.3.0
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
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.foundation as windows_foundation
|
|
13
|
-
import winrt.windows.web.http as windows_web_http
|
|
14
|
-
|
|
15
|
-
Self = typing.TypeVar('Self')
|
|
16
|
-
|
|
17
|
-
@typing.final
|
|
18
|
-
class SysStorageProviderEventReceivedEventArgs(winrt.system.Object):
|
|
19
|
-
@staticmethod
|
|
20
|
-
def _from(obj: winrt.system.Object, /) -> SysStorageProviderEventReceivedEventArgs: ...
|
|
21
|
-
def __new__(cls: typing.Type[SysStorageProviderEventReceivedEventArgs], json: str) -> SysStorageProviderEventReceivedEventArgs: ...
|
|
22
|
-
@_property
|
|
23
|
-
def json(self) -> str: ...
|
|
24
|
-
|
|
25
|
-
@typing.final
|
|
26
|
-
class ISysStorageProviderEventSource(winrt.system.Object):
|
|
27
|
-
@staticmethod
|
|
28
|
-
def _from(obj: winrt.system.Object, /) -> ISysStorageProviderEventSource: ...
|
|
29
|
-
def add_event_received(self, handler: windows_foundation.TypedEventHandler[ISysStorageProviderEventSource, SysStorageProviderEventReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
30
|
-
def remove_event_received(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
31
|
-
|
|
32
|
-
@typing.final
|
|
33
|
-
class ISysStorageProviderHandlerFactory(winrt.system.Object):
|
|
34
|
-
@staticmethod
|
|
35
|
-
def _from(obj: winrt.system.Object, /) -> ISysStorageProviderHandlerFactory: ...
|
|
36
|
-
def get_event_source(self, sync_root_id: str, event_name: str, /) -> typing.Optional[ISysStorageProviderEventSource]: ...
|
|
37
|
-
def get_http_request_provider(self, sync_root_id: str, /) -> typing.Optional[ISysStorageProviderHttpRequestProvider]: ...
|
|
38
|
-
|
|
39
|
-
@typing.final
|
|
40
|
-
class ISysStorageProviderHttpRequestProvider(winrt.system.Object):
|
|
41
|
-
@staticmethod
|
|
42
|
-
def _from(obj: winrt.system.Object, /) -> ISysStorageProviderHttpRequestProvider: ...
|
|
43
|
-
def send_request_async(self, request: typing.Optional[windows_web_http.HttpRequestMessage], /) -> windows_foundation.IAsyncOperation[windows_web_http.HttpResponseMessage]: ...
|
|
44
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import winrt.system
|
|
4
|
-
from winrt import _winrt_windows_system_implementation_fileexplorer
|
|
5
|
-
|
|
6
|
-
__all__ = [
|
|
7
|
-
"SysStorageProviderEventReceivedEventArgs",
|
|
8
|
-
"ISysStorageProviderEventSource",
|
|
9
|
-
"ISysStorageProviderHandlerFactory",
|
|
10
|
-
"ISysStorageProviderHttpRequestProvider",
|
|
11
|
-
]
|
|
12
|
-
|
|
13
|
-
SysStorageProviderEventReceivedEventArgs = _winrt_windows_system_implementation_fileexplorer.SysStorageProviderEventReceivedEventArgs
|
|
14
|
-
ISysStorageProviderEventSource = _winrt_windows_system_implementation_fileexplorer.ISysStorageProviderEventSource
|
|
15
|
-
ISysStorageProviderHandlerFactory = _winrt_windows_system_implementation_fileexplorer.ISysStorageProviderHandlerFactory
|
|
16
|
-
ISysStorageProviderHttpRequestProvider = _winrt_windows_system_implementation_fileexplorer.ISysStorageProviderHttpRequestProvider
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|