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

#include <memory>
#include "../../../../../noson-app/backend/NosonMediaScanner/mediascanner.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mediascanner.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_mediascanner__MediaScanner_t {
    QByteArrayData data[18];
    char stringdata0[201];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_mediascanner__MediaScanner_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_mediascanner__MediaScanner_t qt_meta_stringdata_mediascanner__MediaScanner = {
    {
QT_MOC_LITERAL(0, 0, 26), // "mediascanner::MediaScanner"
QT_MOC_LITERAL(1, 27, 17), // "emptyStateChanged"
QT_MOC_LITERAL(2, 45, 0), // ""
QT_MOC_LITERAL(3, 46, 14), // "workingChanged"
QT_MOC_LITERAL(4, 61, 3), // "put"
QT_MOC_LITERAL(5, 65, 26), // "mediascanner::MediaFilePtr"
QT_MOC_LITERAL(6, 92, 7), // "filePtr"
QT_MOC_LITERAL(7, 100, 6), // "remove"
QT_MOC_LITERAL(8, 107, 5), // "start"
QT_MOC_LITERAL(9, 113, 9), // "maxThread"
QT_MOC_LITERAL(10, 123, 5), // "debug"
QT_MOC_LITERAL(11, 129, 6), // "enable"
QT_MOC_LITERAL(12, 136, 11), // "addRootPath"
QT_MOC_LITERAL(13, 148, 7), // "dirPath"
QT_MOC_LITERAL(14, 156, 14), // "removeRootPath"
QT_MOC_LITERAL(15, 171, 10), // "clearRoots"
QT_MOC_LITERAL(16, 182, 10), // "emptyState"
QT_MOC_LITERAL(17, 193, 7) // "working"

    },
    "mediascanner::MediaScanner\0emptyStateChanged\0"
    "\0workingChanged\0put\0mediascanner::MediaFilePtr\0"
    "filePtr\0remove\0start\0maxThread\0debug\0"
    "enable\0addRootPath\0dirPath\0removeRootPath\0"
    "clearRoots\0emptyState\0working"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_mediascanner__MediaScanner[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      10,   14, // methods
       2,   86, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   64,    2, 0x06 /* Public */,
       3,    0,   65,    2, 0x06 /* Public */,
       4,    1,   66,    2, 0x06 /* Public */,
       7,    1,   69,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       8,    1,   72,    2, 0x02 /* Public */,
       8,    0,   75,    2, 0x22 /* Public | MethodCloned */,
      10,    1,   76,    2, 0x02 /* Public */,
      12,    1,   79,    2, 0x02 /* Public */,
      14,    1,   82,    2, 0x02 /* Public */,
      15,    0,   85,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, 0x80000000 | 5,    6,

 // methods: parameters
    QMetaType::Void, QMetaType::Int,    9,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Bool, QMetaType::QString,   13,
    QMetaType::Bool, QMetaType::QString,   13,
    QMetaType::Void,

 // properties: name, type, flags
      16, QMetaType::Bool, 0x00495001,
      17, QMetaType::Bool, 0x00495001,

 // properties: notify_signal_id
       0,
       1,

       0        // eod
};

void mediascanner::MediaScanner::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MediaScanner *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->emptyStateChanged(); break;
        case 1: _t->workingChanged(); break;
        case 2: _t->put((*reinterpret_cast< mediascanner::MediaFilePtr(*)>(_a[1]))); break;
        case 3: _t->remove((*reinterpret_cast< mediascanner::MediaFilePtr(*)>(_a[1]))); break;
        case 4: _t->start((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->start(); break;
        case 6: _t->debug((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: { bool _r = _t->addRootPath((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->removeRootPath((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->clearRoots(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< mediascanner::MediaFilePtr >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< mediascanner::MediaFilePtr >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MediaScanner::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaScanner::emptyStateChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (MediaScanner::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaScanner::workingChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (MediaScanner::*)(mediascanner::MediaFilePtr );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaScanner::put)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (MediaScanner::*)(mediascanner::MediaFilePtr );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MediaScanner::remove)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<MediaScanner *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->emptyState(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->working(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject mediascanner::MediaScanner::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_mediascanner__MediaScanner.data,
    qt_meta_data_mediascanner__MediaScanner,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *mediascanner::MediaScanner::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_mediascanner__MediaScanner.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int mediascanner::MediaScanner::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 < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void mediascanner::MediaScanner::emptyStateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void mediascanner::MediaScanner::workingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void mediascanner::MediaScanner::put(mediascanner::MediaFilePtr _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void mediascanner::MediaScanner::remove(mediascanner::MediaFilePtr _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
