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

#include "../ES/ESObject.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'ESObject.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.11.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_ESSetting_t {
    QByteArrayData data[1];
    char stringdata0[10];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ESSetting_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ESSetting_t qt_meta_stringdata_ESSetting = {
    {
QT_MOC_LITERAL(0, 0, 9) // "ESSetting"

    },
    "ESSetting"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ESSetting[] = {

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

       0        // eod
};

void ESSetting::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

QT_INIT_METAOBJECT const QMetaObject ESSetting::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_ESSetting.data,
      qt_meta_data_ESSetting,  qt_static_metacall, nullptr, nullptr}
};


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

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

int ESSetting::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_ESObject_t {
    QByteArrayData data[32];
    char stringdata0[273];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ESObject_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ESObject_t qt_meta_stringdata_ESObject = {
    {
QT_MOC_LITERAL(0, 0, 8), // "ESObject"
QT_MOC_LITERAL(1, 9, 11), // "typeChanged"
QT_MOC_LITERAL(2, 21, 0), // ""
QT_MOC_LITERAL(3, 22, 9), // "idChanged"
QT_MOC_LITERAL(4, 32, 11), // "nameChanged"
QT_MOC_LITERAL(5, 44, 10), // "clsChanged"
QT_MOC_LITERAL(6, 55, 11), // "pathChanged"
QT_MOC_LITERAL(7, 67, 15), // "childIdsChanged"
QT_MOC_LITERAL(8, 83, 15), // "parentIdChanged"
QT_MOC_LITERAL(9, 99, 13), // "serialChanged"
QT_MOC_LITERAL(10, 113, 15), // "settingsChanged"
QT_MOC_LITERAL(11, 129, 4), // "type"
QT_MOC_LITERAL(12, 134, 4), // "Type"
QT_MOC_LITERAL(13, 139, 2), // "id"
QT_MOC_LITERAL(14, 142, 4), // "name"
QT_MOC_LITERAL(15, 147, 3), // "cls"
QT_MOC_LITERAL(16, 151, 4), // "path"
QT_MOC_LITERAL(17, 156, 8), // "childIds"
QT_MOC_LITERAL(18, 165, 8), // "parentId"
QT_MOC_LITERAL(19, 174, 6), // "serial"
QT_MOC_LITERAL(20, 181, 8), // "settings"
QT_MOC_LITERAL(21, 190, 10), // "ESSetting*"
QT_MOC_LITERAL(22, 201, 4), // "User"
QT_MOC_LITERAL(23, 206, 6), // "Device"
QT_MOC_LITERAL(24, 213, 7), // "Service"
QT_MOC_LITERAL(25, 221, 5), // "Group"
QT_MOC_LITERAL(26, 227, 6), // "Script"
QT_MOC_LITERAL(27, 234, 6), // "Policy"
QT_MOC_LITERAL(28, 241, 8), // "Location"
QT_MOC_LITERAL(29, 250, 6), // "Sensor"
QT_MOC_LITERAL(30, 257, 8), // "Actuator"
QT_MOC_LITERAL(31, 266, 6) // "Stream"

    },
    "ESObject\0typeChanged\0\0idChanged\0"
    "nameChanged\0clsChanged\0pathChanged\0"
    "childIdsChanged\0parentIdChanged\0"
    "serialChanged\0settingsChanged\0type\0"
    "Type\0id\0name\0cls\0path\0childIds\0parentId\0"
    "serial\0settings\0ESSetting*\0User\0Device\0"
    "Service\0Group\0Script\0Policy\0Location\0"
    "Sensor\0Actuator\0Stream"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ESObject[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       9,   14, // methods
       9,   68, // properties
       1,  104, // enums/sets
       0,    0, // constructors
       0,       // flags
       9,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   59,    2, 0x06 /* Public */,
       3,    0,   60,    2, 0x06 /* Public */,
       4,    0,   61,    2, 0x06 /* Public */,
       5,    0,   62,    2, 0x06 /* Public */,
       6,    0,   63,    2, 0x06 /* Public */,
       7,    0,   64,    2, 0x06 /* Public */,
       8,    0,   65,    2, 0x06 /* Public */,
       9,    0,   66,    2, 0x06 /* Public */,
      10,    0,   67,    2, 0x06 /* Public */,

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

 // properties: name, type, flags
      11, 0x80000000 | 12, 0x0049510b,
      13, QMetaType::QString, 0x00495103,
      14, QMetaType::QString, 0x00495103,
      15, QMetaType::QString, 0x00495103,
      16, QMetaType::QString, 0x00495103,
      17, QMetaType::QStringList, 0x00495103,
      18, QMetaType::QString, 0x00495103,
      19, QMetaType::QString, 0x00495103,
      20, 0x80000000 | 21, 0x00495009,

 // properties: notify_signal_id
       0,
       1,
       2,
       3,
       4,
       5,
       6,
       7,
       8,

 // enums: name, flags, count, data
      12, 0x0,   10,  108,

 // enum data: key, value
      22, uint(ESObject::User),
      23, uint(ESObject::Device),
      24, uint(ESObject::Service),
      25, uint(ESObject::Group),
      26, uint(ESObject::Script),
      27, uint(ESObject::Policy),
      28, uint(ESObject::Location),
      29, uint(ESObject::Sensor),
      30, uint(ESObject::Actuator),
      31, uint(ESObject::Stream),

       0        // eod
};

void ESObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ESObject *_t = static_cast<ESObject *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->typeChanged(); break;
        case 1: _t->idChanged(); break;
        case 2: _t->nameChanged(); break;
        case 3: _t->clsChanged(); break;
        case 4: _t->pathChanged(); break;
        case 5: _t->childIdsChanged(); break;
        case 6: _t->parentIdChanged(); break;
        case 7: _t->serialChanged(); break;
        case 8: _t->settingsChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::typeChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::idChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::nameChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::clsChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::pathChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::childIdsChanged)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::parentIdChanged)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::serialChanged)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (ESObject::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ESObject::settingsChanged)) {
                *result = 8;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ESSetting* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        ESObject *_t = static_cast<ESObject *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Type*>(_v) = _t->type(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->id(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->name(); break;
        case 3: *reinterpret_cast< QString*>(_v) = _t->cls(); break;
        case 4: *reinterpret_cast< QString*>(_v) = _t->path(); break;
        case 5: *reinterpret_cast< QStringList*>(_v) = _t->childIds(); break;
        case 6: *reinterpret_cast< QString*>(_v) = _t->parentId(); break;
        case 7: *reinterpret_cast< QString*>(_v) = _t->serial(); break;
        case 8: *reinterpret_cast< ESSetting**>(_v) = _t->settings(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        ESObject *_t = static_cast<ESObject *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setType(*reinterpret_cast< Type*>(_v)); break;
        case 1: _t->setId(*reinterpret_cast< QString*>(_v)); break;
        case 2: _t->setName(*reinterpret_cast< QString*>(_v)); break;
        case 3: _t->setCls(*reinterpret_cast< QString*>(_v)); break;
        case 4: _t->setPath(*reinterpret_cast< QString*>(_v)); break;
        case 5: _t->setChildIds(*reinterpret_cast< QStringList*>(_v)); break;
        case 6: _t->setParentId(*reinterpret_cast< QString*>(_v)); break;
        case 7: _t->setSerial(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject ESObject::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_ESObject.data,
      qt_meta_data_ESObject,  qt_static_metacall, nullptr, nullptr}
};


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

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

int ESObject::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 < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 9;
    }
#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 ESObject::typeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

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

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

// SIGNAL 5
void ESObject::childIdsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void ESObject::parentIdChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void ESObject::serialChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void ESObject::settingsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
