winrt-Windows.ApplicationModel.Search.Core 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.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/PKG-INFO +6 -1
- winrt_windows_applicationmodel_search_core-2.1.0/all-requirements.txt +6 -0
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/py.Windows.ApplicationModel.Search.Core.cpp +184 -198
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_search_core-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/requirements.txt +2 -2
- winrt_windows_applicationmodel_search_core-2.1.0/setup.py +31 -0
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/winrt/_winrt_windows_applicationmodel_search_core.pyi +16 -16
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/winrt/windows/applicationmodel/search/core/__init__.py +1 -1
- winrt_windows_applicationmodel_search_core-2.1.0/winrt/windows/applicationmodel/search/core/py.typed +0 -0
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/PKG-INFO +6 -1
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/SOURCES.txt +1 -0
- winrt_windows_applicationmodel_search_core-2.1.0/winrt_Windows.ApplicationModel.Search.Core.egg-info/requires.txt +7 -0
- winrt-Windows.ApplicationModel.Search.Core-2.0.0b2/all-requirements.txt +0 -6
- winrt-Windows.ApplicationModel.Search.Core-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.ApplicationModel.Search.Core-2.0.0b2/setup.py +0 -16
- winrt-Windows.ApplicationModel.Search.Core-2.0.0b2/winrt_Windows.ApplicationModel.Search.Core.egg-info/requires.txt +0 -7
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/README.md +0 -0
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.ApplicationModel.Search.Core-2.0.0b2 → winrt_windows_applicationmodel_search_core-2.1.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Search.Core
|
|
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,12 @@ 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.ApplicationModel.Search[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
21
|
|
|
17
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
23
|
|
|
@@ -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.ApplicationModel.Search.Core.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
7
6
|
{
|
|
8
7
|
// ----- RequestingFocusOnKeyboardInputEventArgs class --------------------
|
|
@@ -56,23 +55,20 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
56
55
|
{ }
|
|
57
56
|
};
|
|
58
57
|
|
|
59
|
-
static PyType_Slot _type_slots_RequestingFocusOnKeyboardInputEventArgs[] =
|
|
60
|
-
{
|
|
58
|
+
static PyType_Slot _type_slots_RequestingFocusOnKeyboardInputEventArgs[] = {
|
|
61
59
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RequestingFocusOnKeyboardInputEventArgs) },
|
|
62
60
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RequestingFocusOnKeyboardInputEventArgs) },
|
|
63
61
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RequestingFocusOnKeyboardInputEventArgs) },
|
|
64
62
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RequestingFocusOnKeyboardInputEventArgs) },
|
|
65
|
-
{ }
|
|
63
|
+
{ }
|
|
66
64
|
};
|
|
67
65
|
|
|
68
|
-
static PyType_Spec type_spec_RequestingFocusOnKeyboardInputEventArgs =
|
|
69
|
-
{
|
|
66
|
+
static PyType_Spec type_spec_RequestingFocusOnKeyboardInputEventArgs = {
|
|
70
67
|
"winrt._winrt_windows_applicationmodel_search_core.RequestingFocusOnKeyboardInputEventArgs",
|
|
71
68
|
sizeof(py::wrapper::Windows::ApplicationModel::Search::Core::RequestingFocusOnKeyboardInputEventArgs),
|
|
72
69
|
0,
|
|
73
70
|
Py_TPFLAGS_DEFAULT,
|
|
74
|
-
_type_slots_RequestingFocusOnKeyboardInputEventArgs
|
|
75
|
-
};
|
|
71
|
+
_type_slots_RequestingFocusOnKeyboardInputEventArgs};
|
|
76
72
|
|
|
77
73
|
// ----- SearchSuggestion class --------------------
|
|
78
74
|
|
|
@@ -93,14 +89,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
93
89
|
|
|
94
90
|
static PyObject* SearchSuggestion_get_DetailText(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestion* self, void* /*unused*/) noexcept
|
|
95
91
|
{
|
|
96
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"DetailText"))
|
|
97
|
-
{
|
|
98
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
99
|
-
return nullptr;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
92
|
try
|
|
103
93
|
{
|
|
94
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"DetailText"))
|
|
95
|
+
{
|
|
96
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
97
|
+
return nullptr;
|
|
98
|
+
}
|
|
99
|
+
|
|
104
100
|
return py::convert(self->obj.DetailText());
|
|
105
101
|
}
|
|
106
102
|
catch (...)
|
|
@@ -112,14 +108,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
112
108
|
|
|
113
109
|
static PyObject* SearchSuggestion_get_Image(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestion* self, void* /*unused*/) noexcept
|
|
114
110
|
{
|
|
115
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Image"))
|
|
116
|
-
{
|
|
117
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
118
|
-
return nullptr;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
111
|
try
|
|
122
112
|
{
|
|
113
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Image"))
|
|
114
|
+
{
|
|
115
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
116
|
+
return nullptr;
|
|
117
|
+
}
|
|
118
|
+
|
|
123
119
|
return py::convert(self->obj.Image());
|
|
124
120
|
}
|
|
125
121
|
catch (...)
|
|
@@ -131,14 +127,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
131
127
|
|
|
132
128
|
static PyObject* SearchSuggestion_get_ImageAlternateText(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestion* self, void* /*unused*/) noexcept
|
|
133
129
|
{
|
|
134
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"ImageAlternateText"))
|
|
135
|
-
{
|
|
136
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
137
|
-
return nullptr;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
130
|
try
|
|
141
131
|
{
|
|
132
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"ImageAlternateText"))
|
|
133
|
+
{
|
|
134
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
135
|
+
return nullptr;
|
|
136
|
+
}
|
|
137
|
+
|
|
142
138
|
return py::convert(self->obj.ImageAlternateText());
|
|
143
139
|
}
|
|
144
140
|
catch (...)
|
|
@@ -150,14 +146,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
150
146
|
|
|
151
147
|
static PyObject* SearchSuggestion_get_Kind(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestion* self, void* /*unused*/) noexcept
|
|
152
148
|
{
|
|
153
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Kind"))
|
|
154
|
-
{
|
|
155
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
156
|
-
return nullptr;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
149
|
try
|
|
160
150
|
{
|
|
151
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Kind"))
|
|
152
|
+
{
|
|
153
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
154
|
+
return nullptr;
|
|
155
|
+
}
|
|
156
|
+
|
|
161
157
|
return py::convert(self->obj.Kind());
|
|
162
158
|
}
|
|
163
159
|
catch (...)
|
|
@@ -169,14 +165,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
169
165
|
|
|
170
166
|
static PyObject* SearchSuggestion_get_Tag(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestion* self, void* /*unused*/) noexcept
|
|
171
167
|
{
|
|
172
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Tag"))
|
|
173
|
-
{
|
|
174
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
175
|
-
return nullptr;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
168
|
try
|
|
179
169
|
{
|
|
170
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Tag"))
|
|
171
|
+
{
|
|
172
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
173
|
+
return nullptr;
|
|
174
|
+
}
|
|
175
|
+
|
|
180
176
|
return py::convert(self->obj.Tag());
|
|
181
177
|
}
|
|
182
178
|
catch (...)
|
|
@@ -188,14 +184,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
188
184
|
|
|
189
185
|
static PyObject* SearchSuggestion_get_Text(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestion* self, void* /*unused*/) noexcept
|
|
190
186
|
{
|
|
191
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Text"))
|
|
192
|
-
{
|
|
193
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
194
|
-
return nullptr;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
187
|
try
|
|
198
188
|
{
|
|
189
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Text"))
|
|
190
|
+
{
|
|
191
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
192
|
+
return nullptr;
|
|
193
|
+
}
|
|
194
|
+
|
|
199
195
|
return py::convert(self->obj.Text());
|
|
200
196
|
}
|
|
201
197
|
catch (...)
|
|
@@ -245,23 +241,20 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
245
241
|
{ }
|
|
246
242
|
};
|
|
247
243
|
|
|
248
|
-
static PyType_Slot _type_slots_SearchSuggestion[] =
|
|
249
|
-
{
|
|
244
|
+
static PyType_Slot _type_slots_SearchSuggestion[] = {
|
|
250
245
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SearchSuggestion) },
|
|
251
246
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SearchSuggestion) },
|
|
252
247
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SearchSuggestion) },
|
|
253
248
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SearchSuggestion) },
|
|
254
|
-
{ }
|
|
249
|
+
{ }
|
|
255
250
|
};
|
|
256
251
|
|
|
257
|
-
static PyType_Spec type_spec_SearchSuggestion =
|
|
258
|
-
{
|
|
252
|
+
static PyType_Spec type_spec_SearchSuggestion = {
|
|
259
253
|
"winrt._winrt_windows_applicationmodel_search_core.SearchSuggestion",
|
|
260
254
|
sizeof(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestion),
|
|
261
255
|
0,
|
|
262
256
|
Py_TPFLAGS_DEFAULT,
|
|
263
|
-
_type_slots_SearchSuggestion
|
|
264
|
-
};
|
|
257
|
+
_type_slots_SearchSuggestion};
|
|
265
258
|
|
|
266
259
|
// ----- SearchSuggestionManager class --------------------
|
|
267
260
|
|
|
@@ -308,14 +301,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
308
301
|
|
|
309
302
|
if (arg_count == 1)
|
|
310
303
|
{
|
|
311
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"AddToHistory", 1))
|
|
312
|
-
{
|
|
313
|
-
py::set_arg_count_version_error(1);
|
|
314
|
-
return nullptr;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
304
|
try
|
|
318
305
|
{
|
|
306
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"AddToHistory", 1))
|
|
307
|
+
{
|
|
308
|
+
py::set_arg_count_version_error(1);
|
|
309
|
+
return nullptr;
|
|
310
|
+
}
|
|
311
|
+
|
|
319
312
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
320
313
|
|
|
321
314
|
self->obj.AddToHistory(param0);
|
|
@@ -329,14 +322,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
329
322
|
}
|
|
330
323
|
else if (arg_count == 2)
|
|
331
324
|
{
|
|
332
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"AddToHistory", 2))
|
|
333
|
-
{
|
|
334
|
-
py::set_arg_count_version_error(2);
|
|
335
|
-
return nullptr;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
325
|
try
|
|
339
326
|
{
|
|
327
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"AddToHistory", 2))
|
|
328
|
+
{
|
|
329
|
+
py::set_arg_count_version_error(2);
|
|
330
|
+
return nullptr;
|
|
331
|
+
}
|
|
332
|
+
|
|
340
333
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
341
334
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
342
335
|
|
|
@@ -362,14 +355,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
362
355
|
|
|
363
356
|
if (arg_count == 0)
|
|
364
357
|
{
|
|
365
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"ClearHistory", 0))
|
|
366
|
-
{
|
|
367
|
-
py::set_arg_count_version_error(0);
|
|
368
|
-
return nullptr;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
358
|
try
|
|
372
359
|
{
|
|
360
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"ClearHistory", 0))
|
|
361
|
+
{
|
|
362
|
+
py::set_arg_count_version_error(0);
|
|
363
|
+
return nullptr;
|
|
364
|
+
}
|
|
365
|
+
|
|
373
366
|
self->obj.ClearHistory();
|
|
374
367
|
Py_RETURN_NONE;
|
|
375
368
|
}
|
|
@@ -392,14 +385,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
392
385
|
|
|
393
386
|
if (arg_count == 1)
|
|
394
387
|
{
|
|
395
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetLocalContentSuggestionSettings", 1))
|
|
396
|
-
{
|
|
397
|
-
py::set_arg_count_version_error(1);
|
|
398
|
-
return nullptr;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
388
|
try
|
|
402
389
|
{
|
|
390
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetLocalContentSuggestionSettings", 1))
|
|
391
|
+
{
|
|
392
|
+
py::set_arg_count_version_error(1);
|
|
393
|
+
return nullptr;
|
|
394
|
+
}
|
|
395
|
+
|
|
403
396
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Search::LocalContentSuggestionSettings>(args, 0);
|
|
404
397
|
|
|
405
398
|
self->obj.SetLocalContentSuggestionSettings(param0);
|
|
@@ -424,14 +417,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
424
417
|
|
|
425
418
|
if (arg_count == 1)
|
|
426
419
|
{
|
|
427
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 1))
|
|
428
|
-
{
|
|
429
|
-
py::set_arg_count_version_error(1);
|
|
430
|
-
return nullptr;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
420
|
try
|
|
434
421
|
{
|
|
422
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 1))
|
|
423
|
+
{
|
|
424
|
+
py::set_arg_count_version_error(1);
|
|
425
|
+
return nullptr;
|
|
426
|
+
}
|
|
427
|
+
|
|
435
428
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
436
429
|
|
|
437
430
|
self->obj.SetQuery(param0);
|
|
@@ -445,14 +438,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
445
438
|
}
|
|
446
439
|
else if (arg_count == 2)
|
|
447
440
|
{
|
|
448
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 2))
|
|
449
|
-
{
|
|
450
|
-
py::set_arg_count_version_error(2);
|
|
451
|
-
return nullptr;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
441
|
try
|
|
455
442
|
{
|
|
443
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 2))
|
|
444
|
+
{
|
|
445
|
+
py::set_arg_count_version_error(2);
|
|
446
|
+
return nullptr;
|
|
447
|
+
}
|
|
448
|
+
|
|
456
449
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
457
450
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
458
451
|
|
|
@@ -467,14 +460,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
467
460
|
}
|
|
468
461
|
else if (arg_count == 3)
|
|
469
462
|
{
|
|
470
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 3))
|
|
471
|
-
{
|
|
472
|
-
py::set_arg_count_version_error(3);
|
|
473
|
-
return nullptr;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
463
|
try
|
|
477
464
|
{
|
|
465
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 3))
|
|
466
|
+
{
|
|
467
|
+
py::set_arg_count_version_error(3);
|
|
468
|
+
return nullptr;
|
|
469
|
+
}
|
|
470
|
+
|
|
478
471
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
479
472
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
480
473
|
auto param2 = py::convert_to<winrt::Windows::ApplicationModel::Search::SearchQueryLinguisticDetails>(args, 2);
|
|
@@ -497,14 +490,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
497
490
|
|
|
498
491
|
static PyObject* SearchSuggestionManager_get_SearchHistoryEnabled(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, void* /*unused*/) noexcept
|
|
499
492
|
{
|
|
500
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryEnabled"))
|
|
501
|
-
{
|
|
502
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
503
|
-
return nullptr;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
493
|
try
|
|
507
494
|
{
|
|
495
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryEnabled"))
|
|
496
|
+
{
|
|
497
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
498
|
+
return nullptr;
|
|
499
|
+
}
|
|
500
|
+
|
|
508
501
|
return py::convert(self->obj.SearchHistoryEnabled());
|
|
509
502
|
}
|
|
510
503
|
catch (...)
|
|
@@ -516,12 +509,6 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
516
509
|
|
|
517
510
|
static int SearchSuggestionManager_put_SearchHistoryEnabled(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* arg, void* /*unused*/) noexcept
|
|
518
511
|
{
|
|
519
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryEnabled"))
|
|
520
|
-
{
|
|
521
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
522
|
-
return -1;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
512
|
if (arg == nullptr)
|
|
526
513
|
{
|
|
527
514
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -530,6 +517,12 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
530
517
|
|
|
531
518
|
try
|
|
532
519
|
{
|
|
520
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryEnabled"))
|
|
521
|
+
{
|
|
522
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
523
|
+
return -1;
|
|
524
|
+
}
|
|
525
|
+
|
|
533
526
|
auto param0 = py::convert_to<bool>(arg);
|
|
534
527
|
|
|
535
528
|
self->obj.SearchHistoryEnabled(param0);
|
|
@@ -544,14 +537,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
544
537
|
|
|
545
538
|
static PyObject* SearchSuggestionManager_get_SearchHistoryContext(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, void* /*unused*/) noexcept
|
|
546
539
|
{
|
|
547
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryContext"))
|
|
548
|
-
{
|
|
549
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
550
|
-
return nullptr;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
540
|
try
|
|
554
541
|
{
|
|
542
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryContext"))
|
|
543
|
+
{
|
|
544
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
545
|
+
return nullptr;
|
|
546
|
+
}
|
|
547
|
+
|
|
555
548
|
return py::convert(self->obj.SearchHistoryContext());
|
|
556
549
|
}
|
|
557
550
|
catch (...)
|
|
@@ -563,12 +556,6 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
563
556
|
|
|
564
557
|
static int SearchSuggestionManager_put_SearchHistoryContext(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* arg, void* /*unused*/) noexcept
|
|
565
558
|
{
|
|
566
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryContext"))
|
|
567
|
-
{
|
|
568
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
569
|
-
return -1;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
559
|
if (arg == nullptr)
|
|
573
560
|
{
|
|
574
561
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -577,6 +564,12 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
577
564
|
|
|
578
565
|
try
|
|
579
566
|
{
|
|
567
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryContext"))
|
|
568
|
+
{
|
|
569
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
570
|
+
return -1;
|
|
571
|
+
}
|
|
572
|
+
|
|
580
573
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
581
574
|
|
|
582
575
|
self->obj.SearchHistoryContext(param0);
|
|
@@ -591,14 +584,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
591
584
|
|
|
592
585
|
static PyObject* SearchSuggestionManager_get_Suggestions(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, void* /*unused*/) noexcept
|
|
593
586
|
{
|
|
594
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"Suggestions"))
|
|
595
|
-
{
|
|
596
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
597
|
-
return nullptr;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
587
|
try
|
|
601
588
|
{
|
|
589
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"Suggestions"))
|
|
590
|
+
{
|
|
591
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
592
|
+
return nullptr;
|
|
593
|
+
}
|
|
594
|
+
|
|
602
595
|
return py::convert(self->obj.Suggestions());
|
|
603
596
|
}
|
|
604
597
|
catch (...)
|
|
@@ -610,14 +603,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
610
603
|
|
|
611
604
|
static PyObject* SearchSuggestionManager_add_RequestingFocusOnKeyboardInput(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* arg) noexcept
|
|
612
605
|
{
|
|
613
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"RequestingFocusOnKeyboardInput"))
|
|
614
|
-
{
|
|
615
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
616
|
-
return nullptr;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
606
|
try
|
|
620
607
|
{
|
|
608
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"RequestingFocusOnKeyboardInput"))
|
|
609
|
+
{
|
|
610
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
611
|
+
return nullptr;
|
|
612
|
+
}
|
|
613
|
+
|
|
621
614
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionManager, winrt::Windows::ApplicationModel::Search::Core::RequestingFocusOnKeyboardInputEventArgs>>(arg);
|
|
622
615
|
|
|
623
616
|
return py::convert(self->obj.RequestingFocusOnKeyboardInput(param0));
|
|
@@ -631,14 +624,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
631
624
|
|
|
632
625
|
static PyObject* SearchSuggestionManager_remove_RequestingFocusOnKeyboardInput(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* arg) noexcept
|
|
633
626
|
{
|
|
634
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"RequestingFocusOnKeyboardInput"))
|
|
635
|
-
{
|
|
636
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
637
|
-
return nullptr;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
627
|
try
|
|
641
628
|
{
|
|
629
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"RequestingFocusOnKeyboardInput"))
|
|
630
|
+
{
|
|
631
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
632
|
+
return nullptr;
|
|
633
|
+
}
|
|
634
|
+
|
|
642
635
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
643
636
|
|
|
644
637
|
self->obj.RequestingFocusOnKeyboardInput(param0);
|
|
@@ -653,14 +646,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
653
646
|
|
|
654
647
|
static PyObject* SearchSuggestionManager_add_SuggestionsRequested(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* arg) noexcept
|
|
655
648
|
{
|
|
656
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SuggestionsRequested"))
|
|
657
|
-
{
|
|
658
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
659
|
-
return nullptr;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
649
|
try
|
|
663
650
|
{
|
|
651
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SuggestionsRequested"))
|
|
652
|
+
{
|
|
653
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
654
|
+
return nullptr;
|
|
655
|
+
}
|
|
656
|
+
|
|
664
657
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionManager, winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionsRequestedEventArgs>>(arg);
|
|
665
658
|
|
|
666
659
|
return py::convert(self->obj.SuggestionsRequested(param0));
|
|
@@ -674,14 +667,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
674
667
|
|
|
675
668
|
static PyObject* SearchSuggestionManager_remove_SuggestionsRequested(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager* self, PyObject* arg) noexcept
|
|
676
669
|
{
|
|
677
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SuggestionsRequested"))
|
|
678
|
-
{
|
|
679
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
680
|
-
return nullptr;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
670
|
try
|
|
684
671
|
{
|
|
672
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SuggestionsRequested"))
|
|
673
|
+
{
|
|
674
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
675
|
+
return nullptr;
|
|
676
|
+
}
|
|
677
|
+
|
|
685
678
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
686
679
|
|
|
687
680
|
self->obj.SuggestionsRequested(param0);
|
|
@@ -739,23 +732,20 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
739
732
|
{ }
|
|
740
733
|
};
|
|
741
734
|
|
|
742
|
-
static PyType_Slot _type_slots_SearchSuggestionManager[] =
|
|
743
|
-
{
|
|
735
|
+
static PyType_Slot _type_slots_SearchSuggestionManager[] = {
|
|
744
736
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SearchSuggestionManager) },
|
|
745
737
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SearchSuggestionManager) },
|
|
746
738
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SearchSuggestionManager) },
|
|
747
739
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SearchSuggestionManager) },
|
|
748
|
-
{ }
|
|
740
|
+
{ }
|
|
749
741
|
};
|
|
750
742
|
|
|
751
|
-
static PyType_Spec type_spec_SearchSuggestionManager =
|
|
752
|
-
{
|
|
743
|
+
static PyType_Spec type_spec_SearchSuggestionManager = {
|
|
753
744
|
"winrt._winrt_windows_applicationmodel_search_core.SearchSuggestionManager",
|
|
754
745
|
sizeof(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionManager),
|
|
755
746
|
0,
|
|
756
747
|
Py_TPFLAGS_DEFAULT,
|
|
757
|
-
_type_slots_SearchSuggestionManager
|
|
758
|
-
};
|
|
748
|
+
_type_slots_SearchSuggestionManager};
|
|
759
749
|
|
|
760
750
|
// ----- SearchSuggestionsRequestedEventArgs class --------------------
|
|
761
751
|
|
|
@@ -776,14 +766,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
776
766
|
|
|
777
767
|
static PyObject* SearchSuggestionsRequestedEventArgs_get_Language(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionsRequestedEventArgs* self, void* /*unused*/) noexcept
|
|
778
768
|
{
|
|
779
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"Language"))
|
|
780
|
-
{
|
|
781
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
782
|
-
return nullptr;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
769
|
try
|
|
786
770
|
{
|
|
771
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"Language"))
|
|
772
|
+
{
|
|
773
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
774
|
+
return nullptr;
|
|
775
|
+
}
|
|
776
|
+
|
|
787
777
|
return py::convert(self->obj.Language());
|
|
788
778
|
}
|
|
789
779
|
catch (...)
|
|
@@ -795,14 +785,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
795
785
|
|
|
796
786
|
static PyObject* SearchSuggestionsRequestedEventArgs_get_LinguisticDetails(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionsRequestedEventArgs* self, void* /*unused*/) noexcept
|
|
797
787
|
{
|
|
798
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"LinguisticDetails"))
|
|
799
|
-
{
|
|
800
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
801
|
-
return nullptr;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
788
|
try
|
|
805
789
|
{
|
|
790
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"LinguisticDetails"))
|
|
791
|
+
{
|
|
792
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
793
|
+
return nullptr;
|
|
794
|
+
}
|
|
795
|
+
|
|
806
796
|
return py::convert(self->obj.LinguisticDetails());
|
|
807
797
|
}
|
|
808
798
|
catch (...)
|
|
@@ -814,14 +804,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
814
804
|
|
|
815
805
|
static PyObject* SearchSuggestionsRequestedEventArgs_get_QueryText(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionsRequestedEventArgs* self, void* /*unused*/) noexcept
|
|
816
806
|
{
|
|
817
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"QueryText"))
|
|
818
|
-
{
|
|
819
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
820
|
-
return nullptr;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
807
|
try
|
|
824
808
|
{
|
|
809
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"QueryText"))
|
|
810
|
+
{
|
|
811
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
812
|
+
return nullptr;
|
|
813
|
+
}
|
|
814
|
+
|
|
825
815
|
return py::convert(self->obj.QueryText());
|
|
826
816
|
}
|
|
827
817
|
catch (...)
|
|
@@ -833,14 +823,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
833
823
|
|
|
834
824
|
static PyObject* SearchSuggestionsRequestedEventArgs_get_Request(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionsRequestedEventArgs* self, void* /*unused*/) noexcept
|
|
835
825
|
{
|
|
836
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"Request"))
|
|
837
|
-
{
|
|
838
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
839
|
-
return nullptr;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
826
|
try
|
|
843
827
|
{
|
|
828
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"Request"))
|
|
829
|
+
{
|
|
830
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
831
|
+
return nullptr;
|
|
832
|
+
}
|
|
833
|
+
|
|
844
834
|
return py::convert(self->obj.Request());
|
|
845
835
|
}
|
|
846
836
|
catch (...)
|
|
@@ -888,39 +878,35 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
|
|
|
888
878
|
{ }
|
|
889
879
|
};
|
|
890
880
|
|
|
891
|
-
static PyType_Slot _type_slots_SearchSuggestionsRequestedEventArgs[] =
|
|
892
|
-
{
|
|
881
|
+
static PyType_Slot _type_slots_SearchSuggestionsRequestedEventArgs[] = {
|
|
893
882
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SearchSuggestionsRequestedEventArgs) },
|
|
894
883
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SearchSuggestionsRequestedEventArgs) },
|
|
895
884
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SearchSuggestionsRequestedEventArgs) },
|
|
896
885
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SearchSuggestionsRequestedEventArgs) },
|
|
897
|
-
{ }
|
|
886
|
+
{ }
|
|
898
887
|
};
|
|
899
888
|
|
|
900
|
-
static PyType_Spec type_spec_SearchSuggestionsRequestedEventArgs =
|
|
901
|
-
{
|
|
889
|
+
static PyType_Spec type_spec_SearchSuggestionsRequestedEventArgs = {
|
|
902
890
|
"winrt._winrt_windows_applicationmodel_search_core.SearchSuggestionsRequestedEventArgs",
|
|
903
891
|
sizeof(py::wrapper::Windows::ApplicationModel::Search::Core::SearchSuggestionsRequestedEventArgs),
|
|
904
892
|
0,
|
|
905
893
|
Py_TPFLAGS_DEFAULT,
|
|
906
|
-
_type_slots_SearchSuggestionsRequestedEventArgs
|
|
907
|
-
};
|
|
894
|
+
_type_slots_SearchSuggestionsRequestedEventArgs};
|
|
908
895
|
|
|
909
896
|
// ----- Windows.ApplicationModel.Search.Core Initialization --------------------
|
|
910
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Search::Core");
|
|
911
|
-
|
|
912
897
|
|
|
913
|
-
|
|
914
|
-
= {PyModuleDef_HEAD_INIT,
|
|
915
|
-
"_winrt_windows_applicationmodel_search_core",
|
|
916
|
-
module_doc,
|
|
917
|
-
0,
|
|
918
|
-
nullptr,
|
|
919
|
-
nullptr,
|
|
920
|
-
nullptr,
|
|
921
|
-
nullptr,
|
|
922
|
-
nullptr};
|
|
898
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Search.Core");
|
|
923
899
|
|
|
900
|
+
static PyModuleDef module_def = {
|
|
901
|
+
PyModuleDef_HEAD_INIT,
|
|
902
|
+
"_winrt_windows_applicationmodel_search_core",
|
|
903
|
+
module_doc,
|
|
904
|
+
0,
|
|
905
|
+
nullptr,
|
|
906
|
+
nullptr,
|
|
907
|
+
nullptr,
|
|
908
|
+
nullptr,
|
|
909
|
+
nullptr};
|
|
924
910
|
} // py::cpp::Windows::ApplicationModel::Search::Core
|
|
925
911
|
|
|
926
912
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_search_core(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_applicationmodel_search_core",
|
|
26
|
+
sources=["py.Windows.ApplicationModel.Search.Core.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,10 +9,10 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.applicationmodel.search
|
|
13
|
-
import winrt.windows.foundation
|
|
14
|
-
import winrt.windows.foundation.collections
|
|
15
|
-
import winrt.windows.storage.streams
|
|
12
|
+
import winrt.windows.applicationmodel.search as windows_applicationmodel_search
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
16
16
|
|
|
17
17
|
from winrt.windows.applicationmodel.search.core import SearchSuggestionKind
|
|
18
18
|
|
|
@@ -30,7 +30,7 @@ class SearchSuggestion(winrt.system.Object):
|
|
|
30
30
|
@_property
|
|
31
31
|
def detail_text(self) -> str: ...
|
|
32
32
|
@_property
|
|
33
|
-
def image(self) -> typing.Optional[
|
|
33
|
+
def image(self) -> typing.Optional[windows_storage_streams.IRandomAccessStreamReference]: ...
|
|
34
34
|
@_property
|
|
35
35
|
def image_alternate_text(self) -> str: ...
|
|
36
36
|
@_property
|
|
@@ -44,23 +44,23 @@ class SearchSuggestion(winrt.system.Object):
|
|
|
44
44
|
class SearchSuggestionManager(winrt.system.Object):
|
|
45
45
|
@staticmethod
|
|
46
46
|
def _from(obj: winrt.system.Object, /) -> SearchSuggestionManager: ...
|
|
47
|
-
def __new__(cls: typing.Type[SearchSuggestionManager]) -> SearchSuggestionManager
|
|
47
|
+
def __new__(cls: typing.Type[SearchSuggestionManager]) -> SearchSuggestionManager: ...
|
|
48
48
|
@typing.overload
|
|
49
49
|
def add_to_history(self, query_text: str, /) -> None: ...
|
|
50
50
|
@typing.overload
|
|
51
51
|
def add_to_history(self, query_text: str, language: str, /) -> None: ...
|
|
52
52
|
def clear_history(self) -> None: ...
|
|
53
|
-
def set_local_content_suggestion_settings(self, settings: typing.Optional[
|
|
53
|
+
def set_local_content_suggestion_settings(self, settings: typing.Optional[windows_applicationmodel_search.LocalContentSuggestionSettings], /) -> None: ...
|
|
54
54
|
@typing.overload
|
|
55
55
|
def set_query(self, query_text: str, /) -> None: ...
|
|
56
56
|
@typing.overload
|
|
57
57
|
def set_query(self, query_text: str, language: str, /) -> None: ...
|
|
58
58
|
@typing.overload
|
|
59
|
-
def set_query(self, query_text: str, language: str, linguistic_details: typing.Optional[
|
|
60
|
-
def add_requesting_focus_on_keyboard_input(self, handler:
|
|
61
|
-
def remove_requesting_focus_on_keyboard_input(self, token:
|
|
62
|
-
def add_suggestions_requested(self, handler:
|
|
63
|
-
def remove_suggestions_requested(self, token:
|
|
59
|
+
def set_query(self, query_text: str, language: str, linguistic_details: typing.Optional[windows_applicationmodel_search.SearchQueryLinguisticDetails], /) -> None: ...
|
|
60
|
+
def add_requesting_focus_on_keyboard_input(self, handler: windows_foundation.TypedEventHandler[SearchSuggestionManager, RequestingFocusOnKeyboardInputEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
61
|
+
def remove_requesting_focus_on_keyboard_input(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
62
|
+
def add_suggestions_requested(self, handler: windows_foundation.TypedEventHandler[SearchSuggestionManager, SearchSuggestionsRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
63
|
+
def remove_suggestions_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
64
64
|
@_property
|
|
65
65
|
def search_history_enabled(self) -> bool: ...
|
|
66
66
|
@search_history_enabled.setter
|
|
@@ -70,7 +70,7 @@ class SearchSuggestionManager(winrt.system.Object):
|
|
|
70
70
|
@search_history_context.setter
|
|
71
71
|
def search_history_context(self, value: str) -> None: ...
|
|
72
72
|
@_property
|
|
73
|
-
def suggestions(self) -> typing.Optional[
|
|
73
|
+
def suggestions(self) -> typing.Optional[windows_foundation_collections.IObservableVector[SearchSuggestion]]: ...
|
|
74
74
|
|
|
75
75
|
@typing.final
|
|
76
76
|
class SearchSuggestionsRequestedEventArgs(winrt.system.Object):
|
|
@@ -79,9 +79,9 @@ class SearchSuggestionsRequestedEventArgs(winrt.system.Object):
|
|
|
79
79
|
@_property
|
|
80
80
|
def language(self) -> str: ...
|
|
81
81
|
@_property
|
|
82
|
-
def linguistic_details(self) -> typing.Optional[
|
|
82
|
+
def linguistic_details(self) -> typing.Optional[windows_applicationmodel_search.SearchQueryLinguisticDetails]: ...
|
|
83
83
|
@_property
|
|
84
84
|
def query_text(self) -> str: ...
|
|
85
85
|
@_property
|
|
86
|
-
def request(self) -> typing.Optional[
|
|
86
|
+
def request(self) -> typing.Optional[windows_applicationmodel_search.SearchSuggestionsRequest]: ...
|
|
87
87
|
|
winrt_windows_applicationmodel_search_core-2.1.0/winrt/windows/applicationmodel/search/core/py.typed
ADDED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Search.Core
|
|
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,12 @@ 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.ApplicationModel.Search[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
21
|
|
|
17
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
23
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_applicationmodel_search_core.pyi
|
|
9
9
|
winrt/windows/applicationmodel/search/core/__init__.py
|
|
10
|
+
winrt/windows/applicationmodel/search/core/py.typed
|
|
10
11
|
winrt_Windows.ApplicationModel.Search.Core.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.ApplicationModel.Search.Core.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.ApplicationModel.Search.Core.egg-info/dependency_links.txt
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
winrt-Windows.ApplicationModel.Search[all]==2.0.0-beta.2
|
|
4
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Storage.Streams[all]==2.0.0-beta.2
|
|
@@ -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_applicationmodel_search_core",
|
|
10
|
-
sources=["py.Windows.ApplicationModel.Search.Core.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
|