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

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

template <> constexpr inline auto DB::ImageDB::qt_create_metaobjectdata<qt_meta_tag_ZN2DB7ImageDBE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DB::ImageDB",
        "totalChanged",
        "",
        "dirty",
        "imagesDeleted",
        "DB::FileNameList",
        "setDateRange",
        "ImageDate",
        "includeFuzzyCounts",
        "clearDateRange",
        "count",
        "MediaCount",
        "ImageSearchInfo",
        "info",
        "slotReread",
        "list",
        "DB::ExifMode",
        "mode",
        "setCurrentScope",
        "DB::ImageSearchInfo",
        "renameItem",
        "DB::Category*",
        "category",
        "oldName",
        "newName",
        "deleteItem",
        "value",
        "lockDB",
        "lock",
        "exclude",
        "markDirty",
        "setUntaggedTag",
        "DB::TagInfo*",
        "tag"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'totalChanged'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'dirty'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'imagesDeleted'
        QtMocHelpers::SignalData<void(const DB::FileNameList &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 2 },
        }}),
        // Slot 'setDateRange'
        QtMocHelpers::SlotData<void(const ImageDate &, bool)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 2 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'clearDateRange'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'count'
        QtMocHelpers::SlotData<MediaCount(const ImageSearchInfo &)>(10, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'slotReread'
        QtMocHelpers::SlotData<void(const DB::FileNameList &, DB::ExifMode)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 15 }, { 0x80000000 | 16, 17 },
        }}),
        // Slot 'setCurrentScope'
        QtMocHelpers::SlotData<void(const DB::ImageSearchInfo &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 13 },
        }}),
        // Slot 'renameItem'
        QtMocHelpers::SlotData<void(DB::Category *, const QString &, const QString &)>(20, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 21, 22 }, { QMetaType::QString, 23 }, { QMetaType::QString, 24 },
        }}),
        // Slot 'deleteItem'
        QtMocHelpers::SlotData<void(DB::Category *, const QString &)>(25, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 21, 22 }, { QMetaType::QString, 26 },
        }}),
        // Slot 'lockDB'
        QtMocHelpers::SlotData<void(bool, bool)>(27, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Bool, 28 }, { QMetaType::Bool, 29 },
        }}),
        // Slot 'markDirty'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'setUntaggedTag'
        QtMocHelpers::SlotData<void(DB::TagInfo *)>(31, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 32, 33 },
        }}),
        // Slot 'setUntaggedTag'
        QtMocHelpers::SlotData<void(const QString &, const QString &)>(31, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QString, 22 }, { QMetaType::QString, 33 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ImageDB, qt_meta_tag_ZN2DB7ImageDBE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DB::ImageDB::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN2DB7ImageDBE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN2DB7ImageDBE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN2DB7ImageDBE_t>.metaTypes,
    nullptr
} };

void DB::ImageDB::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ImageDB *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->totalChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->dirty(); break;
        case 2: _t->imagesDeleted((*reinterpret_cast<std::add_pointer_t<DB::FileNameList>>(_a[1]))); break;
        case 3: _t->setDateRange((*reinterpret_cast<std::add_pointer_t<ImageDate>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 4: _t->clearDateRange(); break;
        case 5: { MediaCount _r = _t->count((*reinterpret_cast<std::add_pointer_t<ImageSearchInfo>>(_a[1])));
            if (_a[0]) *reinterpret_cast<MediaCount*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->slotReread((*reinterpret_cast<std::add_pointer_t<DB::FileNameList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<DB::ExifMode>>(_a[2]))); break;
        case 7: _t->setCurrentScope((*reinterpret_cast<std::add_pointer_t<DB::ImageSearchInfo>>(_a[1]))); break;
        case 8: _t->renameItem((*reinterpret_cast<std::add_pointer_t<DB::Category*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 9: _t->deleteItem((*reinterpret_cast<std::add_pointer_t<DB::Category*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 10: _t->lockDB((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 11: _t->markDirty(); break;
        case 12: _t->setUntaggedTag((*reinterpret_cast<std::add_pointer_t<DB::TagInfo*>>(_a[1]))); break;
        case 13: _t->setUntaggedTag((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DB::Category* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< DB::Category* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ImageDB::*)(int )>(_a, &ImageDB::totalChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDB::*)()>(_a, &ImageDB::dirty, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDB::*)(const DB::FileNameList & )>(_a, &ImageDB::imagesDeleted, 2))
            return;
    }
}

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

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

int DB::ImageDB::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    return _id;
}

// SIGNAL 0
void DB::ImageDB::totalChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void DB::ImageDB::dirty()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void DB::ImageDB::imagesDeleted(const DB::FileNameList & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN2DBE_t {};
} // unnamed namespace

template <> constexpr inline auto DB::qt_create_metaobjectdata<qt_meta_tag_ZN2DBE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DB",
        "SearchOption",
        "NoOption",
        "RequireOnDisk",
        "AllowRangeMatch"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'SearchOption'
        QtMocHelpers::EnumData<SearchOption>(1, 1, QMC::EnumIsScoped).add({
            {    2, SearchOption::NoOption },
            {    3, SearchOption::RequireOnDisk },
            {    4, SearchOption::AllowRangeMatch },
        }),
    };
    return QtMocHelpers::metaObjectData<void, qt_meta_tag_ZN2DBE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}

static constexpr auto qt_staticMetaObjectContent_ZN2DBE =
    DB::qt_create_metaobjectdata<qt_meta_tag_ZN2DBE_t>();
static constexpr auto qt_staticMetaObjectStaticContent_ZN2DBE =
    qt_staticMetaObjectContent_ZN2DBE.staticData;
static constexpr auto qt_staticMetaObjectRelocatingContent_ZN2DBE =
    qt_staticMetaObjectContent_ZN2DBE.relocatingData;

Q_CONSTINIT const QMetaObject DB::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent_ZN2DBE.stringdata,
    qt_staticMetaObjectStaticContent_ZN2DBE.data,
    nullptr,
    nullptr,
    qt_staticMetaObjectRelocatingContent_ZN2DBE.metaTypes,
    nullptr
} };

QT_WARNING_POP
