/****************************************************************************
** Meta object code from reading C++ file 'KoDocument.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/calligraplan-3.1.0/src/libs/main/KoDocument.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'KoDocument.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_KoDocument_t {
    QByteArrayData data[39];
    char stringdata0[442];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KoDocument_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KoDocument_t qt_meta_stringdata_KoDocument = {
    {
QT_MOC_LITERAL(0, 0, 10), // "KoDocument"
QT_MOC_LITERAL(1, 11, 11), // "unitChanged"
QT_MOC_LITERAL(2, 23, 0), // ""
QT_MOC_LITERAL(3, 24, 6), // "KoUnit"
QT_MOC_LITERAL(4, 31, 4), // "unit"
QT_MOC_LITERAL(5, 36, 11), // "sigProgress"
QT_MOC_LITERAL(6, 48, 5), // "value"
QT_MOC_LITERAL(7, 54, 16), // "statusBarMessage"
QT_MOC_LITERAL(8, 71, 4), // "text"
QT_MOC_LITERAL(9, 76, 21), // "clearStatusBarMessage"
QT_MOC_LITERAL(10, 98, 8), // "modified"
QT_MOC_LITERAL(11, 107, 13), // "titleModified"
QT_MOC_LITERAL(12, 121, 7), // "caption"
QT_MOC_LITERAL(13, 129, 10), // "isModified"
QT_MOC_LITERAL(14, 140, 9), // "completed"
QT_MOC_LITERAL(15, 150, 8), // "canceled"
QT_MOC_LITERAL(16, 159, 10), // "addCommand"
QT_MOC_LITERAL(17, 170, 14), // "KUndo2Command*"
QT_MOC_LITERAL(18, 185, 7), // "command"
QT_MOC_LITERAL(19, 193, 10), // "beginMacro"
QT_MOC_LITERAL(20, 204, 17), // "KUndo2MagicString"
QT_MOC_LITERAL(21, 222, 8), // "endMacro"
QT_MOC_LITERAL(22, 231, 4), // "save"
QT_MOC_LITERAL(23, 236, 16), // "waitSaveComplete"
QT_MOC_LITERAL(24, 253, 12), // "slotAutoSave"
QT_MOC_LITERAL(25, 266, 25), // "slotUndoStackIndexChanged"
QT_MOC_LITERAL(26, 292, 3), // "idx"
QT_MOC_LITERAL(27, 296, 18), // "_k_slotJobFinished"
QT_MOC_LITERAL(28, 315, 5), // "KJob*"
QT_MOC_LITERAL(29, 321, 3), // "job"
QT_MOC_LITERAL(30, 325, 22), // "_k_slotStatJobFinished"
QT_MOC_LITERAL(31, 348, 18), // "_k_slotGotMimeType"
QT_MOC_LITERAL(32, 367, 9), // "KIO::Job*"
QT_MOC_LITERAL(33, 377, 4), // "mime"
QT_MOC_LITERAL(34, 382, 21), // "_k_slotUploadFinished"
QT_MOC_LITERAL(35, 404, 11), // "setModified"
QT_MOC_LITERAL(36, 416, 4), // "_mod"
QT_MOC_LITERAL(37, 421, 10), // "backupFile"
QT_MOC_LITERAL(38, 432, 9) // "pageCount"

    },
    "KoDocument\0unitChanged\0\0KoUnit\0unit\0"
    "sigProgress\0value\0statusBarMessage\0"
    "text\0clearStatusBarMessage\0modified\0"
    "titleModified\0caption\0isModified\0"
    "completed\0canceled\0addCommand\0"
    "KUndo2Command*\0command\0beginMacro\0"
    "KUndo2MagicString\0endMacro\0save\0"
    "waitSaveComplete\0slotAutoSave\0"
    "slotUndoStackIndexChanged\0idx\0"
    "_k_slotJobFinished\0KJob*\0job\0"
    "_k_slotStatJobFinished\0_k_slotGotMimeType\0"
    "KIO::Job*\0mime\0_k_slotUploadFinished\0"
    "setModified\0_mod\0backupFile\0pageCount"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KoDocument[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      21,   14, // methods
       2,  172, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       8,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,  119,    2, 0x06 /* Public */,
       5,    1,  122,    2, 0x06 /* Public */,
       7,    1,  125,    2, 0x06 /* Public */,
       9,    0,  128,    2, 0x06 /* Public */,
      10,    1,  129,    2, 0x06 /* Public */,
      11,    2,  132,    2, 0x06 /* Public */,
      14,    0,  137,    2, 0x06 /* Public */,
      15,    1,  138,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      16,    1,  141,    2, 0x0a /* Public */,
      19,    1,  144,    2, 0x0a /* Public */,
      21,    0,  147,    2, 0x0a /* Public */,
      22,    0,  148,    2, 0x0a /* Public */,
      23,    0,  149,    2, 0x0a /* Public */,
      24,    0,  150,    2, 0x08 /* Private */,
      25,    1,  151,    2, 0x08 /* Private */,
      27,    1,  154,    2, 0x08 /* Private */,
      30,    1,  157,    2, 0x08 /* Private */,
      31,    2,  160,    2, 0x08 /* Private */,
      34,    1,  165,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
      13,    0,  168,    2, 0x02 /* Public */,
      35,    1,  169,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::Int,    6,
    QMetaType::Void, QMetaType::QString,    8,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,   12,   13,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    2,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void, 0x80000000 | 20,    8,
    QMetaType::Void,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   26,
    QMetaType::Void, 0x80000000 | 28,   29,
    QMetaType::Void, 0x80000000 | 28,    2,
    QMetaType::Void, 0x80000000 | 32, QMetaType::QString,   29,   33,
    QMetaType::Void, 0x80000000 | 28,   29,

 // methods: parameters
    QMetaType::Bool,
    QMetaType::Void, QMetaType::Bool,   36,

 // properties: name, type, flags
      37, QMetaType::Bool, 0x00095103,
      38, QMetaType::Int, 0x00095001,

       0        // eod
};

void KoDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KoDocument *_t = static_cast<KoDocument *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->unitChanged((*reinterpret_cast< const KoUnit(*)>(_a[1]))); break;
        case 1: _t->sigProgress((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: _t->statusBarMessage((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->clearStatusBarMessage(); break;
        case 4: _t->modified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->titleModified((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 6: _t->completed(); break;
        case 7: _t->canceled((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 8: _t->addCommand((*reinterpret_cast< KUndo2Command*(*)>(_a[1]))); break;
        case 9: _t->beginMacro((*reinterpret_cast< const KUndo2MagicString(*)>(_a[1]))); break;
        case 10: _t->endMacro(); break;
        case 11: { bool _r = _t->save();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->waitSaveComplete();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 13: _t->slotAutoSave(); break;
        case 14: _t->slotUndoStackIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 15: _t->d->_k_slotJobFinished((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        case 16: _t->d->_k_slotStatJobFinished((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        case 17: _t->d->_k_slotGotMimeType((*reinterpret_cast< KIO::Job*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 18: _t->d->_k_slotUploadFinished((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        case 19: { bool _r = _t->isModified();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 20: _t->setModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (KoDocument::*_t)(const KoUnit & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KoDocument::unitChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KoDocument::*_t)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KoDocument::sigProgress)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (KoDocument::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KoDocument::statusBarMessage)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (KoDocument::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KoDocument::clearStatusBarMessage)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (KoDocument::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KoDocument::modified)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (KoDocument::*_t)(const QString & , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KoDocument::titleModified)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (KoDocument::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KoDocument::completed)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (KoDocument::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KoDocument::canceled)) {
                *result = 7;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KoDocument *_t = static_cast<KoDocument *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->backupFile(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->pageCount(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KoDocument *_t = static_cast<KoDocument *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setBackupFile(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KoDocument::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KoDocument.data,
      qt_meta_data_KoDocument,  qt_static_metacall, nullptr, nullptr}
};


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

void *KoDocument::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KoDocument.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "KoDocumentBase"))
        return static_cast< KoDocumentBase*>(this);
    return QObject::qt_metacast(_clname);
}

int KoDocument::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 < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 21)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 21;
    }
#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 KoDocument::unitChanged(const KoUnit & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KoDocument::sigProgress(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void KoDocument::statusBarMessage(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void KoDocument::clearStatusBarMessage()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void KoDocument::modified(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void KoDocument::titleModified(const QString & _t1, bool _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void KoDocument::completed()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

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