/****************************************************************************
** Meta object code from reading C++ file 'playlistsortproxymodel.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/playlistsortproxymodel.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 'playlistsortproxymodel.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_ZN22PlaylistSortProxyModelE_t {};
} // unnamed namespace

template <> constexpr inline auto PlaylistSortProxyModel::qt_create_metaobjectdata<qt_meta_tag_ZN22PlaylistSortProxyModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PlaylistSortProxyModel",
        "QML.Element",
        "groupingChanged",
        "",
        "Sort",
        "None",
        "FileName",
        "Duration",
        "Date",
        "FileSize",
        "Title",
        "TrackNo",
        "SampleRate",
        "Bitrate",
        "Custom",
        "Group",
        "Folder",
        "FileType",
        "Extension",
        "DiscNo",
        "ReleaseYear",
        "Genre",
        "Album",
        "Artist",
        "AlbumArtist",
        "Composer",
        "Lyricist",
        "AudioCodec",
        "Framerate",
        "VideoCodec",
        "Orientation",
        "Resolution",
        "Separator"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'groupingChanged'
        QtMocHelpers::SignalData<void()>(2, 3, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Sort'
        QtMocHelpers::EnumData<enum Sort>(4, 4, QMC::EnumFlags{}).add({
            {    5, Sort::None },
            {    6, Sort::FileName },
            {    7, Sort::Duration },
            {    8, Sort::Date },
            {    9, Sort::FileSize },
            {   10, Sort::Title },
            {   11, Sort::TrackNo },
            {   12, Sort::SampleRate },
            {   13, Sort::Bitrate },
            {   14, Sort::Custom },
        }),
        // enum 'Group'
        QtMocHelpers::EnumData<enum Group>(15, 15, QMC::EnumFlags{}).add({
            {   16, Group::Folder },
            {   17, Group::FileType },
            {   18, Group::Extension },
            {   19, Group::DiscNo },
            {   20, Group::ReleaseYear },
            {   21, Group::Genre },
            {   22, Group::Album },
            {   23, Group::Artist },
            {   24, Group::AlbumArtist },
            {   25, Group::Composer },
            {   26, Group::Lyricist },
            {   27, Group::AudioCodec },
            {   28, Group::Framerate },
            {   29, Group::VideoCodec },
            {   30, Group::Orientation },
            {   31, Group::Resolution },
            {   32, Group::Separator },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    0 },
    });
    return QtMocHelpers::metaObjectData<PlaylistSortProxyModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject PlaylistSortProxyModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QSortFilterProxyModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22PlaylistSortProxyModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22PlaylistSortProxyModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN22PlaylistSortProxyModelE_t>.metaTypes,
    nullptr
} };

void PlaylistSortProxyModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PlaylistSortProxyModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->groupingChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PlaylistSortProxyModel::*)()>(_a, &PlaylistSortProxyModel::groupingChanged, 0))
            return;
    }
}

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

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

int PlaylistSortProxyModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSortFilterProxyModel::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void PlaylistSortProxyModel::groupingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
