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

#include "../../src/plasma-workspace-5.8.8/shell/scripting/appinterface.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'appinterface.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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_WorkspaceScripting__AppInterface_t {
    QByteArrayData data[27];
    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_WorkspaceScripting__AppInterface_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_WorkspaceScripting__AppInterface_t qt_meta_stringdata_WorkspaceScripting__AppInterface = {
    {
QT_MOC_LITERAL(0, 0, 32), // "WorkspaceScripting::AppInterface"
QT_MOC_LITERAL(1, 33, 5), // "print"
QT_MOC_LITERAL(2, 39, 0), // ""
QT_MOC_LITERAL(3, 40, 6), // "string"
QT_MOC_LITERAL(4, 47, 14), // "screenGeometry"
QT_MOC_LITERAL(5, 62, 6), // "screen"
QT_MOC_LITERAL(6, 69, 10), // "lockCorona"
QT_MOC_LITERAL(7, 80, 6), // "locked"
QT_MOC_LITERAL(8, 87, 5), // "sleep"
QT_MOC_LITERAL(9, 93, 2), // "ms"
QT_MOC_LITERAL(10, 96, 10), // "hasBattery"
QT_MOC_LITERAL(11, 107, 11), // "screenCount"
QT_MOC_LITERAL(12, 119, 11), // "activityIds"
QT_MOC_LITERAL(13, 131, 10), // "QList<int>"
QT_MOC_LITERAL(14, 142, 8), // "panelIds"
QT_MOC_LITERAL(15, 151, 15), // "knownPanelTypes"
QT_MOC_LITERAL(16, 167, 18), // "knownActivityTypes"
QT_MOC_LITERAL(17, 186, 16), // "knownWidgetTypes"
QT_MOC_LITERAL(18, 203, 5), // "theme"
QT_MOC_LITERAL(19, 209, 18), // "applicationVersion"
QT_MOC_LITERAL(20, 228, 15), // "platformVersion"
QT_MOC_LITERAL(21, 244, 16), // "scriptingVersion"
QT_MOC_LITERAL(22, 261, 9), // "multihead"
QT_MOC_LITERAL(23, 271, 15), // "multiheadScreen"
QT_MOC_LITERAL(24, 287, 6), // "locale"
QT_MOC_LITERAL(25, 294, 8), // "language"
QT_MOC_LITERAL(26, 303, 10) // "languageId"

    },
    "WorkspaceScripting::AppInterface\0print\0"
    "\0string\0screenGeometry\0screen\0lockCorona\0"
    "locked\0sleep\0ms\0hasBattery\0screenCount\0"
    "activityIds\0QList<int>\0panelIds\0"
    "knownPanelTypes\0knownActivityTypes\0"
    "knownWidgetTypes\0theme\0applicationVersion\0"
    "platformVersion\0scriptingVersion\0"
    "multihead\0multiheadScreen\0locale\0"
    "language\0languageId"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_WorkspaceScripting__AppInterface[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       4,   14, // methods
      17,   46, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

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

 // slots: name, argc, parameters, tag, flags
       4,    1,   37,    2, 0x0a /* Public */,
       6,    1,   40,    2, 0x0a /* Public */,
       8,    1,   43,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    3,

 // slots: parameters
    QMetaType::QRectF, QMetaType::Int,    5,
    QMetaType::Void, QMetaType::Bool,    7,
    QMetaType::Void, QMetaType::Int,    9,

 // properties: name, type, flags
       7, QMetaType::Bool, 0x00095003,
      10, QMetaType::Bool, 0x00095001,
      11, QMetaType::Int, 0x00095001,
      12, 0x80000000 | 13, 0x00095009,
      14, 0x80000000 | 13, 0x00095009,
      15, QMetaType::QStringList, 0x00095001,
      16, QMetaType::QStringList, 0x00095001,
      17, QMetaType::QStringList, 0x00095001,
      18, QMetaType::QString, 0x00095103,
      19, QMetaType::QString, 0x00095001,
      20, QMetaType::QString, 0x00095001,
      21, QMetaType::Int, 0x00095001,
      22, QMetaType::Bool, 0x00095001,
      23, QMetaType::Bool, 0x00095001,
      24, QMetaType::QString, 0x00095001,
      25, QMetaType::QString, 0x00095001,
      26, QMetaType::QString, 0x00095001,

       0        // eod
};

void WorkspaceScripting::AppInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        AppInterface *_t = static_cast<AppInterface *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->print((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: { QRectF _r = _t->screenGeometry((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QRectF*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->lockCorona((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->sleep((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (AppInterface::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&AppInterface::print)) {
                *result = 0;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<int> >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        AppInterface *_t = static_cast<AppInterface *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->coronaLocked(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->hasBattery(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->screenCount(); break;
        case 3: *reinterpret_cast< QList<int>*>(_v) = _t->activityIds(); break;
        case 4: *reinterpret_cast< QList<int>*>(_v) = _t->panelIds(); break;
        case 5: *reinterpret_cast< QStringList*>(_v) = _t->knownPanelTypes(); break;
        case 6: *reinterpret_cast< QStringList*>(_v) = _t->knownActivityTypes(); break;
        case 7: *reinterpret_cast< QStringList*>(_v) = _t->knownWidgetTypes(); break;
        case 8: *reinterpret_cast< QString*>(_v) = _t->theme(); break;
        case 9: *reinterpret_cast< QString*>(_v) = _t->applicationVersion(); break;
        case 10: *reinterpret_cast< QString*>(_v) = _t->platformVersion(); break;
        case 11: *reinterpret_cast< int*>(_v) = _t->scriptingVersion(); break;
        case 12: *reinterpret_cast< bool*>(_v) = _t->multihead(); break;
        case 13: *reinterpret_cast< bool*>(_v) = _t->multihead(); break;
        case 14: *reinterpret_cast< QString*>(_v) = _t->locale(); break;
        case 15: *reinterpret_cast< QString*>(_v) = _t->language(); break;
        case 16: *reinterpret_cast< QString*>(_v) = _t->languageId(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        AppInterface *_t = static_cast<AppInterface *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->lockCorona(*reinterpret_cast< bool*>(_v)); break;
        case 8: _t->setTheme(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject WorkspaceScripting::AppInterface::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_WorkspaceScripting__AppInterface.data,
      qt_meta_data_WorkspaceScripting__AppInterface,  qt_static_metacall, nullptr, nullptr}
};


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

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

int WorkspaceScripting::AppInterface::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 < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 4;
    }
#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 -= 17;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 17;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void WorkspaceScripting::AppInterface::print(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
