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

#include <memory>
#include "../../../chewing-editor-0.1.2/src/model/UserphraseModel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'UserphraseModel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.17. 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_UserphraseModel_t {
    QByteArrayData data[32];
    char stringdata0[404];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_UserphraseModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_UserphraseModel_t qt_meta_stringdata_UserphraseModel = {
    {
QT_MOC_LITERAL(0, 0, 15), // "UserphraseModel"
QT_MOC_LITERAL(1, 16, 15), // "importCompleted"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 6), // "result"
QT_MOC_LITERAL(4, 40, 4), // "file"
QT_MOC_LITERAL(5, 45, 6), // "size_t"
QT_MOC_LITERAL(6, 52, 8), // "imported"
QT_MOC_LITERAL(7, 61, 5), // "total"
QT_MOC_LITERAL(8, 67, 15), // "exportCompleted"
QT_MOC_LITERAL(9, 83, 8), // "exported"
QT_MOC_LITERAL(10, 92, 21), // "addNewPhraseCompleted"
QT_MOC_LITERAL(11, 114, 10), // "Userphrase"
QT_MOC_LITERAL(12, 125, 10), // "userphrase"
QT_MOC_LITERAL(13, 136, 21), // "removePhraseCompleted"
QT_MOC_LITERAL(14, 158, 5), // "count"
QT_MOC_LITERAL(15, 164, 16), // "refreshCompleted"
QT_MOC_LITERAL(16, 181, 18), // "addNewPhraseFailed"
QT_MOC_LITERAL(17, 200, 13), // "undoCompleted"
QT_MOC_LITERAL(18, 214, 6), // "phrase"
QT_MOC_LITERAL(19, 221, 7), // "refresh"
QT_MOC_LITERAL(20, 229, 3), // "add"
QT_MOC_LITERAL(21, 233, 8), // "bopomofo"
QT_MOC_LITERAL(22, 242, 16), // "importUserphrase"
QT_MOC_LITERAL(23, 259, 35), // "std::shared_ptr<UserphraseImp..."
QT_MOC_LITERAL(24, 295, 8), // "importer"
QT_MOC_LITERAL(25, 304, 16), // "exportUserphrase"
QT_MOC_LITERAL(26, 321, 35), // "std::shared_ptr<UserphraseExp..."
QT_MOC_LITERAL(27, 357, 8), // "exporter"
QT_MOC_LITERAL(28, 366, 6), // "remove"
QT_MOC_LITERAL(29, 373, 15), // "QModelIndexList"
QT_MOC_LITERAL(30, 389, 9), // "indexList"
QT_MOC_LITERAL(31, 399, 4) // "undo"

    },
    "UserphraseModel\0importCompleted\0\0"
    "result\0file\0size_t\0imported\0total\0"
    "exportCompleted\0exported\0addNewPhraseCompleted\0"
    "Userphrase\0userphrase\0removePhraseCompleted\0"
    "count\0refreshCompleted\0addNewPhraseFailed\0"
    "undoCompleted\0phrase\0refresh\0add\0"
    "bopomofo\0importUserphrase\0"
    "std::shared_ptr<UserphraseImporter>\0"
    "importer\0exportUserphrase\0"
    "std::shared_ptr<UserphraseExporter>\0"
    "exporter\0remove\0QModelIndexList\0"
    "indexList\0undo"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_UserphraseModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    4,   79,    2, 0x06 /* Public */,
       8,    3,   88,    2, 0x06 /* Public */,
      10,    1,   95,    2, 0x06 /* Public */,
      13,    1,   98,    2, 0x06 /* Public */,
      15,    1,  101,    2, 0x06 /* Public */,
      16,    0,  104,    2, 0x06 /* Public */,
      17,    1,  105,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      19,    0,  108,    2, 0x0a /* Public */,
      20,    2,  109,    2, 0x0a /* Public */,
      22,    1,  114,    2, 0x0a /* Public */,
      25,    1,  117,    2, 0x0a /* Public */,
      28,    1,  120,    2, 0x0a /* Public */,
      31,    0,  123,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool, QMetaType::QString, 0x80000000 | 5, 0x80000000 | 5,    3,    4,    6,    7,
    QMetaType::Void, QMetaType::Bool, QMetaType::QString, 0x80000000 | 5,    3,    4,    9,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, 0x80000000 | 5,   14,
    QMetaType::Void, 0x80000000 | 5,   14,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   18,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   18,   21,
    QMetaType::Void, 0x80000000 | 23,   24,
    QMetaType::Void, 0x80000000 | 26,   27,
    QMetaType::Void, 0x80000000 | 29,   30,
    QMetaType::Void,

       0        // eod
};

void UserphraseModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<UserphraseModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->importCompleted((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< size_t(*)>(_a[3])),(*reinterpret_cast< size_t(*)>(_a[4]))); break;
        case 1: _t->exportCompleted((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< size_t(*)>(_a[3]))); break;
        case 2: _t->addNewPhraseCompleted((*reinterpret_cast< const Userphrase(*)>(_a[1]))); break;
        case 3: _t->removePhraseCompleted((*reinterpret_cast< size_t(*)>(_a[1]))); break;
        case 4: _t->refreshCompleted((*reinterpret_cast< size_t(*)>(_a[1]))); break;
        case 5: _t->addNewPhraseFailed(); break;
        case 6: _t->undoCompleted((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 7: _t->refresh(); break;
        case 8: _t->add((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 9: _t->importUserphrase((*reinterpret_cast< std::shared_ptr<UserphraseImporter>(*)>(_a[1]))); break;
        case 10: _t->exportUserphrase((*reinterpret_cast< std::shared_ptr<UserphraseExporter>(*)>(_a[1]))); break;
        case 11: _t->remove((*reinterpret_cast< QModelIndexList(*)>(_a[1]))); break;
        case 12: _t->undo(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QModelIndexList >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (UserphraseModel::*)(bool , const QString & , size_t , size_t );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserphraseModel::importCompleted)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (UserphraseModel::*)(bool , const QString & , size_t );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserphraseModel::exportCompleted)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (UserphraseModel::*)(const Userphrase & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserphraseModel::addNewPhraseCompleted)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (UserphraseModel::*)(size_t );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserphraseModel::removePhraseCompleted)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (UserphraseModel::*)(size_t );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserphraseModel::refreshCompleted)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (UserphraseModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserphraseModel::addNewPhraseFailed)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (UserphraseModel::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserphraseModel::undoCompleted)) {
                *result = 6;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject UserphraseModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_meta_stringdata_UserphraseModel.data,
    qt_meta_data_UserphraseModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *UserphraseModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_UserphraseModel.stringdata0))
        return static_cast<void*>(this);
    return QAbstractListModel::qt_metacast(_clname);
}

int UserphraseModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    return _id;
}

// SIGNAL 0
void UserphraseModel::importCompleted(bool _t1, const QString & _t2, size_t _t3, size_t _t4)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void UserphraseModel::exportCompleted(bool _t1, const QString & _t2, size_t _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

// SIGNAL 3
void UserphraseModel::removePhraseCompleted(size_t _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void UserphraseModel::refreshCompleted(size_t _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void UserphraseModel::addNewPhraseFailed()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void UserphraseModel::undoCompleted(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
