/****************************************************************************
** Meta object code from reading C++ file 'taskview.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 "../../../../ktimetracker-6.0.0/src/base/taskview.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


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

template <> constexpr inline auto TaskView::qt_create_metaobjectdata<qt_meta_tag_ZN8TaskViewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TaskView",
        "updateButtons",
        "",
        "timersActive",
        "timersInactive",
        "tasksChanged",
        "QList<Task*>",
        "activeTasks",
        "minutesUpdated",
        "setStatusBarText",
        "text",
        "contextMenuRequested",
        "QPoint",
        "save",
        "startCurrentTimer",
        "stopCurrentTimer",
        "stopAllTimers",
        "when",
        "toggleFocusTracking",
        "newTask",
        "caption",
        "Task*",
        "parent",
        "importPlanner",
        "fileName",
        "newSubTask",
        "editTask",
        "storage",
        "TimeTrackerStorage*",
        "deleteTaskBatch",
        "task",
        "deleteTask",
        "setPerCentComplete",
        "completion",
        "markTaskAsComplete",
        "markTaskAsIncomplete",
        "subtractTime",
        "int64_t",
        "minutes",
        "taskAboutToBeRemoved",
        "QModelIndex",
        "first",
        "last",
        "taskRemoved",
        "startTimerFor",
        "startTime",
        "startTimerForNow",
        "stopTimerFor",
        "reconfigureModel",
        "reFreshTimes",
        "onTaskDoubleClicked",
        "editTaskTime",
        "taskUid",
        "minuteUpdate",
        "newFocusWindowDetected",
        "slotColumnToggled"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'updateButtons'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'timersActive'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'timersInactive'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'tasksChanged'
        QtMocHelpers::SignalData<void(const QList<Task*> &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Signal 'minutesUpdated'
        QtMocHelpers::SignalData<void(const QList<Task*> &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Signal 'setStatusBarText'
        QtMocHelpers::SignalData<void(const QString &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Signal 'contextMenuRequested'
        QtMocHelpers::SignalData<void(const QPoint &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 2 },
        }}),
        // Slot 'save'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startCurrentTimer'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stopCurrentTimer'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stopAllTimers'
        QtMocHelpers::SlotData<void(const QDateTime &)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QDateTime, 17 },
        }}),
        // Slot 'stopAllTimers'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'toggleFocusTracking'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'newTask'
        QtMocHelpers::SlotData<void(const QString &, Task *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 }, { 0x80000000 | 21, 22 },
        }}),
        // Slot 'importPlanner'
        QtMocHelpers::SlotData<void(const QString &)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 24 },
        }}),
        // Slot 'newSubTask'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'editTask'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'storage'
        QtMocHelpers::SlotData<TimeTrackerStorage *()>(27, 2, QMC::AccessPublic, 0x80000000 | 28),
        // Slot 'deleteTaskBatch'
        QtMocHelpers::SlotData<void(Task *)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 30 },
        }}),
        // Slot 'deleteTask'
        QtMocHelpers::SlotData<void(Task *)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 30 },
        }}),
        // Slot 'deleteTask'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'setPerCentComplete'
        QtMocHelpers::SlotData<void(int)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 33 },
        }}),
        // Slot 'markTaskAsComplete'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'markTaskAsIncomplete'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'subtractTime'
        QtMocHelpers::SlotData<void(int64_t)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 37, 38 },
        }}),
        // Slot 'taskAboutToBeRemoved'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(39, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 40, 22 }, { QMetaType::Int, 41 }, { QMetaType::Int, 42 },
        }}),
        // Slot 'taskRemoved'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(43, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 40, 22 }, { QMetaType::Int, 41 }, { QMetaType::Int, 42 },
        }}),
        // Slot 'startTimerFor'
        QtMocHelpers::SlotData<void(Task *, const QDateTime &)>(44, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 30 }, { QMetaType::QDateTime, 45 },
        }}),
        // Slot 'startTimerForNow'
        QtMocHelpers::SlotData<void(Task *)>(46, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 30 },
        }}),
        // Slot 'stopTimerFor'
        QtMocHelpers::SlotData<void(Task *)>(47, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 30 },
        }}),
        // Slot 'reconfigureModel'
        QtMocHelpers::SlotData<void()>(48, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'reFreshTimes'
        QtMocHelpers::SlotData<QString()>(49, 2, QMC::AccessPublic, QMetaType::QString),
        // Slot 'onTaskDoubleClicked'
        QtMocHelpers::SlotData<void(Task *)>(50, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 30 },
        }}),
        // Slot 'editTaskTime'
        QtMocHelpers::SlotData<void(const QString &, int64_t)>(51, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 52 }, { 0x80000000 | 37, 38 },
        }}),
        // Slot 'minuteUpdate'
        QtMocHelpers::SlotData<void()>(53, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'newFocusWindowDetected'
        QtMocHelpers::SlotData<void(const QString &)>(54, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'slotColumnToggled'
        QtMocHelpers::SlotData<void(int)>(55, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TaskView, qt_meta_tag_ZN8TaskViewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TaskView::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8TaskViewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8TaskViewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8TaskViewE_t>.metaTypes,
    nullptr
} };

void TaskView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TaskView *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updateButtons(); break;
        case 1: _t->timersActive(); break;
        case 2: _t->timersInactive(); break;
        case 3: _t->tasksChanged((*reinterpret_cast<std::add_pointer_t<QList<Task*>>>(_a[1]))); break;
        case 4: _t->minutesUpdated((*reinterpret_cast<std::add_pointer_t<QList<Task*>>>(_a[1]))); break;
        case 5: _t->setStatusBarText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->contextMenuRequested((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 7: _t->save(); break;
        case 8: _t->startCurrentTimer(); break;
        case 9: _t->stopCurrentTimer(); break;
        case 10: _t->stopAllTimers((*reinterpret_cast<std::add_pointer_t<QDateTime>>(_a[1]))); break;
        case 11: _t->stopAllTimers(); break;
        case 12: _t->toggleFocusTracking(); break;
        case 13: _t->newTask((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Task*>>(_a[2]))); break;
        case 14: _t->importPlanner((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 15: _t->newSubTask(); break;
        case 16: _t->editTask(); break;
        case 17: { TimeTrackerStorage* _r = _t->storage();
            if (_a[0]) *reinterpret_cast<TimeTrackerStorage**>(_a[0]) = std::move(_r); }  break;
        case 18: _t->deleteTaskBatch((*reinterpret_cast<std::add_pointer_t<Task*>>(_a[1]))); break;
        case 19: _t->deleteTask((*reinterpret_cast<std::add_pointer_t<Task*>>(_a[1]))); break;
        case 20: _t->deleteTask(); break;
        case 21: _t->setPerCentComplete((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 22: _t->markTaskAsComplete(); break;
        case 23: _t->markTaskAsIncomplete(); break;
        case 24: _t->subtractTime((*reinterpret_cast<std::add_pointer_t<int64_t>>(_a[1]))); break;
        case 25: _t->taskAboutToBeRemoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 26: _t->taskRemoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 27: _t->startTimerFor((*reinterpret_cast<std::add_pointer_t<Task*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QDateTime>>(_a[2]))); break;
        case 28: _t->startTimerForNow((*reinterpret_cast<std::add_pointer_t<Task*>>(_a[1]))); break;
        case 29: _t->stopTimerFor((*reinterpret_cast<std::add_pointer_t<Task*>>(_a[1]))); break;
        case 30: _t->reconfigureModel(); break;
        case 31: { QString _r = _t->reFreshTimes();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 32: _t->onTaskDoubleClicked((*reinterpret_cast<std::add_pointer_t<Task*>>(_a[1]))); break;
        case 33: _t->editTaskTime((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int64_t>>(_a[2]))); break;
        case 34: _t->minuteUpdate(); break;
        case 35: _t->newFocusWindowDetected((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 36: _t->slotColumnToggled((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TaskView::*)()>(_a, &TaskView::updateButtons, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (TaskView::*)()>(_a, &TaskView::timersActive, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (TaskView::*)()>(_a, &TaskView::timersInactive, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (TaskView::*)(const QList<Task*> & )>(_a, &TaskView::tasksChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (TaskView::*)(const QList<Task*> & )>(_a, &TaskView::minutesUpdated, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (TaskView::*)(const QString & )>(_a, &TaskView::setStatusBarText, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (TaskView::*)(const QPoint & )>(_a, &TaskView::contextMenuRequested, 6))
            return;
    }
}

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

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

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

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

// SIGNAL 1
void TaskView::timersActive()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void TaskView::timersInactive()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void TaskView::tasksChanged(const QList<Task*> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void TaskView::minutesUpdated(const QList<Task*> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void TaskView::setStatusBarText(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void TaskView::contextMenuRequested(const QPoint & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
