/****************************************************************************
** Meta object code from reading C++ file 'minehunt.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/examples/declarative/demos/minehunt/minehunt.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'minehunt.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_TileData_t {
    QByteArrayData data[10];
    char stringdata0[96];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_TileData_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_TileData_t qt_meta_stringdata_TileData = {
    {
QT_MOC_LITERAL(0, 0, 8), // "TileData"
QT_MOC_LITERAL(1, 9, 14), // "flippedChanged"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 14), // "hasFlagChanged"
QT_MOC_LITERAL(4, 40, 11), // "hintChanged"
QT_MOC_LITERAL(5, 52, 14), // "hasMineChanged"
QT_MOC_LITERAL(6, 67, 7), // "hasFlag"
QT_MOC_LITERAL(7, 75, 7), // "hasMine"
QT_MOC_LITERAL(8, 83, 4), // "hint"
QT_MOC_LITERAL(9, 88, 7) // "flipped"

    },
    "TileData\0flippedChanged\0\0hasFlagChanged\0"
    "hintChanged\0hasMineChanged\0hasFlag\0"
    "hasMine\0hint\0flipped"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_TileData[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   34,    2, 0x06 /* Public */,
       3,    0,   35,    2, 0x06 /* Public */,
       4,    0,   36,    2, 0x06 /* Public */,
       5,    0,   37,    2, 0x06 /* Public */,

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

 // properties: name, type, flags
       6, QMetaType::Bool, 0x00495103,
       7, QMetaType::Bool, 0x00495001,
       8, QMetaType::Int, 0x00495001,
       9, QMetaType::Bool, 0x00495001,

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

       0        // eod
};

void TileData::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        TileData *_t = static_cast<TileData *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->flippedChanged(); break;
        case 1: _t->hasFlagChanged(); break;
        case 2: _t->hintChanged(); break;
        case 3: _t->hasMineChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (TileData::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TileData::flippedChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (TileData::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TileData::hasFlagChanged)) {
                *result = 1;
            }
        }
        {
            typedef void (TileData::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TileData::hintChanged)) {
                *result = 2;
            }
        }
        {
            typedef void (TileData::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TileData::hasMineChanged)) {
                *result = 3;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        TileData *_t = static_cast<TileData *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->hasFlag(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->hasMine(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->hint(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->flipped(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        TileData *_t = static_cast<TileData *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setHasFlag(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
    Q_UNUSED(_a);
}

const QMetaObject TileData::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_TileData.data,
      qt_meta_data_TileData,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

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

// SIGNAL 0
void TileData::flippedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void TileData::hasFlagChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void TileData::hintChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}

// SIGNAL 3
void TileData::hasMineChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}
struct qt_meta_stringdata_MinehuntGame_t {
    QByteArrayData data[18];
    char stringdata0[186];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MinehuntGame_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MinehuntGame_t qt_meta_stringdata_MinehuntGame = {
    {
QT_MOC_LITERAL(0, 0, 12), // "MinehuntGame"
QT_MOC_LITERAL(1, 13, 16), // "isPlayingChanged"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 13), // "hasWonChanged"
QT_MOC_LITERAL(4, 45, 15), // "numMinesChanged"
QT_MOC_LITERAL(5, 61, 15), // "numFlagsChanged"
QT_MOC_LITERAL(6, 77, 4), // "flip"
QT_MOC_LITERAL(7, 82, 3), // "row"
QT_MOC_LITERAL(8, 86, 3), // "col"
QT_MOC_LITERAL(9, 90, 4), // "flag"
QT_MOC_LITERAL(10, 95, 8), // "setBoard"
QT_MOC_LITERAL(11, 104, 5), // "reset"
QT_MOC_LITERAL(12, 110, 5), // "tiles"
QT_MOC_LITERAL(13, 116, 34), // "QDeclarativeListProperty<Tile..."
QT_MOC_LITERAL(14, 151, 9), // "isPlaying"
QT_MOC_LITERAL(15, 161, 6), // "hasWon"
QT_MOC_LITERAL(16, 168, 8), // "numMines"
QT_MOC_LITERAL(17, 177, 8) // "numFlags"

    },
    "MinehuntGame\0isPlayingChanged\0\0"
    "hasWonChanged\0numMinesChanged\0"
    "numFlagsChanged\0flip\0row\0col\0flag\0"
    "setBoard\0reset\0tiles\0"
    "QDeclarativeListProperty<TileData>\0"
    "isPlaying\0hasWon\0numMines\0numFlags"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MinehuntGame[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       5,   70, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   54,    2, 0x06 /* Public */,
       3,    0,   55,    2, 0x06 /* Public */,
       4,    0,   56,    2, 0x06 /* Public */,
       5,    0,   57,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    2,   58,    2, 0x0a /* Public */,
       9,    2,   63,    2, 0x0a /* Public */,
      10,    0,   68,    2, 0x0a /* Public */,
      11,    0,   69,    2, 0x0a /* Public */,

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

 // slots: parameters
    QMetaType::Bool, QMetaType::Int, QMetaType::Int,    7,    8,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int,    7,    8,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      12, 0x80000000 | 13, 0x00095409,
      14, QMetaType::Bool, 0x00495001,
      15, QMetaType::Bool, 0x00495001,
      16, QMetaType::Int, 0x00495001,
      17, QMetaType::Int, 0x00495001,

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

       0        // eod
};

void MinehuntGame::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        MinehuntGame *_t = static_cast<MinehuntGame *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->isPlayingChanged(); break;
        case 1: _t->hasWonChanged(); break;
        case 2: _t->numMinesChanged(); break;
        case 3: _t->numFlagsChanged(); break;
        case 4: { bool _r = _t->flip((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 5: { bool _r = _t->flag((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 6: _t->setBoard(); break;
        case 7: _t->reset(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (MinehuntGame::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MinehuntGame::isPlayingChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (MinehuntGame::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MinehuntGame::hasWonChanged)) {
                *result = 1;
            }
        }
        {
            typedef void (MinehuntGame::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MinehuntGame::numMinesChanged)) {
                *result = 2;
            }
        }
        {
            typedef void (MinehuntGame::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MinehuntGame::numFlagsChanged)) {
                *result = 3;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        MinehuntGame *_t = static_cast<MinehuntGame *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QDeclarativeListProperty<TileData>*>(_v) = _t->tiles(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isPlaying(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->hasWon(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->numMines(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->numFlags(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject MinehuntGame::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_MinehuntGame.data,
      qt_meta_data_MinehuntGame,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

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

// SIGNAL 0
void MinehuntGame::isPlayingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void MinehuntGame::hasWonChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void MinehuntGame::numMinesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}

// SIGNAL 3
void MinehuntGame::numFlagsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
