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

#include "../../../../../falkon-26.07.90/src/lib/plugins/qml/api/bookmarks/qmlbookmarks.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 'qmlbookmarks.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.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_ZN12QmlBookmarksE_t {};
} // unnamed namespace

template <> constexpr inline auto QmlBookmarks::qt_create_metaobjectdata<qt_meta_tag_ZN12QmlBookmarksE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QmlBookmarks",
        "created",
        "",
        "QmlBookmarkTreeNode*",
        "treeNode",
        "changed",
        "removed",
        "isBookmarked",
        "url",
        "rootItem",
        "toolbarFolder",
        "menuFolder",
        "unsortedFolder",
        "lastUsedFolder",
        "create",
        "QVariantMap",
        "map",
        "remove",
        "search",
        "QList<QObject*>",
        "update",
        "object",
        "changes",
        "get",
        "string",
        "getChildren"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'created'
        QtMocHelpers::SignalData<void(QmlBookmarkTreeNode *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'changed'
        QtMocHelpers::SignalData<void(QmlBookmarkTreeNode *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'removed'
        QtMocHelpers::SignalData<void(QmlBookmarkTreeNode *)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Method 'isBookmarked'
        QtMocHelpers::MethodData<bool(const QString &) const>(7, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 8 },
        }}),
        // Method 'rootItem'
        QtMocHelpers::MethodData<QmlBookmarkTreeNode *() const>(9, 2, QMC::AccessPublic, 0x80000000 | 3),
        // Method 'toolbarFolder'
        QtMocHelpers::MethodData<QmlBookmarkTreeNode *() const>(10, 2, QMC::AccessPublic, 0x80000000 | 3),
        // Method 'menuFolder'
        QtMocHelpers::MethodData<QmlBookmarkTreeNode *() const>(11, 2, QMC::AccessPublic, 0x80000000 | 3),
        // Method 'unsortedFolder'
        QtMocHelpers::MethodData<QmlBookmarkTreeNode *() const>(12, 2, QMC::AccessPublic, 0x80000000 | 3),
        // Method 'lastUsedFolder'
        QtMocHelpers::MethodData<QmlBookmarkTreeNode *() const>(13, 2, QMC::AccessPublic, 0x80000000 | 3),
        // Method 'create'
        QtMocHelpers::MethodData<bool(const QVariantMap &) const>(14, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Method 'remove'
        QtMocHelpers::MethodData<bool(QmlBookmarkTreeNode *) const>(17, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Method 'search'
        QtMocHelpers::MethodData<QList<QObject*>(const QVariantMap &) const>(18, 2, QMC::AccessPublic, 0x80000000 | 19, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Method 'update'
        QtMocHelpers::MethodData<bool(QObject *, const QVariantMap &) const>(20, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QObjectStar, 21 }, { 0x80000000 | 15, 22 },
        }}),
        // Method 'get'
        QtMocHelpers::MethodData<QmlBookmarkTreeNode *(const QString &) const>(23, 2, QMC::AccessPublic, 0x80000000 | 3, {{
            { QMetaType::QString, 24 },
        }}),
        // Method 'getChildren'
        QtMocHelpers::MethodData<QList<QObject*>(QObject *) const>(25, 2, QMC::AccessPublic, 0x80000000 | 19, {{
            { QMetaType::QObjectStar, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QmlBookmarks, qt_meta_tag_ZN12QmlBookmarksE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QmlBookmarks::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12QmlBookmarksE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12QmlBookmarksE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12QmlBookmarksE_t>.metaTypes,
    nullptr
} };

void QmlBookmarks::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QmlBookmarks *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->created((*reinterpret_cast<std::add_pointer_t<QmlBookmarkTreeNode*>>(_a[1]))); break;
        case 1: _t->changed((*reinterpret_cast<std::add_pointer_t<QmlBookmarkTreeNode*>>(_a[1]))); break;
        case 2: _t->removed((*reinterpret_cast<std::add_pointer_t<QmlBookmarkTreeNode*>>(_a[1]))); break;
        case 3: { bool _r = _t->isBookmarked((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 4: { QmlBookmarkTreeNode* _r = _t->rootItem();
            if (_a[0]) *reinterpret_cast<QmlBookmarkTreeNode**>(_a[0]) = std::move(_r); }  break;
        case 5: { QmlBookmarkTreeNode* _r = _t->toolbarFolder();
            if (_a[0]) *reinterpret_cast<QmlBookmarkTreeNode**>(_a[0]) = std::move(_r); }  break;
        case 6: { QmlBookmarkTreeNode* _r = _t->menuFolder();
            if (_a[0]) *reinterpret_cast<QmlBookmarkTreeNode**>(_a[0]) = std::move(_r); }  break;
        case 7: { QmlBookmarkTreeNode* _r = _t->unsortedFolder();
            if (_a[0]) *reinterpret_cast<QmlBookmarkTreeNode**>(_a[0]) = std::move(_r); }  break;
        case 8: { QmlBookmarkTreeNode* _r = _t->lastUsedFolder();
            if (_a[0]) *reinterpret_cast<QmlBookmarkTreeNode**>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->create((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->remove((*reinterpret_cast<std::add_pointer_t<QmlBookmarkTreeNode*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { QList<QObject*> _r = _t->search((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QList<QObject*>*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->update((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { QmlBookmarkTreeNode* _r = _t->get((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QmlBookmarkTreeNode**>(_a[0]) = std::move(_r); }  break;
        case 14: { QList<QObject*> _r = _t->getChildren((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QList<QObject*>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QmlBookmarkTreeNode* >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QmlBookmarkTreeNode* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QmlBookmarkTreeNode* >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QmlBookmarkTreeNode* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QmlBookmarks::*)(QmlBookmarkTreeNode * )>(_a, &QmlBookmarks::created, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QmlBookmarks::*)(QmlBookmarkTreeNode * )>(_a, &QmlBookmarks::changed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QmlBookmarks::*)(QmlBookmarkTreeNode * )>(_a, &QmlBookmarks::removed, 2))
            return;
    }
}

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

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

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

// SIGNAL 0
void QmlBookmarks::created(QmlBookmarkTreeNode * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void QmlBookmarks::changed(QmlBookmarkTreeNode * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void QmlBookmarks::removed(QmlBookmarkTreeNode * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
