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

#include "../../../../../deepin-anything/src/server/include/core/base_event_handler.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 'base_event_handler.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN18base_event_handlerE_t {};
} // unnamed namespace

template <> constexpr inline auto base_event_handler::qt_create_metaobjectdata<qt_meta_tag_ZN18base_event_handlerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "base_event_handler",
        "D-Bus Interface",
        "com.deepin.anything",
        "autoIndexInternalChanged",
        "",
        "autoIndexInternal",
        "autoIndexExternalChanged",
        "autoIndexExternal",
        "asyncSearchCompleted",
        "results",
        "search",
        "path",
        "keywords",
        "offset",
        "max_count",
        "type",
        "after",
        "before",
        "traverse_directory",
        "removePath",
        "fullPath",
        "hasLFT",
        "hasLFTSubdirectories",
        "addPath",
        "index_files_in_directory",
        "directory_path",
        "delay_indexing",
        "delay",
        "cache_directory",
        "maxCount",
        "icase",
        "startOffset",
        "endOffset",
        "keyword",
        "useRegExp",
        "quint32&",
        "startOffsetReturn",
        "endOffsetReturn",
        "parallelsearch",
        "rules",
        "async_search",
        "Q_NOREPLY"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'autoIndexInternalChanged'
        QtMocHelpers::SignalData<void(bool)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Signal 'autoIndexExternalChanged'
        QtMocHelpers::SignalData<void(bool)>(6, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Signal 'asyncSearchCompleted'
        QtMocHelpers::SignalData<void(const QStringList &)>(8, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 9 },
        }}),
        // Slot 'search'
        QtMocHelpers::SlotData<QStringList(const QString &, QString, int, int)>(10, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 11 }, { QMetaType::QString, 12 }, { QMetaType::Int, 13 }, { QMetaType::Int, 14 },
        }}),
        // Slot 'search'
        QtMocHelpers::SlotData<QStringList(const QString &, QString)>(10, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 11 }, { QMetaType::QString, 12 },
        }}),
        // Slot 'search'
        QtMocHelpers::SlotData<QStringList(const QString &, QString, const QString &)>(10, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 11 }, { QMetaType::QString, 12 }, { QMetaType::QString, 15 },
        }}),
        // Slot 'search'
        QtMocHelpers::SlotData<QStringList(const QString &, QString, const QString &, const QString &)>(10, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 11 }, { QMetaType::QString, 12 }, { QMetaType::QString, 16 }, { QMetaType::QString, 17 },
        }}),
        // Slot 'traverse_directory'
        QtMocHelpers::SlotData<QStringList(const QString &)>(18, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 11 },
        }}),
        // Slot 'removePath'
        QtMocHelpers::SlotData<bool(const QString &)>(19, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 20 },
        }}),
        // Slot 'hasLFT'
        QtMocHelpers::SlotData<bool(const QString &)>(21, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 11 },
        }}),
        // Slot 'hasLFTSubdirectories'
        QtMocHelpers::SlotData<QStringList(QString) const>(22, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 11 },
        }}),
        // Slot 'addPath'
        QtMocHelpers::SlotData<void(const QString &)>(23, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 },
        }}),
        // Slot 'index_files_in_directory'
        QtMocHelpers::SlotData<void(const QString &)>(24, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 25 },
        }}),
        // Slot 'delay_indexing'
        QtMocHelpers::SlotData<void(bool)>(26, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 27 },
        }}),
        // Slot 'cache_directory'
        QtMocHelpers::SlotData<QString()>(28, 4, QMC::AccessPublic, QMetaType::QString),
        // Slot 'search'
        QtMocHelpers::SlotData<QStringList(int, qint64, quint32, quint32, const QString &, QString, bool, quint32 &, quint32 &)>(10, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::Int, 29 }, { QMetaType::LongLong, 30 }, { QMetaType::UInt, 31 }, { QMetaType::UInt, 32 },
            { QMetaType::QString, 11 }, { QMetaType::QString, 33 }, { QMetaType::Bool, 34 }, { 0x80000000 | 35, 36 },
            { 0x80000000 | 35, 37 },
        }}),
        // Slot 'parallelsearch'
        QtMocHelpers::SlotData<QStringList(const QString &, quint32, quint32, const QString &, const QStringList &, quint32 &, quint32 &)>(38, 4, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 11 }, { QMetaType::UInt, 31 }, { QMetaType::UInt, 32 }, { QMetaType::QString, 33 },
            { QMetaType::QStringList, 39 }, { 0x80000000 | 35, 36 }, { 0x80000000 | 35, 37 },
        }}),
        // Slot 'async_search'
        QtMocHelpers::SlotData<void(QString)>(40, 41, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'autoIndexInternal'
        QtMocHelpers::PropertyData<bool>(5, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'autoIndexExternal'
        QtMocHelpers::PropertyData<bool>(7, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<base_event_handler, qt_meta_tag_ZN18base_event_handlerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject base_event_handler::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18base_event_handlerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18base_event_handlerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN18base_event_handlerE_t>.metaTypes,
    nullptr
} };

void base_event_handler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<base_event_handler *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->autoIndexInternalChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->autoIndexExternalChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->asyncSearchCompleted((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 3: { QStringList _r = _t->search((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 4: { QStringList _r = _t->search((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 5: { QStringList _r = _t->search((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 6: { QStringList _r = _t->search((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 7: { QStringList _r = _t->traverse_directory((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->removePath((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->hasLFT((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { QStringList _r = _t->hasLFTSubdirectories((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->addPath((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 12: _t->index_files_in_directory((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 13: _t->delay_indexing((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 14: { QString _r = _t->cache_directory();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 15: { QStringList _r = _t->search((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint64>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[6])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[7])),(*reinterpret_cast<std::add_pointer_t<quint32&>>(_a[8])),(*reinterpret_cast<std::add_pointer_t<quint32&>>(_a[9])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 16: { QStringList _r = _t->parallelsearch((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<quint32&>>(_a[6])),(*reinterpret_cast<std::add_pointer_t<quint32&>>(_a[7])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 17: _t->async_search((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (base_event_handler::*)(bool )>(_a, &base_event_handler::autoIndexInternalChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (base_event_handler::*)(bool )>(_a, &base_event_handler::autoIndexExternalChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (base_event_handler::*)(const QStringList & )>(_a, &base_event_handler::asyncSearchCompleted, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->autoIndexInternal(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->autoIndexExternal(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAutoIndexInternal(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setAutoIndexExternal(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void base_event_handler::autoIndexInternalChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void base_event_handler::autoIndexExternalChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void base_event_handler::asyncSearchCompleted(const QStringList & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
