/****************************************************************************
** Meta object code from reading C++ file 'kweather_1x4.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/plasmoid/kweather_1x4.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kweather_1x4.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_ZN12KWeather_1x4E_t {};
} // unnamed namespace

template <> constexpr inline auto KWeather_1x4::qt_create_metaobjectdata<qt_meta_tag_ZN12KWeather_1x4E_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KWeather_1x4",
        "weatherLocationChanged",
        "",
        "updated",
        "needLocationChanged",
        "hourlyModelChanged",
        "locationsInSystem",
        "setLocation",
        "location",
        "needLocation",
        "weatherLocation",
        "temp",
        "desc",
        "weatherIcon",
        "humidity",
        "precipitation",
        "hourlyModel",
        "HourlyModel*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'weatherLocationChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'updated'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'needLocationChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hourlyModelChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'locationsInSystem'
        QtMocHelpers::MethodData<QStringList()>(6, 2, QMC::AccessPublic, QMetaType::QStringList),
        // Method 'setLocation'
        QtMocHelpers::MethodData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'needLocation'
        QtMocHelpers::PropertyData<bool>(9, QMetaType::Bool, QMC::DefaultPropertyFlags, 2),
        // property 'weatherLocation'
        QtMocHelpers::PropertyData<QString>(10, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'temp'
        QtMocHelpers::PropertyData<qreal>(11, QMetaType::QReal, QMC::DefaultPropertyFlags, 1),
        // property 'desc'
        QtMocHelpers::PropertyData<QString>(12, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'weatherIcon'
        QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'humidity'
        QtMocHelpers::PropertyData<qreal>(14, QMetaType::QReal, QMC::DefaultPropertyFlags, 1),
        // property 'precipitation'
        QtMocHelpers::PropertyData<qreal>(15, QMetaType::QReal, QMC::DefaultPropertyFlags, 1),
        // property 'hourlyModel'
        QtMocHelpers::PropertyData<HourlyModel*>(16, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KWeather_1x4, qt_meta_tag_ZN12KWeather_1x4E_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KWeather_1x4::staticMetaObject = { {
    QMetaObject::SuperData::link<Plasma::Applet::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12KWeather_1x4E_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12KWeather_1x4E_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12KWeather_1x4E_t>.metaTypes,
    nullptr
} };

void KWeather_1x4::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KWeather_1x4 *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->weatherLocationChanged(); break;
        case 1: _t->updated(); break;
        case 2: _t->needLocationChanged(); break;
        case 3: _t->hourlyModelChanged(); break;
        case 4: { QStringList _r = _t->locationsInSystem();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->setLocation((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KWeather_1x4::*)()>(_a, &KWeather_1x4::weatherLocationChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KWeather_1x4::*)()>(_a, &KWeather_1x4::updated, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KWeather_1x4::*)()>(_a, &KWeather_1x4::needLocationChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KWeather_1x4::*)()>(_a, &KWeather_1x4::hourlyModelChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->needLocation(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->weatherLocation(); break;
        case 2: *reinterpret_cast<qreal*>(_v) = _t->temp(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->desc(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->weatherIcon(); break;
        case 5: *reinterpret_cast<qreal*>(_v) = _t->humidity(); break;
        case 6: *reinterpret_cast<qreal*>(_v) = _t->precipitation(); break;
        case 7: *reinterpret_cast<HourlyModel**>(_v) = _t->hourlyModel(); break;
        default: break;
        }
    }
}

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

void *KWeather_1x4::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12KWeather_1x4E_t>.strings))
        return static_cast<void*>(this);
    return Plasma::Applet::qt_metacast(_clname);
}

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

// SIGNAL 0
void KWeather_1x4::weatherLocationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

// SIGNAL 3
void KWeather_1x4::hourlyModelChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
