/****************************************************************************
** Meta object code from reading C++ file 'GeoDataTreeModel.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/marble-17.12.3/src/lib/marble/GeoDataTreeModel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'GeoDataTreeModel.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_Marble__GeoDataTreeModel_t {
    QByteArrayData data[27];
    char stringdata0[331];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Marble__GeoDataTreeModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Marble__GeoDataTreeModel_t qt_meta_stringdata_Marble__GeoDataTreeModel = {
    {
QT_MOC_LITERAL(0, 0, 24), // "Marble::GeoDataTreeModel"
QT_MOC_LITERAL(1, 25, 7), // "removed"
QT_MOC_LITERAL(2, 33, 0), // ""
QT_MOC_LITERAL(3, 34, 14), // "GeoDataObject*"
QT_MOC_LITERAL(4, 49, 6), // "object"
QT_MOC_LITERAL(5, 56, 5), // "added"
QT_MOC_LITERAL(6, 62, 15), // "setRootDocument"
QT_MOC_LITERAL(7, 78, 16), // "GeoDataDocument*"
QT_MOC_LITERAL(8, 95, 8), // "document"
QT_MOC_LITERAL(9, 104, 10), // "addFeature"
QT_MOC_LITERAL(10, 115, 17), // "GeoDataContainer*"
QT_MOC_LITERAL(11, 133, 6), // "parent"
QT_MOC_LITERAL(12, 140, 15), // "GeoDataFeature*"
QT_MOC_LITERAL(13, 156, 7), // "feature"
QT_MOC_LITERAL(14, 164, 3), // "row"
QT_MOC_LITERAL(15, 168, 13), // "removeFeature"
QT_MOC_LITERAL(16, 182, 5), // "index"
QT_MOC_LITERAL(17, 188, 13), // "updateFeature"
QT_MOC_LITERAL(18, 202, 11), // "addDocument"
QT_MOC_LITERAL(19, 214, 14), // "removeDocument"
QT_MOC_LITERAL(20, 229, 16), // "addTourPrimitive"
QT_MOC_LITERAL(21, 246, 21), // "GeoDataTourPrimitive*"
QT_MOC_LITERAL(22, 268, 9), // "primitive"
QT_MOC_LITERAL(23, 278, 19), // "removeTourPrimitive"
QT_MOC_LITERAL(24, 298, 18), // "swapTourPrimitives"
QT_MOC_LITERAL(25, 317, 6), // "indexA"
QT_MOC_LITERAL(26, 324, 6) // "indexB"

    },
    "Marble::GeoDataTreeModel\0removed\0\0"
    "GeoDataObject*\0object\0added\0setRootDocument\0"
    "GeoDataDocument*\0document\0addFeature\0"
    "GeoDataContainer*\0parent\0GeoDataFeature*\0"
    "feature\0row\0removeFeature\0index\0"
    "updateFeature\0addDocument\0removeDocument\0"
    "addTourPrimitive\0GeoDataTourPrimitive*\0"
    "primitive\0removeTourPrimitive\0"
    "swapTourPrimitives\0indexA\0indexB"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Marble__GeoDataTreeModel[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       6,    1,   95,    2, 0x0a /* Public */,
       9,    3,   98,    2, 0x0a /* Public */,
       9,    2,  105,    2, 0x2a /* Public | MethodCloned */,
      15,    2,  110,    2, 0x0a /* Public */,
      15,    1,  115,    2, 0x0a /* Public */,
      17,    1,  118,    2, 0x0a /* Public */,
      18,    1,  121,    2, 0x0a /* Public */,
      19,    1,  124,    2, 0x0a /* Public */,
      19,    1,  127,    2, 0x0a /* Public */,
      20,    3,  130,    2, 0x0a /* Public */,
      20,    2,  137,    2, 0x2a /* Public | MethodCloned */,
      23,    2,  142,    2, 0x0a /* Public */,
      24,    3,  147,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    4,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Int, 0x80000000 | 10, 0x80000000 | 12, QMetaType::Int,   11,   13,   14,
    QMetaType::Int, 0x80000000 | 10, 0x80000000 | 12,   11,   13,
    QMetaType::Bool, 0x80000000 | 10, QMetaType::Int,   11,   16,
    QMetaType::Int, 0x80000000 | 12,   13,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Int, 0x80000000 | 7,    8,
    QMetaType::Void, QMetaType::Int,   16,
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Int, QMetaType::QModelIndex, 0x80000000 | 21, QMetaType::Int,   11,   22,   14,
    QMetaType::Int, QMetaType::QModelIndex, 0x80000000 | 21,   11,   22,
    QMetaType::Bool, QMetaType::QModelIndex, QMetaType::Int,   11,   16,
    QMetaType::Bool, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   11,   25,   26,

       0        // eod
};

void Marble::GeoDataTreeModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        GeoDataTreeModel *_t = static_cast<GeoDataTreeModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->removed((*reinterpret_cast< GeoDataObject*(*)>(_a[1]))); break;
        case 1: _t->added((*reinterpret_cast< GeoDataObject*(*)>(_a[1]))); break;
        case 2: _t->setRootDocument((*reinterpret_cast< GeoDataDocument*(*)>(_a[1]))); break;
        case 3: { int _r = _t->addFeature((*reinterpret_cast< GeoDataContainer*(*)>(_a[1])),(*reinterpret_cast< GeoDataFeature*(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 4: { int _r = _t->addFeature((*reinterpret_cast< GeoDataContainer*(*)>(_a[1])),(*reinterpret_cast< GeoDataFeature*(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->removeFeature((*reinterpret_cast< GeoDataContainer*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { int _r = _t->removeFeature((*reinterpret_cast< GeoDataFeature*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->updateFeature((*reinterpret_cast< GeoDataFeature*(*)>(_a[1]))); break;
        case 8: { int _r = _t->addDocument((*reinterpret_cast< GeoDataDocument*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->removeDocument((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 10: _t->removeDocument((*reinterpret_cast< GeoDataDocument*(*)>(_a[1]))); break;
        case 11: { int _r = _t->addTourPrimitive((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< GeoDataTourPrimitive*(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 12: { int _r = _t->addTourPrimitive((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< GeoDataTourPrimitive*(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->removeTourPrimitive((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->swapTourPrimitives((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (GeoDataTreeModel::*_t)(GeoDataObject * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GeoDataTreeModel::removed)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (GeoDataTreeModel::*_t)(GeoDataObject * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GeoDataTreeModel::added)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject Marble::GeoDataTreeModel::staticMetaObject = {
    { &QAbstractItemModel::staticMetaObject, qt_meta_stringdata_Marble__GeoDataTreeModel.data,
      qt_meta_data_Marble__GeoDataTreeModel,  qt_static_metacall, nullptr, nullptr}
};


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

void *Marble::GeoDataTreeModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Marble__GeoDataTreeModel.stringdata0))
        return static_cast<void*>(this);
    return QAbstractItemModel::qt_metacast(_clname);
}

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

// SIGNAL 0
void Marble::GeoDataTreeModel::removed(GeoDataObject * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Marble::GeoDataTreeModel::added(GeoDataObject * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
