/****************************************************************************
** Meta object code from reading C++ file 'charsetconversiontool.hpp'
**
** 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 "../../../../../okteta-0.26.27/kasten/controllers/view/charsetconversion/charsetconversiontool.hpp"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'charsetconversiontool.hpp' 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_Kasten__CharsetConversionTool_t {
    QByteArrayData data[28];
    char stringdata0[487];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Kasten__CharsetConversionTool_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Kasten__CharsetConversionTool_t qt_meta_stringdata_Kasten__CharsetConversionTool = {
    {
QT_MOC_LITERAL(0, 0, 29), // "Kasten::CharsetConversionTool"
QT_MOC_LITERAL(1, 30, 18), // "isApplyableChanged"
QT_MOC_LITERAL(2, 49, 0), // ""
QT_MOC_LITERAL(3, 50, 11), // "isApplyable"
QT_MOC_LITERAL(4, 62, 33), // "isSubstitutingMissingCharsCha..."
QT_MOC_LITERAL(5, 96, 26), // "isSubstitutingMissingChars"
QT_MOC_LITERAL(6, 123, 22), // "targetCharCodecChanged"
QT_MOC_LITERAL(7, 146, 14), // "charCodingName"
QT_MOC_LITERAL(8, 161, 14), // "conversionDone"
QT_MOC_LITERAL(9, 176, 7), // "success"
QT_MOC_LITERAL(10, 184, 19), // "convertedBytesCount"
QT_MOC_LITERAL(11, 204, 22), // "QMap<Okteta::Byte,int>"
QT_MOC_LITERAL(12, 227, 18), // "failedPerByteCount"
QT_MOC_LITERAL(13, 246, 22), // "setConversionDirection"
QT_MOC_LITERAL(14, 269, 19), // "conversionDirection"
QT_MOC_LITERAL(15, 289, 21), // "setOtherCharCodecName"
QT_MOC_LITERAL(16, 311, 9), // "codecName"
QT_MOC_LITERAL(17, 321, 27), // "setSubstitutingMissingChars"
QT_MOC_LITERAL(18, 349, 17), // "setSubstituteByte"
QT_MOC_LITERAL(19, 367, 12), // "Okteta::Byte"
QT_MOC_LITERAL(20, 380, 4), // "byte"
QT_MOC_LITERAL(21, 385, 23), // "setSubstituteByteCoding"
QT_MOC_LITERAL(22, 409, 6), // "Coding"
QT_MOC_LITERAL(23, 416, 6), // "coding"
QT_MOC_LITERAL(24, 423, 12), // "convertChars"
QT_MOC_LITERAL(25, 436, 22), // "onViewCharCodecChanged"
QT_MOC_LITERAL(26, 459, 13), // "charCodecName"
QT_MOC_LITERAL(27, 473, 13) // "onViewChanged"

    },
    "Kasten::CharsetConversionTool\0"
    "isApplyableChanged\0\0isApplyable\0"
    "isSubstitutingMissingCharsChanged\0"
    "isSubstitutingMissingChars\0"
    "targetCharCodecChanged\0charCodingName\0"
    "conversionDone\0success\0convertedBytesCount\0"
    "QMap<Okteta::Byte,int>\0failedPerByteCount\0"
    "setConversionDirection\0conversionDirection\0"
    "setOtherCharCodecName\0codecName\0"
    "setSubstitutingMissingChars\0"
    "setSubstituteByte\0Okteta::Byte\0byte\0"
    "setSubstituteByteCoding\0Coding\0coding\0"
    "convertChars\0onViewCharCodecChanged\0"
    "charCodecName\0onViewChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Kasten__CharsetConversionTool[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x06 /* Public */,
       4,    1,   77,    2, 0x06 /* Public */,
       6,    1,   80,    2, 0x06 /* Public */,
       8,    3,   83,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    1,   90,    2, 0x0a /* Public */,
      15,    1,   93,    2, 0x0a /* Public */,
      17,    1,   96,    2, 0x0a /* Public */,
      18,    1,   99,    2, 0x0a /* Public */,
      21,    1,  102,    2, 0x0a /* Public */,
      24,    0,  105,    2, 0x0a /* Public */,
      25,    1,  106,    2, 0x08 /* Private */,
      27,    0,  109,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    3,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void, QMetaType::Bool, QMetaType::Int, 0x80000000 | 11,    9,   10,   12,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,   14,
    QMetaType::Void, QMetaType::QString,   16,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, 0x80000000 | 22,   23,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   26,
    QMetaType::Void,

       0        // eod
};

void Kasten::CharsetConversionTool::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<CharsetConversionTool *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->isApplyableChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: _t->isSubstitutingMissingCharsChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->targetCharCodecChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->conversionDone((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QMap<Okteta::Byte,int>(*)>(_a[3]))); break;
        case 4: _t->setConversionDirection((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->setOtherCharCodecName((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 6: _t->setSubstitutingMissingChars((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->setSubstituteByte((*reinterpret_cast< Okteta::Byte(*)>(_a[1]))); break;
        case 8: _t->setSubstituteByteCoding((*reinterpret_cast< Coding(*)>(_a[1]))); break;
        case 9: _t->convertChars(); break;
        case 10: _t->onViewCharCodecChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 11: _t->onViewChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (CharsetConversionTool::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CharsetConversionTool::isApplyableChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (CharsetConversionTool::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CharsetConversionTool::isSubstitutingMissingCharsChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (CharsetConversionTool::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CharsetConversionTool::targetCharCodecChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (CharsetConversionTool::*)(bool , int , const QMap<Okteta::Byte,int> & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CharsetConversionTool::conversionDone)) {
                *result = 3;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject Kasten::CharsetConversionTool::staticMetaObject = { {
    QMetaObject::SuperData::link<AbstractTool::staticMetaObject>(),
    qt_meta_stringdata_Kasten__CharsetConversionTool.data,
    qt_meta_data_Kasten__CharsetConversionTool,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *Kasten::CharsetConversionTool::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Kasten__CharsetConversionTool.stringdata0))
        return static_cast<void*>(this);
    return AbstractTool::qt_metacast(_clname);
}

int Kasten::CharsetConversionTool::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AbstractTool::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void Kasten::CharsetConversionTool::isApplyableChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Kasten::CharsetConversionTool::isSubstitutingMissingCharsChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

// SIGNAL 3
void Kasten::CharsetConversionTool::conversionDone(bool _t1, int _t2, const QMap<Okteta::Byte,int> & _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, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
