/****************************************************************************
** Meta object code from reading C++ file 'krusader.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 "../../../../krusader-2.9.0/app/krusader.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 'krusader.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_ZN8KrusaderE_t {};
} // unnamed namespace

template <> constexpr inline auto Krusader::qt_create_metaobjectdata<qt_meta_tag_ZN8KrusaderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Krusader",
        "D-Bus Interface",
        "org.krusader.Instance",
        "changeMessage",
        "",
        "shutdown",
        "quit",
        "moveToTop",
        "statusBarUpdate",
        "mess",
        "saveSettings",
        "savePosition",
        "updateUserActions",
        "doOpenUrl",
        "slotGotNewStartup",
        "KStartupInfoId",
        "id",
        "KStartupInfoData",
        "data",
        "slotGotRemoveStartup",
        "isRunning",
        "isLeftActive",
        "openUrl",
        "url"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'changeMessage'
        QtMocHelpers::SignalData<void(QString)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'shutdown'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'quit'
        QtMocHelpers::SlotData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'moveToTop'
        QtMocHelpers::SlotData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'statusBarUpdate'
        QtMocHelpers::SlotData<void(const QString &)>(8, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'saveSettings'
        QtMocHelpers::SlotData<void()>(10, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'savePosition'
        QtMocHelpers::SlotData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateUserActions'
        QtMocHelpers::SlotData<void()>(12, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'doOpenUrl'
        QtMocHelpers::SlotData<void()>(13, 4, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotGotNewStartup'
        QtMocHelpers::SlotData<void(const KStartupInfoId &, const KStartupInfoData &)>(14, 4, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { 0x80000000 | 17, 18 },
        }}),
        // Slot 'slotGotRemoveStartup'
        QtMocHelpers::SlotData<void(const KStartupInfoId &, const KStartupInfoData &)>(19, 4, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 15, 16 }, { 0x80000000 | 17, 18 },
        }}),
        // Slot 'isRunning'
        QtMocHelpers::SlotData<bool()>(20, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Bool),
        // Slot 'isLeftActive'
        QtMocHelpers::SlotData<bool()>(21, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Bool),
        // Slot 'openUrl'
        QtMocHelpers::SlotData<bool(QString)>(22, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Bool, {{
            { QMetaType::QString, 23 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<Krusader, qt_meta_tag_ZN8KrusaderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Krusader::staticMetaObject = { {
    QMetaObject::SuperData::link<KParts::MainWindow::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8KrusaderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8KrusaderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8KrusaderE_t>.metaTypes,
    nullptr
} };

void Krusader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Krusader *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->changeMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->shutdown(); break;
        case 2: _t->quit(); break;
        case 3: _t->moveToTop(); break;
        case 4: _t->statusBarUpdate((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->saveSettings(); break;
        case 6: _t->savePosition(); break;
        case 7: _t->updateUserActions(); break;
        case 8: _t->doOpenUrl(); break;
        case 9: _t->slotGotNewStartup((*reinterpret_cast<std::add_pointer_t<KStartupInfoId>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<KStartupInfoData>>(_a[2]))); break;
        case 10: _t->slotGotRemoveStartup((*reinterpret_cast<std::add_pointer_t<KStartupInfoId>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<KStartupInfoData>>(_a[2]))); break;
        case 11: { bool _r = _t->isRunning();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->isLeftActive();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->openUrl((*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 (Krusader::*)(QString )>(_a, &Krusader::changeMessage, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Krusader::*)()>(_a, &Krusader::shutdown, 1))
            return;
    }
}

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

void *Krusader::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8KrusaderE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "KrMainWindow"))
        return static_cast< KrMainWindow*>(this);
    return KParts::MainWindow::qt_metacast(_clname);
}

int Krusader::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KParts::MainWindow::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 14;
    }
    return _id;
}

// SIGNAL 0
void Krusader::changeMessage(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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