EstervOpenMeteo 0.4.0
OpenMeteo client library
Loading...
Searching...
No Matches
moc_o_m_client.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'o_m_client.hpp'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.1)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../include/esterv/utils/o_m_client.hpp"
10#include <QtNetwork/QSslError>
11#include <QtNetwork/QSslPreSharedKeyAuthenticator>
12#include <QtCore/qmetatype.h>
13
14#include <QtCore/qtmochelpers.h>
15
16#include <memory>
17
18
19#include <QtCore/qxptype_traits.h>
20#if !defined(Q_MOC_OUTPUT_REVISION)
21#error "The header file 'o_m_client.hpp' doesn't include <QObject>."
22#elif Q_MOC_OUTPUT_REVISION != 68
23#error "This file was generated using the moc from 6.8.1. It"
24#error "cannot be used with the include files from this version of Qt."
25#error "(The moc has changed too much.)"
26#endif
27
28#ifndef Q_CONSTINIT
29#define Q_CONSTINIT
30#endif
31
32QT_WARNING_PUSH
34QT_WARNING_DISABLE_GCC("-Wuseless-cast")
35namespace {
37} // unnamed namespace
38
39
40#ifdef QT_MOC_HAS_STRINGDATA
41static constexpr auto qt_meta_stringdata_ZN6Esterv5Utils7Weather10OMResponseE = QtMocHelpers::stringData(
42 "Esterv::Utils::Weather::OMResponse",
43 "returned",
44 "",
45 "data"
46);
47#else // !QT_MOC_HAS_STRINGDATA
48#error "qtmochelpers.h not found or too old."
49#endif // !QT_MOC_HAS_STRINGDATA
50
51Q_CONSTINIT static const uint qt_meta_data_ZN6Esterv5Utils7Weather10OMResponseE[] = {
52
53 // content:
54 12, // revision
55 0, // classname
56 0, 0, // classinfo
57 1, 14, // methods
58 0, 0, // properties
59 0, 0, // enums/sets
60 0, 0, // constructors
61 0, // flags
62 1, // signalCount
63
64 // signals: name, argc, parameters, tag, flags, initial metatype offsets
65 1, 1, 20, 2, 0x06, 1 /* Public */,
66
67 // signals: parameters
69
70 0 // eod
71};
72
73Q_CONSTINIT const QMetaObject Esterv::Utils::Weather::OMResponse::staticMetaObject = { {
74 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
75 qt_meta_stringdata_ZN6Esterv5Utils7Weather10OMResponseE.offsetsAndSizes,
76 qt_meta_data_ZN6Esterv5Utils7Weather10OMResponseE,
77 qt_static_metacall,
78 nullptr,
79 qt_incomplete_metaTypeArray<qt_meta_tag_ZN6Esterv5Utils7Weather10OMResponseE_t,
80 // Q_OBJECT / Q_GADGET
81 QtPrivate::TypeAndForceComplete<OMResponse, std::true_type>,
82 // method 'returned'
83 QtPrivate::TypeAndForceComplete<void, std::false_type>,
84 QtPrivate::TypeAndForceComplete<QJsonValue, std::false_type>
85 >,
86 nullptr
87} };
88
89void Esterv::Utils::Weather::OMResponse::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
90{
91 auto *_t = static_cast<OMResponse *>(_o);
92 if (_c == QMetaObject::InvokeMetaMethod) {
93 switch (_id) {
94 case 0: _t->returned((*reinterpret_cast< std::add_pointer_t<QJsonValue>>(_a[1]))); break;
95 default: ;
96 }
97 }
98 if (_c == QMetaObject::IndexOfMethod) {
99 int *result = reinterpret_cast<int *>(_a[0]);
100 {
101 using _q_method_type = void (OMResponse::*)(QJsonValue );
102 if (_q_method_type _q_method = &OMResponse::returned; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
103 *result = 0;
104 return;
105 }
106 }
107 }
108}
109
111{
112 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
113}
114
115void *Esterv::Utils::Weather::OMResponse::qt_metacast(const char *_clname)
116{
117 if (!_clname) return nullptr;
118 if (!strcmp(_clname, qt_meta_stringdata_ZN6Esterv5Utils7Weather10OMResponseE.stringdata0))
119 return static_cast<void*>(this);
120 return QObject::qt_metacast(_clname);
121}
122
123int Esterv::Utils::Weather::OMResponse::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
124{
125 _id = QObject::qt_metacall(_c, _id, _a);
126 if (_id < 0)
127 return _id;
128 if (_c == QMetaObject::InvokeMetaMethod) {
129 if (_id < 1)
130 qt_static_metacall(this, _c, _id, _a);
131 _id -= 1;
132 }
133 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
134 if (_id < 1)
135 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
136 _id -= 1;
137 }
138 return _id;
139}
140
141// SIGNAL 0
143{
144 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
145 QMetaObject::activate(this, &staticMetaObject, 0, _a);
146}
147namespace {
148struct qt_meta_tag_ZN6Esterv5Utils7Weather8OMClientE_t {};
149} // unnamed namespace
150
151
152#ifdef QT_MOC_HAS_STRINGDATA
153static constexpr auto qt_meta_stringdata_ZN6Esterv5Utils7Weather8OMClientE = QtMocHelpers::stringData(
154 "Esterv::Utils::Weather::OMClient",
155 "QML.Element",
156 "auto",
157 "currentWeatherChanged",
158 "",
159 "positionChanged",
160 "tempUnitChanged",
161 "apiUrlChanged",
162 "getCurrentWeather",
163 "currentWeather",
164 "latitude",
165 "longitude",
166 "tempUnit",
167 "TempUnit",
168 "apiUrl",
169 "Celsius",
170 "Fahrenheit"
171);
172#else // !QT_MOC_HAS_STRINGDATA
173#error "qtmochelpers.h not found or too old."
174#endif // !QT_MOC_HAS_STRINGDATA
175
176Q_CONSTINIT static const uint qt_meta_data_ZN6Esterv5Utils7Weather8OMClientE[] = {
177
178 // content:
179 12, // revision
180 0, // classname
181 1, 14, // classinfo
182 5, 16, // methods
183 5, 51, // properties
184 1, 76, // enums/sets
185 0, 0, // constructors
186 0, // flags
187 4, // signalCount
188
189 // classinfo: key, value
190 1, 2,
191
192 // signals: name, argc, parameters, tag, flags, initial metatype offsets
193 3, 0, 46, 4, 0x06, 7 /* Public */,
194 5, 0, 47, 4, 0x06, 8 /* Public */,
195 6, 0, 48, 4, 0x06, 9 /* Public */,
196 7, 0, 49, 4, 0x06, 10 /* Public */,
197
198 // methods: name, argc, parameters, tag, flags, initial metatype offsets
199 8, 0, 50, 4, 0x02, 11 /* Public */,
200
201 // signals: parameters
206
207 // methods: parameters
209
210 // properties: name, type, flags, notifyId, revision
211 9, QMetaType::QJsonObject, 0x00015001, uint(0), 0,
212 10, QMetaType::Float, 0x00015103, uint(1), 0,
213 11, QMetaType::Float, 0x00015103, uint(1), 0,
214 12, 0x80000000 | 13, 0x0001500b, uint(2), 0,
215 14, QMetaType::QUrl, 0x00015003, uint(3), 0,
216
217 // enums: name, alias, flags, count, data
218 13, 13, 0x0, 2, 81,
219
220 // enum data: key, value
223
224 0 // eod
225};
226
227Q_CONSTINIT const QMetaObject Esterv::Utils::Weather::OMClient::staticMetaObject = { {
228 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
229 qt_meta_stringdata_ZN6Esterv5Utils7Weather8OMClientE.offsetsAndSizes,
230 qt_meta_data_ZN6Esterv5Utils7Weather8OMClientE,
231 qt_static_metacall,
232 nullptr,
233 qt_metaTypeArray<
234 // property 'currentWeather'
236 // property 'latitude'
237 float,
238 // property 'longitude'
239 float,
240 // property 'tempUnit'
241 TempUnit,
242 // property 'apiUrl'
243 QUrl,
244 // enum 'TempUnit'
246 // Q_OBJECT / Q_GADGET
247 OMClient,
248 // method 'currentWeatherChanged'
249 void,
250 // method 'positionChanged'
251 void,
252 // method 'tempUnitChanged'
253 void,
254 // method 'apiUrlChanged'
255 void,
256 // method 'getCurrentWeather'
257 void
258 >,
259 nullptr
260} };
261
262void Esterv::Utils::Weather::OMClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
263{
264 auto *_t = static_cast<OMClient *>(_o);
265 if (_c == QMetaObject::InvokeMetaMethod) {
266 switch (_id) {
267 case 0: _t->currentWeatherChanged(); break;
268 case 1: _t->positionChanged(); break;
269 case 2: _t->tempUnitChanged(); break;
270 case 3: _t->apiUrlChanged(); break;
271 case 4: _t->getCurrentWeather(); break;
272 default: ;
273 }
274 }
275 if (_c == QMetaObject::IndexOfMethod) {
276 int *result = reinterpret_cast<int *>(_a[0]);
277 {
278 using _q_method_type = void (OMClient::*)();
279 if (_q_method_type _q_method = &OMClient::currentWeatherChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
280 *result = 0;
281 return;
282 }
283 }
284 {
285 using _q_method_type = void (OMClient::*)();
286 if (_q_method_type _q_method = &OMClient::positionChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
287 *result = 1;
288 return;
289 }
290 }
291 {
292 using _q_method_type = void (OMClient::*)();
293 if (_q_method_type _q_method = &OMClient::tempUnitChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
294 *result = 2;
295 return;
296 }
297 }
298 {
299 using _q_method_type = void (OMClient::*)();
300 if (_q_method_type _q_method = &OMClient::apiUrlChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
301 *result = 3;
302 return;
303 }
304 }
305 }
306 if (_c == QMetaObject::ReadProperty) {
307 void *_v = _a[0];
308 switch (_id) {
309 case 0: *reinterpret_cast< QJsonObject*>(_v) = _t->currentWeather(); break;
310 case 1: *reinterpret_cast< float*>(_v) = _t->latitude(); break;
311 case 2: *reinterpret_cast< float*>(_v) = _t->longitude(); break;
312 case 3: *reinterpret_cast< TempUnit*>(_v) = _t->m_tempUnit; break;
313 case 4: *reinterpret_cast< QUrl*>(_v) = _t->m_apiUrl; break;
314 default: break;
315 }
316 }
317 if (_c == QMetaObject::WriteProperty) {
318 void *_v = _a[0];
319 switch (_id) {
320 case 1: _t->setLatitude(*reinterpret_cast< float*>(_v)); break;
321 case 2: _t->setLongitude(*reinterpret_cast< float*>(_v)); break;
322 case 3:
323 if (_t->m_tempUnit != *reinterpret_cast< TempUnit*>(_v)) {
324 _t->m_tempUnit = *reinterpret_cast< TempUnit*>(_v);
325 Q_EMIT _t->tempUnitChanged();
326 }
327 break;
328 case 4:
329 if (_t->m_apiUrl != *reinterpret_cast< QUrl*>(_v)) {
330 _t->m_apiUrl = *reinterpret_cast< QUrl*>(_v);
331 Q_EMIT _t->apiUrlChanged();
332 }
333 break;
334 default: break;
335 }
336 }
337}
338
340{
341 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
342}
343
344void *Esterv::Utils::Weather::OMClient::qt_metacast(const char *_clname)
345{
346 if (!_clname) return nullptr;
347 if (!strcmp(_clname, qt_meta_stringdata_ZN6Esterv5Utils7Weather8OMClientE.stringdata0))
348 return static_cast<void*>(this);
349 return QObject::qt_metacast(_clname);
350}
351
352int Esterv::Utils::Weather::OMClient::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
353{
354 _id = QObject::qt_metacall(_c, _id, _a);
355 if (_id < 0)
356 return _id;
357 if (_c == QMetaObject::InvokeMetaMethod) {
358 if (_id < 5)
359 qt_static_metacall(this, _c, _id, _a);
360 _id -= 5;
361 }
362 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
363 if (_id < 5)
364 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
365 _id -= 5;
366 }
367 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
368 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
369 || _c == QMetaObject::RegisterPropertyMetaType) {
370 qt_static_metacall(this, _c, _id, _a);
371 _id -= 5;
372 }
373 return _id;
374}
375
376// SIGNAL 0
378{
379 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
380}
381
382// SIGNAL 1
384{
385 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
386}
387
388// SIGNAL 2
390{
391 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
392}
393
394// SIGNAL 3
396{
397 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
398}
399QT_WARNING_POP
T addressof(T... args)
TempUnit
Definition o_m_client.hpp:66
@ Celsius
Definition o_m_client.hpp:66
@ Fahrenheit
Definition o_m_client.hpp:66
void currentWeatherChanged()
Definition moc_o_m_client.cpp:377
void tempUnitChanged()
Definition moc_o_m_client.cpp:389
void positionChanged()
Definition moc_o_m_client.cpp:383
void apiUrlChanged()
Definition moc_o_m_client.cpp:395
void returned(QJsonValue data)
Definition moc_o_m_client.cpp:142
OMResponse(QNetworkReply *thereply)
Definition o_m_client.cpp:49
Definition moc_o_m_client.cpp:35
virtual const QMetaObject * metaObject() const const
T strcmp(T... args)