/****************************************************************************
** Meta object code from reading C++ file 'weatherlocation.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../kweather-26.08.0/src/weatherlocation.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'weatherlocation.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN15WeatherLocationE_t {};
} // unnamed namespace

template <> constexpr inline auto WeatherLocation::qt_create_metaobjectdata<qt_meta_tag_ZN15WeatherLocationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "WeatherLocation",
        "QML.Element",
        "auto",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "",
        "weatherRefresh",
        "KWeatherCore::WeatherForecast",
        "forecasts",
        "currentForecastChanged",
        "stopLoadingIndicator",
        "currentTimeChanged",
        "currentDateChanged",
        "timeZoneChanged",
        "dayForecastsChanged",
        "hourForecastsChanged",
        "selectedDayChanged",
        "lastUpdatedChanged",
        "chartListChanged",
        "updateData",
        "updateCurrentDateTime",
        "update",
        "name",
        "latitude",
        "longitude",
        "lastUpdated",
        "currentTime",
        "currentDate",
        "timeZone",
        "currentHourForecast",
        "QVariant",
        "dayForecasts",
        "QList<KWeatherCore::DailyWeatherForecast>",
        "hourForecasts",
        "QList<KWeatherCore::HourlyWeatherForecast>",
        "selectedDay",
        "backgroundComponent",
        "backgroundColor",
        "QColor",
        "textColor",
        "cardBackgroundColor",
        "cardTextColor",
        "cardSecondaryTextColor",
        "iconColor",
        "darkTheme",
        "cloud",
        "sun",
        "rain",
        "star",
        "snow",
        "topColor",
        "bottomColor",
        "cloudColor"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'weatherRefresh'
        QtMocHelpers::SignalData<void(KWeatherCore::WeatherForecast)>(7, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'currentForecastChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'stopLoadingIndicator'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentTimeChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentDateChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'timeZoneChanged'
        QtMocHelpers::SignalData<void()>(14, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'dayForecastsChanged'
        QtMocHelpers::SignalData<void()>(15, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hourForecastsChanged'
        QtMocHelpers::SignalData<void()>(16, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'selectedDayChanged'
        QtMocHelpers::SignalData<void()>(17, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'lastUpdatedChanged'
        QtMocHelpers::SignalData<void()>(18, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'chartListChanged'
        QtMocHelpers::SignalData<void()>(19, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateData'
        QtMocHelpers::SlotData<void(KWeatherCore::WeatherForecast)>(20, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'updateCurrentDateTime'
        QtMocHelpers::SlotData<void()>(21, 6, QMC::AccessPrivate, QMetaType::Void),
        // Method 'update'
        QtMocHelpers::MethodData<void()>(22, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'name'
        QtMocHelpers::PropertyData<QString>(23, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'latitude'
        QtMocHelpers::PropertyData<float>(24, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'longitude'
        QtMocHelpers::PropertyData<float>(25, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'lastUpdated'
        QtMocHelpers::PropertyData<QString>(26, QMetaType::QString, QMC::DefaultPropertyFlags, 9),
        // property 'currentTime'
        QtMocHelpers::PropertyData<QString>(27, QMetaType::QString, QMC::DefaultPropertyFlags, 3),
        // property 'currentDate'
        QtMocHelpers::PropertyData<QString>(28, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'timeZone'
        QtMocHelpers::PropertyData<QString>(29, QMetaType::QString, QMC::DefaultPropertyFlags, 5),
        // property 'currentHourForecast'
        QtMocHelpers::PropertyData<QVariant>(30, 0x80000000 | 31, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'dayForecasts'
        QtMocHelpers::PropertyData<QList<KWeatherCore::DailyWeatherForecast>>(32, 0x80000000 | 33, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 6),
        // property 'hourForecasts'
        QtMocHelpers::PropertyData<QList<KWeatherCore::HourlyWeatherForecast>>(34, 0x80000000 | 35, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 7),
        // property 'selectedDay'
        QtMocHelpers::PropertyData<int>(36, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 8),
        // property 'backgroundComponent'
        QtMocHelpers::PropertyData<QString>(37, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'backgroundColor'
        QtMocHelpers::PropertyData<QColor>(38, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'textColor'
        QtMocHelpers::PropertyData<QColor>(40, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'cardBackgroundColor'
        QtMocHelpers::PropertyData<QColor>(41, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'cardTextColor'
        QtMocHelpers::PropertyData<QColor>(42, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'cardSecondaryTextColor'
        QtMocHelpers::PropertyData<QColor>(43, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'iconColor'
        QtMocHelpers::PropertyData<QColor>(44, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'darkTheme'
        QtMocHelpers::PropertyData<bool>(45, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'cloud'
        QtMocHelpers::PropertyData<bool>(46, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'sun'
        QtMocHelpers::PropertyData<bool>(47, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'rain'
        QtMocHelpers::PropertyData<bool>(48, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'star'
        QtMocHelpers::PropertyData<bool>(49, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'snow'
        QtMocHelpers::PropertyData<bool>(50, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'topColor'
        QtMocHelpers::PropertyData<QColor>(51, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'bottomColor'
        QtMocHelpers::PropertyData<QColor>(52, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'cloudColor'
        QtMocHelpers::PropertyData<QColor>(53, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<WeatherLocation, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject WeatherLocation::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15WeatherLocationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15WeatherLocationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15WeatherLocationE_t>.metaTypes,
    nullptr
} };

void WeatherLocation::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<WeatherLocation *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->weatherRefresh((*reinterpret_cast<std::add_pointer_t<KWeatherCore::WeatherForecast>>(_a[1]))); break;
        case 1: _t->currentForecastChanged(); break;
        case 2: _t->stopLoadingIndicator(); break;
        case 3: _t->currentTimeChanged(); break;
        case 4: _t->currentDateChanged(); break;
        case 5: _t->timeZoneChanged(); break;
        case 6: _t->dayForecastsChanged(); break;
        case 7: _t->hourForecastsChanged(); break;
        case 8: _t->selectedDayChanged(); break;
        case 9: _t->lastUpdatedChanged(); break;
        case 10: _t->chartListChanged(); break;
        case 11: _t->updateData((*reinterpret_cast<std::add_pointer_t<KWeatherCore::WeatherForecast>>(_a[1]))); break;
        case 12: _t->updateCurrentDateTime(); break;
        case 13: _t->update(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)(KWeatherCore::WeatherForecast )>(_a, &WeatherLocation::weatherRefresh, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::currentForecastChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::stopLoadingIndicator, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::currentTimeChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::currentDateChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::timeZoneChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::dayForecastsChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::hourForecastsChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::selectedDayChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::lastUpdatedChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (WeatherLocation::*)()>(_a, &WeatherLocation::chartListChanged, 10))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->locationName(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->latitude(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->longitude(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->lastUpdatedFormatted(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->currentTimeFormatted(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->currentDateFormatted(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->timeZone(); break;
        case 7: *reinterpret_cast<QVariant*>(_v) = _t->currentHourForecast(); break;
        case 8: *reinterpret_cast<QList<KWeatherCore::DailyWeatherForecast>*>(_v) = _t->dayForecasts(); break;
        case 9: *reinterpret_cast<QList<KWeatherCore::HourlyWeatherForecast>*>(_v) = _t->hourForecasts(); break;
        case 10: *reinterpret_cast<int*>(_v) = _t->selectedDay(); break;
        case 11: *reinterpret_cast<QString*>(_v) = _t->backgroundComponent(); break;
        case 12: *reinterpret_cast<QColor*>(_v) = _t->backgroundColor(); break;
        case 13: *reinterpret_cast<QColor*>(_v) = _t->textColor(); break;
        case 14: *reinterpret_cast<QColor*>(_v) = _t->cardBackgroundColor(); break;
        case 15: *reinterpret_cast<QColor*>(_v) = _t->cardTextColor(); break;
        case 16: *reinterpret_cast<QColor*>(_v) = _t->cardSecondaryTextColor(); break;
        case 17: *reinterpret_cast<QColor*>(_v) = _t->iconColor(); break;
        case 18: *reinterpret_cast<bool*>(_v) = _t->darkTheme(); break;
        case 19: *reinterpret_cast<bool*>(_v) = _t->cloud(); break;
        case 20: *reinterpret_cast<bool*>(_v) = _t->sun(); break;
        case 21: *reinterpret_cast<bool*>(_v) = _t->rain(); break;
        case 22: *reinterpret_cast<bool*>(_v) = _t->star(); break;
        case 23: *reinterpret_cast<bool*>(_v) = _t->snow(); break;
        case 24: *reinterpret_cast<QColor*>(_v) = _t->topColor(); break;
        case 25: *reinterpret_cast<QColor*>(_v) = _t->bottomColor(); break;
        case 26: *reinterpret_cast<QColor*>(_v) = _t->cloudColor(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 10: _t->setSelectedDay(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *WeatherLocation::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *WeatherLocation::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15WeatherLocationE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int WeatherLocation::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 14;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 27;
    }
    return _id;
}

// SIGNAL 0
void WeatherLocation::weatherRefresh(KWeatherCore::WeatherForecast _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void WeatherLocation::currentForecastChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void WeatherLocation::stopLoadingIndicator()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void WeatherLocation::currentTimeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void WeatherLocation::currentDateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void WeatherLocation::timeZoneChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void WeatherLocation::dayForecastsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void WeatherLocation::hourForecastsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void WeatherLocation::selectedDayChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void WeatherLocation::lastUpdatedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void WeatherLocation::chartListChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}
QT_WARNING_POP
