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

#include <memory>
#include "../../../../kde-qtserialbus/src/serialbus/qcanbusdevice.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qcanbusdevice.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_QCanBusDevice_t {
    QByteArrayData data[40];
    char stringdata0[518];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QCanBusDevice_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QCanBusDevice_t qt_meta_stringdata_QCanBusDevice = {
    {
QT_MOC_LITERAL(0, 0, 13), // "QCanBusDevice"
QT_MOC_LITERAL(1, 14, 13), // "errorOccurred"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 26), // "QCanBusDevice::CanBusError"
QT_MOC_LITERAL(4, 56, 14), // "framesReceived"
QT_MOC_LITERAL(5, 71, 13), // "framesWritten"
QT_MOC_LITERAL(6, 85, 11), // "framesCount"
QT_MOC_LITERAL(7, 97, 12), // "stateChanged"
QT_MOC_LITERAL(8, 110, 32), // "QCanBusDevice::CanBusDeviceState"
QT_MOC_LITERAL(9, 143, 5), // "state"
QT_MOC_LITERAL(10, 149, 11), // "CanBusError"
QT_MOC_LITERAL(11, 161, 7), // "NoError"
QT_MOC_LITERAL(12, 169, 9), // "ReadError"
QT_MOC_LITERAL(13, 179, 10), // "WriteError"
QT_MOC_LITERAL(14, 190, 15), // "ConnectionError"
QT_MOC_LITERAL(15, 206, 18), // "ConfigurationError"
QT_MOC_LITERAL(16, 225, 12), // "UnknownError"
QT_MOC_LITERAL(17, 238, 14), // "OperationError"
QT_MOC_LITERAL(18, 253, 12), // "TimeoutError"
QT_MOC_LITERAL(19, 266, 17), // "CanBusDeviceState"
QT_MOC_LITERAL(20, 284, 16), // "UnconnectedState"
QT_MOC_LITERAL(21, 301, 15), // "ConnectingState"
QT_MOC_LITERAL(22, 317, 14), // "ConnectedState"
QT_MOC_LITERAL(23, 332, 12), // "ClosingState"
QT_MOC_LITERAL(24, 345, 12), // "CanBusStatus"
QT_MOC_LITERAL(25, 358, 7), // "Unknown"
QT_MOC_LITERAL(26, 366, 4), // "Good"
QT_MOC_LITERAL(27, 371, 7), // "Warning"
QT_MOC_LITERAL(28, 379, 5), // "Error"
QT_MOC_LITERAL(29, 385, 6), // "BusOff"
QT_MOC_LITERAL(30, 392, 16), // "ConfigurationKey"
QT_MOC_LITERAL(31, 409, 12), // "RawFilterKey"
QT_MOC_LITERAL(32, 422, 14), // "ErrorFilterKey"
QT_MOC_LITERAL(33, 437, 11), // "LoopbackKey"
QT_MOC_LITERAL(34, 449, 13), // "ReceiveOwnKey"
QT_MOC_LITERAL(35, 463, 10), // "BitRateKey"
QT_MOC_LITERAL(36, 474, 8), // "CanFdKey"
QT_MOC_LITERAL(37, 483, 14), // "DataBitRateKey"
QT_MOC_LITERAL(38, 498, 11), // "ProtocolKey"
QT_MOC_LITERAL(39, 510, 7) // "UserKey"

    },
    "QCanBusDevice\0errorOccurred\0\0"
    "QCanBusDevice::CanBusError\0framesReceived\0"
    "framesWritten\0framesCount\0stateChanged\0"
    "QCanBusDevice::CanBusDeviceState\0state\0"
    "CanBusError\0NoError\0ReadError\0WriteError\0"
    "ConnectionError\0ConfigurationError\0"
    "UnknownError\0OperationError\0TimeoutError\0"
    "CanBusDeviceState\0UnconnectedState\0"
    "ConnectingState\0ConnectedState\0"
    "ClosingState\0CanBusStatus\0Unknown\0"
    "Good\0Warning\0Error\0BusOff\0ConfigurationKey\0"
    "RawFilterKey\0ErrorFilterKey\0LoopbackKey\0"
    "ReceiveOwnKey\0BitRateKey\0CanFdKey\0"
    "DataBitRateKey\0ProtocolKey\0UserKey"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QCanBusDevice[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   34,    2, 0x06 /* Public */,
       4,    0,   37,    2, 0x06 /* Public */,
       5,    1,   38,    2, 0x06 /* Public */,
       7,    1,   41,    2, 0x06 /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::LongLong,    6,
    QMetaType::Void, 0x80000000 | 8,    9,

 // enums: name, alias, flags, count, data
      10,   10, 0x0,    8,   64,
      19,   19, 0x0,    4,   80,
      24,   24, 0x2,    5,   88,
      30,   30, 0x0,    9,   98,

 // enum data: key, value
      11, uint(QCanBusDevice::NoError),
      12, uint(QCanBusDevice::ReadError),
      13, uint(QCanBusDevice::WriteError),
      14, uint(QCanBusDevice::ConnectionError),
      15, uint(QCanBusDevice::ConfigurationError),
      16, uint(QCanBusDevice::UnknownError),
      17, uint(QCanBusDevice::OperationError),
      18, uint(QCanBusDevice::TimeoutError),
      20, uint(QCanBusDevice::UnconnectedState),
      21, uint(QCanBusDevice::ConnectingState),
      22, uint(QCanBusDevice::ConnectedState),
      23, uint(QCanBusDevice::ClosingState),
      25, uint(QCanBusDevice::CanBusStatus::Unknown),
      26, uint(QCanBusDevice::CanBusStatus::Good),
      27, uint(QCanBusDevice::CanBusStatus::Warning),
      28, uint(QCanBusDevice::CanBusStatus::Error),
      29, uint(QCanBusDevice::CanBusStatus::BusOff),
      31, uint(QCanBusDevice::RawFilterKey),
      32, uint(QCanBusDevice::ErrorFilterKey),
      33, uint(QCanBusDevice::LoopbackKey),
      34, uint(QCanBusDevice::ReceiveOwnKey),
      35, uint(QCanBusDevice::BitRateKey),
      36, uint(QCanBusDevice::CanFdKey),
      37, uint(QCanBusDevice::DataBitRateKey),
      38, uint(QCanBusDevice::ProtocolKey),
      39, uint(QCanBusDevice::UserKey),

       0        // eod
};

void QCanBusDevice::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QCanBusDevice *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->errorOccurred((*reinterpret_cast< QCanBusDevice::CanBusError(*)>(_a[1]))); break;
        case 1: _t->framesReceived(); break;
        case 2: _t->framesWritten((*reinterpret_cast< qint64(*)>(_a[1]))); break;
        case 3: _t->stateChanged((*reinterpret_cast< QCanBusDevice::CanBusDeviceState(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QCanBusDevice::*)(QCanBusDevice::CanBusError );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCanBusDevice::errorOccurred)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QCanBusDevice::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCanBusDevice::framesReceived)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QCanBusDevice::*)(qint64 );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCanBusDevice::framesWritten)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (QCanBusDevice::*)(QCanBusDevice::CanBusDeviceState );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QCanBusDevice::stateChanged)) {
                *result = 3;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject QCanBusDevice::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_QCanBusDevice.data,
    qt_meta_data_QCanBusDevice,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int QCanBusDevice::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;
    }
    return _id;
}

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

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

// SIGNAL 2
void QCanBusDevice::framesWritten(qint64 _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void QCanBusDevice::stateChanged(QCanBusDevice::CanBusDeviceState _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
