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

#include <memory>
#include "../../../../../git/examples/bluetooth/pingpong/pingpong.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'pingpong.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.13.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_PingPong_t {
    QByteArrayData data[45];
    char stringdata0[545];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PingPong_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PingPong_t qt_meta_stringdata_PingPong = {
    {
QT_MOC_LITERAL(0, 0, 8), // "PingPong"
QT_MOC_LITERAL(1, 9, 11), // "ballChanged"
QT_MOC_LITERAL(2, 21, 0), // ""
QT_MOC_LITERAL(3, 22, 16), // "leftBlockChanged"
QT_MOC_LITERAL(4, 39, 17), // "rightBlockChanged"
QT_MOC_LITERAL(5, 57, 17), // "showDialogChanged"
QT_MOC_LITERAL(6, 75, 11), // "roleChanged"
QT_MOC_LITERAL(7, 87, 13), // "resultChanged"
QT_MOC_LITERAL(8, 101, 9), // "startGame"
QT_MOC_LITERAL(9, 111, 6), // "update"
QT_MOC_LITERAL(10, 118, 7), // "setSize"
QT_MOC_LITERAL(11, 126, 1), // "x"
QT_MOC_LITERAL(12, 128, 1), // "y"
QT_MOC_LITERAL(13, 130, 10), // "updateBall"
QT_MOC_LITERAL(14, 141, 2), // "bX"
QT_MOC_LITERAL(15, 144, 2), // "bY"
QT_MOC_LITERAL(16, 147, 15), // "updateLeftBlock"
QT_MOC_LITERAL(17, 163, 2), // "lY"
QT_MOC_LITERAL(18, 166, 16), // "updateRightBlock"
QT_MOC_LITERAL(19, 183, 2), // "rY"
QT_MOC_LITERAL(20, 186, 11), // "startServer"
QT_MOC_LITERAL(21, 198, 11), // "startClient"
QT_MOC_LITERAL(22, 210, 15), // "clientConnected"
QT_MOC_LITERAL(23, 226, 18), // "clientDisconnected"
QT_MOC_LITERAL(24, 245, 15), // "serverConnected"
QT_MOC_LITERAL(25, 261, 18), // "serverDisconnected"
QT_MOC_LITERAL(26, 280, 11), // "socketError"
QT_MOC_LITERAL(27, 292, 29), // "QBluetoothSocket::SocketError"
QT_MOC_LITERAL(28, 322, 11), // "serverError"
QT_MOC_LITERAL(29, 334, 23), // "QBluetoothServer::Error"
QT_MOC_LITERAL(30, 358, 16), // "serviceScanError"
QT_MOC_LITERAL(31, 375, 38), // "QBluetoothServiceDiscoveryAge..."
QT_MOC_LITERAL(32, 414, 4), // "done"
QT_MOC_LITERAL(33, 419, 10), // "addService"
QT_MOC_LITERAL(34, 430, 21), // "QBluetoothServiceInfo"
QT_MOC_LITERAL(35, 452, 10), // "readSocket"
QT_MOC_LITERAL(36, 463, 5), // "ballX"
QT_MOC_LITERAL(37, 469, 5), // "ballY"
QT_MOC_LITERAL(38, 475, 10), // "leftBlockY"
QT_MOC_LITERAL(39, 486, 11), // "rightBlockY"
QT_MOC_LITERAL(40, 498, 10), // "showDialog"
QT_MOC_LITERAL(41, 509, 7), // "message"
QT_MOC_LITERAL(42, 517, 4), // "role"
QT_MOC_LITERAL(43, 522, 10), // "leftResult"
QT_MOC_LITERAL(44, 533, 11) // "rightResult"

    },
    "PingPong\0ballChanged\0\0leftBlockChanged\0"
    "rightBlockChanged\0showDialogChanged\0"
    "roleChanged\0resultChanged\0startGame\0"
    "update\0setSize\0x\0y\0updateBall\0bX\0bY\0"
    "updateLeftBlock\0lY\0updateRightBlock\0"
    "rY\0startServer\0startClient\0clientConnected\0"
    "clientDisconnected\0serverConnected\0"
    "serverDisconnected\0socketError\0"
    "QBluetoothSocket::SocketError\0serverError\0"
    "QBluetoothServer::Error\0serviceScanError\0"
    "QBluetoothServiceDiscoveryAgent::Error\0"
    "done\0addService\0QBluetoothServiceInfo\0"
    "readSocket\0ballX\0ballY\0leftBlockY\0"
    "rightBlockY\0showDialog\0message\0role\0"
    "leftResult\0rightResult"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PingPong[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      24,   14, // methods
       9,  178, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       6,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  134,    2, 0x06 /* Public */,
       3,    0,  135,    2, 0x06 /* Public */,
       4,    0,  136,    2, 0x06 /* Public */,
       5,    0,  137,    2, 0x06 /* Public */,
       6,    0,  138,    2, 0x06 /* Public */,
       7,    0,  139,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,  140,    2, 0x0a /* Public */,
       9,    0,  141,    2, 0x0a /* Public */,
      10,    2,  142,    2, 0x0a /* Public */,
      13,    2,  147,    2, 0x0a /* Public */,
      16,    1,  152,    2, 0x0a /* Public */,
      18,    1,  155,    2, 0x0a /* Public */,
      20,    0,  158,    2, 0x0a /* Public */,
      21,    0,  159,    2, 0x0a /* Public */,
      22,    0,  160,    2, 0x0a /* Public */,
      23,    0,  161,    2, 0x0a /* Public */,
      24,    0,  162,    2, 0x0a /* Public */,
      25,    0,  163,    2, 0x0a /* Public */,
      26,    1,  164,    2, 0x0a /* Public */,
      28,    1,  167,    2, 0x0a /* Public */,
      30,    1,  170,    2, 0x0a /* Public */,
      32,    0,  173,    2, 0x0a /* Public */,
      33,    1,  174,    2, 0x0a /* Public */,
      35,    0,  177,    2, 0x0a /* Public */,

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

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Float, QMetaType::Float,   11,   12,
    QMetaType::Void, QMetaType::Float, QMetaType::Float,   14,   15,
    QMetaType::Void, QMetaType::Float,   17,
    QMetaType::Void, QMetaType::Float,   19,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 27,    2,
    QMetaType::Void, 0x80000000 | 29,    2,
    QMetaType::Void, 0x80000000 | 31,    2,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 34,    2,
    QMetaType::Void,

 // properties: name, type, flags
      36, QMetaType::Float, 0x00495001,
      37, QMetaType::Float, 0x00495001,
      38, QMetaType::Float, 0x00495001,
      39, QMetaType::Float, 0x00495001,
      40, QMetaType::Bool, 0x00495001,
      41, QMetaType::QString, 0x00495001,
      42, QMetaType::Int, 0x00495001,
      43, QMetaType::Int, 0x00495001,
      44, QMetaType::Int, 0x00495001,

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

       0        // eod
};

void PingPong::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<PingPong *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->ballChanged(); break;
        case 1: _t->leftBlockChanged(); break;
        case 2: _t->rightBlockChanged(); break;
        case 3: _t->showDialogChanged(); break;
        case 4: _t->roleChanged(); break;
        case 5: _t->resultChanged(); break;
        case 6: _t->startGame(); break;
        case 7: _t->update(); break;
        case 8: _t->setSize((*reinterpret_cast< const float(*)>(_a[1])),(*reinterpret_cast< const float(*)>(_a[2]))); break;
        case 9: _t->updateBall((*reinterpret_cast< const float(*)>(_a[1])),(*reinterpret_cast< const float(*)>(_a[2]))); break;
        case 10: _t->updateLeftBlock((*reinterpret_cast< const float(*)>(_a[1]))); break;
        case 11: _t->updateRightBlock((*reinterpret_cast< const float(*)>(_a[1]))); break;
        case 12: _t->startServer(); break;
        case 13: _t->startClient(); break;
        case 14: _t->clientConnected(); break;
        case 15: _t->clientDisconnected(); break;
        case 16: _t->serverConnected(); break;
        case 17: _t->serverDisconnected(); break;
        case 18: _t->socketError((*reinterpret_cast< QBluetoothSocket::SocketError(*)>(_a[1]))); break;
        case 19: _t->serverError((*reinterpret_cast< QBluetoothServer::Error(*)>(_a[1]))); break;
        case 20: _t->serviceScanError((*reinterpret_cast< QBluetoothServiceDiscoveryAgent::Error(*)>(_a[1]))); break;
        case 21: _t->done(); break;
        case 22: _t->addService((*reinterpret_cast< const QBluetoothServiceInfo(*)>(_a[1]))); break;
        case 23: _t->readSocket(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 22:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QBluetoothServiceInfo >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (PingPong::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PingPong::ballChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (PingPong::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PingPong::leftBlockChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (PingPong::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PingPong::rightBlockChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (PingPong::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PingPong::showDialogChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (PingPong::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PingPong::roleChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (PingPong::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PingPong::resultChanged)) {
                *result = 5;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<PingPong *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< float*>(_v) = _t->ballX(); break;
        case 1: *reinterpret_cast< float*>(_v) = _t->ballY(); break;
        case 2: *reinterpret_cast< float*>(_v) = _t->leftBlockY(); break;
        case 3: *reinterpret_cast< float*>(_v) = _t->rightBlockY(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->showDialog(); break;
        case 5: *reinterpret_cast< QString*>(_v) = _t->message(); break;
        case 6: *reinterpret_cast< int*>(_v) = _t->role(); break;
        case 7: *reinterpret_cast< int*>(_v) = _t->leftResult(); break;
        case 8: *reinterpret_cast< int*>(_v) = _t->rightResult(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject PingPong::staticMetaObject = { {
    &QObject::staticMetaObject,
    qt_meta_stringdata_PingPong.data,
    qt_meta_data_PingPong,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int PingPong::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 < 24)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 24;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 24)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 24;
    }
#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 -= 9;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 9;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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

// SIGNAL 2
void PingPong::rightBlockChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void PingPong::showDialogChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void PingPong::roleChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void PingPong::resultChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
