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

template <> constexpr inline auto KWinUtils::qt_create_metaobjectdata<qt_meta_tag_ZN9KWinUtilsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KWinUtils",
        "initialized",
        "",
        "windowPropertyChanged",
        "windowId",
        "property_atom",
        "windowShapeChanged",
        "pingEvent",
        "timestamp",
        "WalkThroughWindows",
        "WalkBackThroughWindows",
        "WindowMove",
        "WindowMaximize",
        "ShowWorkspacesView",
        "ShowAllWindowsView",
        "ShowWindowsView",
        "_d_onPropertyChanged",
        "getXcbAtom",
        "name",
        "only_if_exists",
        "isSupportedAtom",
        "atom",
        "getGtkFrame",
        "QVariant",
        "const QObject*",
        "window",
        "isDeepinOverride",
        "getParentWindow",
        "addSupportedProperty",
        "enforce",
        "removeSupportedProperty",
        "addWindowPropertyMonitor",
        "removeWindowPropertyMonitor",
        "isCompositing",
        "buildNativeSettings",
        "baseObject",
        "windowID"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'initialized'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'windowPropertyChanged'
        QtMocHelpers::SignalData<void(quint32, quint32)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 4 }, { QMetaType::UInt, 5 },
        }}),
        // Signal 'windowShapeChanged'
        QtMocHelpers::SignalData<void(quint32)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 4 },
        }}),
        // Signal 'pingEvent'
        QtMocHelpers::SignalData<void(quint32, quint32)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 4 }, { QMetaType::UInt, 8 },
        }}),
        // Slot 'WalkThroughWindows'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'WalkBackThroughWindows'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'WindowMove'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'WindowMaximize'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'ShowWorkspacesView'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'ShowAllWindowsView'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'ShowWindowsView'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot '_d_onPropertyChanged'
        QtMocHelpers::SlotData<void(long)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Long, 2 },
        }}),
        // Method 'getXcbAtom'
        QtMocHelpers::MethodData<quint32(const QString &, bool) const>(17, 2, QMC::AccessPublic, QMetaType::UInt, {{
            { QMetaType::QString, 18 }, { QMetaType::Bool, 19 },
        }}),
        // Method 'isSupportedAtom'
        QtMocHelpers::MethodData<bool(quint32) const>(20, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::UInt, 21 },
        }}),
        // Method 'getGtkFrame'
        QtMocHelpers::MethodData<QVariant(const QObject *) const>(22, 2, QMC::AccessPublic, 0x80000000 | 23, {{
            { 0x80000000 | 24, 25 },
        }}),
        // Method 'isDeepinOverride'
        QtMocHelpers::MethodData<bool(const QObject *) const>(26, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 24, 25 },
        }}),
        // Method 'getParentWindow'
        QtMocHelpers::MethodData<QVariant(const QObject *) const>(27, 2, QMC::AccessPublic, 0x80000000 | 23, {{
            { 0x80000000 | 24, 25 },
        }}),
        // Method 'addSupportedProperty'
        QtMocHelpers::MethodData<void(quint32, bool)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 21 }, { QMetaType::Bool, 29 },
        }}),
        // Method 'addSupportedProperty'
        QtMocHelpers::MethodData<void(quint32)>(28, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::UInt, 21 },
        }}),
        // Method 'removeSupportedProperty'
        QtMocHelpers::MethodData<void(quint32, bool)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 21 }, { QMetaType::Bool, 29 },
        }}),
        // Method 'removeSupportedProperty'
        QtMocHelpers::MethodData<void(quint32)>(30, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::UInt, 21 },
        }}),
        // Method 'addWindowPropertyMonitor'
        QtMocHelpers::MethodData<void(quint32)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 5 },
        }}),
        // Method 'removeWindowPropertyMonitor'
        QtMocHelpers::MethodData<void(quint32)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 5 },
        }}),
        // Method 'isCompositing'
        QtMocHelpers::MethodData<bool()>(33, 2, QMC::AccessPublic, QMetaType::Bool),
        // Method 'buildNativeSettings'
        QtMocHelpers::MethodData<bool(QObject *, quint32)>(34, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QObjectStar, 35 }, { QMetaType::UInt, 36 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'initialized'
        QtMocHelpers::PropertyData<bool>(1, QMetaType::Bool, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KWinUtils, qt_meta_tag_ZN9KWinUtilsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KWinUtils::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9KWinUtilsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9KWinUtilsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9KWinUtilsE_t>.metaTypes,
    nullptr
} };

void KWinUtils::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KWinUtils *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->initialized(); break;
        case 1: _t->windowPropertyChanged((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2]))); break;
        case 2: _t->windowShapeChanged((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 3: _t->pingEvent((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2]))); break;
        case 4: _t->WalkThroughWindows(); break;
        case 5: _t->WalkBackThroughWindows(); break;
        case 6: _t->WindowMove(); break;
        case 7: _t->WindowMaximize(); break;
        case 8: _t->ShowWorkspacesView(); break;
        case 9: _t->ShowAllWindowsView(); break;
        case 10: _t->ShowWindowsView(); break;
        case 11: _t->d->_d_onPropertyChanged((*reinterpret_cast<std::add_pointer_t<long>>(_a[1]))); break;
        case 12: { quint32 _r = _t->getXcbAtom((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<quint32*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->isSupportedAtom((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { QVariant _r = _t->getGtkFrame((*reinterpret_cast<std::add_pointer_t<const QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 15: { bool _r = _t->isDeepinOverride((*reinterpret_cast<std::add_pointer_t<const QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 16: { QVariant _r = _t->getParentWindow((*reinterpret_cast<std::add_pointer_t<const QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 17: _t->addSupportedProperty((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 18: _t->addSupportedProperty((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 19: _t->removeSupportedProperty((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 20: _t->removeSupportedProperty((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 21: _t->addWindowPropertyMonitor((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 22: _t->removeWindowPropertyMonitor((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 23: { bool _r = _t->isCompositing();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 24: { bool _r = _t->buildNativeSettings((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KWinUtils::*)()>(_a, &KWinUtils::initialized, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KWinUtils::*)(quint32 , quint32 )>(_a, &KWinUtils::windowPropertyChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KWinUtils::*)(quint32 )>(_a, &KWinUtils::windowShapeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KWinUtils::*)(quint32 , quint32 )>(_a, &KWinUtils::pingEvent, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isInitialized(); break;
        default: break;
        }
    }
}

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

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

int KWinUtils::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 < 25)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 25;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 25)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 25;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void KWinUtils::initialized()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void KWinUtils::windowPropertyChanged(quint32 _t1, quint32 _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void KWinUtils::windowShapeChanged(quint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void KWinUtils::pingEvent(quint32 _t1, quint32 _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}
QT_WARNING_POP
