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

#include "../../../../../../../../cxxqt/crates/idescriptor_rust_codebase/include/idescriptor_rust_codebase/src/afc2_services.cxxqt.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 'afc2_services.cxxqt.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN3CXX11Afc2BackendE_t {};
} // unnamed namespace

template <> constexpr inline auto CXX::Afc2Backend::qt_create_metaobjectdata<qt_meta_tag_ZN3CXX11Afc2BackendE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CXX::Afc2Backend",
        "check_is_dir_and_list_finished",
        "",
        "success",
        "QMap_QString_QVariant",
        "entries",
        "album_list_loaded",
        "udid",
        "QList_QString",
        "album_list",
        "set_udid",
        "load_album_list",
        "list_dir",
        "path",
        "file_to_buffer",
        "file_path",
        "is_directory",
        "get_file_size",
        "::std::int64_t",
        "read_file_range",
        "offset",
        "len",
        "check_is_dir_and_list",
        "get_dirs_item_count",
        "dir",
        "list_files_flat",
        "start_video_stream",
        "is_available",
        "delete_path"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'check_is_dir_and_list_finished'
        QtMocHelpers::SignalData<void(bool, QMap_QString_QVariant const &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 }, { 0x80000000 | 4, 5 },
        }}),
        // Signal 'album_list_loaded'
        QtMocHelpers::SignalData<void(QString, QList_QString)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 }, { 0x80000000 | 8, 9 },
        }}),
        // Method 'set_udid'
        QtMocHelpers::MethodData<void(QString const &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Method 'load_album_list'
        QtMocHelpers::MethodData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'list_dir'
        QtMocHelpers::MethodData<QList_QString(QString const &) const>(12, 2, QMC::AccessPublic, 0x80000000 | 8, {{
            { QMetaType::QString, 13 },
        }}),
        // Method 'file_to_buffer'
        QtMocHelpers::MethodData<QByteArray(QString const &) const>(14, 2, QMC::AccessPublic, QMetaType::QByteArray, {{
            { QMetaType::QString, 15 },
        }}),
        // Method 'is_directory'
        QtMocHelpers::MethodData<bool(QString const &) const>(16, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 13 },
        }}),
        // Method 'get_file_size'
        QtMocHelpers::MethodData<::std::int64_t(QString const &) const>(17, 2, QMC::AccessPublic, 0x80000000 | 18, {{
            { QMetaType::QString, 13 },
        }}),
        // Method 'read_file_range'
        QtMocHelpers::MethodData<QByteArray(QString const &, ::std::int64_t, ::std::int64_t) const>(19, 2, QMC::AccessPublic, QMetaType::QByteArray, {{
            { QMetaType::QString, 13 }, { 0x80000000 | 18, 20 }, { 0x80000000 | 18, 21 },
        }}),
        // Method 'check_is_dir_and_list'
        QtMocHelpers::MethodData<void(QString const &) const>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Method 'get_dirs_item_count'
        QtMocHelpers::MethodData<::std::int64_t(QList_QString const &) const>(23, 2, QMC::AccessPublic, 0x80000000 | 18, {{
            { 0x80000000 | 8, 24 },
        }}),
        // Method 'list_files_flat'
        QtMocHelpers::MethodData<QList_QString(QString const &) const>(25, 2, QMC::AccessPublic, 0x80000000 | 8, {{
            { QMetaType::QString, 24 },
        }}),
        // Method 'start_video_stream'
        QtMocHelpers::MethodData<QString(QString const &) const>(26, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 15 },
        }}),
        // Method 'is_available'
        QtMocHelpers::MethodData<bool() const>(27, 2, QMC::AccessPublic, QMetaType::Bool),
        // Method 'delete_path'
        QtMocHelpers::MethodData<bool(QString const &) const>(28, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Afc2Backend, qt_meta_tag_ZN3CXX11Afc2BackendE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CXX::Afc2Backend::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3CXX11Afc2BackendE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3CXX11Afc2BackendE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3CXX11Afc2BackendE_t>.metaTypes,
    nullptr
} };

void CXX::Afc2Backend::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Afc2Backend *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->check_is_dir_and_list_finished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QMap_QString_QVariant>>(_a[2]))); break;
        case 1: _t->album_list_loaded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QList_QString>>(_a[2]))); break;
        case 2: _t->set_udid((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->load_album_list(); break;
        case 4: { QList_QString _r = _t->list_dir((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QList_QString*>(_a[0]) = std::move(_r); }  break;
        case 5: { QByteArray _r = _t->file_to_buffer((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QByteArray*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->is_directory((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { ::std::int64_t _r = _t->get_file_size((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<::std::int64_t*>(_a[0]) = std::move(_r); }  break;
        case 8: { QByteArray _r = _t->read_file_range((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<::std::int64_t>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<::std::int64_t>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QByteArray*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->check_is_dir_and_list((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: { ::std::int64_t _r = _t->get_dirs_item_count((*reinterpret_cast<std::add_pointer_t<QList_QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<::std::int64_t*>(_a[0]) = std::move(_r); }  break;
        case 11: { QList_QString _r = _t->list_files_flat((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QList_QString*>(_a[0]) = std::move(_r); }  break;
        case 12: { QString _r = _t->start_video_stream((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->is_available();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->delete_path((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Afc2Backend::*)(bool , QMap_QString_QVariant const & )>(_a, &Afc2Backend::check_is_dir_and_list_finished, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Afc2Backend::*)(QString , QList_QString )>(_a, &Afc2Backend::album_list_loaded, 1))
            return;
    }
}

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

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

int CXX::Afc2Backend::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 15;
    }
    return _id;
}

// SIGNAL 0
void CXX::Afc2Backend::check_is_dir_and_list_finished(bool _t1, QMap_QString_QVariant const & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void CXX::Afc2Backend::album_list_loaded(QString _t1, QList_QString _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}
QT_WARNING_POP
