/****************************************************************************
** Meta object code from reading C++ file 'CTree.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.14)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../../src/gui/CTree.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'CTree.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.14. 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_CTree_t {
    QByteArrayData data[26];
    char stringdata0[514];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_CTree_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_CTree_t qt_meta_stringdata_CTree = {
    {
QT_MOC_LITERAL(0, 0, 5), // "CTree"
QT_MOC_LITERAL(1, 6, 21), // "setActiveIEViaHistory"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 20), // "CInformationElement*"
QT_MOC_LITERAL(4, 50, 3), // "pIE"
QT_MOC_LITERAL(5, 54, 11), // "showMessage"
QT_MOC_LITERAL(6, 66, 8), // "sMessage"
QT_MOC_LITERAL(7, 75, 8), // "iSeconds"
QT_MOC_LITERAL(8, 84, 10), // "addElement"
QT_MOC_LITERAL(9, 95, 29), // "changeActiveElementProperties"
QT_MOC_LITERAL(10, 125, 32), // "askForElementDeletionAndDeleteIt"
QT_MOC_LITERAL(11, 158, 17), // "slotMoveElementUp"
QT_MOC_LITERAL(12, 176, 19), // "slotMoveElementDown"
QT_MOC_LITERAL(13, 196, 20), // "slotModelDataChanged"
QT_MOC_LITERAL(14, 217, 11), // "QModelIndex"
QT_MOC_LITERAL(15, 229, 5), // "index"
QT_MOC_LITERAL(16, 235, 21), // "slotTreeItemCollapsed"
QT_MOC_LITERAL(17, 257, 20), // "slotTreeItemExpanded"
QT_MOC_LITERAL(18, 278, 31), // "activeInformationElementChanged"
QT_MOC_LITERAL(19, 310, 36), // "slotPropertyDialogSuccessfull..."
QT_MOC_LITERAL(20, 347, 24), // "slotEncryptActiveElement"
QT_MOC_LITERAL(21, 372, 35), // "slotRemoveEncryptionFromActiv..."
QT_MOC_LITERAL(22, 408, 27), // "slotAdjustEncryptionActions"
QT_MOC_LITERAL(23, 436, 34), // "slotActivatePreviousHistoryEl..."
QT_MOC_LITERAL(24, 471, 30), // "slotActivateNextHistoryElement"
QT_MOC_LITERAL(25, 502, 11) // "slotTimeout"

    },
    "CTree\0setActiveIEViaHistory\0\0"
    "CInformationElement*\0pIE\0showMessage\0"
    "sMessage\0iSeconds\0addElement\0"
    "changeActiveElementProperties\0"
    "askForElementDeletionAndDeleteIt\0"
    "slotMoveElementUp\0slotMoveElementDown\0"
    "slotModelDataChanged\0QModelIndex\0index\0"
    "slotTreeItemCollapsed\0slotTreeItemExpanded\0"
    "activeInformationElementChanged\0"
    "slotPropertyDialogSuccessfullyClosed\0"
    "slotEncryptActiveElement\0"
    "slotRemoveEncryptionFromActiveEntry\0"
    "slotAdjustEncryptionActions\0"
    "slotActivatePreviousHistoryElement\0"
    "slotActivateNextHistoryElement\0"
    "slotTimeout"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_CTree[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  104,    2, 0x06 /* Public */,
       5,    2,  107,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,  112,    2, 0x0a /* Public */,
       9,    0,  113,    2, 0x0a /* Public */,
      10,    0,  114,    2, 0x0a /* Public */,
      11,    0,  115,    2, 0x0a /* Public */,
      12,    0,  116,    2, 0x0a /* Public */,
      13,    1,  117,    2, 0x08 /* Private */,
      16,    1,  120,    2, 0x08 /* Private */,
      17,    1,  123,    2, 0x08 /* Private */,
      18,    1,  126,    2, 0x08 /* Private */,
      19,    0,  129,    2, 0x08 /* Private */,
      20,    0,  130,    2, 0x08 /* Private */,
      21,    0,  131,    2, 0x08 /* Private */,
      22,    0,  132,    2, 0x08 /* Private */,
      23,    0,  133,    2, 0x08 /* Private */,
      24,    0,  134,    2, 0x08 /* Private */,
      25,    0,  135,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    6,    7,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 14,   15,
    QMetaType::Void, 0x80000000 | 14,   15,
    QMetaType::Void, 0x80000000 | 14,   15,
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void CTree::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<CTree *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->setActiveIEViaHistory((*reinterpret_cast< CInformationElement*(*)>(_a[1]))); break;
        case 1: _t->showMessage((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->addElement(); break;
        case 3: _t->changeActiveElementProperties(); break;
        case 4: _t->askForElementDeletionAndDeleteIt(); break;
        case 5: _t->slotMoveElementUp(); break;
        case 6: _t->slotMoveElementDown(); break;
        case 7: _t->slotModelDataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 8: _t->slotTreeItemCollapsed((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 9: _t->slotTreeItemExpanded((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 10: _t->activeInformationElementChanged((*reinterpret_cast< CInformationElement*(*)>(_a[1]))); break;
        case 11: _t->slotPropertyDialogSuccessfullyClosed(); break;
        case 12: _t->slotEncryptActiveElement(); break;
        case 13: _t->slotRemoveEncryptionFromActiveEntry(); break;
        case 14: _t->slotAdjustEncryptionActions(); break;
        case 15: _t->slotActivatePreviousHistoryElement(); break;
        case 16: _t->slotActivateNextHistoryElement(); break;
        case 17: _t->slotTimeout(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< CInformationElement* >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< CInformationElement* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (CTree::*)(CInformationElement * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CTree::setActiveIEViaHistory)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (CTree::*)(QString , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CTree::showMessage)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject CTree::staticMetaObject = { {
    QMetaObject::SuperData::link<QTreeView::staticMetaObject>(),
    qt_meta_stringdata_CTree.data,
    qt_meta_data_CTree,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *CTree::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_CTree.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "IHistoryListener"))
        return static_cast< IHistoryListener*>(this);
    return QTreeView::qt_metacast(_clname);
}

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

// SIGNAL 0
void CTree::setActiveIEViaHistory(CInformationElement * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void CTree::showMessage(QString _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
