/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6-WebEngine.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtWebEngineCore.h"

#line 26 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebengineurlschemehandler.sip"
#include <qwebengineurlschemehandler.h>
#line 29 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"

#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebengineurlrequestjob.sip"
#include <qwebengineurlrequestjob.h>
#line 36 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 41 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 44 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 47 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 277 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 254 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 53 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 56 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 59 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 62 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 65 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 68 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 73 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 76 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 79 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 82 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 85 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 88 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlSchemeHandler.cpp"


class sipQWebEngineUrlSchemeHandler : public ::QWebEngineUrlSchemeHandler
{
public:
    sipQWebEngineUrlSchemeHandler(::QObject*);
    virtual ~sipQWebEngineUrlSchemeHandler();

    int qt_metacall(QMetaObject::Call, int, void **) SIP_OVERRIDE;
    void *qt_metacast(const char *) SIP_OVERRIDE;
    const QMetaObject *metaObject() const SIP_OVERRIDE;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void requestStarted(::QWebEngineUrlRequestJob*) SIP_OVERRIDE;
    bool event(::QEvent*) SIP_OVERRIDE;
    bool eventFilter(::QObject*, ::QEvent*) SIP_OVERRIDE;
    void timerEvent(::QTimerEvent*) SIP_OVERRIDE;
    void childEvent(::QChildEvent*) SIP_OVERRIDE;
    void customEvent(::QEvent*) SIP_OVERRIDE;
    void connectNotify(const ::QMetaMethod&) SIP_OVERRIDE;
    void disconnectNotify(const ::QMetaMethod&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQWebEngineUrlSchemeHandler(const sipQWebEngineUrlSchemeHandler &);
    sipQWebEngineUrlSchemeHandler &operator = (const sipQWebEngineUrlSchemeHandler &);

    char sipPyMethods[8];
};

sipQWebEngineUrlSchemeHandler::sipQWebEngineUrlSchemeHandler(::QObject*a0): ::QWebEngineUrlSchemeHandler(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQWebEngineUrlSchemeHandler::~sipQWebEngineUrlSchemeHandler()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQWebEngineUrlSchemeHandler::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtWebEngineCore_qt_metaobject(sipPySelf, sipType_QWebEngineUrlSchemeHandler);

    return ::QWebEngineUrlSchemeHandler::metaObject();
}

int sipQWebEngineUrlSchemeHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ::QWebEngineUrlSchemeHandler::qt_metacall(_c, _id, _a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtWebEngineCore_qt_metacall(sipPySelf, sipType_QWebEngineUrlSchemeHandler, _c, _id, _a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQWebEngineUrlSchemeHandler::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtWebEngineCore_qt_metacast(sipPySelf, sipType_QWebEngineUrlSchemeHandler, _clname, &sipCpp) ? sipCpp : ::QWebEngineUrlSchemeHandler::qt_metacast(_clname));
}

void sipQWebEngineUrlSchemeHandler::requestStarted(::QWebEngineUrlRequestJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], &sipPySelf, sipName_QWebEngineUrlSchemeHandler, sipName_requestStarted);

    if (!sipMeth)
        return;

    extern void sipVH_QtWebEngineCore_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QWebEngineUrlRequestJob*);

    sipVH_QtWebEngineCore_40(sipGILState, sipImportedVirtErrorHandlers_QtWebEngineCore_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQWebEngineUrlSchemeHandler::event(::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_event);

    if (!sipMeth)
        return ::QWebEngineUrlSchemeHandler::event(a0);

    extern bool sipVH_QtWebEngineCore_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QEvent*);

    return sipVH_QtWebEngineCore_5(sipGILState, sipImportedVirtErrorHandlers_QtWebEngineCore_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQWebEngineUrlSchemeHandler::eventFilter(::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_eventFilter);

    if (!sipMeth)
        return ::QWebEngineUrlSchemeHandler::eventFilter(a0, a1);

    extern bool sipVH_QtWebEngineCore_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QObject*, ::QEvent*);

    return sipVH_QtWebEngineCore_4(sipGILState, sipImportedVirtErrorHandlers_QtWebEngineCore_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQWebEngineUrlSchemeHandler::timerEvent(::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

    if (!sipMeth)
    {
        ::QWebEngineUrlSchemeHandler::timerEvent(a0);
        return;
    }

    extern void sipVH_QtWebEngineCore_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QTimerEvent*);

    sipVH_QtWebEngineCore_3(sipGILState, sipImportedVirtErrorHandlers_QtWebEngineCore_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWebEngineUrlSchemeHandler::childEvent(::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

    if (!sipMeth)
    {
        ::QWebEngineUrlSchemeHandler::childEvent(a0);
        return;
    }

    extern void sipVH_QtWebEngineCore_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QChildEvent*);

    sipVH_QtWebEngineCore_2(sipGILState, sipImportedVirtErrorHandlers_QtWebEngineCore_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWebEngineUrlSchemeHandler::customEvent(::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[5], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

    if (!sipMeth)
    {
        ::QWebEngineUrlSchemeHandler::customEvent(a0);
        return;
    }

    extern void sipVH_QtWebEngineCore_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QEvent*);

    sipVH_QtWebEngineCore_1(sipGILState, sipImportedVirtErrorHandlers_QtWebEngineCore_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWebEngineUrlSchemeHandler::connectNotify(const ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

    if (!sipMeth)
    {
        ::QWebEngineUrlSchemeHandler::connectNotify(a0);
        return;
    }

    extern void sipVH_QtWebEngineCore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QMetaMethod&);

    sipVH_QtWebEngineCore_0(sipGILState, sipImportedVirtErrorHandlers_QtWebEngineCore_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWebEngineUrlSchemeHandler::disconnectNotify(const ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[7], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

    if (!sipMeth)
    {
        ::QWebEngineUrlSchemeHandler::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtWebEngineCore_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QMetaMethod&);

    sipVH_QtWebEngineCore_0(sipGILState, sipImportedVirtErrorHandlers_QtWebEngineCore_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QWebEngineUrlSchemeHandler_requestStarted, "requestStarted(self, a0: QWebEngineUrlRequestJob|None)");

extern "C" {static PyObject *meth_QWebEngineUrlSchemeHandler_requestStarted(PyObject *, PyObject *);}
static PyObject *meth_QWebEngineUrlSchemeHandler_requestStarted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    PyObject *sipOrigSelf = sipSelf;

    {
        ::QWebEngineUrlRequestJob* a0;
        ::QWebEngineUrlSchemeHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QWebEngineUrlSchemeHandler, &sipCpp, sipType_QWebEngineUrlRequestJob, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QWebEngineUrlSchemeHandler, sipName_requestStarted);
                return SIP_NULLPTR;
            }

            sipCpp->requestStarted(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlSchemeHandler, sipName_requestStarted, doc_QWebEngineUrlSchemeHandler_requestStarted);

    return SIP_NULLPTR;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QWebEngineUrlSchemeHandler(void *, const sipTypeDef *);}
static void *cast_QWebEngineUrlSchemeHandler(void *sipCppV, const sipTypeDef *targetType)
{
    ::QWebEngineUrlSchemeHandler *sipCpp = reinterpret_cast< ::QWebEngineUrlSchemeHandler *>(sipCppV);

    if (targetType == sipType_QWebEngineUrlSchemeHandler)
        return sipCppV;

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWebEngineUrlSchemeHandler(void *, int);}
static void release_QWebEngineUrlSchemeHandler(void *sipCppV, int)
{
    ::QWebEngineUrlSchemeHandler *sipCpp = reinterpret_cast< ::QWebEngineUrlSchemeHandler *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QWebEngineUrlSchemeHandler(sipSimpleWrapper *);}
static void dealloc_QWebEngineUrlSchemeHandler(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQWebEngineUrlSchemeHandler *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QWebEngineUrlSchemeHandler(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_QWebEngineUrlSchemeHandler(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QWebEngineUrlSchemeHandler(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQWebEngineUrlSchemeHandler *sipCpp = SIP_NULLPTR;

    {
        ::QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQWebEngineUrlSchemeHandler(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWebEngineUrlSchemeHandler[] = {{22, 0, 1}};


static PyMethodDef methods_QWebEngineUrlSchemeHandler[] = {
    {sipName_requestStarted, meth_QWebEngineUrlSchemeHandler_requestStarted, METH_VARARGS, doc_QWebEngineUrlSchemeHandler_requestStarted}
};

PyDoc_STRVAR(doc_QWebEngineUrlSchemeHandler, "\1QWebEngineUrlSchemeHandler(parent: QObject|None = None)");


static pyqt6ClassPluginDef plugin_QWebEngineUrlSchemeHandler = {
    &::QWebEngineUrlSchemeHandler::staticMetaObject,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineUrlSchemeHandler = {
    {
        SIP_NULLPTR,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineUrlSchemeHandler,
        SIP_NULLPTR,
        &plugin_QWebEngineUrlSchemeHandler,
    },
    {
        sipNameNr_QWebEngineUrlSchemeHandler,
        {0, 0, 1},
        1, methods_QWebEngineUrlSchemeHandler,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineUrlSchemeHandler,
    -1,
    -1,
    supers_QWebEngineUrlSchemeHandler,
    SIP_NULLPTR,
    init_type_QWebEngineUrlSchemeHandler,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineUrlSchemeHandler,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineUrlSchemeHandler,
    cast_QWebEngineUrlSchemeHandler,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof (::QWebEngineUrlSchemeHandler),
};
