winrt-Windows.ApplicationModel.SocialInfo.Provider 2.0.0b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/README.md +7 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/all-requirements.txt +5 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/py.Windows.ApplicationModel.SocialInfo.Provider.cpp +772 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/setup.py +17 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/winrt/_winrt_windows_applicationmodel_socialinfo_provider.pyi +61 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/winrt/windows/applicationmodel/socialinfo/provider/__init__.py +14 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/SOURCES.txt +14 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/dependency_links.txt +1 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/requires.txt +6 -0
- winrt-Windows.ApplicationModel.SocialInfo.Provider-2.0.0b1/winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.SocialInfo.Provider
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.ApplicationModel.SocialInfo.Provider
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.SocialInfo.Provider` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.socialinfo.provider` module.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.ApplicationModel.SocialInfo.Provider
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.SocialInfo.Provider` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.applicationmodel.socialinfo.provider` module.
|
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.ApplicationModel.SocialInfo.Provider.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::ApplicationModel::SocialInfo::Provider
|
|
7
|
+
{
|
|
8
|
+
// ----- SocialDashboardItemUpdater class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_SocialDashboardItemUpdater(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
11
|
+
{
|
|
12
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater>::type_name);
|
|
13
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater>::type_name);
|
|
14
|
+
return nullptr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static void _dealloc_SocialDashboardItemUpdater(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self) noexcept
|
|
18
|
+
{
|
|
19
|
+
auto tp = Py_TYPE(self);
|
|
20
|
+
std::destroy_at(&self->obj);
|
|
21
|
+
tp->tp_free(self);
|
|
22
|
+
Py_DECREF(tp);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static PyObject* SocialDashboardItemUpdater_CommitAsync(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, PyObject* args) noexcept
|
|
26
|
+
{
|
|
27
|
+
auto arg_count = PyTuple_Size(args);
|
|
28
|
+
|
|
29
|
+
if (arg_count == 0)
|
|
30
|
+
{
|
|
31
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"CommitAsync", 0))
|
|
32
|
+
{
|
|
33
|
+
py::set_arg_count_version_error(0);
|
|
34
|
+
return nullptr;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
try
|
|
38
|
+
{
|
|
39
|
+
return py::convert(self->obj.CommitAsync());
|
|
40
|
+
}
|
|
41
|
+
catch (...)
|
|
42
|
+
{
|
|
43
|
+
py::to_PyErr();
|
|
44
|
+
return nullptr;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else
|
|
48
|
+
{
|
|
49
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
50
|
+
return nullptr;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static PyObject* SocialDashboardItemUpdater_get_Timestamp(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, void* /*unused*/) noexcept
|
|
55
|
+
{
|
|
56
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"Timestamp"))
|
|
57
|
+
{
|
|
58
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
59
|
+
return nullptr;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
try
|
|
63
|
+
{
|
|
64
|
+
return py::convert(self->obj.Timestamp());
|
|
65
|
+
}
|
|
66
|
+
catch (...)
|
|
67
|
+
{
|
|
68
|
+
py::to_PyErr();
|
|
69
|
+
return nullptr;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static int SocialDashboardItemUpdater_put_Timestamp(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, PyObject* arg, void* /*unused*/) noexcept
|
|
74
|
+
{
|
|
75
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"Timestamp"))
|
|
76
|
+
{
|
|
77
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
78
|
+
return -1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (arg == nullptr)
|
|
82
|
+
{
|
|
83
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
84
|
+
return -1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
try
|
|
88
|
+
{
|
|
89
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::DateTime>(arg);
|
|
90
|
+
|
|
91
|
+
self->obj.Timestamp(param0);
|
|
92
|
+
return 0;
|
|
93
|
+
}
|
|
94
|
+
catch (...)
|
|
95
|
+
{
|
|
96
|
+
py::to_PyErr();
|
|
97
|
+
return -1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static PyObject* SocialDashboardItemUpdater_get_Thumbnail(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, void* /*unused*/) noexcept
|
|
102
|
+
{
|
|
103
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"Thumbnail"))
|
|
104
|
+
{
|
|
105
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
106
|
+
return nullptr;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
try
|
|
110
|
+
{
|
|
111
|
+
return py::convert(self->obj.Thumbnail());
|
|
112
|
+
}
|
|
113
|
+
catch (...)
|
|
114
|
+
{
|
|
115
|
+
py::to_PyErr();
|
|
116
|
+
return nullptr;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
static int SocialDashboardItemUpdater_put_Thumbnail(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, PyObject* arg, void* /*unused*/) noexcept
|
|
121
|
+
{
|
|
122
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"Thumbnail"))
|
|
123
|
+
{
|
|
124
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
125
|
+
return -1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (arg == nullptr)
|
|
129
|
+
{
|
|
130
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
131
|
+
return -1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
try
|
|
135
|
+
{
|
|
136
|
+
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::SocialInfo::SocialItemThumbnail>(arg);
|
|
137
|
+
|
|
138
|
+
self->obj.Thumbnail(param0);
|
|
139
|
+
return 0;
|
|
140
|
+
}
|
|
141
|
+
catch (...)
|
|
142
|
+
{
|
|
143
|
+
py::to_PyErr();
|
|
144
|
+
return -1;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
static PyObject* SocialDashboardItemUpdater_get_TargetUri(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, void* /*unused*/) noexcept
|
|
149
|
+
{
|
|
150
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"TargetUri"))
|
|
151
|
+
{
|
|
152
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
153
|
+
return nullptr;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
try
|
|
157
|
+
{
|
|
158
|
+
return py::convert(self->obj.TargetUri());
|
|
159
|
+
}
|
|
160
|
+
catch (...)
|
|
161
|
+
{
|
|
162
|
+
py::to_PyErr();
|
|
163
|
+
return nullptr;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
static int SocialDashboardItemUpdater_put_TargetUri(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, PyObject* arg, void* /*unused*/) noexcept
|
|
168
|
+
{
|
|
169
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"TargetUri"))
|
|
170
|
+
{
|
|
171
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
172
|
+
return -1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (arg == nullptr)
|
|
176
|
+
{
|
|
177
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
178
|
+
return -1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
try
|
|
182
|
+
{
|
|
183
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(arg);
|
|
184
|
+
|
|
185
|
+
self->obj.TargetUri(param0);
|
|
186
|
+
return 0;
|
|
187
|
+
}
|
|
188
|
+
catch (...)
|
|
189
|
+
{
|
|
190
|
+
py::to_PyErr();
|
|
191
|
+
return -1;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
static PyObject* SocialDashboardItemUpdater_get_Content(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, void* /*unused*/) noexcept
|
|
196
|
+
{
|
|
197
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"Content"))
|
|
198
|
+
{
|
|
199
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
200
|
+
return nullptr;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
try
|
|
204
|
+
{
|
|
205
|
+
return py::convert(self->obj.Content());
|
|
206
|
+
}
|
|
207
|
+
catch (...)
|
|
208
|
+
{
|
|
209
|
+
py::to_PyErr();
|
|
210
|
+
return nullptr;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
static PyObject* SocialDashboardItemUpdater_get_OwnerRemoteId(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater* self, void* /*unused*/) noexcept
|
|
215
|
+
{
|
|
216
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialDashboardItemUpdater", L"OwnerRemoteId"))
|
|
217
|
+
{
|
|
218
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
219
|
+
return nullptr;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
try
|
|
223
|
+
{
|
|
224
|
+
return py::convert(self->obj.OwnerRemoteId());
|
|
225
|
+
}
|
|
226
|
+
catch (...)
|
|
227
|
+
{
|
|
228
|
+
py::to_PyErr();
|
|
229
|
+
return nullptr;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
static PyObject* _assign_array_SocialDashboardItemUpdater(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
234
|
+
{
|
|
235
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater>>();
|
|
236
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
237
|
+
{
|
|
238
|
+
return nullptr;
|
|
239
|
+
}
|
|
240
|
+
Py_RETURN_NONE;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
static PyObject* _from_SocialDashboardItemUpdater(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
244
|
+
{
|
|
245
|
+
try
|
|
246
|
+
{
|
|
247
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
248
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater>());
|
|
249
|
+
}
|
|
250
|
+
catch (...)
|
|
251
|
+
{
|
|
252
|
+
py::to_PyErr();
|
|
253
|
+
return nullptr;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
static PyMethodDef _methods_SocialDashboardItemUpdater[] = {
|
|
258
|
+
{ "commit_async", reinterpret_cast<PyCFunction>(SocialDashboardItemUpdater_CommitAsync), METH_VARARGS, nullptr },
|
|
259
|
+
{ "_assign_array_", _assign_array_SocialDashboardItemUpdater, METH_O | METH_STATIC, nullptr },
|
|
260
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_SocialDashboardItemUpdater), METH_O | METH_STATIC, nullptr },
|
|
261
|
+
{ }
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
static PyGetSetDef _getset_SocialDashboardItemUpdater[] = {
|
|
265
|
+
{ "timestamp", reinterpret_cast<getter>(SocialDashboardItemUpdater_get_Timestamp), reinterpret_cast<setter>(SocialDashboardItemUpdater_put_Timestamp), nullptr, nullptr },
|
|
266
|
+
{ "thumbnail", reinterpret_cast<getter>(SocialDashboardItemUpdater_get_Thumbnail), reinterpret_cast<setter>(SocialDashboardItemUpdater_put_Thumbnail), nullptr, nullptr },
|
|
267
|
+
{ "target_uri", reinterpret_cast<getter>(SocialDashboardItemUpdater_get_TargetUri), reinterpret_cast<setter>(SocialDashboardItemUpdater_put_TargetUri), nullptr, nullptr },
|
|
268
|
+
{ "content", reinterpret_cast<getter>(SocialDashboardItemUpdater_get_Content), nullptr, nullptr, nullptr },
|
|
269
|
+
{ "owner_remote_id", reinterpret_cast<getter>(SocialDashboardItemUpdater_get_OwnerRemoteId), nullptr, nullptr, nullptr },
|
|
270
|
+
{ }
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
static PyType_Slot _type_slots_SocialDashboardItemUpdater[] =
|
|
274
|
+
{
|
|
275
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_SocialDashboardItemUpdater) },
|
|
276
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SocialDashboardItemUpdater) },
|
|
277
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SocialDashboardItemUpdater) },
|
|
278
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SocialDashboardItemUpdater) },
|
|
279
|
+
{ },
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
static PyType_Spec type_spec_SocialDashboardItemUpdater =
|
|
283
|
+
{
|
|
284
|
+
"winrt._winrt_windows_applicationmodel_socialinfo_provider.SocialDashboardItemUpdater",
|
|
285
|
+
sizeof(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialDashboardItemUpdater),
|
|
286
|
+
0,
|
|
287
|
+
Py_TPFLAGS_DEFAULT,
|
|
288
|
+
_type_slots_SocialDashboardItemUpdater
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
// ----- SocialFeedUpdater class --------------------
|
|
292
|
+
|
|
293
|
+
static PyObject* _new_SocialFeedUpdater(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
294
|
+
{
|
|
295
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater>::type_name);
|
|
296
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater>::type_name);
|
|
297
|
+
return nullptr;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static void _dealloc_SocialFeedUpdater(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater* self) noexcept
|
|
301
|
+
{
|
|
302
|
+
auto tp = Py_TYPE(self);
|
|
303
|
+
std::destroy_at(&self->obj);
|
|
304
|
+
tp->tp_free(self);
|
|
305
|
+
Py_DECREF(tp);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
static PyObject* SocialFeedUpdater_CommitAsync(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater* self, PyObject* args) noexcept
|
|
309
|
+
{
|
|
310
|
+
auto arg_count = PyTuple_Size(args);
|
|
311
|
+
|
|
312
|
+
if (arg_count == 0)
|
|
313
|
+
{
|
|
314
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialFeedUpdater", L"CommitAsync", 0))
|
|
315
|
+
{
|
|
316
|
+
py::set_arg_count_version_error(0);
|
|
317
|
+
return nullptr;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
try
|
|
321
|
+
{
|
|
322
|
+
return py::convert(self->obj.CommitAsync());
|
|
323
|
+
}
|
|
324
|
+
catch (...)
|
|
325
|
+
{
|
|
326
|
+
py::to_PyErr();
|
|
327
|
+
return nullptr;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
else
|
|
331
|
+
{
|
|
332
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
333
|
+
return nullptr;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
static PyObject* SocialFeedUpdater_get_Items(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater* self, void* /*unused*/) noexcept
|
|
338
|
+
{
|
|
339
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialFeedUpdater", L"Items"))
|
|
340
|
+
{
|
|
341
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
342
|
+
return nullptr;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
try
|
|
346
|
+
{
|
|
347
|
+
return py::convert(self->obj.Items());
|
|
348
|
+
}
|
|
349
|
+
catch (...)
|
|
350
|
+
{
|
|
351
|
+
py::to_PyErr();
|
|
352
|
+
return nullptr;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
static PyObject* SocialFeedUpdater_get_Kind(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater* self, void* /*unused*/) noexcept
|
|
357
|
+
{
|
|
358
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialFeedUpdater", L"Kind"))
|
|
359
|
+
{
|
|
360
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
361
|
+
return nullptr;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
try
|
|
365
|
+
{
|
|
366
|
+
return py::convert(self->obj.Kind());
|
|
367
|
+
}
|
|
368
|
+
catch (...)
|
|
369
|
+
{
|
|
370
|
+
py::to_PyErr();
|
|
371
|
+
return nullptr;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
static PyObject* SocialFeedUpdater_get_OwnerRemoteId(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater* self, void* /*unused*/) noexcept
|
|
376
|
+
{
|
|
377
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialFeedUpdater", L"OwnerRemoteId"))
|
|
378
|
+
{
|
|
379
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
380
|
+
return nullptr;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
try
|
|
384
|
+
{
|
|
385
|
+
return py::convert(self->obj.OwnerRemoteId());
|
|
386
|
+
}
|
|
387
|
+
catch (...)
|
|
388
|
+
{
|
|
389
|
+
py::to_PyErr();
|
|
390
|
+
return nullptr;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
static PyObject* _assign_array_SocialFeedUpdater(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
395
|
+
{
|
|
396
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater>>();
|
|
397
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
398
|
+
{
|
|
399
|
+
return nullptr;
|
|
400
|
+
}
|
|
401
|
+
Py_RETURN_NONE;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
static PyObject* _from_SocialFeedUpdater(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
405
|
+
{
|
|
406
|
+
try
|
|
407
|
+
{
|
|
408
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
409
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater>());
|
|
410
|
+
}
|
|
411
|
+
catch (...)
|
|
412
|
+
{
|
|
413
|
+
py::to_PyErr();
|
|
414
|
+
return nullptr;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
static PyMethodDef _methods_SocialFeedUpdater[] = {
|
|
419
|
+
{ "commit_async", reinterpret_cast<PyCFunction>(SocialFeedUpdater_CommitAsync), METH_VARARGS, nullptr },
|
|
420
|
+
{ "_assign_array_", _assign_array_SocialFeedUpdater, METH_O | METH_STATIC, nullptr },
|
|
421
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_SocialFeedUpdater), METH_O | METH_STATIC, nullptr },
|
|
422
|
+
{ }
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
static PyGetSetDef _getset_SocialFeedUpdater[] = {
|
|
426
|
+
{ "items", reinterpret_cast<getter>(SocialFeedUpdater_get_Items), nullptr, nullptr, nullptr },
|
|
427
|
+
{ "kind", reinterpret_cast<getter>(SocialFeedUpdater_get_Kind), nullptr, nullptr, nullptr },
|
|
428
|
+
{ "owner_remote_id", reinterpret_cast<getter>(SocialFeedUpdater_get_OwnerRemoteId), nullptr, nullptr, nullptr },
|
|
429
|
+
{ }
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
static PyType_Slot _type_slots_SocialFeedUpdater[] =
|
|
433
|
+
{
|
|
434
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_SocialFeedUpdater) },
|
|
435
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SocialFeedUpdater) },
|
|
436
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SocialFeedUpdater) },
|
|
437
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SocialFeedUpdater) },
|
|
438
|
+
{ },
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
static PyType_Spec type_spec_SocialFeedUpdater =
|
|
442
|
+
{
|
|
443
|
+
"winrt._winrt_windows_applicationmodel_socialinfo_provider.SocialFeedUpdater",
|
|
444
|
+
sizeof(py::wrapper::Windows::ApplicationModel::SocialInfo::Provider::SocialFeedUpdater),
|
|
445
|
+
0,
|
|
446
|
+
Py_TPFLAGS_DEFAULT,
|
|
447
|
+
_type_slots_SocialFeedUpdater
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
// ----- SocialInfoProviderManager class --------------------
|
|
451
|
+
|
|
452
|
+
static PyObject* _new_SocialInfoProviderManager(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
453
|
+
{
|
|
454
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialInfoProviderManager>::type_name);
|
|
455
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialInfoProviderManager>::type_name);
|
|
456
|
+
return nullptr;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
static PyObject* SocialInfoProviderManager_CreateDashboardItemUpdaterAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
460
|
+
{
|
|
461
|
+
auto arg_count = PyTuple_Size(args);
|
|
462
|
+
|
|
463
|
+
if (arg_count == 1)
|
|
464
|
+
{
|
|
465
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialInfoProviderManager", L"CreateDashboardItemUpdaterAsync", 1))
|
|
466
|
+
{
|
|
467
|
+
py::set_arg_count_version_error(1);
|
|
468
|
+
return nullptr;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
try
|
|
472
|
+
{
|
|
473
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
474
|
+
|
|
475
|
+
return py::convert(winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialInfoProviderManager::CreateDashboardItemUpdaterAsync(param0));
|
|
476
|
+
}
|
|
477
|
+
catch (...)
|
|
478
|
+
{
|
|
479
|
+
py::to_PyErr();
|
|
480
|
+
return nullptr;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
else
|
|
484
|
+
{
|
|
485
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
486
|
+
return nullptr;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
static PyObject* SocialInfoProviderManager_CreateSocialFeedUpdaterAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
491
|
+
{
|
|
492
|
+
auto arg_count = PyTuple_Size(args);
|
|
493
|
+
|
|
494
|
+
if (arg_count == 3)
|
|
495
|
+
{
|
|
496
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialInfoProviderManager", L"CreateSocialFeedUpdaterAsync", 3))
|
|
497
|
+
{
|
|
498
|
+
py::set_arg_count_version_error(3);
|
|
499
|
+
return nullptr;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
try
|
|
503
|
+
{
|
|
504
|
+
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::SocialInfo::SocialFeedKind>(args, 0);
|
|
505
|
+
auto param1 = py::convert_to<winrt::Windows::ApplicationModel::SocialInfo::SocialFeedUpdateMode>(args, 1);
|
|
506
|
+
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
507
|
+
|
|
508
|
+
return py::convert(winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialInfoProviderManager::CreateSocialFeedUpdaterAsync(param0, param1, param2));
|
|
509
|
+
}
|
|
510
|
+
catch (...)
|
|
511
|
+
{
|
|
512
|
+
py::to_PyErr();
|
|
513
|
+
return nullptr;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
else
|
|
517
|
+
{
|
|
518
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
519
|
+
return nullptr;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
static PyObject* SocialInfoProviderManager_DeprovisionAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
524
|
+
{
|
|
525
|
+
auto arg_count = PyTuple_Size(args);
|
|
526
|
+
|
|
527
|
+
if (arg_count == 0)
|
|
528
|
+
{
|
|
529
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialInfoProviderManager", L"DeprovisionAsync", 0))
|
|
530
|
+
{
|
|
531
|
+
py::set_arg_count_version_error(0);
|
|
532
|
+
return nullptr;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
try
|
|
536
|
+
{
|
|
537
|
+
return py::convert(winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialInfoProviderManager::DeprovisionAsync());
|
|
538
|
+
}
|
|
539
|
+
catch (...)
|
|
540
|
+
{
|
|
541
|
+
py::to_PyErr();
|
|
542
|
+
return nullptr;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
else
|
|
546
|
+
{
|
|
547
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
548
|
+
return nullptr;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
static PyObject* SocialInfoProviderManager_ProvisionAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
553
|
+
{
|
|
554
|
+
auto arg_count = PyTuple_Size(args);
|
|
555
|
+
|
|
556
|
+
if (arg_count == 0)
|
|
557
|
+
{
|
|
558
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialInfoProviderManager", L"ProvisionAsync", 0))
|
|
559
|
+
{
|
|
560
|
+
py::set_arg_count_version_error(0);
|
|
561
|
+
return nullptr;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
try
|
|
565
|
+
{
|
|
566
|
+
return py::convert(winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialInfoProviderManager::ProvisionAsync());
|
|
567
|
+
}
|
|
568
|
+
catch (...)
|
|
569
|
+
{
|
|
570
|
+
py::to_PyErr();
|
|
571
|
+
return nullptr;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
else
|
|
575
|
+
{
|
|
576
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
577
|
+
return nullptr;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
static PyObject* SocialInfoProviderManager_ReportNewContentAvailable(PyObject* /*unused*/, PyObject* args) noexcept
|
|
582
|
+
{
|
|
583
|
+
auto arg_count = PyTuple_Size(args);
|
|
584
|
+
|
|
585
|
+
if (arg_count == 2)
|
|
586
|
+
{
|
|
587
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialInfoProviderManager", L"ReportNewContentAvailable", 2))
|
|
588
|
+
{
|
|
589
|
+
py::set_arg_count_version_error(2);
|
|
590
|
+
return nullptr;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
try
|
|
594
|
+
{
|
|
595
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
596
|
+
auto param1 = py::convert_to<winrt::Windows::ApplicationModel::SocialInfo::SocialFeedKind>(args, 1);
|
|
597
|
+
|
|
598
|
+
winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialInfoProviderManager::ReportNewContentAvailable(param0, param1);
|
|
599
|
+
Py_RETURN_NONE;
|
|
600
|
+
}
|
|
601
|
+
catch (...)
|
|
602
|
+
{
|
|
603
|
+
py::to_PyErr();
|
|
604
|
+
return nullptr;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
else
|
|
608
|
+
{
|
|
609
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
610
|
+
return nullptr;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
static PyObject* SocialInfoProviderManager_UpdateBadgeCountValue(PyObject* /*unused*/, PyObject* args) noexcept
|
|
615
|
+
{
|
|
616
|
+
auto arg_count = PyTuple_Size(args);
|
|
617
|
+
|
|
618
|
+
if (arg_count == 2)
|
|
619
|
+
{
|
|
620
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.Provider.SocialInfoProviderManager", L"UpdateBadgeCountValue", 2))
|
|
621
|
+
{
|
|
622
|
+
py::set_arg_count_version_error(2);
|
|
623
|
+
return nullptr;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
try
|
|
627
|
+
{
|
|
628
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
629
|
+
auto param1 = py::convert_to<int32_t>(args, 1);
|
|
630
|
+
|
|
631
|
+
winrt::Windows::ApplicationModel::SocialInfo::Provider::SocialInfoProviderManager::UpdateBadgeCountValue(param0, param1);
|
|
632
|
+
Py_RETURN_NONE;
|
|
633
|
+
}
|
|
634
|
+
catch (...)
|
|
635
|
+
{
|
|
636
|
+
py::to_PyErr();
|
|
637
|
+
return nullptr;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
else
|
|
641
|
+
{
|
|
642
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
643
|
+
return nullptr;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
static PyMethodDef _methods_SocialInfoProviderManager[] = {
|
|
648
|
+
{ }
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
static PyGetSetDef _getset_SocialInfoProviderManager[] = {
|
|
652
|
+
{ }
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
static PyType_Slot _type_slots_SocialInfoProviderManager[] =
|
|
656
|
+
{
|
|
657
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_SocialInfoProviderManager) },
|
|
658
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SocialInfoProviderManager) },
|
|
659
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SocialInfoProviderManager) },
|
|
660
|
+
{ },
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
static PyType_Spec type_spec_SocialInfoProviderManager =
|
|
664
|
+
{
|
|
665
|
+
"winrt._winrt_windows_applicationmodel_socialinfo_provider.SocialInfoProviderManager",
|
|
666
|
+
0,
|
|
667
|
+
0,
|
|
668
|
+
Py_TPFLAGS_DEFAULT,
|
|
669
|
+
_type_slots_SocialInfoProviderManager
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
static PyGetSetDef getset_SocialInfoProviderManager_Static[] = {
|
|
673
|
+
{ }
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
static PyMethodDef methods_SocialInfoProviderManager_Static[] = {
|
|
677
|
+
{ "create_dashboard_item_updater_async", reinterpret_cast<PyCFunction>(SocialInfoProviderManager_CreateDashboardItemUpdaterAsync), METH_VARARGS, nullptr },
|
|
678
|
+
{ "create_social_feed_updater_async", reinterpret_cast<PyCFunction>(SocialInfoProviderManager_CreateSocialFeedUpdaterAsync), METH_VARARGS, nullptr },
|
|
679
|
+
{ "deprovision_async", reinterpret_cast<PyCFunction>(SocialInfoProviderManager_DeprovisionAsync), METH_VARARGS, nullptr },
|
|
680
|
+
{ "provision_async", reinterpret_cast<PyCFunction>(SocialInfoProviderManager_ProvisionAsync), METH_VARARGS, nullptr },
|
|
681
|
+
{ "report_new_content_available", reinterpret_cast<PyCFunction>(SocialInfoProviderManager_ReportNewContentAvailable), METH_VARARGS, nullptr },
|
|
682
|
+
{ "update_badge_count_value", reinterpret_cast<PyCFunction>(SocialInfoProviderManager_UpdateBadgeCountValue), METH_VARARGS, nullptr },
|
|
683
|
+
{ }
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
static PyType_Slot type_slots_SocialInfoProviderManager_Static[] =
|
|
687
|
+
{
|
|
688
|
+
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
689
|
+
{ Py_tp_getset, reinterpret_cast<void*>(getset_SocialInfoProviderManager_Static) },
|
|
690
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_SocialInfoProviderManager_Static) },
|
|
691
|
+
{ }
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
static PyType_Spec type_spec_SocialInfoProviderManager_Static =
|
|
695
|
+
{
|
|
696
|
+
"winrt._winrt_windows_applicationmodel_socialinfo_provider.SocialInfoProviderManager_Static",
|
|
697
|
+
static_cast<int>(PyType_Type.tp_basicsize),
|
|
698
|
+
static_cast<int>(PyType_Type.tp_itemsize),
|
|
699
|
+
Py_TPFLAGS_DEFAULT,
|
|
700
|
+
type_slots_SocialInfoProviderManager_Static
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
// ----- Windows.ApplicationModel.SocialInfo.Provider Initialization --------------------
|
|
704
|
+
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::SocialInfo::Provider");
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
static PyModuleDef module_def
|
|
708
|
+
= {PyModuleDef_HEAD_INIT,
|
|
709
|
+
"_winrt_windows_applicationmodel_socialinfo_provider",
|
|
710
|
+
module_doc,
|
|
711
|
+
0,
|
|
712
|
+
nullptr,
|
|
713
|
+
nullptr,
|
|
714
|
+
nullptr,
|
|
715
|
+
nullptr,
|
|
716
|
+
nullptr};
|
|
717
|
+
|
|
718
|
+
} // py::cpp::Windows::ApplicationModel::SocialInfo::Provider
|
|
719
|
+
|
|
720
|
+
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_socialinfo_provider(void) noexcept
|
|
721
|
+
{
|
|
722
|
+
using namespace py::cpp::Windows::ApplicationModel::SocialInfo::Provider;
|
|
723
|
+
|
|
724
|
+
if (py::import_winrt_runtime() == -1)
|
|
725
|
+
{
|
|
726
|
+
return nullptr;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
730
|
+
|
|
731
|
+
if (!module)
|
|
732
|
+
{
|
|
733
|
+
return nullptr;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
auto object_type = py::get_object_type();
|
|
737
|
+
if (!object_type)
|
|
738
|
+
{
|
|
739
|
+
return nullptr;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
743
|
+
|
|
744
|
+
if (!object_bases)
|
|
745
|
+
{
|
|
746
|
+
return nullptr;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
if (py::register_python_type(module.get(), &type_spec_SocialDashboardItemUpdater, object_bases.get(), nullptr) == -1)
|
|
750
|
+
{
|
|
751
|
+
return nullptr;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
if (py::register_python_type(module.get(), &type_spec_SocialFeedUpdater, object_bases.get(), nullptr) == -1)
|
|
755
|
+
{
|
|
756
|
+
return nullptr;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
py::pyobj_handle type_SocialInfoProviderManager_Static{PyType_FromSpec(&type_spec_SocialInfoProviderManager_Static)};
|
|
760
|
+
if (!type_SocialInfoProviderManager_Static)
|
|
761
|
+
{
|
|
762
|
+
return nullptr;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
if (py::register_python_type(module.get(), &type_spec_SocialInfoProviderManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SocialInfoProviderManager_Static.get())) == -1)
|
|
766
|
+
{
|
|
767
|
+
return nullptr;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
return module.detach();
|
|
772
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.ApplicationModel.SocialInfo.Provider"
|
|
9
|
+
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Operating System :: Microsoft :: Windows",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
]
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.13"
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
# Homepage = "https://github.com/pywrint/pywrinrt"
|
|
23
|
+
# Documentation = "https://readthedocs.org"
|
|
24
|
+
Repository = "https://github.com/pywrint/pywrinrt"
|
|
25
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = { file = "pywinrt-version.txt" }
|
|
29
|
+
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
+
|
|
32
|
+
[tool.cibuildwheel]
|
|
33
|
+
# use local winrt-sdk build dependency
|
|
34
|
+
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
35
|
+
# don't install winrt-sdk from PyPI
|
|
36
|
+
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
37
|
+
# don't build for PyPy
|
|
38
|
+
skip = "pp*"
|
|
39
|
+
# suppress warnings about ARM64 testing
|
|
40
|
+
test-skip = "*-win_arm64"
|
|
41
|
+
|
|
42
|
+
[tool.cibuildwheel.windows]
|
|
43
|
+
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from winrt_sdk import get_include_dirs
|
|
5
|
+
|
|
6
|
+
setup(
|
|
7
|
+
ext_modules=[
|
|
8
|
+
Extension(
|
|
9
|
+
"winrt._winrt_windows_applicationmodel_socialinfo_provider",
|
|
10
|
+
sources=["py.Windows.ApplicationModel.SocialInfo.Provider.cpp"],
|
|
11
|
+
include_dirs=get_include_dirs(),
|
|
12
|
+
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
+
libraries=["windowsapp"],
|
|
14
|
+
)
|
|
15
|
+
],
|
|
16
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.applicationmodel.socialinfo
|
|
13
|
+
import winrt.windows.foundation
|
|
14
|
+
import winrt.windows.foundation.collections
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
class SocialDashboardItemUpdater(winrt.system.Object):
|
|
19
|
+
@staticmethod
|
|
20
|
+
def _from(obj: winrt.system.Object, /) -> SocialDashboardItemUpdater: ...
|
|
21
|
+
def commit_async(self) -> winrt.windows.foundation.IAsyncAction: ...
|
|
22
|
+
@_property
|
|
23
|
+
def timestamp(self) -> datetime.datetime: ...
|
|
24
|
+
@timestamp.setter
|
|
25
|
+
def timestamp(self, value: datetime.datetime) -> None: ...
|
|
26
|
+
@_property
|
|
27
|
+
def thumbnail(self) -> typing.Optional[winrt.windows.applicationmodel.socialinfo.SocialItemThumbnail]: ...
|
|
28
|
+
@thumbnail.setter
|
|
29
|
+
def thumbnail(self, value: typing.Optional[winrt.windows.applicationmodel.socialinfo.SocialItemThumbnail]) -> None: ...
|
|
30
|
+
@_property
|
|
31
|
+
def target_uri(self) -> typing.Optional[winrt.windows.foundation.Uri]: ...
|
|
32
|
+
@target_uri.setter
|
|
33
|
+
def target_uri(self, value: typing.Optional[winrt.windows.foundation.Uri]) -> None: ...
|
|
34
|
+
@_property
|
|
35
|
+
def content(self) -> typing.Optional[winrt.windows.applicationmodel.socialinfo.SocialFeedContent]: ...
|
|
36
|
+
@_property
|
|
37
|
+
def owner_remote_id(self) -> str: ...
|
|
38
|
+
|
|
39
|
+
class SocialFeedUpdater(winrt.system.Object):
|
|
40
|
+
@staticmethod
|
|
41
|
+
def _from(obj: winrt.system.Object, /) -> SocialFeedUpdater: ...
|
|
42
|
+
def commit_async(self) -> winrt.windows.foundation.IAsyncAction: ...
|
|
43
|
+
@_property
|
|
44
|
+
def items(self) -> typing.Optional[winrt.windows.foundation.collections.IVector[winrt.windows.applicationmodel.socialinfo.SocialFeedItem]]: ...
|
|
45
|
+
@_property
|
|
46
|
+
def kind(self) -> winrt.windows.applicationmodel.socialinfo.SocialFeedKind: ...
|
|
47
|
+
@_property
|
|
48
|
+
def owner_remote_id(self) -> str: ...
|
|
49
|
+
|
|
50
|
+
class SocialInfoProviderManager_Static(type):
|
|
51
|
+
def create_dashboard_item_updater_async(cls, owner_remote_id: str, /) -> winrt.windows.foundation.IAsyncOperation[SocialDashboardItemUpdater]: ...
|
|
52
|
+
def create_social_feed_updater_async(cls, kind: winrt.windows.applicationmodel.socialinfo.SocialFeedKind, mode: winrt.windows.applicationmodel.socialinfo.SocialFeedUpdateMode, owner_remote_id: str, /) -> winrt.windows.foundation.IAsyncOperation[SocialFeedUpdater]: ...
|
|
53
|
+
def deprovision_async(cls) -> winrt.windows.foundation.IAsyncAction: ...
|
|
54
|
+
def provision_async(cls) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
|
|
55
|
+
def report_new_content_available(cls, contact_remote_id: str, kind: winrt.windows.applicationmodel.socialinfo.SocialFeedKind, /) -> None: ...
|
|
56
|
+
def update_badge_count_value(cls, item_remote_id: str, new_count: winrt.system.Int32, /) -> None: ...
|
|
57
|
+
|
|
58
|
+
class SocialInfoProviderManager(winrt.system.Object, metaclass=SocialInfoProviderManager_Static):
|
|
59
|
+
@staticmethod
|
|
60
|
+
def _from(obj: winrt.system.Object, /) -> SocialInfoProviderManager: ...
|
|
61
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import winrt.system
|
|
4
|
+
from winrt import _winrt_windows_applicationmodel_socialinfo_provider
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"SocialDashboardItemUpdater",
|
|
8
|
+
"SocialFeedUpdater",
|
|
9
|
+
"SocialInfoProviderManager",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
SocialDashboardItemUpdater = _winrt_windows_applicationmodel_socialinfo_provider.SocialDashboardItemUpdater
|
|
13
|
+
SocialFeedUpdater = _winrt_windows_applicationmodel_socialinfo_provider.SocialFeedUpdater
|
|
14
|
+
SocialInfoProviderManager = _winrt_windows_applicationmodel_socialinfo_provider.SocialInfoProviderManager
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.SocialInfo.Provider
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.ApplicationModel.SocialInfo.Provider
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.SocialInfo.Provider` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.socialinfo.provider` module.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.ApplicationModel.SocialInfo.Provider.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_applicationmodel_socialinfo_provider.pyi
|
|
9
|
+
winrt/windows/applicationmodel/socialinfo/provider/__init__.py
|
|
10
|
+
winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.ApplicationModel.SocialInfo.Provider.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|