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

#include "../../src/libkleo-17.12.3/src/models/keylistmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'keylistmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_Kleo__AbstractKeyListModel_t {
    QByteArrayData data[21];
    char stringdata0[224];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Kleo__AbstractKeyListModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Kleo__AbstractKeyListModel_t qt_meta_stringdata_Kleo__AbstractKeyListModel = {
    {
QT_MOC_LITERAL(0, 0, 26), // "Kleo::AbstractKeyListModel"
QT_MOC_LITERAL(1, 27, 17), // "rowAboutToBeMoved"
QT_MOC_LITERAL(2, 45, 0), // ""
QT_MOC_LITERAL(3, 46, 10), // "old_parent"
QT_MOC_LITERAL(4, 57, 7), // "old_row"
QT_MOC_LITERAL(5, 65, 8), // "rowMoved"
QT_MOC_LITERAL(6, 74, 10), // "new_parent"
QT_MOC_LITERAL(7, 85, 7), // "new_row"
QT_MOC_LITERAL(8, 93, 7), // "setKeys"
QT_MOC_LITERAL(9, 101, 23), // "std::vector<GpgME::Key>"
QT_MOC_LITERAL(10, 125, 4), // "keys"
QT_MOC_LITERAL(11, 130, 11), // "useKeyCache"
QT_MOC_LITERAL(12, 142, 5), // "value"
QT_MOC_LITERAL(13, 148, 10), // "secretOnly"
QT_MOC_LITERAL(14, 159, 6), // "addKey"
QT_MOC_LITERAL(15, 166, 10), // "GpgME::Key"
QT_MOC_LITERAL(16, 177, 3), // "key"
QT_MOC_LITERAL(17, 181, 7), // "addKeys"
QT_MOC_LITERAL(18, 189, 18), // "QList<QModelIndex>"
QT_MOC_LITERAL(19, 208, 9), // "removeKey"
QT_MOC_LITERAL(20, 218, 5) // "clear"

    },
    "Kleo::AbstractKeyListModel\0rowAboutToBeMoved\0"
    "\0old_parent\0old_row\0rowMoved\0new_parent\0"
    "new_row\0setKeys\0std::vector<GpgME::Key>\0"
    "keys\0useKeyCache\0value\0secretOnly\0"
    "addKey\0GpgME::Key\0key\0addKeys\0"
    "QList<QModelIndex>\0removeKey\0clear"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Kleo__AbstractKeyListModel[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       8,    1,   64,    2, 0x0a /* Public */,
      11,    2,   67,    2, 0x0a /* Public */,
      14,    1,   72,    2, 0x0a /* Public */,
      17,    1,   75,    2, 0x0a /* Public */,
      19,    1,   78,    2, 0x0a /* Public */,
      20,    0,   81,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int,    3,    4,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int,    6,    7,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, QMetaType::Bool, QMetaType::Bool,   12,   13,
    QMetaType::QModelIndex, 0x80000000 | 15,   16,
    0x80000000 | 18, 0x80000000 | 9,   10,
    QMetaType::Void, 0x80000000 | 15,   16,
    QMetaType::Void,

       0        // eod
};

void Kleo::AbstractKeyListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        AbstractKeyListModel *_t = static_cast<AbstractKeyListModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->rowAboutToBeMoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->rowMoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->setKeys((*reinterpret_cast< const std::vector<GpgME::Key>(*)>(_a[1]))); break;
        case 3: _t->useKeyCache((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 4: { QModelIndex _r = _t->addKey((*reinterpret_cast< const GpgME::Key(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QModelIndex*>(_a[0]) = std::move(_r); }  break;
        case 5: { QList<QModelIndex> _r = _t->addKeys((*reinterpret_cast< const std::vector<GpgME::Key>(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QList<QModelIndex>*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->removeKey((*reinterpret_cast< const GpgME::Key(*)>(_a[1]))); break;
        case 7: _t->clear(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (AbstractKeyListModel::*_t)(const QModelIndex & , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AbstractKeyListModel::rowAboutToBeMoved)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (AbstractKeyListModel::*_t)(const QModelIndex & , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AbstractKeyListModel::rowMoved)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject Kleo::AbstractKeyListModel::staticMetaObject = {
    { &QAbstractItemModel::staticMetaObject, qt_meta_stringdata_Kleo__AbstractKeyListModel.data,
      qt_meta_data_Kleo__AbstractKeyListModel,  qt_static_metacall, nullptr, nullptr}
};


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

void *Kleo::AbstractKeyListModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Kleo__AbstractKeyListModel.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "KeyListModelInterface"))
        return static_cast< KeyListModelInterface*>(this);
    return QAbstractItemModel::qt_metacast(_clname);
}

int Kleo::AbstractKeyListModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractItemModel::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 Kleo::AbstractKeyListModel::rowAboutToBeMoved(const QModelIndex & _t1, int _t2)
{
    void *_a[] = { 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 Kleo::AbstractKeyListModel::rowMoved(const QModelIndex & _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
