/****************************************************************************
** Meta object code from reading C++ file 'playlistmodel.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 "../../../../../haruna-1.8.1/src/playlist/playlistmodel.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 'playlistmodel.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_ZN13PlaylistModelE_t {};
} // unnamed namespace

template <> constexpr inline auto PlaylistModel::qt_create_metaobjectdata<qt_meta_tag_ZN13PlaylistModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PlaylistModel",
        "QML.Element",
        "itemAdded",
        "",
        "index",
        "path",
        "playlistName",
        "playingItemChanged",
        "metaDataReady",
        "QUrl",
        "url",
        "KFileMetaData::PropertyMultiMap",
        "metadata",
        "Roles",
        "NameRole",
        "DurationRole",
        "PathRole",
        "FolderPathRole",
        "DirNameRole",
        "DateRole",
        "FileSizeRole",
        "TypeRole",
        "ExtensionRole",
        "PlayingRole",
        "IsLocalRole",
        "IsSelectedRole",
        "SectionRole",
        "PlaybackPositionRole",
        "TrackNoRole",
        "DiscNoRole",
        "GenreRole",
        "TitleRole",
        "ReleaseYearRole",
        "AlbumRole",
        "ArtistRole",
        "AlbumArtistRole",
        "ComposerRole",
        "LyricistRole",
        "AudioCodecRole",
        "SampleRateRole",
        "BitrateRole",
        "DisplayedWidthRole",
        "DisplayedHeightRole",
        "FramerateRole",
        "VideoCodecRole",
        "OrientationRole",
        "Behavior",
        "Append",
        "AppendAndPlay",
        "Insert",
        "Clear"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'itemAdded'
        QtMocHelpers::SignalData<void(uint, const QString &, QString)>(2, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 4 }, { QMetaType::QString, 5 }, { QMetaType::QString, 6 },
        }}),
        // Signal 'playingItemChanged'
        QtMocHelpers::SignalData<void(QString)>(7, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Signal 'metaDataReady'
        QtMocHelpers::SignalData<void(uint, const QUrl &, KFileMetaData::PropertyMultiMap)>(8, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 4 }, { 0x80000000 | 9, 10 }, { 0x80000000 | 11, 12 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Roles'
        QtMocHelpers::EnumData<enum Roles>(13, 13, QMC::EnumFlags{}).add({
            {   14, Roles::NameRole },
            {   15, Roles::DurationRole },
            {   16, Roles::PathRole },
            {   17, Roles::FolderPathRole },
            {   18, Roles::DirNameRole },
            {   19, Roles::DateRole },
            {   20, Roles::FileSizeRole },
            {   21, Roles::TypeRole },
            {   22, Roles::ExtensionRole },
            {   23, Roles::PlayingRole },
            {   24, Roles::IsLocalRole },
            {   25, Roles::IsSelectedRole },
            {   26, Roles::SectionRole },
            {   27, Roles::PlaybackPositionRole },
            {   28, Roles::TrackNoRole },
            {   29, Roles::DiscNoRole },
            {   30, Roles::GenreRole },
            {   31, Roles::TitleRole },
            {   32, Roles::ReleaseYearRole },
            {   33, Roles::AlbumRole },
            {   34, Roles::ArtistRole },
            {   35, Roles::AlbumArtistRole },
            {   36, Roles::ComposerRole },
            {   37, Roles::LyricistRole },
            {   38, Roles::AudioCodecRole },
            {   39, Roles::SampleRateRole },
            {   40, Roles::BitrateRole },
            {   41, Roles::DisplayedWidthRole },
            {   42, Roles::DisplayedHeightRole },
            {   43, Roles::FramerateRole },
            {   44, Roles::VideoCodecRole },
            {   45, Roles::OrientationRole },
        }),
        // enum 'Behavior'
        QtMocHelpers::EnumData<enum Behavior>(46, 46, QMC::EnumFlags{}).add({
            {   47, Behavior::Append },
            {   48, Behavior::AppendAndPlay },
            {   49, Behavior::Insert },
            {   50, Behavior::Clear },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    0 },
    });
    return QtMocHelpers::metaObjectData<PlaylistModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject PlaylistModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13PlaylistModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13PlaylistModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13PlaylistModelE_t>.metaTypes,
    nullptr
} };

void PlaylistModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PlaylistModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->itemAdded((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 1: _t->playingItemChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->metaDataReady((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<KFileMetaData::PropertyMultiMap>>(_a[3]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KFileMetaData::PropertyMultiMap >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PlaylistModel::*)(uint , const QString & , QString )>(_a, &PlaylistModel::itemAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistModel::*)(QString )>(_a, &PlaylistModel::playingItemChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PlaylistModel::*)(uint , const QUrl & , KFileMetaData::PropertyMultiMap )>(_a, &PlaylistModel::metaDataReady, 2))
            return;
    }
}

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

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

int PlaylistModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void PlaylistModel::itemAdded(uint _t1, const QString & _t2, QString _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3);
}

// SIGNAL 1
void PlaylistModel::playingItemChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void PlaylistModel::metaDataReady(uint _t1, const QUrl & _t2, KFileMetaData::PropertyMultiMap _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2, _t3);
}
QT_WARNING_POP
