/****************************************************************************
** Meta object code from reading C++ file 'screenedgeitem.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/kwin-5.4.3/scripting/screenedgeitem.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'screenedgeitem.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_KWin__ScreenEdgeItem_t {
    QByteArrayData data[22];
    char stringdata0[239];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KWin__ScreenEdgeItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KWin__ScreenEdgeItem_t qt_meta_stringdata_KWin__ScreenEdgeItem = {
    {
QT_MOC_LITERAL(0, 0, 20), // "KWin::ScreenEdgeItem"
QT_MOC_LITERAL(1, 21, 14), // "enabledChanged"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 11), // "edgeChanged"
QT_MOC_LITERAL(4, 49, 9), // "activated"
QT_MOC_LITERAL(5, 59, 10), // "setEnabled"
QT_MOC_LITERAL(6, 70, 7), // "enabled"
QT_MOC_LITERAL(7, 78, 7), // "setEdge"
QT_MOC_LITERAL(8, 86, 4), // "Edge"
QT_MOC_LITERAL(9, 91, 4), // "edge"
QT_MOC_LITERAL(10, 96, 15), // "borderActivated"
QT_MOC_LITERAL(11, 112, 14), // "ElectricBorder"
QT_MOC_LITERAL(12, 127, 7), // "TopEdge"
QT_MOC_LITERAL(13, 135, 12), // "TopRightEdge"
QT_MOC_LITERAL(14, 148, 9), // "RightEdge"
QT_MOC_LITERAL(15, 158, 15), // "BottomRightEdge"
QT_MOC_LITERAL(16, 174, 10), // "BottomEdge"
QT_MOC_LITERAL(17, 185, 14), // "BottomLeftEdge"
QT_MOC_LITERAL(18, 200, 8), // "LeftEdge"
QT_MOC_LITERAL(19, 209, 11), // "TopLeftEdge"
QT_MOC_LITERAL(20, 221, 10), // "EDGE_COUNT"
QT_MOC_LITERAL(21, 232, 6) // "NoEdge"

    },
    "KWin::ScreenEdgeItem\0enabledChanged\0"
    "\0edgeChanged\0activated\0setEnabled\0"
    "enabled\0setEdge\0Edge\0edge\0borderActivated\0"
    "ElectricBorder\0TopEdge\0TopRightEdge\0"
    "RightEdge\0BottomRightEdge\0BottomEdge\0"
    "BottomLeftEdge\0LeftEdge\0TopLeftEdge\0"
    "EDGE_COUNT\0NoEdge"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KWin__ScreenEdgeItem[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   44,    2, 0x06 /* Public */,
       3,    0,   45,    2, 0x06 /* Public */,
       4,    0,   46,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   47,    2, 0x0a /* Public */,
       7,    1,   50,    2, 0x0a /* Public */,
      10,    1,   53,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Bool, 0x80000000 | 11,    9,

 // properties: name, type, flags
       6, QMetaType::Bool, 0x00495103,
       9, 0x80000000 | 8, 0x0049510b,

 // properties: notify_signal_id
       0,
       1,

 // enums: name, flags, count, data
       8, 0x0,   10,   68,

 // enum data: key, value
      12, uint(KWin::ScreenEdgeItem::TopEdge),
      13, uint(KWin::ScreenEdgeItem::TopRightEdge),
      14, uint(KWin::ScreenEdgeItem::RightEdge),
      15, uint(KWin::ScreenEdgeItem::BottomRightEdge),
      16, uint(KWin::ScreenEdgeItem::BottomEdge),
      17, uint(KWin::ScreenEdgeItem::BottomLeftEdge),
      18, uint(KWin::ScreenEdgeItem::LeftEdge),
      19, uint(KWin::ScreenEdgeItem::TopLeftEdge),
      20, uint(KWin::ScreenEdgeItem::EDGE_COUNT),
      21, uint(KWin::ScreenEdgeItem::NoEdge),

       0        // eod
};

void KWin::ScreenEdgeItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ScreenEdgeItem *_t = static_cast<ScreenEdgeItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->enabledChanged(); break;
        case 1: _t->edgeChanged(); break;
        case 2: _t->activated(); break;
        case 3: _t->setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->setEdge((*reinterpret_cast< Edge(*)>(_a[1]))); break;
        case 5: { bool _r = _t->borderActivated((*reinterpret_cast< ElectricBorder(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (ScreenEdgeItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ScreenEdgeItem::enabledChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (ScreenEdgeItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ScreenEdgeItem::edgeChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (ScreenEdgeItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ScreenEdgeItem::activated)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        ScreenEdgeItem *_t = static_cast<ScreenEdgeItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->isEnabled(); break;
        case 1: *reinterpret_cast< Edge*>(_v) = _t->edge(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        ScreenEdgeItem *_t = static_cast<ScreenEdgeItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setEdge(*reinterpret_cast< Edge*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KWin::ScreenEdgeItem::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KWin__ScreenEdgeItem.data,
      qt_meta_data_KWin__ScreenEdgeItem,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int KWin::ScreenEdgeItem::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 < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
#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 KWin::ScreenEdgeItem::enabledChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void KWin::ScreenEdgeItem::edgeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void KWin::ScreenEdgeItem::activated()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
