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

#include "../../../../../kdeconnect-kde-26.04.2/plugins/sftp/sftpplugin.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 'sftpplugin.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN10SftpPluginE_t {};
} // unnamed namespace

template <> constexpr inline auto SftpPlugin::qt_create_metaobjectdata<qt_meta_tag_ZN10SftpPluginE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SftpPlugin",
        "D-Bus Interface",
        "org.kde.kdeconnect.device.sftp",
        "mounted",
        "",
        "unmounted",
        "onMounted",
        "onUnmounted",
        "onFailed",
        "message",
        "startBrowsing",
        "mount",
        "unmount",
        "mountAndWait",
        "isMounted",
        "getMountError",
        "mountPoint",
        "getDirectories",
        "QVariantMap"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'mounted'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void),
        // Signal 'unmounted'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void),
        // Slot 'onMounted'
        QtMocHelpers::SlotData<void()>(6, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onUnmounted'
        QtMocHelpers::SlotData<void()>(7, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onFailed'
        QtMocHelpers::SlotData<void(const QString &)>(8, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Method 'startBrowsing'
        QtMocHelpers::MethodData<bool()>(10, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Bool),
        // Method 'mount'
        QtMocHelpers::MethodData<void()>(11, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void),
        // Method 'unmount'
        QtMocHelpers::MethodData<void()>(12, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void),
        // Method 'mountAndWait'
        QtMocHelpers::MethodData<bool()>(13, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Bool),
        // Method 'isMounted'
        QtMocHelpers::MethodData<bool() const>(14, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Bool),
        // Method 'getMountError'
        QtMocHelpers::MethodData<QString()>(15, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::QString),
        // Method 'mountPoint'
        QtMocHelpers::MethodData<QString()>(16, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::QString),
        // Method 'getDirectories'
        QtMocHelpers::MethodData<QVariantMap()>(17, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 18),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<SftpPlugin, qt_meta_tag_ZN10SftpPluginE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject SftpPlugin::staticMetaObject = { {
    QMetaObject::SuperData::link<KdeConnectPlugin::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10SftpPluginE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10SftpPluginE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10SftpPluginE_t>.metaTypes,
    nullptr
} };

void SftpPlugin::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SftpPlugin *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->mounted(); break;
        case 1: _t->unmounted(); break;
        case 2: _t->onMounted(); break;
        case 3: _t->onUnmounted(); break;
        case 4: _t->onFailed((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: { bool _r = _t->startBrowsing();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->mount(); break;
        case 7: _t->unmount(); break;
        case 8: { bool _r = _t->mountAndWait();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->isMounted();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { QString _r = _t->getMountError();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 11: { QString _r = _t->mountPoint();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 12: { QVariantMap _r = _t->getDirectories();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SftpPlugin::*)()>(_a, &SftpPlugin::mounted, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SftpPlugin::*)()>(_a, &SftpPlugin::unmounted, 1))
            return;
    }
}

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

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

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

// SIGNAL 0
void SftpPlugin::mounted()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void SftpPlugin::unmounted()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
