/****************************************************************************
** Meta object code from reading C++ file 'EpisodeAction.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 "../../libmygpo-qt/src/EpisodeAction.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 'EpisodeAction.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_ZN5mygpo13EpisodeActionE_t {};
} // unnamed namespace

template <> constexpr inline auto mygpo::EpisodeAction::qt_create_metaobjectdata<qt_meta_tag_ZN5mygpo13EpisodeActionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "mygpo::EpisodeAction",
        "podcastUrl",
        "QUrl",
        "episodeUrl",
        "deviceName",
        "action",
        "ActionType",
        "timestamp",
        "started",
        "position",
        "total",
        "Download",
        "Play",
        "Delete",
        "New",
        "Flattr"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'podcastUrl'
        QtMocHelpers::PropertyData<QUrl>(1, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'episodeUrl'
        QtMocHelpers::PropertyData<QUrl>(3, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'deviceName'
        QtMocHelpers::PropertyData<QString>(4, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'action'
        QtMocHelpers::PropertyData<enum ActionType>(5, 0x80000000 | 6, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'timestamp'
        QtMocHelpers::PropertyData<qulonglong>(7, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'started'
        QtMocHelpers::PropertyData<qulonglong>(8, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'position'
        QtMocHelpers::PropertyData<qulonglong>(9, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'total'
        QtMocHelpers::PropertyData<qulonglong>(10, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ActionType'
        QtMocHelpers::EnumData<enum ActionType>(6, 6, QMC::EnumFlags{}).add({
            {   11, ActionType::Download },
            {   12, ActionType::Play },
            {   13, ActionType::Delete },
            {   14, ActionType::New },
            {   15, ActionType::Flattr },
        }),
    };
    return QtMocHelpers::metaObjectData<EpisodeAction, qt_meta_tag_ZN5mygpo13EpisodeActionE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject mygpo::EpisodeAction::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5mygpo13EpisodeActionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5mygpo13EpisodeActionE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5mygpo13EpisodeActionE_t>.metaTypes,
    nullptr
} };

void mygpo::EpisodeAction::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<EpisodeAction *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QUrl*>(_v) = _t->podcastUrl(); break;
        case 1: *reinterpret_cast<QUrl*>(_v) = _t->episodeUrl(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->deviceName(); break;
        case 3: *reinterpret_cast<enum ActionType*>(_v) = _t->action(); break;
        case 4: *reinterpret_cast<qulonglong*>(_v) = _t->timestamp(); break;
        case 5: *reinterpret_cast<qulonglong*>(_v) = _t->started(); break;
        case 6: *reinterpret_cast<qulonglong*>(_v) = _t->position(); break;
        case 7: *reinterpret_cast<qulonglong*>(_v) = _t->total(); break;
        default: break;
        }
    }
}

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

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

int mygpo::EpisodeAction::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    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;
}
QT_WARNING_POP
