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

#include "../../../../src/qtquick1-opensource-src-5.5.1/src/declarative/util/qdeclarativebehavior_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qdeclarativebehavior_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.1. 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_QDeclarativeBehavior_t {
    QByteArrayData data[11];
    char stringdata0[193];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QDeclarativeBehavior_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QDeclarativeBehavior_t qt_meta_stringdata_QDeclarativeBehavior = {
    {
QT_MOC_LITERAL(0, 0, 20), // "QDeclarativeBehavior"
QT_MOC_LITERAL(1, 21, 15), // "DefaultProperty"
QT_MOC_LITERAL(2, 37, 9), // "animation"
QT_MOC_LITERAL(3, 47, 21), // "DeferredPropertyNames"
QT_MOC_LITERAL(4, 69, 14), // "enabledChanged"
QT_MOC_LITERAL(5, 84, 0), // ""
QT_MOC_LITERAL(6, 85, 18), // "componentFinalized"
QT_MOC_LITERAL(7, 104, 23), // "qtAnimationStateChanged"
QT_MOC_LITERAL(8, 128, 25), // "QAbstractAnimation::State"
QT_MOC_LITERAL(9, 154, 30), // "QDeclarativeAbstractAnimation*"
QT_MOC_LITERAL(10, 185, 7) // "enabled"

    },
    "QDeclarativeBehavior\0DefaultProperty\0"
    "animation\0DeferredPropertyNames\0"
    "enabledChanged\0\0componentFinalized\0"
    "qtAnimationStateChanged\0"
    "QAbstractAnimation::State\0"
    "QDeclarativeAbstractAnimation*\0enabled"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QDeclarativeBehavior[] = {

 // content:
       7,       // revision
       0,       // classname
       2,   14, // classinfo
       3,   18, // methods
       2,   40, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // classinfo: key, value
       1,    2,
       3,    2,

 // signals: name, argc, parameters, tag, flags
       4,    0,   33,    5, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   34,    5, 0x08 /* Private */,
       7,    2,   35,    5, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 8, 0x80000000 | 8,    5,    5,

 // properties: name, type, flags
       2, 0x80000000 | 9, 0x0009510b,
      10, QMetaType::Bool, 0x00495103,

 // properties: notify_signal_id
       0,
       0,

       0        // eod
};

void QDeclarativeBehavior::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QDeclarativeBehavior *_t = static_cast<QDeclarativeBehavior *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->enabledChanged(); break;
        case 1: _t->componentFinalized(); break;
        case 2: _t->qtAnimationStateChanged((*reinterpret_cast< QAbstractAnimation::State(*)>(_a[1])),(*reinterpret_cast< QAbstractAnimation::State(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (QDeclarativeBehavior::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QDeclarativeBehavior::enabledChanged)) {
                *result = 0;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        QDeclarativeBehavior *_t = static_cast<QDeclarativeBehavior *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QDeclarativeAbstractAnimation**>(_v) = _t->animation(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->enabled(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        QDeclarativeBehavior *_t = static_cast<QDeclarativeBehavior *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAnimation(*reinterpret_cast< QDeclarativeAbstractAnimation**>(_v)); break;
        case 1: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject QDeclarativeBehavior::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_QDeclarativeBehavior.data,
      qt_meta_data_QDeclarativeBehavior,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *QDeclarativeBehavior::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_QDeclarativeBehavior.stringdata0))
        return static_cast<void*>(const_cast< QDeclarativeBehavior*>(this));
    if (!strcmp(_clname, "QDeclarativePropertyValueInterceptor"))
        return static_cast< QDeclarativePropertyValueInterceptor*>(const_cast< QDeclarativeBehavior*>(this));
    if (!strcmp(_clname, "org.qt-project.Qt.QDeclarativePropertyValueInterceptor"))
        return static_cast< QDeclarativePropertyValueInterceptor*>(const_cast< QDeclarativeBehavior*>(this));
    return QObject::qt_metacast(_clname);
}

int QDeclarativeBehavior::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 < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 3;
    }
#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 -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void QDeclarativeBehavior::enabledChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
