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

#include "../../src/choqok-1.6.0/libchoqok/pluginmanager.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'pluginmanager.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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
struct qt_meta_stringdata_Choqok__PluginManager_t {
    QByteArrayData data[23];
    char stringdata0[314];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Choqok__PluginManager_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Choqok__PluginManager_t qt_meta_stringdata_Choqok__PluginManager = {
    {
QT_MOC_LITERAL(0, 0, 21), // "Choqok::PluginManager"
QT_MOC_LITERAL(1, 22, 12), // "pluginLoaded"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 15), // "Choqok::Plugin*"
QT_MOC_LITERAL(4, 52, 6), // "plugin"
QT_MOC_LITERAL(5, 59, 14), // "pluginUnloaded"
QT_MOC_LITERAL(6, 74, 10), // "pluginName"
QT_MOC_LITERAL(7, 85, 16), // "allPluginsLoaded"
QT_MOC_LITERAL(8, 102, 10), // "loadPlugin"
QT_MOC_LITERAL(9, 113, 7), // "Plugin*"
QT_MOC_LITERAL(10, 121, 8), // "pluginId"
QT_MOC_LITERAL(11, 130, 14), // "PluginLoadMode"
QT_MOC_LITERAL(12, 145, 4), // "mode"
QT_MOC_LITERAL(13, 150, 12), // "unloadPlugin"
QT_MOC_LITERAL(14, 163, 14), // "loadAllPlugins"
QT_MOC_LITERAL(15, 178, 19), // "slotPluginDestroyed"
QT_MOC_LITERAL(16, 198, 19), // "slotShutdownTimeout"
QT_MOC_LITERAL(17, 218, 16), // "slotShutdownDone"
QT_MOC_LITERAL(18, 235, 24), // "slotPluginReadyForUnload"
QT_MOC_LITERAL(19, 260, 18), // "slotLoadNextPlugin"
QT_MOC_LITERAL(20, 279, 15), // "slotAboutToQuit"
QT_MOC_LITERAL(21, 295, 8), // "LoadSync"
QT_MOC_LITERAL(22, 304, 9) // "LoadAsync"

    },
    "Choqok::PluginManager\0pluginLoaded\0\0"
    "Choqok::Plugin*\0plugin\0pluginUnloaded\0"
    "pluginName\0allPluginsLoaded\0loadPlugin\0"
    "Plugin*\0pluginId\0PluginLoadMode\0mode\0"
    "unloadPlugin\0loadAllPlugins\0"
    "slotPluginDestroyed\0slotShutdownTimeout\0"
    "slotShutdownDone\0slotPluginReadyForUnload\0"
    "slotLoadNextPlugin\0slotAboutToQuit\0"
    "LoadSync\0LoadAsync"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Choqok__PluginManager[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       0,    0, // properties
       1,  106, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   79,    2, 0x06 /* Public */,
       5,    1,   82,    2, 0x06 /* Public */,
       7,    0,   85,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    2,   86,    2, 0x0a /* Public */,
       8,    1,   91,    2, 0x2a /* Public | MethodCloned */,
      13,    1,   94,    2, 0x0a /* Public */,
      14,    0,   97,    2, 0x0a /* Public */,
      15,    1,   98,    2, 0x08 /* Private */,
      16,    0,  101,    2, 0x08 /* Private */,
      17,    0,  102,    2, 0x08 /* Private */,
      18,    0,  103,    2, 0x08 /* Private */,
      19,    0,  104,    2, 0x08 /* Private */,
      20,    0,  105,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void,

 // slots: parameters
    0x80000000 | 9, QMetaType::QString, 0x80000000 | 11,   10,   12,
    0x80000000 | 9, QMetaType::QString,   10,
    QMetaType::Bool, QMetaType::QString,    6,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QObjectStar,    4,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // enums: name, flags, count, data
      11, 0x0,    2,  110,

 // enum data: key, value
      21, uint(Choqok::PluginManager::LoadSync),
      22, uint(Choqok::PluginManager::LoadAsync),

       0        // eod
};

void Choqok::PluginManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PluginManager *_t = static_cast<PluginManager *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->pluginLoaded((*reinterpret_cast< Choqok::Plugin*(*)>(_a[1]))); break;
        case 1: _t->pluginUnloaded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->allPluginsLoaded(); break;
        case 3: { Plugin* _r = _t->loadPlugin((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< PluginLoadMode(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< Plugin**>(_a[0]) = _r; }  break;
        case 4: { Plugin* _r = _t->loadPlugin((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< Plugin**>(_a[0]) = _r; }  break;
        case 5: { bool _r = _t->unloadPlugin((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 6: _t->loadAllPlugins(); break;
        case 7: _t->slotPluginDestroyed((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
        case 8: _t->slotShutdownTimeout(); break;
        case 9: _t->slotShutdownDone(); break;
        case 10: _t->slotPluginReadyForUnload(); break;
        case 11: _t->slotLoadNextPlugin(); break;
        case 12: _t->slotAboutToQuit(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Choqok::Plugin* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (PluginManager::*_t)(Choqok::Plugin * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PluginManager::pluginLoaded)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PluginManager::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PluginManager::pluginUnloaded)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PluginManager::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PluginManager::allPluginsLoaded)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject Choqok::PluginManager::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Choqok__PluginManager.data,
      qt_meta_data_Choqok__PluginManager,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Choqok::PluginManager::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Choqok__PluginManager.stringdata0))
        return static_cast<void*>(const_cast< PluginManager*>(this));
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void Choqok::PluginManager::pluginLoaded(Choqok::Plugin * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Choqok::PluginManager::pluginUnloaded(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Choqok::PluginManager::allPluginsLoaded()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
