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

#include "../../../../src/kid3-3.4.4/src/core/import/batchimporter.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'batchimporter.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. 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
struct qt_meta_stringdata_BatchImporter_t {
    QByteArrayData data[31];
    char stringdata0[353];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_BatchImporter_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_BatchImporter_t qt_meta_stringdata_BatchImporter = {
    {
QT_MOC_LITERAL(0, 0, 13), // "BatchImporter"
QT_MOC_LITERAL(1, 14, 17), // "reportImportEvent"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 4), // "type"
QT_MOC_LITERAL(4, 38, 4), // "text"
QT_MOC_LITERAL(5, 43, 8), // "finished"
QT_MOC_LITERAL(6, 52, 5), // "abort"
QT_MOC_LITERAL(7, 58, 14), // "onFindFinished"
QT_MOC_LITERAL(8, 73, 9), // "searchStr"
QT_MOC_LITERAL(9, 83, 14), // "onFindProgress"
QT_MOC_LITERAL(10, 98, 4), // "step"
QT_MOC_LITERAL(11, 103, 5), // "total"
QT_MOC_LITERAL(12, 109, 15), // "onAlbumFinished"
QT_MOC_LITERAL(13, 125, 8), // "albumStr"
QT_MOC_LITERAL(14, 134, 15), // "onAlbumProgress"
QT_MOC_LITERAL(15, 150, 17), // "onImageDownloaded"
QT_MOC_LITERAL(16, 168, 4), // "data"
QT_MOC_LITERAL(17, 173, 8), // "mimeType"
QT_MOC_LITERAL(18, 182, 3), // "url"
QT_MOC_LITERAL(19, 186, 15), // "ImportEventType"
QT_MOC_LITERAL(20, 202, 16), // "ReadingDirectory"
QT_MOC_LITERAL(21, 219, 7), // "Started"
QT_MOC_LITERAL(22, 227, 14), // "SourceSelected"
QT_MOC_LITERAL(23, 242, 17), // "QueryingAlbumList"
QT_MOC_LITERAL(24, 260, 17), // "FetchingTrackList"
QT_MOC_LITERAL(25, 278, 17), // "TrackListReceived"
QT_MOC_LITERAL(26, 296, 16), // "FetchingCoverArt"
QT_MOC_LITERAL(27, 313, 16), // "CoverArtReceived"
QT_MOC_LITERAL(28, 330, 8), // "Finished"
QT_MOC_LITERAL(29, 339, 7), // "Aborted"
QT_MOC_LITERAL(30, 347, 5) // "Error"

    },
    "BatchImporter\0reportImportEvent\0\0type\0"
    "text\0finished\0abort\0onFindFinished\0"
    "searchStr\0onFindProgress\0step\0total\0"
    "onAlbumFinished\0albumStr\0onAlbumProgress\0"
    "onImageDownloaded\0data\0mimeType\0url\0"
    "ImportEventType\0ReadingDirectory\0"
    "Started\0SourceSelected\0QueryingAlbumList\0"
    "FetchingTrackList\0TrackListReceived\0"
    "FetchingCoverArt\0CoverArtReceived\0"
    "Finished\0Aborted\0Error"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_BatchImporter[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       0,    0, // properties
       1,   88, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,   54,    2, 0x06 /* Public */,
       5,    0,   59,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   60,    2, 0x0a /* Public */,
       7,    1,   61,    2, 0x08 /* Private */,
       9,    3,   64,    2, 0x08 /* Private */,
      12,    1,   71,    2, 0x08 /* Private */,
      14,    3,   74,    2, 0x08 /* Private */,
      15,    3,   81,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    3,    4,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QByteArray,    8,
    QMetaType::Void, QMetaType::QString, QMetaType::Int, QMetaType::Int,    4,   10,   11,
    QMetaType::Void, QMetaType::QByteArray,   13,
    QMetaType::Void, QMetaType::QString, QMetaType::Int, QMetaType::Int,    4,   10,   11,
    QMetaType::Void, QMetaType::QByteArray, QMetaType::QString, QMetaType::QString,   16,   17,   18,

 // enums: name, flags, count, data
      19, 0x0,   11,   92,

 // enum data: key, value
      20, uint(BatchImporter::ReadingDirectory),
      21, uint(BatchImporter::Started),
      22, uint(BatchImporter::SourceSelected),
      23, uint(BatchImporter::QueryingAlbumList),
      24, uint(BatchImporter::FetchingTrackList),
      25, uint(BatchImporter::TrackListReceived),
      26, uint(BatchImporter::FetchingCoverArt),
      27, uint(BatchImporter::CoverArtReceived),
      28, uint(BatchImporter::Finished),
      29, uint(BatchImporter::Aborted),
      30, uint(BatchImporter::Error),

       0        // eod
};

void BatchImporter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        BatchImporter *_t = static_cast<BatchImporter *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->reportImportEvent((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 1: _t->finished(); break;
        case 2: _t->abort(); break;
        case 3: _t->onFindFinished((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 4: _t->onFindProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 5: _t->onAlbumFinished((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 6: _t->onAlbumProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 7: _t->onImageDownloaded((*reinterpret_cast< const QByteArray(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (BatchImporter::*_t)(int , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BatchImporter::reportImportEvent)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (BatchImporter::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&BatchImporter::finished)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject BatchImporter::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_BatchImporter.data,
      qt_meta_data_BatchImporter,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *BatchImporter::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_BatchImporter.stringdata0))
        return static_cast<void*>(const_cast< BatchImporter*>(this));
    if (!strcmp(_clname, "IAbortable"))
        return static_cast< IAbortable*>(const_cast< BatchImporter*>(this));
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void BatchImporter::reportImportEvent(int _t1, const QString & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void BatchImporter::finished()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
