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

#include "../../src/kstars-17.08.3/kstars/time/simclock.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'simclock.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_SimClock_t {
    QByteArrayData data[21];
    char stringdata0[208];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SimClock_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SimClock_t qt_meta_stringdata_SimClock = {
    {
QT_MOC_LITERAL(0, 0, 8), // "SimClock"
QT_MOC_LITERAL(1, 9, 15), // "D-Bus Interface"
QT_MOC_LITERAL(2, 25, 23), // "org.kde.kstars.SimClock"
QT_MOC_LITERAL(3, 49, 11), // "timeChanged"
QT_MOC_LITERAL(4, 61, 0), // ""
QT_MOC_LITERAL(5, 62, 12), // "timeAdvanced"
QT_MOC_LITERAL(6, 75, 12), // "scaleChanged"
QT_MOC_LITERAL(7, 88, 12), // "clockToggled"
QT_MOC_LITERAL(8, 101, 4), // "stop"
QT_MOC_LITERAL(9, 106, 9), // "Q_NOREPLY"
QT_MOC_LITERAL(10, 116, 5), // "start"
QT_MOC_LITERAL(11, 122, 6), // "setUTC"
QT_MOC_LITERAL(12, 129, 14), // "KStarsDateTime"
QT_MOC_LITERAL(13, 144, 7), // "newtime"
QT_MOC_LITERAL(14, 152, 13), // "setClockScale"
QT_MOC_LITERAL(15, 166, 1), // "s"
QT_MOC_LITERAL(16, 168, 4), // "tick"
QT_MOC_LITERAL(17, 173, 10), // "manualTick"
QT_MOC_LITERAL(18, 184, 5), // "force"
QT_MOC_LITERAL(19, 190, 8), // "backward"
QT_MOC_LITERAL(20, 199, 8) // "isActive"

    },
    "SimClock\0D-Bus Interface\0"
    "org.kde.kstars.SimClock\0timeChanged\0"
    "\0timeAdvanced\0scaleChanged\0clockToggled\0"
    "stop\0Q_NOREPLY\0start\0setUTC\0KStarsDateTime\0"
    "newtime\0setClockScale\0s\0tick\0manualTick\0"
    "force\0backward\0isActive"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SimClock[] = {

 // content:
       7,       // revision
       0,       // classname
       1,   14, // classinfo
      13,   16, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // classinfo: key, value
       1,    2,

 // signals: name, argc, parameters, tag, flags
       3,    0,   81,    4, 0x06 /* Public */,
       5,    0,   82,    4, 0x06 /* Public */,
       6,    1,   83,    4, 0x06 /* Public */,
       7,    1,   86,    4, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,   89,    9, 0x4a /* Public | isScriptable */,
      10,    0,   90,    9, 0x4a /* Public | isScriptable */,
      11,    1,   91,    9, 0x4a /* Public | isScriptable */,
      14,    1,   94,    9, 0x4a /* Public | isScriptable */,
      16,    0,   97,    4, 0x0a /* Public */,
      17,    2,   98,    4, 0x0a /* Public */,
      17,    1,  103,    4, 0x2a /* Public | MethodCloned */,
      17,    0,  106,    4, 0x2a /* Public | MethodCloned */,

 // methods: name, argc, parameters, tag, flags
      20,    0,  107,    4, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Float,    4,
    QMetaType::Void, QMetaType::Bool,    4,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void, QMetaType::Float,   15,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool, QMetaType::Bool,   18,   19,
    QMetaType::Void, QMetaType::Bool,   18,
    QMetaType::Void,

 // methods: parameters
    QMetaType::Bool,

       0        // eod
};

void SimClock::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SimClock *_t = static_cast<SimClock *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->timeChanged(); break;
        case 1: _t->timeAdvanced(); break;
        case 2: _t->scaleChanged((*reinterpret_cast< float(*)>(_a[1]))); break;
        case 3: _t->clockToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->stop(); break;
        case 5: _t->start(); break;
        case 6: _t->setUTC((*reinterpret_cast< const KStarsDateTime(*)>(_a[1]))); break;
        case 7: _t->setClockScale((*reinterpret_cast< float(*)>(_a[1]))); break;
        case 8: _t->tick(); break;
        case 9: _t->manualTick((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 10: _t->manualTick((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->manualTick(); break;
        case 12: { bool _r = _t->isActive();
            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]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (SimClock::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimClock::timeChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (SimClock::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimClock::timeAdvanced)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (SimClock::*_t)(float );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimClock::scaleChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (SimClock::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SimClock::clockToggled)) {
                *result = 3;
                return;
            }
        }
    }
}

const QMetaObject SimClock::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_SimClock.data,
      qt_meta_data_SimClock,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void SimClock::timeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void SimClock::timeAdvanced()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void SimClock::scaleChanged(float _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void SimClock::clockToggled(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
