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

template <> constexpr inline auto AnythingAdaptor::qt_create_metaobjectdata<qt_meta_tag_ZN15AnythingAdaptorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AnythingAdaptor",
        "D-Bus Interface",
        "com.deepin.anything",
        "D-Bus Introspection",
        "  <interface name=\"com.deepin.anything\">\n    <property access=\""
        "readwrite\" type=\"b\" name=\"autoIndexInternal\"/>\n    <property"
        " access=\"readwrite\" type=\"b\" name=\"autoIndexExternal\"/>\n   "
        " <signal name=\"autoIndexInternalChanged\">\n      <arg direction="
        "\"out\" type=\"b\" name=\"autoIndexInternal\"/>\n    </signal>\n  "
        "  <signal name=\"autoIndexExternalChanged\">\n      <arg direction"
        "=\"out\" type=\"b\" name=\"autoIndexExternal\"/>\n    </signal>\n "
        "   <signal name=\"asyncSearchCompleted\">\n      <arg direction=\""
        "out\" type=\"as\" name=\"results\"/>\n    </signal>\n    <method n"
        "ame=\"search\">\n      <arg direction=\"out\" type=\"as\"/>\n     "
        " <arg direction=\"in\" type=\"s\" name=\"path\"/>\n      <arg dire"
        "ction=\"in\" type=\"s\" name=\"keywords\"/>\n      <arg direction="
        "\"in\" type=\"i\" name=\"offset\"/>\n      <arg direction=\"in\" t"
        "ype=\"i\" name=\"max_count\"/>\n    </method>\n    <method name=\""
        "search\">\n      <arg direction=\"out\" type=\"as\"/>\n      <arg "
        "direction=\"in\" type=\"s\" name=\"path\"/>\n      <arg direction="
        "\"in\" type=\"s\" name=\"keywords\"/>\n    </method>\n    <method "
        "name=\"search\">\n      <arg direction=\"out\" type=\"as\"/>\n    "
        "  <arg direction=\"in\" type=\"s\" name=\"path\"/>\n      <arg dir"
        "ection=\"in\" type=\"s\" name=\"keywords\"/>\n      <arg direction"
        "=\"in\" type=\"s\" name=\"type\"/>\n    </method>\n    <method nam"
        "e=\"search\">\n      <arg direction=\"out\" type=\"as\"/>\n      <"
        "arg direction=\"in\" type=\"s\" name=\"path\"/>\n      <arg direct"
        "ion=\"in\" type=\"s\" name=\"keywords\"/>\n      <arg direction=\""
        "in\" type=\"s\" name=\"after\"/>\n      <arg direction=\"in\" type"
        "=\"s\" name=\"before\"/>\n    </method>\n    <method name=\"traver"
        "se_directory\">\n      <arg direction=\"out\" type=\"as\"/>\n     "
        " <arg direction=\"in\" type=\"s\" name=\"path\"/>\n    </method>\n"
        "    <method name=\"removePath\">\n      <arg direction=\"out\" typ"
        "e=\"b\"/>\n      <arg direction=\"in\" type=\"s\" name=\"fullPath\""
        "/>\n    </method>\n    <method name=\"hasLFT\">\n      <arg direct"
        "ion=\"out\" type=\"b\"/>\n      <arg direction=\"in\" type=\"s\" n"
        "ame=\"path\"/>\n    </method>\n    <method name=\"hasLFTSubdirecto"
        "ries\">\n      <arg direction=\"out\" type=\"as\"/>\n      <arg di"
        "rection=\"in\" type=\"s\" name=\"path\"/>\n    </method>\n    <met"
        "hod name=\"addPath\">\n      <arg direction=\"in\" type=\"s\" name"
        "=\"fullPath\"/>\n    </method>\n    <method name=\"index_files_in_"
        "directory\">\n      <arg direction=\"in\" type=\"s\" name=\"direct"
        "ory_path\"/>\n    </method>\n    <method name=\"delay_indexing\">\n"
        "      <arg direction=\"in\" type=\"b\" name=\"delay\"/>\n    </met"
        "hod>\n    <method name=\"cache_directory\">\n      <arg direction="
        "\"out\" type=\"s\"/>\n    </method>\n    <method name=\"search\">\n"
        "      <arg direction=\"out\" type=\"as\"/>\n      <arg direction=\""
        "in\" type=\"i\" name=\"maxCount\"/>\n      <arg direction=\"in\" t"
        "ype=\"x\" name=\"icase\"/>\n      <arg direction=\"in\" type=\"u\""
        " name=\"startOffset\"/>\n      <arg direction=\"in\" type=\"u\" na"
        "me=\"endOffset\"/>\n      <arg direction=\"in\" type=\"s\" name=\""
        "path\"/>\n      <arg direction=\"in\" type=\"s\" name=\"keyword\"/"
        ">\n      <arg direction=\"in\" type=\"b\" name=\"useRegExp\"/>\n  "
        "    <arg direction=\"out\" type=\"u\" name=\"startOffsetReturn\"/>"
        "\n      <arg direction=\"out\" type=\"u\" name=\"endOffsetReturn\""
        "/>\n    </method>\n    <method name=\"parallelsearch\">\n      <ar"
        "g direction=\"out\" type=\"as\"/>\n      <arg direction=\"in\" typ"
        "e=\"s\" name=\"path\"/>\n      <arg direction=\"in\" type=\"u\" na"
        "me=\"startOffset\"/>\n      <arg direction=\"in\" type=\"u\" name="
        "\"endOffset\"/>\n      <arg direction=\"in\" type=\"s\" name=\"key"
        "word\"/>\n      <arg direction=\"in\" type=\"as\" name=\"rules\"/>"
        "\n      <arg direction=\"out\" type=\"u\" name=\"startOffsetReturn"
        "\"/>\n      <arg direction=\"out\" type=\"u\" name=\"endOffsetRetu"
        "rn\"/>\n    </method>\n    <method name=\"async_search\">\n      <"
        "arg direction=\"in\" type=\"s\" name=\"keywords\"/>\n      <annota"
        "tion value=\"true\" name=\"org.freedesktop.DBus.Method.NoReply\"/>"
        "\n    </method>\n  </interface>\n",
        "asyncSearchCompleted",
        "",
        "results",
        "autoIndexExternalChanged",
        "autoIndexExternal",
        "autoIndexInternalChanged",
        "autoIndexInternal",
        "addPath",
        "fullPath",
        "async_search",
        "Q_NOREPLY",
        "keywords",
        "cache_directory",
        "delay_indexing",
        "delay",
        "hasLFT",
        "path",
        "hasLFTSubdirectories",
        "index_files_in_directory",
        "directory_path",
        "parallelsearch",
        "startOffset",
        "endOffset",
        "keyword",
        "rules",
        "uint&",
        "startOffsetReturn",
        "endOffsetReturn",
        "removePath",
        "search",
        "maxCount",
        "icase",
        "useRegExp",
        "after",
        "before",
        "type",
        "offset",
        "max_count",
        "traverse_directory"
    };

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

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

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

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

int AnythingAdaptor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDBusAbstractAdaptor::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 AnythingAdaptor::asyncSearchCompleted(const QStringList & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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

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