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

#include "../../../../../maplibre-native-qt_v3.0.0_Source/src/core/map.hpp"
#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 'map.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN9QMapLibre3MapE_t {};
} // unnamed namespace

template <> constexpr inline auto QMapLibre::Map::qt_create_metaobjectdata<qt_meta_tag_ZN9QMapLibre3MapE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QMapLibre::Map",
        "needsRendering",
        "",
        "mapChanged",
        "Map::MapChange",
        "mapLoadingFailed",
        "Map::MapLoadingFailure",
        "reason",
        "copyrightsChanged",
        "copyrightsHtml",
        "staticRenderFinished",
        "error",
        "render",
        "setConnectionEstablished",
        "startStaticRender",
        "latitude",
        "longitude",
        "zoom",
        "bearing",
        "pitch",
        "styleJson",
        "styleUrl",
        "scale",
        "coordinate",
        "QMapLibre::Coordinate",
        "margins",
        "QMargins"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'needsRendering'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'mapChanged'
        QtMocHelpers::SignalData<void(Map::MapChange)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 2 },
        }}),
        // Signal 'mapLoadingFailed'
        QtMocHelpers::SignalData<void(Map::MapLoadingFailure, const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 2 }, { QMetaType::QString, 7 },
        }}),
        // Signal 'copyrightsChanged'
        QtMocHelpers::SignalData<void(const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Signal 'staticRenderFinished'
        QtMocHelpers::SignalData<void(const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 11 },
        }}),
        // Slot 'render'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setConnectionEstablished'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startStaticRender'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'latitude'
        QtMocHelpers::PropertyData<double>(15, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'longitude'
        QtMocHelpers::PropertyData<double>(16, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'zoom'
        QtMocHelpers::PropertyData<double>(17, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'bearing'
        QtMocHelpers::PropertyData<double>(18, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'pitch'
        QtMocHelpers::PropertyData<double>(19, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'styleJson'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'styleUrl'
        QtMocHelpers::PropertyData<QString>(21, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'scale'
        QtMocHelpers::PropertyData<double>(22, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'coordinate'
        QtMocHelpers::PropertyData<QMapLibre::Coordinate>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'margins'
        QtMocHelpers::PropertyData<QMargins>(25, 0x80000000 | 26, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Map, qt_meta_tag_ZN9QMapLibre3MapE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QMapLibre::Map::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9QMapLibre3MapE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9QMapLibre3MapE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9QMapLibre3MapE_t>.metaTypes,
    nullptr
} };

void QMapLibre::Map::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Map *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->needsRendering(); break;
        case 1: _t->mapChanged((*reinterpret_cast<std::add_pointer_t<Map::MapChange>>(_a[1]))); break;
        case 2: _t->mapLoadingFailed((*reinterpret_cast<std::add_pointer_t<Map::MapLoadingFailure>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 3: _t->copyrightsChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->staticRenderFinished((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->render(); break;
        case 6: _t->setConnectionEstablished(); break;
        case 7: _t->startStaticRender(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Map::*)()>(_a, &Map::needsRendering, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Map::*)(Map::MapChange )>(_a, &Map::mapChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Map::*)(Map::MapLoadingFailure , const QString & )>(_a, &Map::mapLoadingFailed, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Map::*)(const QString & )>(_a, &Map::copyrightsChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Map::*)(const QString & )>(_a, &Map::staticRenderFinished, 4))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QMapLibre::Coordinate >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<double*>(_v) = _t->latitude(); break;
        case 1: *reinterpret_cast<double*>(_v) = _t->longitude(); break;
        case 2: *reinterpret_cast<double*>(_v) = _t->zoom(); break;
        case 3: *reinterpret_cast<double*>(_v) = _t->bearing(); break;
        case 4: *reinterpret_cast<double*>(_v) = _t->pitch(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->styleJson(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->styleUrl(); break;
        case 7: *reinterpret_cast<double*>(_v) = _t->scale(); break;
        case 8: *reinterpret_cast<QMapLibre::Coordinate*>(_v) = _t->coordinate(); break;
        case 9: *reinterpret_cast<QMargins*>(_v) = _t->margins(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setLatitude(*reinterpret_cast<double*>(_v)); break;
        case 1: _t->setLongitude(*reinterpret_cast<double*>(_v)); break;
        case 2: _t->setZoom(*reinterpret_cast<double*>(_v)); break;
        case 3: _t->setBearing(*reinterpret_cast<double*>(_v)); break;
        case 4: _t->setPitch(*reinterpret_cast<double*>(_v)); break;
        case 5: _t->setStyleJson(*reinterpret_cast<QString*>(_v)); break;
        case 6: _t->setStyleUrl(*reinterpret_cast<QString*>(_v)); break;
        case 7: _t->setScale(*reinterpret_cast<double*>(_v)); break;
        case 8: _t->setCoordinate(*reinterpret_cast<QMapLibre::Coordinate*>(_v)); break;
        case 9: _t->setMargins(*reinterpret_cast<QMargins*>(_v)); break;
        default: break;
        }
    }
}

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

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

int QMapLibre::Map::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 < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void QMapLibre::Map::needsRendering()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void QMapLibre::Map::mapChanged(Map::MapChange _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void QMapLibre::Map::mapLoadingFailed(Map::MapLoadingFailure _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void QMapLibre::Map::copyrightsChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void QMapLibre::Map::staticRenderFinished(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
