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

#include <memory>
#include "../../../framework/input-context/minputcontext.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'minputcontext.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. 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_MInputContext_t {
    QByteArrayData data[54];
    char stringdata0[752];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MInputContext_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MInputContext_t qt_meta_stringdata_MInputContext = {
    {
QT_MOC_LITERAL(0, 0, 13), // "MInputContext"
QT_MOC_LITERAL(1, 14, 14), // "preeditChanged"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 19), // "activationLostEvent"
QT_MOC_LITERAL(4, 50, 15), // "imInitiatedHide"
QT_MOC_LITERAL(5, 66, 12), // "commitString"
QT_MOC_LITERAL(6, 79, 6), // "string"
QT_MOC_LITERAL(7, 86, 16), // "replacementStart"
QT_MOC_LITERAL(8, 103, 17), // "replacementLength"
QT_MOC_LITERAL(9, 121, 9), // "cursorPos"
QT_MOC_LITERAL(10, 131, 13), // "updatePreedit"
QT_MOC_LITERAL(11, 145, 32), // "QList<Maliit::PreeditTextFormat>"
QT_MOC_LITERAL(12, 178, 14), // "preeditFormats"
QT_MOC_LITERAL(13, 193, 8), // "keyEvent"
QT_MOC_LITERAL(14, 202, 4), // "type"
QT_MOC_LITERAL(15, 207, 3), // "key"
QT_MOC_LITERAL(16, 211, 9), // "modifiers"
QT_MOC_LITERAL(17, 221, 4), // "text"
QT_MOC_LITERAL(18, 226, 10), // "autoRepeat"
QT_MOC_LITERAL(19, 237, 5), // "count"
QT_MOC_LITERAL(20, 243, 24), // "Maliit::EventRequestType"
QT_MOC_LITERAL(21, 268, 11), // "requestType"
QT_MOC_LITERAL(22, 280, 21), // "updateInputMethodArea"
QT_MOC_LITERAL(23, 302, 4), // "rect"
QT_MOC_LITERAL(24, 307, 26), // "setGlobalCorrectionEnabled"
QT_MOC_LITERAL(25, 334, 19), // "getPreeditRectangle"
QT_MOC_LITERAL(26, 354, 6), // "QRect&"
QT_MOC_LITERAL(27, 361, 9), // "rectangle"
QT_MOC_LITERAL(28, 371, 5), // "bool&"
QT_MOC_LITERAL(29, 377, 5), // "valid"
QT_MOC_LITERAL(30, 383, 14), // "onInvokeAction"
QT_MOC_LITERAL(31, 398, 6), // "action"
QT_MOC_LITERAL(32, 405, 8), // "sequence"
QT_MOC_LITERAL(33, 414, 15), // "setRedirectKeys"
QT_MOC_LITERAL(34, 430, 7), // "enabled"
QT_MOC_LITERAL(35, 438, 23), // "setDetectableAutoRepeat"
QT_MOC_LITERAL(36, 462, 12), // "setSelection"
QT_MOC_LITERAL(37, 475, 5), // "start"
QT_MOC_LITERAL(38, 481, 6), // "length"
QT_MOC_LITERAL(39, 488, 12), // "getSelection"
QT_MOC_LITERAL(40, 501, 8), // "QString&"
QT_MOC_LITERAL(41, 510, 9), // "selection"
QT_MOC_LITERAL(42, 520, 11), // "setLanguage"
QT_MOC_LITERAL(43, 532, 8), // "language"
QT_MOC_LITERAL(44, 541, 19), // "sendHideInputMethod"
QT_MOC_LITERAL(45, 561, 23), // "updateServerOrientation"
QT_MOC_LITERAL(46, 585, 21), // "Qt::ScreenOrientation"
QT_MOC_LITERAL(47, 607, 11), // "orientation"
QT_MOC_LITERAL(48, 619, 19), // "onDBusDisconnection"
QT_MOC_LITERAL(49, 639, 16), // "onDBusConnection"
QT_MOC_LITERAL(50, 656, 30), // "notifyOrientationAboutToChange"
QT_MOC_LITERAL(51, 687, 31), // "MInputContext::OrientationAngle"
QT_MOC_LITERAL(52, 719, 24), // "notifyOrientationChanged"
QT_MOC_LITERAL(53, 744, 7) // "preedit"

    },
    "MInputContext\0preeditChanged\0\0"
    "activationLostEvent\0imInitiatedHide\0"
    "commitString\0string\0replacementStart\0"
    "replacementLength\0cursorPos\0updatePreedit\0"
    "QList<Maliit::PreeditTextFormat>\0"
    "preeditFormats\0keyEvent\0type\0key\0"
    "modifiers\0text\0autoRepeat\0count\0"
    "Maliit::EventRequestType\0requestType\0"
    "updateInputMethodArea\0rect\0"
    "setGlobalCorrectionEnabled\0"
    "getPreeditRectangle\0QRect&\0rectangle\0"
    "bool&\0valid\0onInvokeAction\0action\0"
    "sequence\0setRedirectKeys\0enabled\0"
    "setDetectableAutoRepeat\0setSelection\0"
    "start\0length\0getSelection\0QString&\0"
    "selection\0setLanguage\0language\0"
    "sendHideInputMethod\0updateServerOrientation\0"
    "Qt::ScreenOrientation\0orientation\0"
    "onDBusDisconnection\0onDBusConnection\0"
    "notifyOrientationAboutToChange\0"
    "MInputContext::OrientationAngle\0"
    "notifyOrientationChanged\0preedit"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MInputContext[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      28,   14, // methods
       1,  288, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  154,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       3,    0,  155,    2, 0x0a /* Public */,
       4,    0,  156,    2, 0x0a /* Public */,
       5,    4,  157,    2, 0x0a /* Public */,
       5,    3,  166,    2, 0x2a /* Public | MethodCloned */,
       5,    2,  173,    2, 0x2a /* Public | MethodCloned */,
       5,    1,  178,    2, 0x2a /* Public | MethodCloned */,
      10,    5,  181,    2, 0x0a /* Public */,
      10,    4,  192,    2, 0x2a /* Public | MethodCloned */,
      10,    3,  201,    2, 0x2a /* Public | MethodCloned */,
      10,    2,  208,    2, 0x2a /* Public | MethodCloned */,
      13,    7,  213,    2, 0x0a /* Public */,
      13,    6,  228,    2, 0x2a /* Public | MethodCloned */,
      22,    1,  241,    2, 0x0a /* Public */,
      24,    1,  244,    2, 0x0a /* Public */,
      25,    2,  247,    2, 0x0a /* Public */,
      30,    2,  252,    2, 0x0a /* Public */,
      33,    1,  257,    2, 0x0a /* Public */,
      35,    1,  260,    2, 0x0a /* Public */,
      36,    2,  263,    2, 0x0a /* Public */,
      39,    2,  268,    2, 0x0a /* Public */,
      42,    1,  273,    2, 0x0a /* Public */,
      44,    0,  276,    2, 0x08 /* Private */,
      45,    1,  277,    2, 0x08 /* Private */,
      48,    0,  280,    2, 0x08 /* Private */,
      49,    0,  281,    2, 0x08 /* Private */,
      50,    1,  282,    2, 0x08 /* Private */,
      52,    1,  285,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::Int, QMetaType::Int, QMetaType::Int,    6,    7,    8,    9,
    QMetaType::Void, QMetaType::QString, QMetaType::Int, QMetaType::Int,    6,    7,    8,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    6,    7,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 11, QMetaType::Int, QMetaType::Int, QMetaType::Int,    6,   12,    7,    8,    9,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 11, QMetaType::Int, QMetaType::Int,    6,   12,    7,    8,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 11, QMetaType::Int,    6,   12,    7,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 11,    6,   12,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, QMetaType::QString, QMetaType::Bool, QMetaType::Int, 0x80000000 | 20,   14,   15,   16,   17,   18,   19,   21,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, QMetaType::QString, QMetaType::Bool, QMetaType::Int,   14,   15,   16,   17,   18,   19,
    QMetaType::Void, QMetaType::QRect,   23,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, 0x80000000 | 26, 0x80000000 | 28,   27,   29,
    QMetaType::Void, QMetaType::QString, QMetaType::QKeySequence,   31,   32,
    QMetaType::Void, QMetaType::Bool,   34,
    QMetaType::Void, QMetaType::Bool,   34,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   37,   38,
    QMetaType::Void, 0x80000000 | 40, 0x80000000 | 28,   41,   29,
    QMetaType::Void, QMetaType::QString,   43,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 46,   47,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 51,   47,
    QMetaType::Void, 0x80000000 | 51,   47,

 // properties: name, type, flags
      53, QMetaType::QString, 0x00495001,

 // properties: notify_signal_id
       0,

       0        // eod
};

void MInputContext::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MInputContext *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->preeditChanged(); break;
        case 1: _t->activationLostEvent(); break;
        case 2: _t->imInitiatedHide(); break;
        case 3: _t->commitString((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
        case 4: _t->commitString((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 5: _t->commitString((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 6: _t->commitString((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 7: _t->updatePreedit((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<Maliit::PreeditTextFormat>(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5]))); break;
        case 8: _t->updatePreedit((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<Maliit::PreeditTextFormat>(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
        case 9: _t->updatePreedit((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<Maliit::PreeditTextFormat>(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 10: _t->updatePreedit((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<Maliit::PreeditTextFormat>(*)>(_a[2]))); break;
        case 11: _t->keyEvent((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4])),(*reinterpret_cast< bool(*)>(_a[5])),(*reinterpret_cast< int(*)>(_a[6])),(*reinterpret_cast< Maliit::EventRequestType(*)>(_a[7]))); break;
        case 12: _t->keyEvent((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< const QString(*)>(_a[4])),(*reinterpret_cast< bool(*)>(_a[5])),(*reinterpret_cast< int(*)>(_a[6]))); break;
        case 13: _t->updateInputMethodArea((*reinterpret_cast< const QRect(*)>(_a[1]))); break;
        case 14: _t->setGlobalCorrectionEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 15: _t->getPreeditRectangle((*reinterpret_cast< QRect(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 16: _t->onInvokeAction((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QKeySequence(*)>(_a[2]))); break;
        case 17: _t->setRedirectKeys((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 18: _t->setDetectableAutoRepeat((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 19: _t->setSelection((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 20: _t->getSelection((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 21: _t->setLanguage((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 22: _t->sendHideInputMethod(); break;
        case 23: _t->updateServerOrientation((*reinterpret_cast< Qt::ScreenOrientation(*)>(_a[1]))); break;
        case 24: _t->onDBusDisconnection(); break;
        case 25: _t->onDBusConnection(); break;
        case 26: _t->notifyOrientationAboutToChange((*reinterpret_cast< MInputContext::OrientationAngle(*)>(_a[1]))); break;
        case 27: _t->notifyOrientationChanged((*reinterpret_cast< MInputContext::OrientationAngle(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Maliit::PreeditTextFormat> >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Maliit::PreeditTextFormat> >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Maliit::PreeditTextFormat> >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<Maliit::PreeditTextFormat> >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MInputContext::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MInputContext::preeditChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<MInputContext *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->preeditString(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject MInputContext::staticMetaObject = { {
    QMetaObject::SuperData::link<QPlatformInputContext::staticMetaObject>(),
    qt_meta_stringdata_MInputContext.data,
    qt_meta_data_MInputContext,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int MInputContext::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QPlatformInputContext::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 28)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 28)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    }
#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 -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void MInputContext::preeditChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
