/****************************************************************************
** Meta object code from reading C++ file 'PositionSource.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/marble-17.04.3/src/lib/marble/declarative/PositionSource.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'PositionSource.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_Marble__PositionSource_t {
    QByteArrayData data[17];
    char stringdata0[200];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Marble__PositionSource_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Marble__PositionSource_t qt_meta_stringdata_Marble__PositionSource = {
    {
QT_MOC_LITERAL(0, 0, 22), // "Marble::PositionSource"
QT_MOC_LITERAL(1, 23, 10), // "mapChanged"
QT_MOC_LITERAL(2, 34, 0), // ""
QT_MOC_LITERAL(3, 35, 13), // "activeChanged"
QT_MOC_LITERAL(4, 49, 13), // "sourceChanged"
QT_MOC_LITERAL(5, 63, 18), // "hasPositionChanged"
QT_MOC_LITERAL(6, 82, 15), // "positionChanged"
QT_MOC_LITERAL(7, 98, 12), // "speedChanged"
QT_MOC_LITERAL(8, 111, 14), // "updatePosition"
QT_MOC_LITERAL(9, 126, 3), // "map"
QT_MOC_LITERAL(10, 130, 16), // "MarbleQuickItem*"
QT_MOC_LITERAL(11, 147, 6), // "active"
QT_MOC_LITERAL(12, 154, 6), // "source"
QT_MOC_LITERAL(13, 161, 11), // "hasPosition"
QT_MOC_LITERAL(14, 173, 8), // "position"
QT_MOC_LITERAL(15, 182, 11), // "Coordinate*"
QT_MOC_LITERAL(16, 194, 5) // "speed"

    },
    "Marble::PositionSource\0mapChanged\0\0"
    "activeChanged\0sourceChanged\0"
    "hasPositionChanged\0positionChanged\0"
    "speedChanged\0updatePosition\0map\0"
    "MarbleQuickItem*\0active\0source\0"
    "hasPosition\0position\0Coordinate*\0speed"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Marble__PositionSource[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   49,    2, 0x06 /* Public */,
       3,    0,   50,    2, 0x06 /* Public */,
       4,    0,   51,    2, 0x06 /* Public */,
       5,    0,   52,    2, 0x06 /* Public */,
       6,    0,   53,    2, 0x06 /* Public */,
       7,    0,   54,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,   55,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,

 // properties: name, type, flags
       9, 0x80000000 | 10, 0x0049510b,
      11, QMetaType::Bool, 0x00495103,
      12, QMetaType::QString, 0x00495103,
      13, QMetaType::Bool, 0x00495001,
      14, 0x80000000 | 15, 0x00495009,
      16, QMetaType::QReal, 0x00495001,

 // properties: notify_signal_id
       0,
       1,
       2,
       3,
       4,
       5,

       0        // eod
};

void Marble::PositionSource::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PositionSource *_t = static_cast<PositionSource *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->mapChanged(); break;
        case 1: _t->activeChanged(); break;
        case 2: _t->sourceChanged(); break;
        case 3: _t->hasPositionChanged(); break;
        case 4: _t->positionChanged(); break;
        case 5: _t->speedChanged(); break;
        case 6: _t->updatePosition(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (PositionSource::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PositionSource::mapChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PositionSource::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PositionSource::activeChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PositionSource::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PositionSource::sourceChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (PositionSource::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PositionSource::hasPositionChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (PositionSource::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PositionSource::positionChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (PositionSource::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PositionSource::speedChanged)) {
                *result = 5;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Coordinate* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        PositionSource *_t = static_cast<PositionSource *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< MarbleQuickItem**>(_v) = _t->map(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->active(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->source(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->hasPosition(); break;
        case 4: *reinterpret_cast< Coordinate**>(_v) = _t->position(); break;
        case 5: *reinterpret_cast< qreal*>(_v) = _t->speed(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        PositionSource *_t = static_cast<PositionSource *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setMap(*reinterpret_cast< MarbleQuickItem**>(_v)); break;
        case 1: _t->setActive(*reinterpret_cast< bool*>(_v)); break;
        case 2: _t->setSource(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Marble::PositionSource::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Marble__PositionSource.data,
      qt_meta_data_Marble__PositionSource,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Marble::PositionSource::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Marble__PositionSource.stringdata0))
        return static_cast<void*>(const_cast< PositionSource*>(this));
    return QObject::qt_metacast(_clname);
}

int Marble::PositionSource::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 < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 7;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void Marble::PositionSource::mapChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void Marble::PositionSource::activeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void Marble::PositionSource::sourceChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}

// SIGNAL 3
void Marble::PositionSource::hasPositionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}

// SIGNAL 4
void Marble::PositionSource::positionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
}

// SIGNAL 5
void Marble::PositionSource::speedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
