9#include "../../../../include/esterv/utils/o_m_client.hpp"
10#include <QtNetwork/QSslError>
11#include <QtNetwork/QSslPreSharedKeyAuthenticator>
12#include <QtCore/qmetatype.h>
14#include <QtCore/qtmochelpers.h>
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.)"
34QT_WARNING_DISABLE_GCC(
"-Wuseless-cast")
40#ifdef QT_MOC_HAS_STRINGDATA
41static constexpr auto qt_meta_stringdata_ZN6Esterv5Utils7Weather10OMResponseE = QtMocHelpers::stringData(
42 "Esterv::Utils::Weather::OMResponse",
48#error "qtmochelpers.h not found or too old."
51Q_CONSTINIT
static const uint qt_meta_data_ZN6Esterv5Utils7Weather10OMResponseE[] = {
65 1, 1, 20, 2, 0x06, 1 ,
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,
79 qt_incomplete_metaTypeArray<qt_meta_tag_ZN6Esterv5Utils7Weather10OMResponseE_t,
81 QtPrivate::TypeAndForceComplete<OMResponse, std::true_type>,
83 QtPrivate::TypeAndForceComplete<void, std::false_type>,
84 QtPrivate::TypeAndForceComplete<QJsonValue, std::false_type>
89void Esterv::Utils::Weather::OMResponse::qt_static_metacall(
QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
92 if (_c == QMetaObject::InvokeMetaMethod) {
94 case 0: _t->returned((*
reinterpret_cast< std::add_pointer_t<QJsonValue>
>(_a[1])));
break;
98 if (_c == QMetaObject::IndexOfMethod) {
99 int *result =
reinterpret_cast<int *
>(_a[0]);
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) {
112 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
115void *Esterv::Utils::Weather::OMResponse::qt_metacast(
const char *_clname)
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);
123int Esterv::Utils::Weather::OMResponse::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
125 _id = QObject::qt_metacall(_c, _id, _a);
128 if (_c == QMetaObject::InvokeMetaMethod) {
130 qt_static_metacall(
this, _c, _id, _a);
133 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
144 void *_a[] = {
nullptr,
const_cast<void*
>(
reinterpret_cast<const void*
>(
std::addressof(_t1))) };
145 QMetaObject::activate(
this, &staticMetaObject, 0, _a);
148struct qt_meta_tag_ZN6Esterv5Utils7Weather8OMClientE_t {};
152#ifdef QT_MOC_HAS_STRINGDATA
153static constexpr auto qt_meta_stringdata_ZN6Esterv5Utils7Weather8OMClientE = QtMocHelpers::stringData(
154 "Esterv::Utils::Weather::OMClient",
157 "currentWeatherChanged",
173#error "qtmochelpers.h not found or too old."
176Q_CONSTINIT
static const uint qt_meta_data_ZN6Esterv5Utils7Weather8OMClientE[] = {
193 3, 0, 46, 4, 0x06, 7 ,
194 5, 0, 47, 4, 0x06, 8 ,
195 6, 0, 48, 4, 0x06, 9 ,
196 7, 0, 49, 4, 0x06, 10 ,
199 8, 0, 50, 4, 0x02, 11 ,
214 12, 0x80000000 | 13, 0x0001500b, uint(2), 0,
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,
262void Esterv::Utils::Weather::OMClient::qt_static_metacall(
QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
264 auto *_t =
static_cast<OMClient *
>(_o);
265 if (_c == QMetaObject::InvokeMetaMethod) {
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;
275 if (_c == QMetaObject::IndexOfMethod) {
276 int *result =
reinterpret_cast<int *
>(_a[0]);
278 using _q_method_type = void (OMClient::*)();
285 using _q_method_type = void (OMClient::*)();
292 using _q_method_type = void (OMClient::*)();
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) {
306 if (_c == QMetaObject::ReadProperty) {
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;
317 if (_c == QMetaObject::WriteProperty) {
320 case 1: _t->setLatitude(*
reinterpret_cast< float*
>(_v));
break;
321 case 2: _t->setLongitude(*
reinterpret_cast< float*
>(_v));
break;
323 if (_t->m_tempUnit != *
reinterpret_cast< TempUnit*
>(_v)) {
324 _t->m_tempUnit = *
reinterpret_cast< TempUnit*
>(_v);
325 Q_EMIT _t->tempUnitChanged();
329 if (_t->m_apiUrl != *
reinterpret_cast< QUrl*
>(_v)) {
330 _t->m_apiUrl = *
reinterpret_cast< QUrl*
>(_v);
331 Q_EMIT _t->apiUrlChanged();
341 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
344void *Esterv::Utils::Weather::OMClient::qt_metacast(
const char *_clname)
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);
352int Esterv::Utils::Weather::OMClient::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
354 _id = QObject::qt_metacall(_c, _id, _a);
357 if (_c == QMetaObject::InvokeMetaMethod) {
359 qt_static_metacall(
this, _c, _id, _a);
362 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
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);
379 QMetaObject::activate(
this, &staticMetaObject, 0,
nullptr);
385 QMetaObject::activate(
this, &staticMetaObject, 1,
nullptr);
391 QMetaObject::activate(
this, &staticMetaObject, 2,
nullptr);
397 QMetaObject::activate(
this, &staticMetaObject, 3,
nullptr);
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