/****************************************************************************
** Meta object code from reading C++ file 'KexiWindow.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/kexi-3.0.1/src/core/KexiWindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'KexiWindow.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_KexiWindow_t {
    QByteArrayData data[26];
    char stringdata0[356];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KexiWindow_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KexiWindow_t qt_meta_stringdata_KexiWindow = {
    {
QT_MOC_LITERAL(0, 0, 10), // "KexiWindow"
QT_MOC_LITERAL(1, 11, 17), // "updateContextHelp"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 7), // "closing"
QT_MOC_LITERAL(4, 38, 12), // "dirtyChanged"
QT_MOC_LITERAL(5, 51, 11), // "KexiWindow*"
QT_MOC_LITERAL(6, 63, 8), // "setFocus"
QT_MOC_LITERAL(7, 72, 13), // "updateCaption"
QT_MOC_LITERAL(8, 86, 9), // "storeData"
QT_MOC_LITERAL(9, 96, 8), // "tristate"
QT_MOC_LITERAL(10, 105, 7), // "dontAsk"
QT_MOC_LITERAL(11, 113, 12), // "storeNewData"
QT_MOC_LITERAL(12, 126, 29), // "KexiView::StoreNewDataOptions"
QT_MOC_LITERAL(13, 156, 7), // "options"
QT_MOC_LITERAL(14, 164, 11), // "storeDataAs"
QT_MOC_LITERAL(15, 176, 15), // "KexiPart::Item*"
QT_MOC_LITERAL(16, 192, 4), // "item"
QT_MOC_LITERAL(17, 197, 30), // "sendDetachedStateToCurrentView"
QT_MOC_LITERAL(18, 228, 30), // "sendAttachedStateToCurrentView"
QT_MOC_LITERAL(19, 259, 12), // "saveSettings"
QT_MOC_LITERAL(20, 272, 8), // "setDirty"
QT_MOC_LITERAL(21, 281, 5), // "dirty"
QT_MOC_LITERAL(22, 287, 16), // "switchToViewMode"
QT_MOC_LITERAL(23, 304, 14), // "Kexi::ViewMode"
QT_MOC_LITERAL(24, 319, 11), // "newViewMode"
QT_MOC_LITERAL(25, 331, 24) // "switchToViewModeInternal"

    },
    "KexiWindow\0updateContextHelp\0\0closing\0"
    "dirtyChanged\0KexiWindow*\0setFocus\0"
    "updateCaption\0storeData\0tristate\0"
    "dontAsk\0storeNewData\0KexiView::StoreNewDataOptions\0"
    "options\0storeDataAs\0KexiPart::Item*\0"
    "item\0sendDetachedStateToCurrentView\0"
    "sendAttachedStateToCurrentView\0"
    "saveSettings\0setDirty\0dirty\0"
    "switchToViewMode\0Kexi::ViewMode\0"
    "newViewMode\0switchToViewModeInternal"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KexiWindow[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   94,    2, 0x06 /* Public */,
       3,    0,   95,    2, 0x06 /* Public */,
       4,    1,   96,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   99,    2, 0x0a /* Public */,
       7,    0,  100,    2, 0x0a /* Public */,
       8,    1,  101,    2, 0x0a /* Public */,
       8,    0,  104,    2, 0x2a /* Public | MethodCloned */,
      11,    1,  105,    2, 0x0a /* Public */,
      11,    0,  108,    2, 0x2a /* Public | MethodCloned */,
      14,    2,  109,    2, 0x0a /* Public */,
      17,    0,  114,    2, 0x0a /* Public */,
      18,    0,  115,    2, 0x0a /* Public */,
      19,    0,  116,    2, 0x0a /* Public */,
      20,    1,  117,    2, 0x09 /* Protected */,
      22,    1,  120,    2, 0x09 /* Protected */,
      25,    1,  123,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5,    2,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    0x80000000 | 9, QMetaType::Bool,   10,
    0x80000000 | 9,
    0x80000000 | 9, 0x80000000 | 12,   13,
    0x80000000 | 9,
    0x80000000 | 9, 0x80000000 | 15, 0x80000000 | 12,   16,   13,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Bool,
    QMetaType::Void, QMetaType::Bool,   21,
    0x80000000 | 9, 0x80000000 | 23,   24,
    0x80000000 | 9, 0x80000000 | 23,   24,

       0        // eod
};

void KexiWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KexiWindow *_t = static_cast<KexiWindow *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->updateContextHelp(); break;
        case 1: _t->closing(); break;
        case 2: _t->dirtyChanged((*reinterpret_cast< KexiWindow*(*)>(_a[1]))); break;
        case 3: _t->setFocus(); break;
        case 4: _t->updateCaption(); break;
        case 5: { tristate _r = _t->storeData((*reinterpret_cast< bool(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< tristate*>(_a[0]) = _r; }  break;
        case 6: { tristate _r = _t->storeData();
            if (_a[0]) *reinterpret_cast< tristate*>(_a[0]) = _r; }  break;
        case 7: { tristate _r = _t->storeNewData((*reinterpret_cast< KexiView::StoreNewDataOptions(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< tristate*>(_a[0]) = _r; }  break;
        case 8: { tristate _r = _t->storeNewData();
            if (_a[0]) *reinterpret_cast< tristate*>(_a[0]) = _r; }  break;
        case 9: { tristate _r = _t->storeDataAs((*reinterpret_cast< KexiPart::Item*(*)>(_a[1])),(*reinterpret_cast< KexiView::StoreNewDataOptions(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< tristate*>(_a[0]) = _r; }  break;
        case 10: _t->sendDetachedStateToCurrentView(); break;
        case 11: _t->sendAttachedStateToCurrentView(); break;
        case 12: { bool _r = _t->saveSettings();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 13: _t->setDirty((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 14: { tristate _r = _t->switchToViewMode((*reinterpret_cast< Kexi::ViewMode(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< tristate*>(_a[0]) = _r; }  break;
        case 15: { tristate _r = _t->switchToViewModeInternal((*reinterpret_cast< Kexi::ViewMode(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< tristate*>(_a[0]) = _r; }  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< KexiWindow* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (KexiWindow::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KexiWindow::updateContextHelp)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KexiWindow::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KexiWindow::closing)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (KexiWindow::*_t)(KexiWindow * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KexiWindow::dirtyChanged)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject KexiWindow::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_KexiWindow.data,
      qt_meta_data_KexiWindow,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KexiWindow::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KexiWindow.stringdata0))
        return static_cast<void*>(const_cast< KexiWindow*>(this));
    if (!strcmp(_clname, "KexiActionProxy"))
        return static_cast< KexiActionProxy*>(const_cast< KexiWindow*>(this));
    if (!strcmp(_clname, "Kexi::ObjectStatus"))
        return static_cast< Kexi::ObjectStatus*>(const_cast< KexiWindow*>(this));
    return QWidget::qt_metacast(_clname);
}

int KexiWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    return _id;
}

// SIGNAL 0
void KexiWindow::updateContextHelp()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void KexiWindow::closing()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void KexiWindow::dirtyChanged(KexiWindow * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_END_MOC_NAMESPACE
