/****************************************************************************
** Meta object code from reading C++ file 'PositionTracking.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/PositionTracking.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'PositionTracking.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__PositionTracking_t {
    QByteArrayData data[18];
    char stringdata0[273];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Marble__PositionTracking_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Marble__PositionTracking_t qt_meta_stringdata_Marble__PositionTracking = {
    {
QT_MOC_LITERAL(0, 0, 24), // "Marble::PositionTracking"
QT_MOC_LITERAL(1, 25, 11), // "gpsLocation"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 18), // "GeoDataCoordinates"
QT_MOC_LITERAL(4, 57, 13), // "statusChanged"
QT_MOC_LITERAL(5, 71, 22), // "PositionProviderStatus"
QT_MOC_LITERAL(6, 94, 6), // "status"
QT_MOC_LITERAL(7, 101, 29), // "positionProviderPluginChanged"
QT_MOC_LITERAL(8, 131, 23), // "PositionProviderPlugin*"
QT_MOC_LITERAL(9, 155, 12), // "activePlugin"
QT_MOC_LITERAL(10, 168, 15), // "setTrackVisible"
QT_MOC_LITERAL(11, 184, 7), // "visible"
QT_MOC_LITERAL(12, 192, 9), // "saveTrack"
QT_MOC_LITERAL(13, 202, 8), // "fileName"
QT_MOC_LITERAL(14, 211, 10), // "clearTrack"
QT_MOC_LITERAL(15, 222, 14), // "updatePosition"
QT_MOC_LITERAL(16, 237, 12), // "updateStatus"
QT_MOC_LITERAL(17, 250, 22) // "positionProviderPlugin"

    },
    "Marble::PositionTracking\0gpsLocation\0"
    "\0GeoDataCoordinates\0statusChanged\0"
    "PositionProviderStatus\0status\0"
    "positionProviderPluginChanged\0"
    "PositionProviderPlugin*\0activePlugin\0"
    "setTrackVisible\0visible\0saveTrack\0"
    "fileName\0clearTrack\0updatePosition\0"
    "updateStatus\0positionProviderPlugin"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Marble__PositionTracking[] = {

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

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

 // slots: name, argc, parameters, tag, flags
      10,    1,   65,    2, 0x0a /* Public */,
      12,    1,   68,    2, 0x0a /* Public */,
      14,    0,   71,    2, 0x0a /* Public */,
      15,    0,   72,    2, 0x08 /* Private */,
      16,    0,   73,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::QReal,    2,    2,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, 0x80000000 | 8,    9,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Bool, QMetaType::QString,   13,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      17, 0x80000000 | 8, 0x0049510b,

 // properties: notify_signal_id
       2,

       0        // eod
};

void Marble::PositionTracking::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PositionTracking *_t = static_cast<PositionTracking *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->gpsLocation((*reinterpret_cast< const GeoDataCoordinates(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2]))); break;
        case 1: _t->statusChanged((*reinterpret_cast< PositionProviderStatus(*)>(_a[1]))); break;
        case 2: _t->positionProviderPluginChanged((*reinterpret_cast< PositionProviderPlugin*(*)>(_a[1]))); break;
        case 3: _t->setTrackVisible((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: { bool _r = _t->saveTrack((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->clearTrack(); break;
        case 6: _t->d->updatePosition(); break;
        case 7: _t->d->updateStatus(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (PositionTracking::*_t)(const GeoDataCoordinates & , qreal );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PositionTracking::gpsLocation)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PositionTracking::*_t)(PositionProviderStatus );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PositionTracking::statusChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PositionTracking::*_t)(PositionProviderPlugin * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PositionTracking::positionProviderPluginChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        PositionTracking *_t = static_cast<PositionTracking *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< PositionProviderPlugin**>(_v) = _t->positionProviderPlugin(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        PositionTracking *_t = static_cast<PositionTracking *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPositionProviderPlugin(*reinterpret_cast< PositionProviderPlugin**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Marble::PositionTracking::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Marble__PositionTracking.data,
      qt_meta_data_Marble__PositionTracking,  qt_static_metacall, nullptr, nullptr}
};


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

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

int Marble::PositionTracking::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 < 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;
    }
#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 -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void Marble::PositionTracking::gpsLocation(const GeoDataCoordinates & _t1, qreal _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 Marble::PositionTracking::statusChanged(PositionProviderStatus _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Marble::PositionTracking::positionProviderPluginChanged(PositionProviderPlugin * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
