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

#include "../../../../src/qtwebkit-201c7117463e43e9cbd02ff33c6f491d81b2e6c7/Source/WebKit2/UIProcess/API/qt/qwebpermissionrequest_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qwebpermissionrequest_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.3. 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_QWebPermissionRequest_t {
    QByteArrayData data[11];
    char stringdata0[123];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QWebPermissionRequest_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QWebPermissionRequest_t qt_meta_stringdata_QWebPermissionRequest = {
    {
QT_MOC_LITERAL(0, 0, 21), // "QWebPermissionRequest"
QT_MOC_LITERAL(1, 22, 8), // "setAllow"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 14), // "securityOrigin"
QT_MOC_LITERAL(4, 47, 20), // "QtWebSecurityOrigin*"
QT_MOC_LITERAL(5, 68, 5), // "allow"
QT_MOC_LITERAL(6, 74, 4), // "type"
QT_MOC_LITERAL(7, 79, 11), // "RequestType"
QT_MOC_LITERAL(8, 91, 6), // "origin"
QT_MOC_LITERAL(9, 98, 11), // "Geolocation"
QT_MOC_LITERAL(10, 110, 12) // "Notification"

    },
    "QWebPermissionRequest\0setAllow\0\0"
    "securityOrigin\0QtWebSecurityOrigin*\0"
    "allow\0type\0RequestType\0origin\0Geolocation\0"
    "Notification"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QWebPermissionRequest[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   24,    2, 0x0a /* Public */,
       3,    0,   27,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,    2,
    0x80000000 | 4,

 // properties: name, type, flags
       5, QMetaType::Bool, 0x00095103,
       6, 0x80000000 | 7, 0x00095409,
       8, 0x80000000 | 4, 0x00095009,

 // enums: name, flags, count, data
       7, 0x0,    2,   41,

 // enum data: key, value
       9, uint(QWebPermissionRequest::Geolocation),
      10, uint(QWebPermissionRequest::Notification),

       0        // eod
};

void QWebPermissionRequest::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QWebPermissionRequest *_t = static_cast<QWebPermissionRequest *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->setAllow((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: { QtWebSecurityOrigin* _r = _t->securityOrigin();
            if (_a[0]) *reinterpret_cast< QtWebSecurityOrigin**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QtWebSecurityOrigin* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        QWebPermissionRequest *_t = static_cast<QWebPermissionRequest *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->allow(); break;
        case 1: *reinterpret_cast< RequestType*>(_v) = _t->type(); break;
        case 2: *reinterpret_cast< QtWebSecurityOrigin**>(_v) = _t->securityOrigin(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        QWebPermissionRequest *_t = static_cast<QWebPermissionRequest *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAllow(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject QWebPermissionRequest::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_QWebPermissionRequest.data,
      qt_meta_data_QWebPermissionRequest,  qt_static_metacall, nullptr, nullptr}
};


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

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

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