/****************************************************************************
** Meta object code from reading C++ file 'desktopview.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-workspace-5.8.9/shell/desktopview.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'desktopview.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_DesktopView_t {
    QByteArrayData data[18];
    char stringdata0[241];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DesktopView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DesktopView_t qt_meta_stringdata_DesktopView = {
    {
QT_MOC_LITERAL(0, 0, 11), // "DesktopView"
QT_MOC_LITERAL(1, 12, 17), // "stayBehindChanged"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 17), // "windowTypeChanged"
QT_MOC_LITERAL(4, 49, 26), // "showConfigurationInterface"
QT_MOC_LITERAL(5, 76, 15), // "Plasma::Applet*"
QT_MOC_LITERAL(6, 92, 6), // "applet"
QT_MOC_LITERAL(7, 99, 21), // "screenGeometryChanged"
QT_MOC_LITERAL(8, 121, 10), // "windowType"
QT_MOC_LITERAL(9, 132, 10), // "WindowType"
QT_MOC_LITERAL(10, 143, 11), // "sessionType"
QT_MOC_LITERAL(11, 155, 11), // "SessionType"
QT_MOC_LITERAL(12, 167, 6), // "Window"
QT_MOC_LITERAL(13, 174, 10), // "FullScreen"
QT_MOC_LITERAL(14, 185, 7), // "Desktop"
QT_MOC_LITERAL(15, 193, 15), // "WindowedDesktop"
QT_MOC_LITERAL(16, 209, 18), // "ApplicationSession"
QT_MOC_LITERAL(17, 228, 12) // "ShellSession"

    },
    "DesktopView\0stayBehindChanged\0\0"
    "windowTypeChanged\0showConfigurationInterface\0"
    "Plasma::Applet*\0applet\0screenGeometryChanged\0"
    "windowType\0WindowType\0sessionType\0"
    "SessionType\0Window\0FullScreen\0Desktop\0"
    "WindowedDesktop\0ApplicationSession\0"
    "ShellSession"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DesktopView[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       4,    1,   36,    2, 0x09 /* Protected */,
       7,    0,   39,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void,

 // properties: name, type, flags
       8, 0x80000000 | 9, 0x0049510b,
      10, 0x80000000 | 11, 0x00095409,

 // properties: notify_signal_id
       1,
       0,

 // enums: name, flags, count, data
       9, 0x0,    4,   56,
      11, 0x0,    2,   64,

 // enum data: key, value
      12, uint(DesktopView::Window),
      13, uint(DesktopView::FullScreen),
      14, uint(DesktopView::Desktop),
      15, uint(DesktopView::WindowedDesktop),
      16, uint(DesktopView::ApplicationSession),
      17, uint(DesktopView::ShellSession),

       0        // eod
};

void DesktopView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DesktopView *_t = static_cast<DesktopView *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->stayBehindChanged(); break;
        case 1: _t->windowTypeChanged(); break;
        case 2: _t->showConfigurationInterface((*reinterpret_cast< Plasma::Applet*(*)>(_a[1]))); break;
        case 3: _t->screenGeometryChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Plasma::Applet* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DesktopView::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DesktopView::stayBehindChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DesktopView::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DesktopView::windowTypeChanged)) {
                *result = 1;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        DesktopView *_t = static_cast<DesktopView *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< WindowType*>(_v) = _t->windowType(); break;
        case 1: *reinterpret_cast< SessionType*>(_v) = _t->sessionType(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        DesktopView *_t = static_cast<DesktopView *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setWindowType(*reinterpret_cast< WindowType*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject DesktopView::staticMetaObject = {
    { &PlasmaQuick::ContainmentView::staticMetaObject, qt_meta_stringdata_DesktopView.data,
      qt_meta_data_DesktopView,  qt_static_metacall, nullptr, nullptr}
};


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

void *DesktopView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_DesktopView.stringdata0))
        return static_cast<void*>(this);
    return PlasmaQuick::ContainmentView::qt_metacast(_clname);
}

int DesktopView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = PlasmaQuick::ContainmentView::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)
            qt_static_metacall(this, _c, _id, _a);
        _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 -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void DesktopView::stayBehindChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void DesktopView::windowTypeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
