/****************************************************************************
** Meta object code from reading C++ file 'sharemanager.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 "../../../../../ownCloud-6.0.3.18040/src/gui/sharemanager.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QSharedPointer>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'sharemanager.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_ZN3OCC5ShareE_t {};
} // unnamed namespace

template <> constexpr inline auto OCC::Share::qt_create_metaobjectdata<qt_meta_tag_ZN3OCC5ShareE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OCC::Share",
        "permissionsSet",
        "",
        "shareDeleted",
        "serverError",
        "code",
        "message",
        "ShareType",
        "TypeUser",
        "TypeGroup",
        "TypeLink",
        "TypeRemote"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'permissionsSet'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'shareDeleted'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'serverError'
        QtMocHelpers::SignalData<void(int, const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 5 }, { QMetaType::QString, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ShareType'
        QtMocHelpers::EnumData<enum ShareType>(7, 7, QMC::EnumFlags{}).add({
            {    8, ShareType::TypeUser },
            {    9, ShareType::TypeGroup },
            {   10, ShareType::TypeLink },
            {   11, ShareType::TypeRemote },
        }),
    };
    return QtMocHelpers::metaObjectData<Share, qt_meta_tag_ZN3OCC5ShareE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OCC::Share::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC5ShareE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC5ShareE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3OCC5ShareE_t>.metaTypes,
    nullptr
} };

void OCC::Share::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Share *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->permissionsSet(); break;
        case 1: _t->shareDeleted(); break;
        case 2: _t->serverError((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Share::*)()>(_a, &Share::permissionsSet, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Share::*)()>(_a, &Share::shareDeleted, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Share::*)(int , const QString & )>(_a, &Share::serverError, 2))
            return;
    }
}

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

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

int OCC::Share::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 < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void OCC::Share::permissionsSet()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void OCC::Share::shareDeleted()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void OCC::Share::serverError(int _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}
namespace {
struct qt_meta_tag_ZN3OCC9LinkShareE_t {};
} // unnamed namespace

template <> constexpr inline auto OCC::LinkShare::qt_create_metaobjectdata<qt_meta_tag_ZN3OCC9LinkShareE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OCC::LinkShare",
        "expireDateSet",
        "",
        "passwordSet",
        "passwordSetError",
        "statusCode",
        "message",
        "nameSet"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'expireDateSet'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'passwordSet'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'passwordSetError'
        QtMocHelpers::SignalData<void(int, const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 5 }, { QMetaType::QString, 6 },
        }}),
        // Signal 'nameSet'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<LinkShare, qt_meta_tag_ZN3OCC9LinkShareE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OCC::LinkShare::staticMetaObject = { {
    QMetaObject::SuperData::link<Share::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC9LinkShareE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC9LinkShareE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3OCC9LinkShareE_t>.metaTypes,
    nullptr
} };

void OCC::LinkShare::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<LinkShare *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->expireDateSet(); break;
        case 1: _t->passwordSet(); break;
        case 2: _t->passwordSetError((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 3: _t->nameSet(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (LinkShare::*)()>(_a, &LinkShare::expireDateSet, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (LinkShare::*)()>(_a, &LinkShare::passwordSet, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (LinkShare::*)(int , const QString & )>(_a, &LinkShare::passwordSetError, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (LinkShare::*)()>(_a, &LinkShare::nameSet, 3))
            return;
    }
}

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

void *OCC::LinkShare::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC9LinkShareE_t>.strings))
        return static_cast<void*>(this);
    return Share::qt_metacast(_clname);
}

int OCC::LinkShare::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Share::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void OCC::LinkShare::expireDateSet()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void OCC::LinkShare::passwordSet()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void OCC::LinkShare::passwordSetError(int _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void OCC::LinkShare::nameSet()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
namespace {
struct qt_meta_tag_ZN3OCC12ShareManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto OCC::ShareManager::qt_create_metaobjectdata<qt_meta_tag_ZN3OCC12ShareManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OCC::ShareManager",
        "shareCreated",
        "",
        "QSharedPointer<Share>",
        "share",
        "linkShareCreated",
        "QSharedPointer<LinkShare>",
        "sharesFetched",
        "QList<QSharedPointer<Share>>",
        "shares",
        "serverError",
        "code",
        "message",
        "linkShareCreationForbidden"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'shareCreated'
        QtMocHelpers::SignalData<void(const QSharedPointer<Share> &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'linkShareCreated'
        QtMocHelpers::SignalData<void(const QSharedPointer<LinkShare> &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 4 },
        }}),
        // Signal 'sharesFetched'
        QtMocHelpers::SignalData<void(const QList<QSharedPointer<Share>> &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'serverError'
        QtMocHelpers::SignalData<void(int, const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 11 }, { QMetaType::QString, 12 },
        }}),
        // Signal 'linkShareCreationForbidden'
        QtMocHelpers::SignalData<void(const QString &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ShareManager, qt_meta_tag_ZN3OCC12ShareManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OCC::ShareManager::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC12ShareManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3OCC12ShareManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3OCC12ShareManagerE_t>.metaTypes,
    nullptr
} };

void OCC::ShareManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ShareManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->shareCreated((*reinterpret_cast<std::add_pointer_t<QSharedPointer<Share>>>(_a[1]))); break;
        case 1: _t->linkShareCreated((*reinterpret_cast<std::add_pointer_t<QSharedPointer<LinkShare>>>(_a[1]))); break;
        case 2: _t->sharesFetched((*reinterpret_cast<std::add_pointer_t<QList<QSharedPointer<Share>>>>(_a[1]))); break;
        case 3: _t->serverError((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 4: _t->linkShareCreationForbidden((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); 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< QSharedPointer<Share> >(); 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< QSharedPointer<LinkShare> >(); 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< QList<QSharedPointer<Share>> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ShareManager::*)(const QSharedPointer<Share> & )>(_a, &ShareManager::shareCreated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ShareManager::*)(const QSharedPointer<LinkShare> & )>(_a, &ShareManager::linkShareCreated, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ShareManager::*)(const QList<QSharedPointer<Share>> & )>(_a, &ShareManager::sharesFetched, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ShareManager::*)(int , const QString & )>(_a, &ShareManager::serverError, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ShareManager::*)(const QString & )>(_a, &ShareManager::linkShareCreationForbidden, 4))
            return;
    }
}

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

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

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

// SIGNAL 0
void OCC::ShareManager::shareCreated(const QSharedPointer<Share> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void OCC::ShareManager::linkShareCreated(const QSharedPointer<LinkShare> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void OCC::ShareManager::sharesFetched(const QList<QSharedPointer<Share>> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void OCC::ShareManager::serverError(int _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void OCC::ShareManager::linkShareCreationForbidden(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
