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

#include "../../../../src/plasma-framework-5.43.0/src/declarativeimports/core/datasource.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'datasource.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_Plasma__DataSource_t {
    QByteArrayData data[37];
    char stringdata0[512];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Plasma__DataSource_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Plasma__DataSource_t qt_meta_stringdata_Plasma__DataSource = {
    {
QT_MOC_LITERAL(0, 0, 18), // "Plasma::DataSource"
QT_MOC_LITERAL(1, 19, 7), // "newData"
QT_MOC_LITERAL(2, 27, 0), // ""
QT_MOC_LITERAL(3, 28, 10), // "sourceName"
QT_MOC_LITERAL(4, 39, 4), // "data"
QT_MOC_LITERAL(5, 44, 11), // "sourceAdded"
QT_MOC_LITERAL(6, 56, 6), // "source"
QT_MOC_LITERAL(7, 63, 13), // "sourceRemoved"
QT_MOC_LITERAL(8, 77, 15), // "sourceConnected"
QT_MOC_LITERAL(9, 93, 18), // "sourceDisconnected"
QT_MOC_LITERAL(10, 112, 15), // "intervalChanged"
QT_MOC_LITERAL(11, 128, 24), // "intervalAlignmentChanged"
QT_MOC_LITERAL(12, 153, 13), // "engineChanged"
QT_MOC_LITERAL(13, 167, 11), // "dataChanged"
QT_MOC_LITERAL(14, 179, 23), // "connectedSourcesChanged"
QT_MOC_LITERAL(15, 203, 14), // "sourcesChanged"
QT_MOC_LITERAL(16, 218, 11), // "dataUpdated"
QT_MOC_LITERAL(17, 230, 24), // "Plasma::DataEngine::Data"
QT_MOC_LITERAL(18, 255, 12), // "modelChanged"
QT_MOC_LITERAL(19, 268, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(20, 288, 5), // "model"
QT_MOC_LITERAL(21, 294, 12), // "removeSource"
QT_MOC_LITERAL(22, 307, 9), // "setupData"
QT_MOC_LITERAL(23, 317, 13), // "updateSources"
QT_MOC_LITERAL(24, 331, 16), // "serviceForSource"
QT_MOC_LITERAL(25, 348, 13), // "connectSource"
QT_MOC_LITERAL(26, 362, 16), // "disconnectSource"
QT_MOC_LITERAL(27, 379, 5), // "valid"
QT_MOC_LITERAL(28, 385, 8), // "interval"
QT_MOC_LITERAL(29, 394, 17), // "intervalAlignment"
QT_MOC_LITERAL(30, 412, 32), // "Plasma::Types::IntervalAlignment"
QT_MOC_LITERAL(31, 445, 10), // "dataEngine"
QT_MOC_LITERAL(32, 456, 6), // "engine"
QT_MOC_LITERAL(33, 463, 16), // "connectedSources"
QT_MOC_LITERAL(34, 480, 7), // "sources"
QT_MOC_LITERAL(35, 488, 16), // "QQmlPropertyMap*"
QT_MOC_LITERAL(36, 505, 6) // "models"

    },
    "Plasma::DataSource\0newData\0\0sourceName\0"
    "data\0sourceAdded\0source\0sourceRemoved\0"
    "sourceConnected\0sourceDisconnected\0"
    "intervalChanged\0intervalAlignmentChanged\0"
    "engineChanged\0dataChanged\0"
    "connectedSourcesChanged\0sourcesChanged\0"
    "dataUpdated\0Plasma::DataEngine::Data\0"
    "modelChanged\0QAbstractItemModel*\0model\0"
    "removeSource\0setupData\0updateSources\0"
    "serviceForSource\0connectSource\0"
    "disconnectSource\0valid\0interval\0"
    "intervalAlignment\0Plasma::Types::IntervalAlignment\0"
    "dataEngine\0engine\0connectedSources\0"
    "sources\0QQmlPropertyMap*\0models"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Plasma__DataSource[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      19,   14, // methods
       9,  156, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      11,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,  109,    2, 0x06 /* Public */,
       5,    1,  114,    2, 0x06 /* Public */,
       7,    1,  117,    2, 0x06 /* Public */,
       8,    1,  120,    2, 0x06 /* Public */,
       9,    1,  123,    2, 0x06 /* Public */,
      10,    0,  126,    2, 0x06 /* Public */,
      11,    0,  127,    2, 0x06 /* Public */,
      12,    0,  128,    2, 0x06 /* Public */,
      13,    0,  129,    2, 0x06 /* Public */,
      14,    0,  130,    2, 0x06 /* Public */,
      15,    0,  131,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      16,    2,  132,    2, 0x0a /* Public */,
      18,    2,  137,    2, 0x0a /* Public */,
      21,    1,  142,    2, 0x09 /* Protected */,
      22,    0,  145,    2, 0x09 /* Protected */,
      23,    0,  146,    2, 0x09 /* Protected */,

 // methods: name, argc, parameters, tag, flags
      24,    1,  147,    2, 0x02 /* Public */,
      25,    1,  150,    2, 0x02 /* Public */,
      26,    1,  153,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QVariantMap,    3,    4,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::QString, 0x80000000 | 17,    3,    4,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 19,    3,   20,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void,
    QMetaType::Void,

 // methods: parameters
    QMetaType::QObjectStar, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString,    6,

 // properties: name, type, flags
      27, QMetaType::Bool, 0x00095001,
      28, QMetaType::Int, 0x00495103,
      29, 0x80000000 | 30, 0x0049510b,
      31, QMetaType::QString, 0x00495003,
      32, QMetaType::QString, 0x00495103,
      33, QMetaType::QStringList, 0x00495103,
      34, QMetaType::QStringList, 0x00495001,
       4, 0x80000000 | 35, 0x00095409,
      36, 0x80000000 | 35, 0x00095409,

 // properties: notify_signal_id
       0,
       5,
       6,
       7,
       7,
       9,
      10,
       0,
       0,

       0        // eod
};

void Plasma::DataSource::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DataSource *_t = static_cast<DataSource *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->newData((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariantMap(*)>(_a[2]))); break;
        case 1: _t->sourceAdded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->sourceRemoved((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->sourceConnected((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->sourceDisconnected((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: _t->intervalChanged(); break;
        case 6: _t->intervalAlignmentChanged(); break;
        case 7: _t->engineChanged(); break;
        case 8: _t->dataChanged(); break;
        case 9: _t->connectedSourcesChanged(); break;
        case 10: _t->sourcesChanged(); break;
        case 11: _t->dataUpdated((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const Plasma::DataEngine::Data(*)>(_a[2]))); break;
        case 12: _t->modelChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QAbstractItemModel*(*)>(_a[2]))); break;
        case 13: _t->removeSource((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 14: _t->setupData(); break;
        case 15: _t->updateSources(); break;
        case 16: { QObject* _r = _t->serviceForSource((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 17: _t->connectSource((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 18: _t->disconnectSource((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAbstractItemModel* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DataSource::*_t)(const QString & , const QVariantMap & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::newData)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::sourceAdded)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::sourceRemoved)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::sourceConnected)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::sourceDisconnected)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::intervalChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::intervalAlignmentChanged)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::engineChanged)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::dataChanged)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::connectedSourcesChanged)) {
                *result = 9;
                return;
            }
        }
        {
            typedef void (DataSource::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSource::sourcesChanged)) {
                *result = 10;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
        case 7:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlPropertyMap* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        DataSource *_t = static_cast<DataSource *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->valid(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->interval(); break;
        case 2: *reinterpret_cast< Plasma::Types::IntervalAlignment*>(_v) = _t->intervalAlignment(); break;
        case 3: *reinterpret_cast< QString*>(_v) = _t->engine(); break;
        case 4: *reinterpret_cast< QString*>(_v) = _t->engine(); break;
        case 5: *reinterpret_cast< QStringList*>(_v) = _t->connectedSources(); break;
        case 6: *reinterpret_cast< QStringList*>(_v) = _t->sources(); break;
        case 7: *reinterpret_cast< QQmlPropertyMap**>(_v) = _t->data(); break;
        case 8: *reinterpret_cast< QQmlPropertyMap**>(_v) = _t->models(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        DataSource *_t = static_cast<DataSource *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setInterval(*reinterpret_cast< int*>(_v)); break;
        case 2: _t->setIntervalAlignment(*reinterpret_cast< Plasma::Types::IntervalAlignment*>(_v)); break;
        case 3: _t->setEngine(*reinterpret_cast< QString*>(_v)); break;
        case 4: _t->setEngine(*reinterpret_cast< QString*>(_v)); break;
        case 5: _t->setConnectedSources(*reinterpret_cast< QStringList*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

static const QMetaObject * const qt_meta_extradata_Plasma__DataSource[] = {
        &Plasma::Types::staticMetaObject,
    nullptr
};

const QMetaObject Plasma::DataSource::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Plasma__DataSource.data,
      qt_meta_data_Plasma__DataSource,  qt_static_metacall, qt_meta_extradata_Plasma__DataSource, nullptr}
};


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

void *Plasma::DataSource::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Plasma__DataSource.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    if (!strcmp(_clname, "DataEngineConsumer"))
        return static_cast< DataEngineConsumer*>(this);
    if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    return QObject::qt_metacast(_clname);
}

int Plasma::DataSource::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 < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
#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 Plasma::DataSource::newData(const QString & _t1, const QVariantMap & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Plasma::DataSource::sourceAdded(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Plasma::DataSource::sourceRemoved(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Plasma::DataSource::sourceConnected(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void Plasma::DataSource::sourceDisconnected(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void Plasma::DataSource::intervalChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Plasma::DataSource::intervalAlignmentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void Plasma::DataSource::engineChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void Plasma::DataSource::dataChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void Plasma::DataSource::connectedSourcesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void Plasma::DataSource::sourcesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
