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

#include "../../../../../rkward-0.8.3/rkward/windows/rkhtmlviewer.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'rkhtmlviewer.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN12RKHTMLViewerE_t {};
} // unnamed namespace

template <> constexpr inline auto RKHTMLViewer::qt_create_metaobjectdata<qt_meta_tag_ZN12RKHTMLViewerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RKHTMLViewer",
        "pageInternalNavigation",
        "",
        "QUrl",
        "new_url",
        "selectionChanged",
        "has_selection",
        "loadFinished",
        "navigationRequest",
        "current_real_url",
        "requested_url",
        "is_new_window",
        "aboutToShowContextMenu",
        "QMenu*",
        "menu"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'pageInternalNavigation'
        QtMocHelpers::SignalData<void(const QUrl &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'selectionChanged'
        QtMocHelpers::SignalData<void(bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 6 },
        }}),
        // Signal 'loadFinished'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'navigationRequest'
        QtMocHelpers::SignalData<void(const QUrl &, const QUrl &, bool)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 9 }, { 0x80000000 | 3, 10 }, { QMetaType::Bool, 11 },
        }}),
        // Signal 'aboutToShowContextMenu'
        QtMocHelpers::SignalData<void(QMenu *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RKHTMLViewer, qt_meta_tag_ZN12RKHTMLViewerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject RKHTMLViewer::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12RKHTMLViewerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12RKHTMLViewerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12RKHTMLViewerE_t>.metaTypes,
    nullptr
} };

void RKHTMLViewer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RKHTMLViewer *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->pageInternalNavigation((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 1: _t->selectionChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->loadFinished(); break;
        case 3: _t->navigationRequest((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 4: _t->aboutToShowContextMenu((*reinterpret_cast<std::add_pointer_t<QMenu*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (RKHTMLViewer::*)(const QUrl & )>(_a, &RKHTMLViewer::pageInternalNavigation, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (RKHTMLViewer::*)(bool )>(_a, &RKHTMLViewer::selectionChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (RKHTMLViewer::*)()>(_a, &RKHTMLViewer::loadFinished, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (RKHTMLViewer::*)(const QUrl & , const QUrl & , bool )>(_a, &RKHTMLViewer::navigationRequest, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (RKHTMLViewer::*)(QMenu * )>(_a, &RKHTMLViewer::aboutToShowContextMenu, 4))
            return;
    }
}

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

void *RKHTMLViewer::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12RKHTMLViewerE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void RKHTMLViewer::pageInternalNavigation(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void RKHTMLViewer::selectionChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

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

// SIGNAL 3
void RKHTMLViewer::navigationRequest(const QUrl & _t1, const QUrl & _t2, bool _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2, _t3);
}

// SIGNAL 4
void RKHTMLViewer::aboutToShowContextMenu(QMenu * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
