/****************************************************************************
** Meta object code from reading C++ file 'lxqtpowerproviders.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 "../../../liblxqt-2.4.0/lxqtpower/lxqtpowerproviders.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 'lxqtpowerproviders.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_ZN4LXQt13PowerProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::PowerProvider::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt13PowerProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::PowerProvider",
        "doAction",
        "",
        "Power::Action",
        "action"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'doAction'
        QtMocHelpers::SlotData<bool(Power::Action)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PowerProvider, qt_meta_tag_ZN4LXQt13PowerProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::PowerProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt13PowerProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt13PowerProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt13PowerProviderE_t>.metaTypes,
    nullptr
} };

void LXQt::PowerProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PowerProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->doAction((*reinterpret_cast<std::add_pointer_t<Power::Action>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

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

int LXQt::PowerProvider::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 < 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;
}
namespace {
struct qt_meta_tag_ZN4LXQt14UPowerProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::UPowerProvider::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt14UPowerProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::UPowerProvider",
        "doAction",
        "",
        "Power::Action",
        "action"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'doAction'
        QtMocHelpers::SlotData<bool(Power::Action)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<UPowerProvider, qt_meta_tag_ZN4LXQt14UPowerProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::UPowerProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<PowerProvider::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt14UPowerProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt14UPowerProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt14UPowerProviderE_t>.metaTypes,
    nullptr
} };

void LXQt::UPowerProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<UPowerProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->doAction((*reinterpret_cast<std::add_pointer_t<Power::Action>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *LXQt::UPowerProvider::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt14UPowerProviderE_t>.strings))
        return static_cast<void*>(this);
    return PowerProvider::qt_metacast(_clname);
}

int LXQt::UPowerProvider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = PowerProvider::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;
}
namespace {
struct qt_meta_tag_ZN4LXQt18ConsoleKitProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::ConsoleKitProvider::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt18ConsoleKitProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::ConsoleKitProvider",
        "doAction",
        "",
        "Power::Action",
        "action"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'doAction'
        QtMocHelpers::SlotData<bool(Power::Action)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ConsoleKitProvider, qt_meta_tag_ZN4LXQt18ConsoleKitProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::ConsoleKitProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<PowerProvider::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt18ConsoleKitProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt18ConsoleKitProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt18ConsoleKitProviderE_t>.metaTypes,
    nullptr
} };

void LXQt::ConsoleKitProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ConsoleKitProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->doAction((*reinterpret_cast<std::add_pointer_t<Power::Action>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *LXQt::ConsoleKitProvider::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt18ConsoleKitProviderE_t>.strings))
        return static_cast<void*>(this);
    return PowerProvider::qt_metacast(_clname);
}

int LXQt::ConsoleKitProvider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = PowerProvider::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;
}
namespace {
struct qt_meta_tag_ZN4LXQt15SystemdProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::SystemdProvider::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt15SystemdProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::SystemdProvider",
        "doAction",
        "",
        "Power::Action",
        "action"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'doAction'
        QtMocHelpers::SlotData<bool(Power::Action)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SystemdProvider, qt_meta_tag_ZN4LXQt15SystemdProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::SystemdProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<PowerProvider::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt15SystemdProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt15SystemdProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt15SystemdProviderE_t>.metaTypes,
    nullptr
} };

void LXQt::SystemdProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SystemdProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->doAction((*reinterpret_cast<std::add_pointer_t<Power::Action>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *LXQt::SystemdProvider::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt15SystemdProviderE_t>.strings))
        return static_cast<void*>(this);
    return PowerProvider::qt_metacast(_clname);
}

int LXQt::SystemdProvider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = PowerProvider::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;
}
namespace {
struct qt_meta_tag_ZN4LXQt12LXQtProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::LXQtProvider::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt12LXQtProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::LXQtProvider",
        "doAction",
        "",
        "Power::Action",
        "action"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'doAction'
        QtMocHelpers::SlotData<bool(Power::Action)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<LXQtProvider, qt_meta_tag_ZN4LXQt12LXQtProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::LXQtProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<PowerProvider::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt12LXQtProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt12LXQtProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt12LXQtProviderE_t>.metaTypes,
    nullptr
} };

void LXQt::LXQtProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<LXQtProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->doAction((*reinterpret_cast<std::add_pointer_t<Power::Action>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *LXQt::LXQtProvider::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt12LXQtProviderE_t>.strings))
        return static_cast<void*>(this);
    return PowerProvider::qt_metacast(_clname);
}

int LXQt::LXQtProvider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = PowerProvider::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;
}
namespace {
struct qt_meta_tag_ZN4LXQt17LxSessionProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::LxSessionProvider::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt17LxSessionProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::LxSessionProvider",
        "doAction",
        "",
        "Power::Action",
        "action"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'doAction'
        QtMocHelpers::SlotData<bool(Power::Action)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<LxSessionProvider, qt_meta_tag_ZN4LXQt17LxSessionProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::LxSessionProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<PowerProvider::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt17LxSessionProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt17LxSessionProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt17LxSessionProviderE_t>.metaTypes,
    nullptr
} };

void LXQt::LxSessionProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<LxSessionProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->doAction((*reinterpret_cast<std::add_pointer_t<Power::Action>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *LXQt::LxSessionProvider::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt17LxSessionProviderE_t>.strings))
        return static_cast<void*>(this);
    return PowerProvider::qt_metacast(_clname);
}

int LXQt::LxSessionProvider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = PowerProvider::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;
}
namespace {
struct qt_meta_tag_ZN4LXQt11HalProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::HalProvider::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt11HalProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::HalProvider",
        "doAction",
        "",
        "Power::Action",
        "action"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'doAction'
        QtMocHelpers::SlotData<bool(Power::Action)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<HalProvider, qt_meta_tag_ZN4LXQt11HalProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::HalProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<PowerProvider::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt11HalProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt11HalProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt11HalProviderE_t>.metaTypes,
    nullptr
} };

void LXQt::HalProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<HalProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->doAction((*reinterpret_cast<std::add_pointer_t<Power::Action>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *LXQt::HalProvider::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt11HalProviderE_t>.strings))
        return static_cast<void*>(this);
    return PowerProvider::qt_metacast(_clname);
}

int LXQt::HalProvider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = PowerProvider::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;
}
namespace {
struct qt_meta_tag_ZN4LXQt14CustomProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto LXQt::CustomProvider::qt_create_metaobjectdata<qt_meta_tag_ZN4LXQt14CustomProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LXQt::CustomProvider",
        "doAction",
        "",
        "Power::Action",
        "action"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'doAction'
        QtMocHelpers::SlotData<bool(Power::Action)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CustomProvider, qt_meta_tag_ZN4LXQt14CustomProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject LXQt::CustomProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<PowerProvider::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt14CustomProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt14CustomProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4LXQt14CustomProviderE_t>.metaTypes,
    nullptr
} };

void LXQt::CustomProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CustomProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->doAction((*reinterpret_cast<std::add_pointer_t<Power::Action>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *LXQt::CustomProvider::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4LXQt14CustomProviderE_t>.strings))
        return static_cast<void*>(this);
    return PowerProvider::qt_metacast(_clname);
}

int LXQt::CustomProvider::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = PowerProvider::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;
}
QT_WARNING_POP
