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

template <> constexpr inline auto MainAdaptor::qt_create_metaobjectdata<qt_meta_tag_ZN11MainAdaptorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MainAdaptor",
        "D-Bus Interface",
        "org.kde.ktimetracker.ktimetracker",
        "D-Bus Introspection",
        "  <interface name=\"org.kde.ktimetracker.ktimetracker\">\n    <met"
        "hod name=\"version\">\n      <arg direction=\"out\" type=\"s\"/>\n"
        "    </method>\n    <method name=\"taskIdsFromName\">\n      <arg d"
        "irection=\"out\" type=\"as\" name=\"out\"/>\n      <arg direction="
        "\"in\" type=\"s\" name=\"taskName\"/>\n      <annotation value=\"Q"
        "StringList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n    "
        "</method>\n    <method name=\"newTask\"/>\n    <method name=\"addT"
        "ask\">\n      <arg direction=\"in\" type=\"s\" name=\"taskName\"/>"
        "\n    </method>\n    <method name=\"addSubTask\">\n      <arg dire"
        "ction=\"in\" type=\"s\" name=\"taskName\"/>\n      <arg direction="
        "\"in\" type=\"s\" name=\"taskId\"/>\n    </method>\n    <method na"
        "me=\"deleteTask\">\n      <arg direction=\"in\" type=\"s\" name=\""
        "taskId\"/>\n    </method>\n    <method name=\"activeTasks\">\n    "
        "  <arg direction=\"out\" type=\"as\" name=\"out\"/>\n      <annota"
        "tion value=\"QStringList\" name=\"org.qtproject.QtDBus.QtTypeName."
        "Out0\"/>\n    </method>\n    <method name=\"setPercentComplete\">\n"
        "      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n      <a"
        "rg direction=\"in\" type=\"i\" name=\"perCent\"/>\n    </method>\n"
        "    <method name=\"bookTime\">\n      <arg direction=\"out\" type="
        "\"i\"/>\n      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
        "      <arg direction=\"in\" type=\"s\" name=\"dateTime\"/>\n      "
        "<arg direction=\"in\" type=\"i\" name=\"minutes\"/>\n    </method>"
        "\n    <method name=\"changeTime\">\n      <arg direction=\"out\" t"
        "ype=\"i\"/>\n      <arg direction=\"in\" type=\"s\" name=\"taskId\""
        "/>\n      <arg direction=\"in\" type=\"i\" name=\"minutes\"/>\n   "
        " </method>\n    <method name=\"error\">\n      <arg direction=\"ou"
        "t\" type=\"s\"/>\n      <arg direction=\"in\" type=\"i\" name=\"er"
        "rorCode\"/>\n    </method>\n    <method name=\"isIdleDetectionPoss"
        "ible\">\n      <arg direction=\"out\" type=\"b\"/>\n    </method>\n"
        "    <method name=\"totalMinutesForTaskId\">\n      <arg direction="
        "\"out\" type=\"i\"/>\n      <arg direction=\"in\" type=\"s\" name="
        "\"taskId\"/>\n    </method>\n    <method name=\"startTimerFor\">\n"
        "      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n    </me"
        "thod>\n    <method name=\"stopTimerFor\">\n      <arg direction=\""
        "in\" type=\"s\" name=\"taskId\"/>\n    </method>\n    <method name"
        "=\"startTimerForTaskName\">\n      <arg direction=\"in\" type=\"s\""
        " name=\"taskName\"/>\n      <arg direction=\"out\" type=\"b\"/>\n "
        "   </method>\n    <method name=\"stopTimerForTaskName\">\n      <a"
        "rg direction=\"in\" type=\"s\" name=\"taskName\"/>\n      <arg dir"
        "ection=\"out\" type=\"b\"/>\n    </method>\n    <method name=\"sta"
        "rtNewSession\"/>\n    <method name=\"stopAllTimersDBUS\"/>\n    <m"
        "ethod name=\"tasks\">\n      <arg direction=\"out\" type=\"as\" na"
        "me=\"out\"/>\n      <annotation value=\"QStringList\" name=\"org.q"
        "tproject.QtDBus.QtTypeName.Out0\"/>\n    </method>\n    <method na"
        "me=\"exportCSVFile\">\n      <arg direction=\"out\" type=\"s\"/>\n"
        "      <arg direction=\"in\" type=\"s\" name=\"filename\"/>\n      "
        "<arg direction=\"in\" type=\"s\" name=\"from\"/>\n      <arg direc"
        "tion=\"in\" type=\"s\" name=\"to\"/>\n      <arg direction=\"in\" "
        "type=\"i\" name=\"type\"/>\n      <arg direction=\"in\" type=\"b\""
        " name=\"decimalMinutes\"/>\n      <arg direction=\"in\" type=\"b\""
        " name=\"allTasks\"/>\n      <arg direction=\"in\" type=\"s\" name="
        "\"delimiter\"/>\n      <arg direction=\"in\" type=\"s\" name=\"quo"
        "te\"/>\n    </method>\n    <method name=\"importPlannerFile\">\n  "
        "    <arg direction=\"in\" type=\"s\" name=\"filename\"/>\n    </me"
        "thod>\n    <method name=\"isActive\">\n      <arg direction=\"out\""
        " type=\"b\"/>\n      <arg direction=\"in\" type=\"s\" name=\"taskI"
        "d\"/>\n    </method>\n    <method name=\"isTaskNameActive\">\n    "
        "  <arg direction=\"out\" type=\"b\"/>\n      <arg direction=\"in\""
        " type=\"s\" name=\"taskName\"/>\n    </method>\n    <method name=\""
        "saveAll\"/>\n    <method name=\"quit\"/>\n  </interface>\n",
        "activeTasks",
        "",
        "addSubTask",
        "taskName",
        "taskId",
        "addTask",
        "bookTime",
        "dateTime",
        "minutes",
        "changeTime",
        "deleteTask",
        "error",
        "errorCode",
        "exportCSVFile",
        "filename",
        "from",
        "to",
        "type",
        "decimalMinutes",
        "allTasks",
        "delimiter",
        "quote",
        "importPlannerFile",
        "isActive",
        "isIdleDetectionPossible",
        "isTaskNameActive",
        "newTask",
        "quit",
        "saveAll",
        "setPercentComplete",
        "perCent",
        "startNewSession",
        "startTimerFor",
        "startTimerForTaskName",
        "stopAllTimersDBUS",
        "stopTimerFor",
        "stopTimerForTaskName",
        "taskIdsFromName",
        "tasks",
        "totalMinutesForTaskId",
        "version"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'activeTasks'
        QtMocHelpers::SlotData<QStringList()>(5, 6, QMC::AccessPublic, QMetaType::QStringList),
        // Slot 'addSubTask'
        QtMocHelpers::SlotData<void(const QString &, const QString &)>(7, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 }, { QMetaType::QString, 9 },
        }}),
        // Slot 'addTask'
        QtMocHelpers::SlotData<void(const QString &)>(10, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'bookTime'
        QtMocHelpers::SlotData<int(const QString &, const QString &, int)>(11, 6, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 9 }, { QMetaType::QString, 12 }, { QMetaType::Int, 13 },
        }}),
        // Slot 'changeTime'
        QtMocHelpers::SlotData<int(const QString &, int)>(14, 6, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 9 }, { QMetaType::Int, 13 },
        }}),
        // Slot 'deleteTask'
        QtMocHelpers::SlotData<void(const QString &)>(15, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'error'
        QtMocHelpers::SlotData<QString(int)>(16, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::Int, 17 },
        }}),
        // Slot 'exportCSVFile'
        QtMocHelpers::SlotData<QString(const QString &, const QString &, const QString &, int, bool, bool, const QString &, const QString &)>(18, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 19 }, { QMetaType::QString, 20 }, { QMetaType::QString, 21 }, { QMetaType::Int, 22 },
            { QMetaType::Bool, 23 }, { QMetaType::Bool, 24 }, { QMetaType::QString, 25 }, { QMetaType::QString, 26 },
        }}),
        // Slot 'importPlannerFile'
        QtMocHelpers::SlotData<void(const QString &)>(27, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'isActive'
        QtMocHelpers::SlotData<bool(const QString &)>(28, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'isIdleDetectionPossible'
        QtMocHelpers::SlotData<bool()>(29, 6, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'isTaskNameActive'
        QtMocHelpers::SlotData<bool(const QString &)>(30, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'newTask'
        QtMocHelpers::SlotData<void()>(31, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'quit'
        QtMocHelpers::SlotData<void()>(32, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'saveAll'
        QtMocHelpers::SlotData<void()>(33, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setPercentComplete'
        QtMocHelpers::SlotData<void(const QString &, int)>(34, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 }, { QMetaType::Int, 35 },
        }}),
        // Slot 'startNewSession'
        QtMocHelpers::SlotData<void()>(36, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startTimerFor'
        QtMocHelpers::SlotData<void(const QString &)>(37, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'startTimerForTaskName'
        QtMocHelpers::SlotData<bool(const QString &)>(38, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'stopAllTimersDBUS'
        QtMocHelpers::SlotData<void()>(39, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stopTimerFor'
        QtMocHelpers::SlotData<void(const QString &)>(40, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'stopTimerForTaskName'
        QtMocHelpers::SlotData<bool(const QString &)>(41, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'taskIdsFromName'
        QtMocHelpers::SlotData<QStringList(const QString &)>(42, 6, QMC::AccessPublic, QMetaType::QStringList, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'tasks'
        QtMocHelpers::SlotData<QStringList()>(43, 6, QMC::AccessPublic, QMetaType::QStringList),
        // Slot 'totalMinutesForTaskId'
        QtMocHelpers::SlotData<int(const QString &)>(44, 6, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'version'
        QtMocHelpers::SlotData<QString()>(45, 6, QMC::AccessPublic, QMetaType::QString),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<MainAdaptor, qt_meta_tag_ZN11MainAdaptorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MainAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11MainAdaptorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11MainAdaptorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11MainAdaptorE_t>.metaTypes,
    nullptr
} };

void MainAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MainAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QStringList _r = _t->activeTasks();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 1: _t->addSubTask((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 2: _t->addTask((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: { int _r = _t->bookTime((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 4: { int _r = _t->changeTime((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->deleteTask((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: { QString _r = _t->error((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 7: { QString _r = _t->exportCSVFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[6])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[7])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[8])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->importPlannerFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: { bool _r = _t->isActive((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->isIdleDetectionPossible();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->isTaskNameActive((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: _t->newTask(); break;
        case 13: _t->quit(); break;
        case 14: _t->saveAll(); break;
        case 15: _t->setPercentComplete((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 16: _t->startNewSession(); break;
        case 17: _t->startTimerFor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 18: { bool _r = _t->startTimerForTaskName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 19: _t->stopAllTimersDBUS(); break;
        case 20: _t->stopTimerFor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 21: { bool _r = _t->stopTimerForTaskName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 22: { QStringList _r = _t->taskIdsFromName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 23: { QStringList _r = _t->tasks();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 24: { int _r = _t->totalMinutesForTaskId((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 25: { QString _r = _t->version();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

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

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