/****************************************************************************
** Meta object code from reading C++ file 'codecompletionmodel.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/kdevplatform-5.0.3/language/codecompletion/codecompletionmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'codecompletionmodel.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_KDevelop__CodeCompletionModel_t {
    QByteArrayData data[16];
    char stringdata0[327];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KDevelop__CodeCompletionModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KDevelop__CodeCompletionModel_t qt_meta_stringdata_KDevelop__CodeCompletionModel = {
    {
QT_MOC_LITERAL(0, 0, 29), // "KDevelop::CodeCompletionModel"
QT_MOC_LITERAL(1, 30, 17), // "completionsNeeded"
QT_MOC_LITERAL(2, 48, 0), // ""
QT_MOC_LITERAL(3, 49, 26), // "KDevelop::DUContextPointer"
QT_MOC_LITERAL(4, 76, 7), // "context"
QT_MOC_LITERAL(5, 84, 19), // "KTextEditor::Cursor"
QT_MOC_LITERAL(6, 104, 8), // "position"
QT_MOC_LITERAL(7, 113, 18), // "KTextEditor::View*"
QT_MOC_LITERAL(8, 132, 4), // "view"
QT_MOC_LITERAL(9, 137, 31), // "doSpecialProcessingInBackground"
QT_MOC_LITERAL(10, 169, 4), // "data"
QT_MOC_LITERAL(11, 174, 17), // "foundDeclarations"
QT_MOC_LITERAL(12, 192, 59), // "QList<QExplicitlySharedDataPo..."
QT_MOC_LITERAL(13, 252, 4), // "item"
QT_MOC_LITERAL(14, 257, 51), // "QExplicitlySharedDataPointer<..."
QT_MOC_LITERAL(15, 309, 17) // "completionContext"

    },
    "KDevelop::CodeCompletionModel\0"
    "completionsNeeded\0\0KDevelop::DUContextPointer\0"
    "context\0KTextEditor::Cursor\0position\0"
    "KTextEditor::View*\0view\0"
    "doSpecialProcessingInBackground\0data\0"
    "foundDeclarations\0"
    "QList<QExplicitlySharedDataPointer<CompletionTreeElement> >\0"
    "item\0QExplicitlySharedDataPointer<CodeCompletionContext>\0"
    "completionContext"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KDevelop__CodeCompletionModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    3,   29,    2, 0x06 /* Public */,
       9,    1,   36,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    2,   39,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 0x80000000 | 7,    4,    6,    8,
    QMetaType::Void, QMetaType::UInt,   10,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 12, 0x80000000 | 14,   13,   15,

       0        // eod
};

void KDevelop::CodeCompletionModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        CodeCompletionModel *_t = static_cast<CodeCompletionModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->completionsNeeded((*reinterpret_cast< KDevelop::DUContextPointer(*)>(_a[1])),(*reinterpret_cast< const KTextEditor::Cursor(*)>(_a[2])),(*reinterpret_cast< KTextEditor::View*(*)>(_a[3]))); break;
        case 1: _t->doSpecialProcessingInBackground((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 2: _t->foundDeclarations((*reinterpret_cast< const QList<QExplicitlySharedDataPointer<CompletionTreeElement> >(*)>(_a[1])),(*reinterpret_cast< const QExplicitlySharedDataPointer<CodeCompletionContext>(*)>(_a[2]))); 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< KDevelop::DUContextPointer >(); break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KTextEditor::Cursor >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (CodeCompletionModel::*_t)(KDevelop::DUContextPointer , const KTextEditor::Cursor & , KTextEditor::View * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CodeCompletionModel::completionsNeeded)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (CodeCompletionModel::*_t)(uint );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CodeCompletionModel::doSpecialProcessingInBackground)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject KDevelop::CodeCompletionModel::staticMetaObject = {
    { &KTextEditor::CodeCompletionModel::staticMetaObject, qt_meta_stringdata_KDevelop__CodeCompletionModel.data,
      qt_meta_data_KDevelop__CodeCompletionModel,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KDevelop::CodeCompletionModel::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KDevelop__CodeCompletionModel.stringdata0))
        return static_cast<void*>(const_cast< CodeCompletionModel*>(this));
    if (!strcmp(_clname, "KTextEditor::CodeCompletionModelControllerInterface"))
        return static_cast< KTextEditor::CodeCompletionModelControllerInterface*>(const_cast< CodeCompletionModel*>(this));
    if (!strcmp(_clname, "org.kde.KTextEditor.CodeCompletionModelControllerInterface"))
        return static_cast< KTextEditor::CodeCompletionModelControllerInterface*>(const_cast< CodeCompletionModel*>(this));
    return KTextEditor::CodeCompletionModel::qt_metacast(_clname);
}

int KDevelop::CodeCompletionModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KTextEditor::CodeCompletionModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void KDevelop::CodeCompletionModel::completionsNeeded(KDevelop::DUContextPointer _t1, const KTextEditor::Cursor & _t2, KTextEditor::View * _t3)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KDevelop::CodeCompletionModel::doSpecialProcessingInBackground(uint _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_END_MOC_NAMESPACE
