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

#include "../../../../amarok-3.3.3/src/scripting/scriptengine/exporters/MetaTypeExporter.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 'MetaTypeExporter.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN12AmarokScript25MetaTrackPrototypeWrapperE_t {};
} // unnamed namespace

template <> constexpr inline auto AmarokScript::MetaTrackPrototypeWrapper::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript25MetaTrackPrototypeWrapperE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::MetaTrackPrototypeWrapper",
        "trackCtor",
        "QJSValue",
        "",
        "arg"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'trackCtor'
        QtMocHelpers::MethodData<QJSValue(QJSValue)>(1, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 2, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MetaTrackPrototypeWrapper, qt_meta_tag_ZN12AmarokScript25MetaTrackPrototypeWrapperE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::MetaTrackPrototypeWrapper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript25MetaTrackPrototypeWrapperE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript25MetaTrackPrototypeWrapperE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript25MetaTrackPrototypeWrapperE_t>.metaTypes,
    nullptr
} };

void AmarokScript::MetaTrackPrototypeWrapper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MetaTrackPrototypeWrapper *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QJSValue _r = _t->trackCtor((*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QJSValue >(); break;
            }
            break;
        }
    }
}

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

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

int AmarokScript::MetaTrackPrototypeWrapper::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 < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN12AmarokScript18MetaTrackPrototypeE_t {};
} // unnamed namespace

template <> constexpr inline auto AmarokScript::MetaTrackPrototype::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript18MetaTrackPrototypeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::MetaTrackPrototype",
        "loaded",
        "",
        "Meta::TrackPtr",
        "imagePixmap",
        "QJSValue",
        "size",
        "changeTags",
        "Meta::FieldHash",
        "changes",
        "respectConfig",
        "title",
        "sampleRate",
        "bitrate",
        "score",
        "rating",
        "inCollection",
        "type",
        "length",
        "fileSize",
        "trackNumber",
        "discNumber",
        "playCount",
        "playable",
        "album",
        "artist",
        "composer",
        "genre",
        "year",
        "comment",
        "path",
        "isValid",
        "isEditable",
        "lyrics",
        "imageUrl",
        "url",
        "bpm",
        "tags",
        "isLoaded",
        "embeddedCover",
        "QImage"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'loaded'
        QtMocHelpers::SignalData<void(Meta::TrackPtr)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Method 'imagePixmap'
        QtMocHelpers::MethodData<QJSValue(int) const>(4, 2, QMC::AccessPublic, 0x80000000 | 5, {{
            { QMetaType::Int, 6 },
        }}),
        // Method 'imagePixmap'
        QtMocHelpers::MethodData<QJSValue() const>(4, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 5),
        // Method 'changeTags'
        QtMocHelpers::MethodData<void(const Meta::FieldHash &, bool)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 }, { QMetaType::Bool, 10 },
        }}),
        // Method 'changeTags'
        QtMocHelpers::MethodData<void(const Meta::FieldHash &)>(7, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'title'
        QtMocHelpers::PropertyData<QString>(11, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'sampleRate'
        QtMocHelpers::PropertyData<int>(12, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'bitrate'
        QtMocHelpers::PropertyData<int>(13, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'score'
        QtMocHelpers::PropertyData<double>(14, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'rating'
        QtMocHelpers::PropertyData<int>(15, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'inCollection'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'type'
        QtMocHelpers::PropertyData<QString>(17, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'length'
        QtMocHelpers::PropertyData<int>(18, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'fileSize'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'trackNumber'
        QtMocHelpers::PropertyData<int>(20, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'discNumber'
        QtMocHelpers::PropertyData<int>(21, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'playCount'
        QtMocHelpers::PropertyData<int>(22, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'playable'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'album'
        QtMocHelpers::PropertyData<QString>(24, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'artist'
        QtMocHelpers::PropertyData<QString>(25, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'composer'
        QtMocHelpers::PropertyData<QString>(26, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'genre'
        QtMocHelpers::PropertyData<QString>(27, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'year'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'comment'
        QtMocHelpers::PropertyData<QString>(29, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'path'
        QtMocHelpers::PropertyData<QString>(30, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'isValid'
        QtMocHelpers::PropertyData<bool>(31, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'isEditable'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'lyrics'
        QtMocHelpers::PropertyData<QString>(33, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'imageUrl'
        QtMocHelpers::PropertyData<QString>(34, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'url'
        QtMocHelpers::PropertyData<QString>(35, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'bpm'
        QtMocHelpers::PropertyData<double>(36, QMetaType::Double, QMC::DefaultPropertyFlags),
        // property 'tags'
        QtMocHelpers::PropertyData<Meta::FieldHash>(37, 0x80000000 | 8, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'isLoaded'
        QtMocHelpers::PropertyData<bool>(38, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'embeddedCover'
        QtMocHelpers::PropertyData<QImage>(39, 0x80000000 | 40, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MetaTrackPrototype, qt_meta_tag_ZN12AmarokScript18MetaTrackPrototypeE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::MetaTrackPrototype::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript18MetaTrackPrototypeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript18MetaTrackPrototypeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript18MetaTrackPrototypeE_t>.metaTypes,
    nullptr
} };

void AmarokScript::MetaTrackPrototype::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MetaTrackPrototype *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->loaded((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        case 1: { QJSValue _r = _t->imagePixmap((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 2: { QJSValue _r = _t->imagePixmap();
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 3: _t->changeTags((*reinterpret_cast<std::add_pointer_t<Meta::FieldHash>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 4: _t->changeTags((*reinterpret_cast<std::add_pointer_t<Meta::FieldHash>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::TrackPtr >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::FieldHash >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Meta::FieldHash >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MetaTrackPrototype::*)(Meta::TrackPtr )>(_a, &MetaTrackPrototype::loaded, 0))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 26:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Meta::FieldHash >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->title(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->sampleRate(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->bitrate(); break;
        case 3: *reinterpret_cast<double*>(_v) = _t->score(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->rating(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->inCollection(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->type(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->length(); break;
        case 8: *reinterpret_cast<int*>(_v) = _t->fileSize(); break;
        case 9: *reinterpret_cast<int*>(_v) = _t->trackNumber(); break;
        case 10: *reinterpret_cast<int*>(_v) = _t->discNumber(); break;
        case 11: *reinterpret_cast<int*>(_v) = _t->playCount(); break;
        case 12: *reinterpret_cast<bool*>(_v) = _t->playable(); break;
        case 13: *reinterpret_cast<QString*>(_v) = _t->album(); break;
        case 14: *reinterpret_cast<QString*>(_v) = _t->artist(); break;
        case 15: *reinterpret_cast<QString*>(_v) = _t->composer(); break;
        case 16: *reinterpret_cast<QString*>(_v) = _t->genre(); break;
        case 17: *reinterpret_cast<int*>(_v) = _t->year(); break;
        case 18: *reinterpret_cast<QString*>(_v) = _t->comment(); break;
        case 19: *reinterpret_cast<QString*>(_v) = _t->path(); break;
        case 20: *reinterpret_cast<bool*>(_v) = _t->isValid(); break;
        case 21: *reinterpret_cast<bool*>(_v) = _t->isEditable(); break;
        case 22: *reinterpret_cast<QString*>(_v) = _t->lyrics(); break;
        case 23: *reinterpret_cast<QString*>(_v) = _t->imageUrl(); break;
        case 24: *reinterpret_cast<QString*>(_v) = _t->url(); break;
        case 25: *reinterpret_cast<double*>(_v) = _t->bpm(); break;
        case 26: *reinterpret_cast<Meta::FieldHash*>(_v) = _t->tags(); break;
        case 27: *reinterpret_cast<bool*>(_v) = _t->isLoaded(); break;
        case 28: *reinterpret_cast<QImage*>(_v) = _t->embeddedCover(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTitle(*reinterpret_cast<QString*>(_v)); break;
        case 3: _t->setScore(*reinterpret_cast<double*>(_v)); break;
        case 4: _t->setRating(*reinterpret_cast<int*>(_v)); break;
        case 9: _t->setTrackNumber(*reinterpret_cast<int*>(_v)); break;
        case 10: _t->setDiscNumber(*reinterpret_cast<int*>(_v)); break;
        case 13: _t->setAlbum(*reinterpret_cast<QString*>(_v)); break;
        case 14: _t->setArtist(*reinterpret_cast<QString*>(_v)); break;
        case 15: _t->setComposer(*reinterpret_cast<QString*>(_v)); break;
        case 16: _t->setGenre(*reinterpret_cast<QString*>(_v)); break;
        case 17: _t->setYear(*reinterpret_cast<int*>(_v)); break;
        case 18: _t->setComment(*reinterpret_cast<QString*>(_v)); break;
        case 22: _t->setLyrics(*reinterpret_cast<QString*>(_v)); break;
        case 23: _t->setImageUrl(*reinterpret_cast<QString*>(_v)); break;
        case 28: _t->setEmbeddedCover(*reinterpret_cast<QImage*>(_v)); break;
        default: break;
        }
    }
}

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

void *AmarokScript::MetaTrackPrototype::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript18MetaTrackPrototypeE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Meta::Observer"))
        return static_cast< Meta::Observer*>(this);
    return QObject::qt_metacast(_clname);
}

int AmarokScript::MetaTrackPrototype::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 < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 29;
    }
    return _id;
}

// SIGNAL 0
void AmarokScript::MetaTrackPrototype::loaded(Meta::TrackPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
