winrt-Windows.Storage.Pickers.Provider 2.0.0b2__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/PKG-INFO +5 -1
- winrt_windows_storage_pickers_provider-2.1.0/all-requirements.txt +5 -0
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/py.Windows.Storage.Pickers.Provider.cpp +252 -281
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/pyproject.toml +2 -2
- winrt_windows_storage_pickers_provider-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/requirements.txt +2 -2
- winrt_windows_storage_pickers_provider-2.1.0/setup.py +31 -0
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/winrt/_winrt_windows_storage_pickers_provider.pyi +18 -18
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/winrt/windows/storage/pickers/provider/__init__.py +1 -1
- winrt_windows_storage_pickers_provider-2.1.0/winrt/windows/storage/pickers/provider/py.typed +0 -0
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/winrt_Windows.Storage.Pickers.Provider.egg-info/PKG-INFO +5 -1
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/winrt_Windows.Storage.Pickers.Provider.egg-info/SOURCES.txt +1 -0
- winrt_windows_storage_pickers_provider-2.1.0/winrt_Windows.Storage.Pickers.Provider.egg-info/requires.txt +6 -0
- winrt-Windows.Storage.Pickers.Provider-2.0.0b2/all-requirements.txt +0 -5
- winrt-Windows.Storage.Pickers.Provider-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.Storage.Pickers.Provider-2.0.0b2/setup.py +0 -16
- winrt-Windows.Storage.Pickers.Provider-2.0.0b2/winrt_Windows.Storage.Pickers.Provider.egg-info/requires.txt +0 -6
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/README.md +0 -0
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/winrt_Windows.Storage.Pickers.Provider.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Storage.Pickers.Provider-2.0.0b2 → winrt_windows_storage_pickers_provider-2.1.0}/winrt_Windows.Storage.Pickers.Provider.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Storage.Pickers.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Storage.Pickers.Provider.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
7
6
|
{
|
|
8
7
|
// ----- FileOpenPickerUI class --------------------
|
|
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 2)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"AddFile", 2))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(2);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"AddFile", 2))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(2);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
40
39
|
auto param1 = py::convert_to<winrt::Windows::Storage::IStorageFile>(args, 1);
|
|
41
40
|
|
|
@@ -60,14 +59,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
60
59
|
|
|
61
60
|
if (arg_count == 1)
|
|
62
61
|
{
|
|
63
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"CanAddFile", 1))
|
|
64
|
-
{
|
|
65
|
-
py::set_arg_count_version_error(1);
|
|
66
|
-
return nullptr;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
62
|
try
|
|
70
63
|
{
|
|
64
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"CanAddFile", 1))
|
|
65
|
+
{
|
|
66
|
+
py::set_arg_count_version_error(1);
|
|
67
|
+
return nullptr;
|
|
68
|
+
}
|
|
69
|
+
|
|
71
70
|
auto param0 = py::convert_to<winrt::Windows::Storage::IStorageFile>(args, 0);
|
|
72
71
|
|
|
73
72
|
return py::convert(self->obj.CanAddFile(param0));
|
|
@@ -91,14 +90,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
91
90
|
|
|
92
91
|
if (arg_count == 1)
|
|
93
92
|
{
|
|
94
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"ContainsFile", 1))
|
|
95
|
-
{
|
|
96
|
-
py::set_arg_count_version_error(1);
|
|
97
|
-
return nullptr;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
93
|
try
|
|
101
94
|
{
|
|
95
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"ContainsFile", 1))
|
|
96
|
+
{
|
|
97
|
+
py::set_arg_count_version_error(1);
|
|
98
|
+
return nullptr;
|
|
99
|
+
}
|
|
100
|
+
|
|
102
101
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
103
102
|
|
|
104
103
|
return py::convert(self->obj.ContainsFile(param0));
|
|
@@ -122,14 +121,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
122
121
|
|
|
123
122
|
if (arg_count == 1)
|
|
124
123
|
{
|
|
125
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"RemoveFile", 1))
|
|
126
|
-
{
|
|
127
|
-
py::set_arg_count_version_error(1);
|
|
128
|
-
return nullptr;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
124
|
try
|
|
132
125
|
{
|
|
126
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"RemoveFile", 1))
|
|
127
|
+
{
|
|
128
|
+
py::set_arg_count_version_error(1);
|
|
129
|
+
return nullptr;
|
|
130
|
+
}
|
|
131
|
+
|
|
133
132
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
134
133
|
|
|
135
134
|
self->obj.RemoveFile(param0);
|
|
@@ -150,14 +149,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
150
149
|
|
|
151
150
|
static PyObject* FileOpenPickerUI_get_Title(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, void* /*unused*/) noexcept
|
|
152
151
|
{
|
|
153
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Title"))
|
|
154
|
-
{
|
|
155
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
156
|
-
return nullptr;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
152
|
try
|
|
160
153
|
{
|
|
154
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Title"))
|
|
155
|
+
{
|
|
156
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
157
|
+
return nullptr;
|
|
158
|
+
}
|
|
159
|
+
|
|
161
160
|
return py::convert(self->obj.Title());
|
|
162
161
|
}
|
|
163
162
|
catch (...)
|
|
@@ -169,12 +168,6 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
169
168
|
|
|
170
169
|
static int FileOpenPickerUI_put_Title(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, PyObject* arg, void* /*unused*/) noexcept
|
|
171
170
|
{
|
|
172
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Title"))
|
|
173
|
-
{
|
|
174
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
175
|
-
return -1;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
171
|
if (arg == nullptr)
|
|
179
172
|
{
|
|
180
173
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -183,6 +176,12 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
183
176
|
|
|
184
177
|
try
|
|
185
178
|
{
|
|
179
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Title"))
|
|
180
|
+
{
|
|
181
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
182
|
+
return -1;
|
|
183
|
+
}
|
|
184
|
+
|
|
186
185
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
187
186
|
|
|
188
187
|
self->obj.Title(param0);
|
|
@@ -197,14 +196,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
197
196
|
|
|
198
197
|
static PyObject* FileOpenPickerUI_get_AllowedFileTypes(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, void* /*unused*/) noexcept
|
|
199
198
|
{
|
|
200
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"AllowedFileTypes"))
|
|
201
|
-
{
|
|
202
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
203
|
-
return nullptr;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
199
|
try
|
|
207
200
|
{
|
|
201
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"AllowedFileTypes"))
|
|
202
|
+
{
|
|
203
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
204
|
+
return nullptr;
|
|
205
|
+
}
|
|
206
|
+
|
|
208
207
|
return py::convert(self->obj.AllowedFileTypes());
|
|
209
208
|
}
|
|
210
209
|
catch (...)
|
|
@@ -216,14 +215,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
216
215
|
|
|
217
216
|
static PyObject* FileOpenPickerUI_get_SelectionMode(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, void* /*unused*/) noexcept
|
|
218
217
|
{
|
|
219
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"SelectionMode"))
|
|
220
|
-
{
|
|
221
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
222
|
-
return nullptr;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
218
|
try
|
|
226
219
|
{
|
|
220
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"SelectionMode"))
|
|
221
|
+
{
|
|
222
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
223
|
+
return nullptr;
|
|
224
|
+
}
|
|
225
|
+
|
|
227
226
|
return py::convert(self->obj.SelectionMode());
|
|
228
227
|
}
|
|
229
228
|
catch (...)
|
|
@@ -235,14 +234,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
235
234
|
|
|
236
235
|
static PyObject* FileOpenPickerUI_get_SettingsIdentifier(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, void* /*unused*/) noexcept
|
|
237
236
|
{
|
|
238
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"SettingsIdentifier"))
|
|
239
|
-
{
|
|
240
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
|
-
return nullptr;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
237
|
try
|
|
245
238
|
{
|
|
239
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"SettingsIdentifier"))
|
|
240
|
+
{
|
|
241
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
242
|
+
return nullptr;
|
|
243
|
+
}
|
|
244
|
+
|
|
246
245
|
return py::convert(self->obj.SettingsIdentifier());
|
|
247
246
|
}
|
|
248
247
|
catch (...)
|
|
@@ -254,14 +253,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
254
253
|
|
|
255
254
|
static PyObject* FileOpenPickerUI_add_Closing(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, PyObject* arg) noexcept
|
|
256
255
|
{
|
|
257
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Closing"))
|
|
258
|
-
{
|
|
259
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
260
|
-
return nullptr;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
256
|
try
|
|
264
257
|
{
|
|
258
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Closing"))
|
|
259
|
+
{
|
|
260
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
261
|
+
return nullptr;
|
|
262
|
+
}
|
|
263
|
+
|
|
265
264
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Storage::Pickers::Provider::FileOpenPickerUI, winrt::Windows::Storage::Pickers::Provider::PickerClosingEventArgs>>(arg);
|
|
266
265
|
|
|
267
266
|
return py::convert(self->obj.Closing(param0));
|
|
@@ -275,14 +274,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
275
274
|
|
|
276
275
|
static PyObject* FileOpenPickerUI_remove_Closing(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, PyObject* arg) noexcept
|
|
277
276
|
{
|
|
278
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Closing"))
|
|
279
|
-
{
|
|
280
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
281
|
-
return nullptr;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
277
|
try
|
|
285
278
|
{
|
|
279
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Closing"))
|
|
280
|
+
{
|
|
281
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
282
|
+
return nullptr;
|
|
283
|
+
}
|
|
284
|
+
|
|
286
285
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
287
286
|
|
|
288
287
|
self->obj.Closing(param0);
|
|
@@ -297,14 +296,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
297
296
|
|
|
298
297
|
static PyObject* FileOpenPickerUI_add_FileRemoved(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, PyObject* arg) noexcept
|
|
299
298
|
{
|
|
300
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"FileRemoved"))
|
|
301
|
-
{
|
|
302
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
303
|
-
return nullptr;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
299
|
try
|
|
307
300
|
{
|
|
301
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"FileRemoved"))
|
|
302
|
+
{
|
|
303
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
304
|
+
return nullptr;
|
|
305
|
+
}
|
|
306
|
+
|
|
308
307
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Storage::Pickers::Provider::FileOpenPickerUI, winrt::Windows::Storage::Pickers::Provider::FileRemovedEventArgs>>(arg);
|
|
309
308
|
|
|
310
309
|
return py::convert(self->obj.FileRemoved(param0));
|
|
@@ -318,14 +317,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
318
317
|
|
|
319
318
|
static PyObject* FileOpenPickerUI_remove_FileRemoved(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI* self, PyObject* arg) noexcept
|
|
320
319
|
{
|
|
321
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"FileRemoved"))
|
|
322
|
-
{
|
|
323
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
324
|
-
return nullptr;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
320
|
try
|
|
328
321
|
{
|
|
322
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"FileRemoved"))
|
|
323
|
+
{
|
|
324
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
325
|
+
return nullptr;
|
|
326
|
+
}
|
|
327
|
+
|
|
329
328
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
330
329
|
|
|
331
330
|
self->obj.FileRemoved(param0);
|
|
@@ -384,23 +383,20 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
384
383
|
{ }
|
|
385
384
|
};
|
|
386
385
|
|
|
387
|
-
static PyType_Slot _type_slots_FileOpenPickerUI[] =
|
|
388
|
-
{
|
|
386
|
+
static PyType_Slot _type_slots_FileOpenPickerUI[] = {
|
|
389
387
|
{ Py_tp_new, reinterpret_cast<void*>(_new_FileOpenPickerUI) },
|
|
390
388
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_FileOpenPickerUI) },
|
|
391
389
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_FileOpenPickerUI) },
|
|
392
390
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_FileOpenPickerUI) },
|
|
393
|
-
{ }
|
|
391
|
+
{ }
|
|
394
392
|
};
|
|
395
393
|
|
|
396
|
-
static PyType_Spec type_spec_FileOpenPickerUI =
|
|
397
|
-
{
|
|
394
|
+
static PyType_Spec type_spec_FileOpenPickerUI = {
|
|
398
395
|
"winrt._winrt_windows_storage_pickers_provider.FileOpenPickerUI",
|
|
399
396
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::FileOpenPickerUI),
|
|
400
397
|
0,
|
|
401
398
|
Py_TPFLAGS_DEFAULT,
|
|
402
|
-
_type_slots_FileOpenPickerUI
|
|
403
|
-
};
|
|
399
|
+
_type_slots_FileOpenPickerUI};
|
|
404
400
|
|
|
405
401
|
// ----- FileRemovedEventArgs class --------------------
|
|
406
402
|
|
|
@@ -421,14 +417,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
421
417
|
|
|
422
418
|
static PyObject* FileRemovedEventArgs_get_Id(py::wrapper::Windows::Storage::Pickers::Provider::FileRemovedEventArgs* self, void* /*unused*/) noexcept
|
|
423
419
|
{
|
|
424
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileRemovedEventArgs", L"Id"))
|
|
425
|
-
{
|
|
426
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
427
|
-
return nullptr;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
420
|
try
|
|
431
421
|
{
|
|
422
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileRemovedEventArgs", L"Id"))
|
|
423
|
+
{
|
|
424
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
425
|
+
return nullptr;
|
|
426
|
+
}
|
|
427
|
+
|
|
432
428
|
return py::convert(self->obj.Id());
|
|
433
429
|
}
|
|
434
430
|
catch (...)
|
|
@@ -473,23 +469,20 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
473
469
|
{ }
|
|
474
470
|
};
|
|
475
471
|
|
|
476
|
-
static PyType_Slot _type_slots_FileRemovedEventArgs[] =
|
|
477
|
-
{
|
|
472
|
+
static PyType_Slot _type_slots_FileRemovedEventArgs[] = {
|
|
478
473
|
{ Py_tp_new, reinterpret_cast<void*>(_new_FileRemovedEventArgs) },
|
|
479
474
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_FileRemovedEventArgs) },
|
|
480
475
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_FileRemovedEventArgs) },
|
|
481
476
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_FileRemovedEventArgs) },
|
|
482
|
-
{ }
|
|
477
|
+
{ }
|
|
483
478
|
};
|
|
484
479
|
|
|
485
|
-
static PyType_Spec type_spec_FileRemovedEventArgs =
|
|
486
|
-
{
|
|
480
|
+
static PyType_Spec type_spec_FileRemovedEventArgs = {
|
|
487
481
|
"winrt._winrt_windows_storage_pickers_provider.FileRemovedEventArgs",
|
|
488
482
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::FileRemovedEventArgs),
|
|
489
483
|
0,
|
|
490
484
|
Py_TPFLAGS_DEFAULT,
|
|
491
|
-
_type_slots_FileRemovedEventArgs
|
|
492
|
-
};
|
|
485
|
+
_type_slots_FileRemovedEventArgs};
|
|
493
486
|
|
|
494
487
|
// ----- FileSavePickerUI class --------------------
|
|
495
488
|
|
|
@@ -514,14 +507,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
514
507
|
|
|
515
508
|
if (arg_count == 1)
|
|
516
509
|
{
|
|
517
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TrySetFileName", 1))
|
|
518
|
-
{
|
|
519
|
-
py::set_arg_count_version_error(1);
|
|
520
|
-
return nullptr;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
510
|
try
|
|
524
511
|
{
|
|
512
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TrySetFileName", 1))
|
|
513
|
+
{
|
|
514
|
+
py::set_arg_count_version_error(1);
|
|
515
|
+
return nullptr;
|
|
516
|
+
}
|
|
517
|
+
|
|
525
518
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
526
519
|
|
|
527
520
|
return py::convert(self->obj.TrySetFileName(param0));
|
|
@@ -541,14 +534,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
541
534
|
|
|
542
535
|
static PyObject* FileSavePickerUI_get_Title(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, void* /*unused*/) noexcept
|
|
543
536
|
{
|
|
544
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"Title"))
|
|
545
|
-
{
|
|
546
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
547
|
-
return nullptr;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
537
|
try
|
|
551
538
|
{
|
|
539
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"Title"))
|
|
540
|
+
{
|
|
541
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
542
|
+
return nullptr;
|
|
543
|
+
}
|
|
544
|
+
|
|
552
545
|
return py::convert(self->obj.Title());
|
|
553
546
|
}
|
|
554
547
|
catch (...)
|
|
@@ -560,12 +553,6 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
560
553
|
|
|
561
554
|
static int FileSavePickerUI_put_Title(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, PyObject* arg, void* /*unused*/) noexcept
|
|
562
555
|
{
|
|
563
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"Title"))
|
|
564
|
-
{
|
|
565
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
566
|
-
return -1;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
556
|
if (arg == nullptr)
|
|
570
557
|
{
|
|
571
558
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -574,6 +561,12 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
574
561
|
|
|
575
562
|
try
|
|
576
563
|
{
|
|
564
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"Title"))
|
|
565
|
+
{
|
|
566
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
567
|
+
return -1;
|
|
568
|
+
}
|
|
569
|
+
|
|
577
570
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
578
571
|
|
|
579
572
|
self->obj.Title(param0);
|
|
@@ -588,14 +581,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
588
581
|
|
|
589
582
|
static PyObject* FileSavePickerUI_get_AllowedFileTypes(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, void* /*unused*/) noexcept
|
|
590
583
|
{
|
|
591
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"AllowedFileTypes"))
|
|
592
|
-
{
|
|
593
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
594
|
-
return nullptr;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
584
|
try
|
|
598
585
|
{
|
|
586
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"AllowedFileTypes"))
|
|
587
|
+
{
|
|
588
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
589
|
+
return nullptr;
|
|
590
|
+
}
|
|
591
|
+
|
|
599
592
|
return py::convert(self->obj.AllowedFileTypes());
|
|
600
593
|
}
|
|
601
594
|
catch (...)
|
|
@@ -607,14 +600,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
607
600
|
|
|
608
601
|
static PyObject* FileSavePickerUI_get_FileName(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, void* /*unused*/) noexcept
|
|
609
602
|
{
|
|
610
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileName"))
|
|
611
|
-
{
|
|
612
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
613
|
-
return nullptr;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
603
|
try
|
|
617
604
|
{
|
|
605
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileName"))
|
|
606
|
+
{
|
|
607
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
608
|
+
return nullptr;
|
|
609
|
+
}
|
|
610
|
+
|
|
618
611
|
return py::convert(self->obj.FileName());
|
|
619
612
|
}
|
|
620
613
|
catch (...)
|
|
@@ -626,14 +619,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
626
619
|
|
|
627
620
|
static PyObject* FileSavePickerUI_get_SettingsIdentifier(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, void* /*unused*/) noexcept
|
|
628
621
|
{
|
|
629
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"SettingsIdentifier"))
|
|
630
|
-
{
|
|
631
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
632
|
-
return nullptr;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
622
|
try
|
|
636
623
|
{
|
|
624
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"SettingsIdentifier"))
|
|
625
|
+
{
|
|
626
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
627
|
+
return nullptr;
|
|
628
|
+
}
|
|
629
|
+
|
|
637
630
|
return py::convert(self->obj.SettingsIdentifier());
|
|
638
631
|
}
|
|
639
632
|
catch (...)
|
|
@@ -645,14 +638,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
645
638
|
|
|
646
639
|
static PyObject* FileSavePickerUI_add_FileNameChanged(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, PyObject* arg) noexcept
|
|
647
640
|
{
|
|
648
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileNameChanged"))
|
|
649
|
-
{
|
|
650
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
651
|
-
return nullptr;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
641
|
try
|
|
655
642
|
{
|
|
643
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileNameChanged"))
|
|
644
|
+
{
|
|
645
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
646
|
+
return nullptr;
|
|
647
|
+
}
|
|
648
|
+
|
|
656
649
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Storage::Pickers::Provider::FileSavePickerUI, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
657
650
|
|
|
658
651
|
return py::convert(self->obj.FileNameChanged(param0));
|
|
@@ -666,14 +659,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
666
659
|
|
|
667
660
|
static PyObject* FileSavePickerUI_remove_FileNameChanged(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, PyObject* arg) noexcept
|
|
668
661
|
{
|
|
669
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileNameChanged"))
|
|
670
|
-
{
|
|
671
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
672
|
-
return nullptr;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
662
|
try
|
|
676
663
|
{
|
|
664
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileNameChanged"))
|
|
665
|
+
{
|
|
666
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
667
|
+
return nullptr;
|
|
668
|
+
}
|
|
669
|
+
|
|
677
670
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
678
671
|
|
|
679
672
|
self->obj.FileNameChanged(param0);
|
|
@@ -688,14 +681,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
688
681
|
|
|
689
682
|
static PyObject* FileSavePickerUI_add_TargetFileRequested(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, PyObject* arg) noexcept
|
|
690
683
|
{
|
|
691
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TargetFileRequested"))
|
|
692
|
-
{
|
|
693
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
694
|
-
return nullptr;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
684
|
try
|
|
698
685
|
{
|
|
686
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TargetFileRequested"))
|
|
687
|
+
{
|
|
688
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
689
|
+
return nullptr;
|
|
690
|
+
}
|
|
691
|
+
|
|
699
692
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Storage::Pickers::Provider::FileSavePickerUI, winrt::Windows::Storage::Pickers::Provider::TargetFileRequestedEventArgs>>(arg);
|
|
700
693
|
|
|
701
694
|
return py::convert(self->obj.TargetFileRequested(param0));
|
|
@@ -709,14 +702,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
709
702
|
|
|
710
703
|
static PyObject* FileSavePickerUI_remove_TargetFileRequested(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI* self, PyObject* arg) noexcept
|
|
711
704
|
{
|
|
712
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TargetFileRequested"))
|
|
713
|
-
{
|
|
714
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
715
|
-
return nullptr;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
705
|
try
|
|
719
706
|
{
|
|
707
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TargetFileRequested"))
|
|
708
|
+
{
|
|
709
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
710
|
+
return nullptr;
|
|
711
|
+
}
|
|
712
|
+
|
|
720
713
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
721
714
|
|
|
722
715
|
self->obj.TargetFileRequested(param0);
|
|
@@ -772,23 +765,20 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
772
765
|
{ }
|
|
773
766
|
};
|
|
774
767
|
|
|
775
|
-
static PyType_Slot _type_slots_FileSavePickerUI[] =
|
|
776
|
-
{
|
|
768
|
+
static PyType_Slot _type_slots_FileSavePickerUI[] = {
|
|
777
769
|
{ Py_tp_new, reinterpret_cast<void*>(_new_FileSavePickerUI) },
|
|
778
770
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_FileSavePickerUI) },
|
|
779
771
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_FileSavePickerUI) },
|
|
780
772
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_FileSavePickerUI) },
|
|
781
|
-
{ }
|
|
773
|
+
{ }
|
|
782
774
|
};
|
|
783
775
|
|
|
784
|
-
static PyType_Spec type_spec_FileSavePickerUI =
|
|
785
|
-
{
|
|
776
|
+
static PyType_Spec type_spec_FileSavePickerUI = {
|
|
786
777
|
"winrt._winrt_windows_storage_pickers_provider.FileSavePickerUI",
|
|
787
778
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::FileSavePickerUI),
|
|
788
779
|
0,
|
|
789
780
|
Py_TPFLAGS_DEFAULT,
|
|
790
|
-
_type_slots_FileSavePickerUI
|
|
791
|
-
};
|
|
781
|
+
_type_slots_FileSavePickerUI};
|
|
792
782
|
|
|
793
783
|
// ----- PickerClosingDeferral class --------------------
|
|
794
784
|
|
|
@@ -813,14 +803,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
813
803
|
|
|
814
804
|
if (arg_count == 0)
|
|
815
805
|
{
|
|
816
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.PickerClosingDeferral", L"Complete", 0))
|
|
817
|
-
{
|
|
818
|
-
py::set_arg_count_version_error(0);
|
|
819
|
-
return nullptr;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
806
|
try
|
|
823
807
|
{
|
|
808
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.PickerClosingDeferral", L"Complete", 0))
|
|
809
|
+
{
|
|
810
|
+
py::set_arg_count_version_error(0);
|
|
811
|
+
return nullptr;
|
|
812
|
+
}
|
|
813
|
+
|
|
824
814
|
self->obj.Complete();
|
|
825
815
|
Py_RETURN_NONE;
|
|
826
816
|
}
|
|
@@ -872,23 +862,20 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
872
862
|
{ }
|
|
873
863
|
};
|
|
874
864
|
|
|
875
|
-
static PyType_Slot _type_slots_PickerClosingDeferral[] =
|
|
876
|
-
{
|
|
865
|
+
static PyType_Slot _type_slots_PickerClosingDeferral[] = {
|
|
877
866
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PickerClosingDeferral) },
|
|
878
867
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PickerClosingDeferral) },
|
|
879
868
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PickerClosingDeferral) },
|
|
880
869
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PickerClosingDeferral) },
|
|
881
|
-
{ }
|
|
870
|
+
{ }
|
|
882
871
|
};
|
|
883
872
|
|
|
884
|
-
static PyType_Spec type_spec_PickerClosingDeferral =
|
|
885
|
-
{
|
|
873
|
+
static PyType_Spec type_spec_PickerClosingDeferral = {
|
|
886
874
|
"winrt._winrt_windows_storage_pickers_provider.PickerClosingDeferral",
|
|
887
875
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::PickerClosingDeferral),
|
|
888
876
|
0,
|
|
889
877
|
Py_TPFLAGS_DEFAULT,
|
|
890
|
-
_type_slots_PickerClosingDeferral
|
|
891
|
-
};
|
|
878
|
+
_type_slots_PickerClosingDeferral};
|
|
892
879
|
|
|
893
880
|
// ----- PickerClosingEventArgs class --------------------
|
|
894
881
|
|
|
@@ -909,14 +896,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
909
896
|
|
|
910
897
|
static PyObject* PickerClosingEventArgs_get_ClosingOperation(py::wrapper::Windows::Storage::Pickers::Provider::PickerClosingEventArgs* self, void* /*unused*/) noexcept
|
|
911
898
|
{
|
|
912
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs", L"ClosingOperation"))
|
|
913
|
-
{
|
|
914
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
915
|
-
return nullptr;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
899
|
try
|
|
919
900
|
{
|
|
901
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs", L"ClosingOperation"))
|
|
902
|
+
{
|
|
903
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
904
|
+
return nullptr;
|
|
905
|
+
}
|
|
906
|
+
|
|
920
907
|
return py::convert(self->obj.ClosingOperation());
|
|
921
908
|
}
|
|
922
909
|
catch (...)
|
|
@@ -928,14 +915,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
928
915
|
|
|
929
916
|
static PyObject* PickerClosingEventArgs_get_IsCanceled(py::wrapper::Windows::Storage::Pickers::Provider::PickerClosingEventArgs* self, void* /*unused*/) noexcept
|
|
930
917
|
{
|
|
931
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs", L"IsCanceled"))
|
|
932
|
-
{
|
|
933
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
934
|
-
return nullptr;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
918
|
try
|
|
938
919
|
{
|
|
920
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs", L"IsCanceled"))
|
|
921
|
+
{
|
|
922
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
923
|
+
return nullptr;
|
|
924
|
+
}
|
|
925
|
+
|
|
939
926
|
return py::convert(self->obj.IsCanceled());
|
|
940
927
|
}
|
|
941
928
|
catch (...)
|
|
@@ -981,23 +968,20 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
981
968
|
{ }
|
|
982
969
|
};
|
|
983
970
|
|
|
984
|
-
static PyType_Slot _type_slots_PickerClosingEventArgs[] =
|
|
985
|
-
{
|
|
971
|
+
static PyType_Slot _type_slots_PickerClosingEventArgs[] = {
|
|
986
972
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PickerClosingEventArgs) },
|
|
987
973
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PickerClosingEventArgs) },
|
|
988
974
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PickerClosingEventArgs) },
|
|
989
975
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PickerClosingEventArgs) },
|
|
990
|
-
{ }
|
|
976
|
+
{ }
|
|
991
977
|
};
|
|
992
978
|
|
|
993
|
-
static PyType_Spec type_spec_PickerClosingEventArgs =
|
|
994
|
-
{
|
|
979
|
+
static PyType_Spec type_spec_PickerClosingEventArgs = {
|
|
995
980
|
"winrt._winrt_windows_storage_pickers_provider.PickerClosingEventArgs",
|
|
996
981
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::PickerClosingEventArgs),
|
|
997
982
|
0,
|
|
998
983
|
Py_TPFLAGS_DEFAULT,
|
|
999
|
-
_type_slots_PickerClosingEventArgs
|
|
1000
|
-
};
|
|
984
|
+
_type_slots_PickerClosingEventArgs};
|
|
1001
985
|
|
|
1002
986
|
// ----- PickerClosingOperation class --------------------
|
|
1003
987
|
|
|
@@ -1022,14 +1006,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1022
1006
|
|
|
1023
1007
|
if (arg_count == 0)
|
|
1024
1008
|
{
|
|
1025
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.PickerClosingOperation", L"GetDeferral", 0))
|
|
1026
|
-
{
|
|
1027
|
-
py::set_arg_count_version_error(0);
|
|
1028
|
-
return nullptr;
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
1009
|
try
|
|
1032
1010
|
{
|
|
1011
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.PickerClosingOperation", L"GetDeferral", 0))
|
|
1012
|
+
{
|
|
1013
|
+
py::set_arg_count_version_error(0);
|
|
1014
|
+
return nullptr;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1033
1017
|
return py::convert(self->obj.GetDeferral());
|
|
1034
1018
|
}
|
|
1035
1019
|
catch (...)
|
|
@@ -1047,14 +1031,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1047
1031
|
|
|
1048
1032
|
static PyObject* PickerClosingOperation_get_Deadline(py::wrapper::Windows::Storage::Pickers::Provider::PickerClosingOperation* self, void* /*unused*/) noexcept
|
|
1049
1033
|
{
|
|
1050
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingOperation", L"Deadline"))
|
|
1051
|
-
{
|
|
1052
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1053
|
-
return nullptr;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
1034
|
try
|
|
1057
1035
|
{
|
|
1036
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingOperation", L"Deadline"))
|
|
1037
|
+
{
|
|
1038
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1039
|
+
return nullptr;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1058
1042
|
return py::convert(self->obj.Deadline());
|
|
1059
1043
|
}
|
|
1060
1044
|
catch (...)
|
|
@@ -1100,23 +1084,20 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1100
1084
|
{ }
|
|
1101
1085
|
};
|
|
1102
1086
|
|
|
1103
|
-
static PyType_Slot _type_slots_PickerClosingOperation[] =
|
|
1104
|
-
{
|
|
1087
|
+
static PyType_Slot _type_slots_PickerClosingOperation[] = {
|
|
1105
1088
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PickerClosingOperation) },
|
|
1106
1089
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PickerClosingOperation) },
|
|
1107
1090
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PickerClosingOperation) },
|
|
1108
1091
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PickerClosingOperation) },
|
|
1109
|
-
{ }
|
|
1092
|
+
{ }
|
|
1110
1093
|
};
|
|
1111
1094
|
|
|
1112
|
-
static PyType_Spec type_spec_PickerClosingOperation =
|
|
1113
|
-
{
|
|
1095
|
+
static PyType_Spec type_spec_PickerClosingOperation = {
|
|
1114
1096
|
"winrt._winrt_windows_storage_pickers_provider.PickerClosingOperation",
|
|
1115
1097
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::PickerClosingOperation),
|
|
1116
1098
|
0,
|
|
1117
1099
|
Py_TPFLAGS_DEFAULT,
|
|
1118
|
-
_type_slots_PickerClosingOperation
|
|
1119
|
-
};
|
|
1100
|
+
_type_slots_PickerClosingOperation};
|
|
1120
1101
|
|
|
1121
1102
|
// ----- TargetFileRequest class --------------------
|
|
1122
1103
|
|
|
@@ -1141,14 +1122,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1141
1122
|
|
|
1142
1123
|
if (arg_count == 0)
|
|
1143
1124
|
{
|
|
1144
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"GetDeferral", 0))
|
|
1145
|
-
{
|
|
1146
|
-
py::set_arg_count_version_error(0);
|
|
1147
|
-
return nullptr;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
1125
|
try
|
|
1151
1126
|
{
|
|
1127
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"GetDeferral", 0))
|
|
1128
|
+
{
|
|
1129
|
+
py::set_arg_count_version_error(0);
|
|
1130
|
+
return nullptr;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1152
1133
|
return py::convert(self->obj.GetDeferral());
|
|
1153
1134
|
}
|
|
1154
1135
|
catch (...)
|
|
@@ -1166,14 +1147,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1166
1147
|
|
|
1167
1148
|
static PyObject* TargetFileRequest_get_TargetFile(py::wrapper::Windows::Storage::Pickers::Provider::TargetFileRequest* self, void* /*unused*/) noexcept
|
|
1168
1149
|
{
|
|
1169
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"TargetFile"))
|
|
1170
|
-
{
|
|
1171
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1172
|
-
return nullptr;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
1150
|
try
|
|
1176
1151
|
{
|
|
1152
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"TargetFile"))
|
|
1153
|
+
{
|
|
1154
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1155
|
+
return nullptr;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1177
1158
|
return py::convert(self->obj.TargetFile());
|
|
1178
1159
|
}
|
|
1179
1160
|
catch (...)
|
|
@@ -1185,12 +1166,6 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1185
1166
|
|
|
1186
1167
|
static int TargetFileRequest_put_TargetFile(py::wrapper::Windows::Storage::Pickers::Provider::TargetFileRequest* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1187
1168
|
{
|
|
1188
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"TargetFile"))
|
|
1189
|
-
{
|
|
1190
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1191
|
-
return -1;
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
1169
|
if (arg == nullptr)
|
|
1195
1170
|
{
|
|
1196
1171
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1199,6 +1174,12 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1199
1174
|
|
|
1200
1175
|
try
|
|
1201
1176
|
{
|
|
1177
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"TargetFile"))
|
|
1178
|
+
{
|
|
1179
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1180
|
+
return -1;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1202
1183
|
auto param0 = py::convert_to<winrt::Windows::Storage::IStorageFile>(arg);
|
|
1203
1184
|
|
|
1204
1185
|
self->obj.TargetFile(param0);
|
|
@@ -1247,23 +1228,20 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1247
1228
|
{ }
|
|
1248
1229
|
};
|
|
1249
1230
|
|
|
1250
|
-
static PyType_Slot _type_slots_TargetFileRequest[] =
|
|
1251
|
-
{
|
|
1231
|
+
static PyType_Slot _type_slots_TargetFileRequest[] = {
|
|
1252
1232
|
{ Py_tp_new, reinterpret_cast<void*>(_new_TargetFileRequest) },
|
|
1253
1233
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TargetFileRequest) },
|
|
1254
1234
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_TargetFileRequest) },
|
|
1255
1235
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_TargetFileRequest) },
|
|
1256
|
-
{ }
|
|
1236
|
+
{ }
|
|
1257
1237
|
};
|
|
1258
1238
|
|
|
1259
|
-
static PyType_Spec type_spec_TargetFileRequest =
|
|
1260
|
-
{
|
|
1239
|
+
static PyType_Spec type_spec_TargetFileRequest = {
|
|
1261
1240
|
"winrt._winrt_windows_storage_pickers_provider.TargetFileRequest",
|
|
1262
1241
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::TargetFileRequest),
|
|
1263
1242
|
0,
|
|
1264
1243
|
Py_TPFLAGS_DEFAULT,
|
|
1265
|
-
_type_slots_TargetFileRequest
|
|
1266
|
-
};
|
|
1244
|
+
_type_slots_TargetFileRequest};
|
|
1267
1245
|
|
|
1268
1246
|
// ----- TargetFileRequestDeferral class --------------------
|
|
1269
1247
|
|
|
@@ -1288,14 +1266,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1288
1266
|
|
|
1289
1267
|
if (arg_count == 0)
|
|
1290
1268
|
{
|
|
1291
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequestDeferral", L"Complete", 0))
|
|
1292
|
-
{
|
|
1293
|
-
py::set_arg_count_version_error(0);
|
|
1294
|
-
return nullptr;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
1269
|
try
|
|
1298
1270
|
{
|
|
1271
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequestDeferral", L"Complete", 0))
|
|
1272
|
+
{
|
|
1273
|
+
py::set_arg_count_version_error(0);
|
|
1274
|
+
return nullptr;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1299
1277
|
self->obj.Complete();
|
|
1300
1278
|
Py_RETURN_NONE;
|
|
1301
1279
|
}
|
|
@@ -1347,23 +1325,20 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1347
1325
|
{ }
|
|
1348
1326
|
};
|
|
1349
1327
|
|
|
1350
|
-
static PyType_Slot _type_slots_TargetFileRequestDeferral[] =
|
|
1351
|
-
{
|
|
1328
|
+
static PyType_Slot _type_slots_TargetFileRequestDeferral[] = {
|
|
1352
1329
|
{ Py_tp_new, reinterpret_cast<void*>(_new_TargetFileRequestDeferral) },
|
|
1353
1330
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TargetFileRequestDeferral) },
|
|
1354
1331
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_TargetFileRequestDeferral) },
|
|
1355
1332
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_TargetFileRequestDeferral) },
|
|
1356
|
-
{ }
|
|
1333
|
+
{ }
|
|
1357
1334
|
};
|
|
1358
1335
|
|
|
1359
|
-
static PyType_Spec type_spec_TargetFileRequestDeferral =
|
|
1360
|
-
{
|
|
1336
|
+
static PyType_Spec type_spec_TargetFileRequestDeferral = {
|
|
1361
1337
|
"winrt._winrt_windows_storage_pickers_provider.TargetFileRequestDeferral",
|
|
1362
1338
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::TargetFileRequestDeferral),
|
|
1363
1339
|
0,
|
|
1364
1340
|
Py_TPFLAGS_DEFAULT,
|
|
1365
|
-
_type_slots_TargetFileRequestDeferral
|
|
1366
|
-
};
|
|
1341
|
+
_type_slots_TargetFileRequestDeferral};
|
|
1367
1342
|
|
|
1368
1343
|
// ----- TargetFileRequestedEventArgs class --------------------
|
|
1369
1344
|
|
|
@@ -1384,14 +1359,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1384
1359
|
|
|
1385
1360
|
static PyObject* TargetFileRequestedEventArgs_get_Request(py::wrapper::Windows::Storage::Pickers::Provider::TargetFileRequestedEventArgs* self, void* /*unused*/) noexcept
|
|
1386
1361
|
{
|
|
1387
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs", L"Request"))
|
|
1388
|
-
{
|
|
1389
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1390
|
-
return nullptr;
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
1362
|
try
|
|
1394
1363
|
{
|
|
1364
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs", L"Request"))
|
|
1365
|
+
{
|
|
1366
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1367
|
+
return nullptr;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1395
1370
|
return py::convert(self->obj.Request());
|
|
1396
1371
|
}
|
|
1397
1372
|
catch (...)
|
|
@@ -1436,39 +1411,35 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
|
|
|
1436
1411
|
{ }
|
|
1437
1412
|
};
|
|
1438
1413
|
|
|
1439
|
-
static PyType_Slot _type_slots_TargetFileRequestedEventArgs[] =
|
|
1440
|
-
{
|
|
1414
|
+
static PyType_Slot _type_slots_TargetFileRequestedEventArgs[] = {
|
|
1441
1415
|
{ Py_tp_new, reinterpret_cast<void*>(_new_TargetFileRequestedEventArgs) },
|
|
1442
1416
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TargetFileRequestedEventArgs) },
|
|
1443
1417
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_TargetFileRequestedEventArgs) },
|
|
1444
1418
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_TargetFileRequestedEventArgs) },
|
|
1445
|
-
{ }
|
|
1419
|
+
{ }
|
|
1446
1420
|
};
|
|
1447
1421
|
|
|
1448
|
-
static PyType_Spec type_spec_TargetFileRequestedEventArgs =
|
|
1449
|
-
{
|
|
1422
|
+
static PyType_Spec type_spec_TargetFileRequestedEventArgs = {
|
|
1450
1423
|
"winrt._winrt_windows_storage_pickers_provider.TargetFileRequestedEventArgs",
|
|
1451
1424
|
sizeof(py::wrapper::Windows::Storage::Pickers::Provider::TargetFileRequestedEventArgs),
|
|
1452
1425
|
0,
|
|
1453
1426
|
Py_TPFLAGS_DEFAULT,
|
|
1454
|
-
_type_slots_TargetFileRequestedEventArgs
|
|
1455
|
-
};
|
|
1427
|
+
_type_slots_TargetFileRequestedEventArgs};
|
|
1456
1428
|
|
|
1457
1429
|
// ----- Windows.Storage.Pickers.Provider Initialization --------------------
|
|
1458
|
-
PyDoc_STRVAR(module_doc, "Windows::Storage::Pickers::Provider");
|
|
1459
1430
|
|
|
1431
|
+
PyDoc_STRVAR(module_doc, "Windows.Storage.Pickers.Provider");
|
|
1460
1432
|
|
|
1461
|
-
static PyModuleDef module_def
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1433
|
+
static PyModuleDef module_def = {
|
|
1434
|
+
PyModuleDef_HEAD_INIT,
|
|
1435
|
+
"_winrt_windows_storage_pickers_provider",
|
|
1436
|
+
module_doc,
|
|
1437
|
+
0,
|
|
1438
|
+
nullptr,
|
|
1439
|
+
nullptr,
|
|
1440
|
+
nullptr,
|
|
1441
|
+
nullptr,
|
|
1442
|
+
nullptr};
|
|
1472
1443
|
} // py::cpp::Windows::Storage::Pickers::Provider
|
|
1473
1444
|
|
|
1474
1445
|
PyMODINIT_FUNC PyInit__winrt_windows_storage_pickers_provider(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_storage_pickers_provider",
|
|
26
|
+
sources=["py.Windows.Storage.Pickers.Provider.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,9 +9,9 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
14
|
-
import winrt.windows.storage
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.storage as windows_storage
|
|
15
15
|
|
|
16
16
|
from winrt.windows.storage.pickers.provider import AddFileResult, FileSelectionMode, SetFileNameResult
|
|
17
17
|
|
|
@@ -21,20 +21,20 @@ Self = typing.TypeVar('Self')
|
|
|
21
21
|
class FileOpenPickerUI(winrt.system.Object):
|
|
22
22
|
@staticmethod
|
|
23
23
|
def _from(obj: winrt.system.Object, /) -> FileOpenPickerUI: ...
|
|
24
|
-
def add_file(self, id: str, file: typing.Optional[
|
|
25
|
-
def can_add_file(self, file: typing.Optional[
|
|
24
|
+
def add_file(self, id: str, file: typing.Optional[windows_storage.IStorageFile], /) -> AddFileResult: ...
|
|
25
|
+
def can_add_file(self, file: typing.Optional[windows_storage.IStorageFile], /) -> bool: ...
|
|
26
26
|
def contains_file(self, id: str, /) -> bool: ...
|
|
27
27
|
def remove_file(self, id: str, /) -> None: ...
|
|
28
|
-
def add_closing(self, handler:
|
|
29
|
-
def remove_closing(self, token:
|
|
30
|
-
def add_file_removed(self, handler:
|
|
31
|
-
def remove_file_removed(self, token:
|
|
28
|
+
def add_closing(self, handler: windows_foundation.TypedEventHandler[FileOpenPickerUI, PickerClosingEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
29
|
+
def remove_closing(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
30
|
+
def add_file_removed(self, handler: windows_foundation.TypedEventHandler[FileOpenPickerUI, FileRemovedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
31
|
+
def remove_file_removed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
32
32
|
@_property
|
|
33
33
|
def title(self) -> str: ...
|
|
34
34
|
@title.setter
|
|
35
35
|
def title(self, value: str) -> None: ...
|
|
36
36
|
@_property
|
|
37
|
-
def allowed_file_types(self) -> typing.Optional[
|
|
37
|
+
def allowed_file_types(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
38
38
|
@_property
|
|
39
39
|
def selection_mode(self) -> FileSelectionMode: ...
|
|
40
40
|
@_property
|
|
@@ -52,16 +52,16 @@ class FileSavePickerUI(winrt.system.Object):
|
|
|
52
52
|
@staticmethod
|
|
53
53
|
def _from(obj: winrt.system.Object, /) -> FileSavePickerUI: ...
|
|
54
54
|
def try_set_file_name(self, value: str, /) -> SetFileNameResult: ...
|
|
55
|
-
def add_file_name_changed(self, handler:
|
|
56
|
-
def remove_file_name_changed(self, token:
|
|
57
|
-
def add_target_file_requested(self, handler:
|
|
58
|
-
def remove_target_file_requested(self, token:
|
|
55
|
+
def add_file_name_changed(self, handler: windows_foundation.TypedEventHandler[FileSavePickerUI, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
56
|
+
def remove_file_name_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
57
|
+
def add_target_file_requested(self, handler: windows_foundation.TypedEventHandler[FileSavePickerUI, TargetFileRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
58
|
+
def remove_target_file_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
59
59
|
@_property
|
|
60
60
|
def title(self) -> str: ...
|
|
61
61
|
@title.setter
|
|
62
62
|
def title(self, value: str) -> None: ...
|
|
63
63
|
@_property
|
|
64
|
-
def allowed_file_types(self) -> typing.Optional[
|
|
64
|
+
def allowed_file_types(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
65
65
|
@_property
|
|
66
66
|
def file_name(self) -> str: ...
|
|
67
67
|
@_property
|
|
@@ -96,9 +96,9 @@ class TargetFileRequest(winrt.system.Object):
|
|
|
96
96
|
def _from(obj: winrt.system.Object, /) -> TargetFileRequest: ...
|
|
97
97
|
def get_deferral(self) -> typing.Optional[TargetFileRequestDeferral]: ...
|
|
98
98
|
@_property
|
|
99
|
-
def target_file(self) -> typing.Optional[
|
|
99
|
+
def target_file(self) -> typing.Optional[windows_storage.IStorageFile]: ...
|
|
100
100
|
@target_file.setter
|
|
101
|
-
def target_file(self, value: typing.Optional[
|
|
101
|
+
def target_file(self, value: typing.Optional[windows_storage.IStorageFile]) -> None: ...
|
|
102
102
|
|
|
103
103
|
@typing.final
|
|
104
104
|
class TargetFileRequestDeferral(winrt.system.Object):
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Storage.Pickers.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_storage_pickers_provider.pyi
|
|
9
9
|
winrt/windows/storage/pickers/provider/__init__.py
|
|
10
|
+
winrt/windows/storage/pickers/provider/py.typed
|
|
10
11
|
winrt_Windows.Storage.Pickers.Provider.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Storage.Pickers.Provider.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Storage.Pickers.Provider.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_storage_pickers_provider",
|
|
10
|
-
sources=["py.Windows.Storage.Pickers.Provider.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|