/****************************************************************************
** Meta object code from reading C++ file 'documentitem.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/okular-17.08.3/mobile/components/documentitem.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'documentitem.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_DocumentItem_t {
    QByteArrayData data[31];
    char stringdata0[461];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DocumentItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DocumentItem_t qt_meta_stringdata_DocumentItem = {
    {
QT_MOC_LITERAL(0, 0, 12), // "DocumentItem"
QT_MOC_LITERAL(1, 13, 11), // "pathChanged"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 16), // "pageCountChanged"
QT_MOC_LITERAL(4, 43, 13), // "openedChanged"
QT_MOC_LITERAL(5, 57, 23), // "searchInProgressChanged"
QT_MOC_LITERAL(6, 81, 20), // "matchingPagesChanged"
QT_MOC_LITERAL(7, 102, 18), // "currentPageChanged"
QT_MOC_LITERAL(8, 121, 24), // "supportsSearchingChanged"
QT_MOC_LITERAL(9, 146, 22), // "bookmarkedPagesChanged"
QT_MOC_LITERAL(10, 169, 16), // "bookmarksChanged"
QT_MOC_LITERAL(11, 186, 29), // "windowTitleForDocumentChanged"
QT_MOC_LITERAL(12, 216, 14), // "searchFinished"
QT_MOC_LITERAL(13, 231, 2), // "id"
QT_MOC_LITERAL(14, 234, 30), // "Okular::Document::SearchStatus"
QT_MOC_LITERAL(15, 265, 9), // "endStatus"
QT_MOC_LITERAL(16, 275, 10), // "searchText"
QT_MOC_LITERAL(17, 286, 4), // "text"
QT_MOC_LITERAL(18, 291, 11), // "resetSearch"
QT_MOC_LITERAL(19, 303, 4), // "path"
QT_MOC_LITERAL(20, 308, 22), // "windowTitleForDocument"
QT_MOC_LITERAL(21, 331, 11), // "currentPage"
QT_MOC_LITERAL(22, 343, 6), // "opened"
QT_MOC_LITERAL(23, 350, 9), // "pageCount"
QT_MOC_LITERAL(24, 360, 17), // "supportsSearching"
QT_MOC_LITERAL(25, 378, 16), // "searchInProgress"
QT_MOC_LITERAL(26, 395, 13), // "matchingPages"
QT_MOC_LITERAL(27, 409, 15), // "tableOfContents"
QT_MOC_LITERAL(28, 425, 9), // "TOCModel*"
QT_MOC_LITERAL(29, 435, 15), // "bookmarkedPages"
QT_MOC_LITERAL(30, 451, 9) // "bookmarks"

    },
    "DocumentItem\0pathChanged\0\0pageCountChanged\0"
    "openedChanged\0searchInProgressChanged\0"
    "matchingPagesChanged\0currentPageChanged\0"
    "supportsSearchingChanged\0"
    "bookmarkedPagesChanged\0bookmarksChanged\0"
    "windowTitleForDocumentChanged\0"
    "searchFinished\0id\0Okular::Document::SearchStatus\0"
    "endStatus\0searchText\0text\0resetSearch\0"
    "path\0windowTitleForDocument\0currentPage\0"
    "opened\0pageCount\0supportsSearching\0"
    "searchInProgress\0matchingPages\0"
    "tableOfContents\0TOCModel*\0bookmarkedPages\0"
    "bookmarks"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DocumentItem[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
      11,   98, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      10,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   79,    2, 0x06 /* Public */,
       3,    0,   80,    2, 0x06 /* Public */,
       4,    0,   81,    2, 0x06 /* Public */,
       5,    0,   82,    2, 0x06 /* Public */,
       6,    0,   83,    2, 0x06 /* Public */,
       7,    0,   84,    2, 0x06 /* Public */,
       8,    0,   85,    2, 0x06 /* Public */,
       9,    0,   86,    2, 0x06 /* Public */,
      10,    0,   87,    2, 0x06 /* Public */,
      11,    0,   88,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    2,   89,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
      16,    1,   94,    2, 0x02 /* Public */,
      18,    0,   97,    2, 0x02 /* Public */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::Int, 0x80000000 | 14,   13,   15,

 // methods: parameters
    QMetaType::Void, QMetaType::QString,   17,
    QMetaType::Void,

 // properties: name, type, flags
      19, QMetaType::QString, 0x00495103,
      20, QMetaType::QString, 0x00495001,
      21, QMetaType::Int, 0x00495103,
      22, QMetaType::Bool, 0x00495001,
      23, QMetaType::Int, 0x00495001,
      24, QMetaType::Bool, 0x00495001,
      25, QMetaType::Bool, 0x00495001,
      26, QMetaType::QVariantList, 0x00495001,
      27, 0x80000000 | 28, 0x00095409,
      29, QMetaType::QVariantList, 0x00495001,
      30, QMetaType::QStringList, 0x00495001,

 // properties: notify_signal_id
       0,
       9,
       5,
       2,
       1,
       6,
       3,
       4,
       0,
       7,
       8,

       0        // eod
};

void DocumentItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DocumentItem *_t = static_cast<DocumentItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->pathChanged(); break;
        case 1: _t->pageCountChanged(); break;
        case 2: _t->openedChanged(); break;
        case 3: _t->searchInProgressChanged(); break;
        case 4: _t->matchingPagesChanged(); break;
        case 5: _t->currentPageChanged(); break;
        case 6: _t->supportsSearchingChanged(); break;
        case 7: _t->bookmarkedPagesChanged(); break;
        case 8: _t->bookmarksChanged(); break;
        case 9: _t->windowTitleForDocumentChanged(); break;
        case 10: _t->searchFinished((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Okular::Document::SearchStatus(*)>(_a[2]))); break;
        case 11: _t->searchText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 12: _t->resetSearch(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::pathChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::pageCountChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::openedChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::searchInProgressChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::matchingPagesChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::currentPageChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::supportsSearchingChanged)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::bookmarkedPagesChanged)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::bookmarksChanged)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (DocumentItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentItem::windowTitleForDocumentChanged)) {
                *result = 9;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        DocumentItem *_t = static_cast<DocumentItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->path(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->windowTitleForDocument(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->currentPage(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->isOpened(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->pageCount(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->supportsSearching(); break;
        case 6: *reinterpret_cast< bool*>(_v) = _t->isSearchInProgress(); break;
        case 7: *reinterpret_cast< QVariantList*>(_v) = _t->matchingPages(); break;
        case 8: *reinterpret_cast< TOCModel**>(_v) = _t->tableOfContents(); break;
        case 9: *reinterpret_cast< QVariantList*>(_v) = _t->bookmarkedPages(); break;
        case 10: *reinterpret_cast< QStringList*>(_v) = _t->bookmarks(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        DocumentItem *_t = static_cast<DocumentItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPath(*reinterpret_cast< QString*>(_v)); break;
        case 2: _t->setCurrentPage(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject DocumentItem::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_DocumentItem.data,
      qt_meta_data_DocumentItem,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

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

// SIGNAL 1
void DocumentItem::pageCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void DocumentItem::openedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

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

// SIGNAL 4
void DocumentItem::matchingPagesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void DocumentItem::currentPageChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

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

// SIGNAL 7
void DocumentItem::bookmarkedPagesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void DocumentItem::bookmarksChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void DocumentItem::windowTitleForDocumentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}
struct qt_meta_stringdata_Observer_t {
    QByteArrayData data[5];
    char stringdata0[33];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Observer_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Observer_t qt_meta_stringdata_Observer = {
    {
QT_MOC_LITERAL(0, 0, 8), // "Observer"
QT_MOC_LITERAL(1, 9, 11), // "pageChanged"
QT_MOC_LITERAL(2, 21, 0), // ""
QT_MOC_LITERAL(3, 22, 4), // "page"
QT_MOC_LITERAL(4, 27, 5) // "flags"

    },
    "Observer\0pageChanged\0\0page\0flags"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Observer[] = {

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

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

 // signals: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    3,    4,

       0        // eod
};

void Observer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Observer *_t = static_cast<Observer *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->pageChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Observer::*_t)(int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Observer::pageChanged)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject Observer::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Observer.data,
      qt_meta_data_Observer,  qt_static_metacall, nullptr, nullptr}
};


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

void *Observer::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Observer.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Okular::DocumentObserver"))
        return static_cast< Okular::DocumentObserver*>(this);
    return QObject::qt_metacast(_clname);
}

int Observer::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 < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void Observer::pageChanged(int _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
