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

#include <memory>
#include "../../../../mgba-0.10.5/src/platform/qt/InputController.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'InputController.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. 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_QGBA__InputController_t {
    QByteArrayData data[28];
    char stringdata0[370];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QGBA__InputController_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QGBA__InputController_t qt_meta_stringdata_QGBA__InputController = {
    {
QT_MOC_LITERAL(0, 0, 21), // "QGBA::InputController"
QT_MOC_LITERAL(1, 22, 13), // "profileLoaded"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 7), // "profile"
QT_MOC_LITERAL(4, 45, 21), // "luminanceValueChanged"
QT_MOC_LITERAL(5, 67, 5), // "value"
QT_MOC_LITERAL(6, 73, 11), // "testGamepad"
QT_MOC_LITERAL(7, 85, 4), // "type"
QT_MOC_LITERAL(8, 90, 15), // "updateJoysticks"
QT_MOC_LITERAL(9, 106, 18), // "suspendScreensaver"
QT_MOC_LITERAL(10, 125, 17), // "resumeScreensaver"
QT_MOC_LITERAL(11, 143, 25), // "setScreensaverSuspendable"
QT_MOC_LITERAL(12, 169, 22), // "increaseLuminanceLevel"
QT_MOC_LITERAL(13, 192, 22), // "decreaseLuminanceLevel"
QT_MOC_LITERAL(14, 215, 17), // "setLuminanceLevel"
QT_MOC_LITERAL(15, 233, 5), // "level"
QT_MOC_LITERAL(16, 239, 17), // "setLuminanceValue"
QT_MOC_LITERAL(17, 257, 7), // "uint8_t"
QT_MOC_LITERAL(18, 265, 12), // "loadCamImage"
QT_MOC_LITERAL(19, 278, 4), // "path"
QT_MOC_LITERAL(20, 283, 11), // "setCamImage"
QT_MOC_LITERAL(21, 295, 5), // "image"
QT_MOC_LITERAL(22, 301, 9), // "setCamera"
QT_MOC_LITERAL(23, 311, 2), // "id"
QT_MOC_LITERAL(24, 314, 18), // "prepareCamSettings"
QT_MOC_LITERAL(25, 333, 15), // "QCamera::Status"
QT_MOC_LITERAL(26, 349, 8), // "setupCam"
QT_MOC_LITERAL(27, 358, 11) // "teardownCam"

    },
    "QGBA::InputController\0profileLoaded\0"
    "\0profile\0luminanceValueChanged\0value\0"
    "testGamepad\0type\0updateJoysticks\0"
    "suspendScreensaver\0resumeScreensaver\0"
    "setScreensaverSuspendable\0"
    "increaseLuminanceLevel\0decreaseLuminanceLevel\0"
    "setLuminanceLevel\0level\0setLuminanceValue\0"
    "uint8_t\0loadCamImage\0path\0setCamImage\0"
    "image\0setCamera\0id\0prepareCamSettings\0"
    "QCamera::Status\0setupCam\0teardownCam"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QGBA__InputController[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      17,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   99,    2, 0x06 /* Public */,
       4,    1,  102,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    1,  105,    2, 0x0a /* Public */,
       8,    0,  108,    2, 0x0a /* Public */,
       9,    0,  109,    2, 0x0a /* Public */,
      10,    0,  110,    2, 0x0a /* Public */,
      11,    1,  111,    2, 0x0a /* Public */,
      12,    0,  114,    2, 0x0a /* Public */,
      13,    0,  115,    2, 0x0a /* Public */,
      14,    1,  116,    2, 0x0a /* Public */,
      16,    1,  119,    2, 0x0a /* Public */,
      18,    1,  122,    2, 0x0a /* Public */,
      20,    1,  125,    2, 0x0a /* Public */,
      22,    1,  128,    2, 0x0a /* Public */,
      24,    1,  131,    2, 0x08 /* Private */,
      26,    0,  134,    2, 0x08 /* Private */,
      27,    0,  135,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::Int,    5,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    7,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   15,
    QMetaType::Void, 0x80000000 | 17,    5,
    QMetaType::Void, QMetaType::QString,   19,
    QMetaType::Void, QMetaType::QImage,   21,
    QMetaType::Void, QMetaType::QByteArray,   23,
    QMetaType::Void, 0x80000000 | 25,    2,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void QGBA::InputController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<InputController *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->profileLoaded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->luminanceValueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: _t->testGamepad((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->updateJoysticks(); break;
        case 4: _t->suspendScreensaver(); break;
        case 5: _t->resumeScreensaver(); break;
        case 6: _t->setScreensaverSuspendable((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->increaseLuminanceLevel(); break;
        case 8: _t->decreaseLuminanceLevel(); break;
        case 9: _t->setLuminanceLevel((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 10: _t->setLuminanceValue((*reinterpret_cast< uint8_t(*)>(_a[1]))); break;
        case 11: _t->loadCamImage((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 12: _t->setCamImage((*reinterpret_cast< const QImage(*)>(_a[1]))); break;
        case 13: _t->setCamera((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 14: _t->prepareCamSettings((*reinterpret_cast< QCamera::Status(*)>(_a[1]))); break;
        case 15: _t->setupCam(); break;
        case 16: _t->teardownCam(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 14:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QCamera::Status >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (InputController::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&InputController::profileLoaded)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (InputController::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&InputController::luminanceValueChanged)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject QGBA::InputController::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_QGBA__InputController.data,
    qt_meta_data_QGBA__InputController,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int QGBA::InputController::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 < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    }
    return _id;
}

// SIGNAL 0
void QGBA::InputController::profileLoaded(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QGBA::InputController::luminanceValueChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
