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

#include "../../desktopgrideffect.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 'desktopgrideffect.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN4KWin17DesktopGridEffectE_t {};
} // unnamed namespace

template <> constexpr inline auto KWin::DesktopGridEffect::qt_create_metaobjectdata<qt_meta_tag_ZN4KWin17DesktopGridEffectE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KWin::DesktopGridEffect",
        "gridRowsChanged",
        "",
        "gridColumnsChanged",
        "animationDurationChanged",
        "layoutChanged",
        "partialActivationFactorChanged",
        "gestureInProgressChanged",
        "showAddRemoveChanged",
        "desktopNameAlignmentChanged",
        "desktopLayoutModeChanged",
        "customLayoutRowsChanged",
        "activate",
        "partialActivate",
        "factor",
        "cancelPartialActivate",
        "partialDeactivate",
        "cancelPartialDeactivate",
        "deactivate",
        "timeout",
        "toggle",
        "addDesktop",
        "removeDesktop",
        "swapDesktops",
        "from",
        "to",
        "gridRows",
        "gridColumns",
        "animationDuration",
        "layout",
        "partialActivationFactor",
        "gestureInProgress",
        "showAddRemove",
        "desktopNameAlignment",
        "Qt::AlignmentFlag",
        "desktopLayoutMode",
        "DesktopLayoutMode",
        "customLayoutRows",
        "LayoutPager",
        "LayoutAutomatic",
        "LayoutCustom"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'gridRowsChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'gridColumnsChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'animationDurationChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'layoutChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'partialActivationFactorChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'gestureInProgressChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'showAddRemoveChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'desktopNameAlignmentChanged'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'desktopLayoutModeChanged'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'customLayoutRowsChanged'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'activate'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'partialActivate'
        QtMocHelpers::SlotData<void(qreal)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 14 },
        }}),
        // Slot 'cancelPartialActivate'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'partialDeactivate'
        QtMocHelpers::SlotData<void(qreal)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 14 },
        }}),
        // Slot 'cancelPartialDeactivate'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'deactivate'
        QtMocHelpers::SlotData<void(int)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 19 },
        }}),
        // Slot 'toggle'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'addDesktop'
        QtMocHelpers::MethodData<void() const>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'removeDesktop'
        QtMocHelpers::MethodData<void() const>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'swapDesktops'
        QtMocHelpers::MethodData<void(int, int)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 24 }, { QMetaType::Int, 25 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'gridRows'
        QtMocHelpers::PropertyData<int>(26, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'gridColumns'
        QtMocHelpers::PropertyData<int>(27, QMetaType::Int, QMC::DefaultPropertyFlags, 1),
        // property 'animationDuration'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags, 2),
        // property 'layout'
        QtMocHelpers::PropertyData<int>(29, QMetaType::Int, QMC::DefaultPropertyFlags, 3),
        // property 'partialActivationFactor'
        QtMocHelpers::PropertyData<qreal>(30, QMetaType::QReal, QMC::DefaultPropertyFlags, 4),
        // property 'gestureInProgress'
        QtMocHelpers::PropertyData<bool>(31, QMetaType::Bool, QMC::DefaultPropertyFlags, 5),
        // property 'showAddRemove'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'desktopNameAlignment'
        QtMocHelpers::PropertyData<Qt::AlignmentFlag>(33, 0x80000000 | 34, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 7),
        // property 'desktopLayoutMode'
        QtMocHelpers::PropertyData<enum DesktopLayoutMode>(35, 0x80000000 | 36, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 8),
        // property 'customLayoutRows'
        QtMocHelpers::PropertyData<int>(37, QMetaType::Int, QMC::DefaultPropertyFlags, 9),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'DesktopLayoutMode'
        QtMocHelpers::EnumData<enum DesktopLayoutMode>(36, 36, QMC::EnumIsScoped).add({
            {   38, DesktopLayoutMode::LayoutPager },
            {   39, DesktopLayoutMode::LayoutAutomatic },
            {   40, DesktopLayoutMode::LayoutCustom },
        }),
    };
    return QtMocHelpers::metaObjectData<DesktopGridEffect, qt_meta_tag_ZN4KWin17DesktopGridEffectE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KWin::DesktopGridEffect::staticMetaObject = { {
    QMetaObject::SuperData::link<QuickSceneEffect::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4KWin17DesktopGridEffectE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4KWin17DesktopGridEffectE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4KWin17DesktopGridEffectE_t>.metaTypes,
    nullptr
} };

void KWin::DesktopGridEffect::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DesktopGridEffect *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->gridRowsChanged(); break;
        case 1: _t->gridColumnsChanged(); break;
        case 2: _t->animationDurationChanged(); break;
        case 3: _t->layoutChanged(); break;
        case 4: _t->partialActivationFactorChanged(); break;
        case 5: _t->gestureInProgressChanged(); break;
        case 6: _t->showAddRemoveChanged(); break;
        case 7: _t->desktopNameAlignmentChanged(); break;
        case 8: _t->desktopLayoutModeChanged(); break;
        case 9: _t->customLayoutRowsChanged(); break;
        case 10: _t->activate(); break;
        case 11: _t->partialActivate((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); break;
        case 12: _t->cancelPartialActivate(); break;
        case 13: _t->partialDeactivate((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); break;
        case 14: _t->cancelPartialDeactivate(); break;
        case 15: _t->deactivate((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 16: _t->toggle(); break;
        case 17: _t->addDesktop(); break;
        case 18: _t->removeDesktop(); break;
        case 19: _t->swapDesktops((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::gridRowsChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::gridColumnsChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::animationDurationChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::layoutChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::partialActivationFactorChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::gestureInProgressChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::showAddRemoveChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::desktopNameAlignmentChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::desktopLayoutModeChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (DesktopGridEffect::*)()>(_a, &DesktopGridEffect::customLayoutRowsChanged, 9))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->gridRows(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->gridColumns(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->animationDuration(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->layout(); break;
        case 4: *reinterpret_cast<qreal*>(_v) = _t->partialActivationFactor(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->gestureInProgress(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->showAddRemove(); break;
        case 7: *reinterpret_cast<Qt::AlignmentFlag*>(_v) = _t->desktopNameAlignment(); break;
        case 8: *reinterpret_cast<enum DesktopLayoutMode*>(_v) = _t->desktopLayoutMode(); break;
        case 9: *reinterpret_cast<int*>(_v) = _t->customLayoutRows(); break;
        default: break;
        }
    }
}

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

void *KWin::DesktopGridEffect::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4KWin17DesktopGridEffectE_t>.strings))
        return static_cast<void*>(this);
    return QuickSceneEffect::qt_metacast(_clname);
}

int KWin::DesktopGridEffect::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QuickSceneEffect::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 20;
    }
    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 KWin::DesktopGridEffect::gridRowsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void KWin::DesktopGridEffect::gridColumnsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void KWin::DesktopGridEffect::animationDurationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void KWin::DesktopGridEffect::layoutChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void KWin::DesktopGridEffect::partialActivationFactorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void KWin::DesktopGridEffect::gestureInProgressChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void KWin::DesktopGridEffect::showAddRemoveChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void KWin::DesktopGridEffect::desktopNameAlignmentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void KWin::DesktopGridEffect::desktopLayoutModeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void KWin::DesktopGridEffect::customLayoutRowsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}
QT_WARNING_POP
