/*
 * 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 28 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebengineextensionmanager.sip"
#include <qwebengineextensionmanager.h>
#line 29 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"

#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 28 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebengineextensioninfo.sip"
#include <qwebengineextensioninfo.h>
#line 36 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 39 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 42 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.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 47 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 50 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 277 "/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/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 254 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 59 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 62 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 65 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 68 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 71 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.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 76 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 79 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 82 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 85 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 88 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 91 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineExtensionManager.cpp"


PyDoc_STRVAR(doc_QWebEngineExtensionManager_loadExtension, "loadExtension(self, path: str|None)");

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

    {
        const ::QString* a0;
        int a0State = 0;
        ::QWebEngineExtensionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineExtensionManager, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->loadExtension(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineExtensionManager, sipName_loadExtension, doc_QWebEngineExtensionManager_loadExtension);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineExtensionManager_installExtension, "installExtension(self, path: str|None)");

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

    {
        const ::QString* a0;
        int a0State = 0;
        ::QWebEngineExtensionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineExtensionManager, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->installExtension(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineExtensionManager, sipName_installExtension, doc_QWebEngineExtensionManager_installExtension);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineExtensionManager_unloadExtension, "unloadExtension(self, extension: QWebEngineExtensionInfo)");

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

    {
        const ::QWebEngineExtensionInfo* a0;
        ::QWebEngineExtensionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWebEngineExtensionManager, &sipCpp, sipType_QWebEngineExtensionInfo, &a0))
        {
            sipCpp->unloadExtension(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineExtensionManager, sipName_unloadExtension, doc_QWebEngineExtensionManager_unloadExtension);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineExtensionManager_uninstallExtension, "uninstallExtension(self, extension: QWebEngineExtensionInfo)");

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

    {
        const ::QWebEngineExtensionInfo* a0;
        ::QWebEngineExtensionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWebEngineExtensionManager, &sipCpp, sipType_QWebEngineExtensionInfo, &a0))
        {
            sipCpp->uninstallExtension(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineExtensionManager, sipName_uninstallExtension, doc_QWebEngineExtensionManager_uninstallExtension);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineExtensionManager_setExtensionEnabled, "setExtensionEnabled(self, extension: QWebEngineExtensionInfo, enabled: bool)");

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

    {
        const ::QWebEngineExtensionInfo* a0;
        bool a1;
        ::QWebEngineExtensionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_QWebEngineExtensionManager, &sipCpp, sipType_QWebEngineExtensionInfo, &a0, &a1))
        {
            sipCpp->setExtensionEnabled(*a0, a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineExtensionManager, sipName_setExtensionEnabled, doc_QWebEngineExtensionManager_setExtensionEnabled);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineExtensionManager_installPath, "installPath(self) -> str");

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

    {
        const ::QWebEngineExtensionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineExtensionManager, &sipCpp))
        {
            ::QString*sipRes;

            sipRes = new ::QString(sipCpp->installPath());

            return sipConvertFromNewType(sipRes, sipType_QString, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineExtensionManager, sipName_installPath, doc_QWebEngineExtensionManager_installPath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineExtensionManager_extensions, "extensions(self) -> list[QWebEngineExtensionInfo]");

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

    {
        const ::QWebEngineExtensionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineExtensionManager, &sipCpp))
        {
            QList< ::QWebEngineExtensionInfo>*sipRes;

            sipRes = new QList< ::QWebEngineExtensionInfo>(sipCpp->extensions());

            return sipConvertFromNewType(sipRes, sipType_QList_0100QWebEngineExtensionInfo, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineExtensionManager, sipName_extensions, doc_QWebEngineExtensionManager_extensions);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineExtensionManager_event, "event(self, e: QEvent|None) -> bool");

extern "C" {static PyObject *meth_QWebEngineExtensionManager_event(PyObject *, PyObject *);}
static PyObject *meth_QWebEngineExtensionManager_event(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QWebEngineExtensionManager)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::QEvent* a0;
        ::QWebEngineExtensionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_QWebEngineExtensionManager, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->::QWebEngineExtensionManager::event(a0) : sipCpp->event(a0));

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineExtensionManager, sipName_event, doc_QWebEngineExtensionManager_event);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QWebEngineExtensionManager)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


extern "C" {static void dealloc_QWebEngineExtensionManager(sipSimpleWrapper *);}
static void dealloc_QWebEngineExtensionManager(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QWebEngineExtensionManager(sipGetAddress(sipSelf), 0);
    }
}


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


static PyMethodDef methods_QWebEngineExtensionManager[] = {
    {sipName_event, meth_QWebEngineExtensionManager_event, METH_VARARGS, doc_QWebEngineExtensionManager_event},
    {sipName_extensions, meth_QWebEngineExtensionManager_extensions, METH_VARARGS, doc_QWebEngineExtensionManager_extensions},
    {sipName_installExtension, meth_QWebEngineExtensionManager_installExtension, METH_VARARGS, doc_QWebEngineExtensionManager_installExtension},
    {sipName_installPath, meth_QWebEngineExtensionManager_installPath, METH_VARARGS, doc_QWebEngineExtensionManager_installPath},
    {sipName_loadExtension, meth_QWebEngineExtensionManager_loadExtension, METH_VARARGS, doc_QWebEngineExtensionManager_loadExtension},
    {sipName_setExtensionEnabled, meth_QWebEngineExtensionManager_setExtensionEnabled, METH_VARARGS, doc_QWebEngineExtensionManager_setExtensionEnabled},
    {sipName_uninstallExtension, meth_QWebEngineExtensionManager_uninstallExtension, METH_VARARGS, doc_QWebEngineExtensionManager_uninstallExtension},
    {sipName_unloadExtension, meth_QWebEngineExtensionManager_unloadExtension, METH_VARARGS, doc_QWebEngineExtensionManager_unloadExtension}
};


/* Define this type's signals. */
static const pyqt6QtSignal signals_QWebEngineExtensionManager[] = {
    {"uninstallFinished(QWebEngineExtensionInfo)", "\1uninstallFinished(self, extension: QWebEngineExtensionInfo)", SIP_NULLPTR, SIP_NULLPTR},
    {"unloadFinished(QWebEngineExtensionInfo)", "\1unloadFinished(self, extension: QWebEngineExtensionInfo)", SIP_NULLPTR, SIP_NULLPTR},
    {"installFinished(QWebEngineExtensionInfo)", "\1installFinished(self, extension: QWebEngineExtensionInfo)", SIP_NULLPTR, SIP_NULLPTR},
    {"loadFinished(QWebEngineExtensionInfo)", "\1loadFinished(self, extension: QWebEngineExtensionInfo)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QWebEngineExtensionManager = {
    &::QWebEngineExtensionManager::staticMetaObject,
    signals_QWebEngineExtensionManager,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineExtensionManager = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineExtensionManager,
        SIP_NULLPTR,
        &plugin_QWebEngineExtensionManager,
    },
    {
        sipNameNr_QWebEngineExtensionManager,
        {0, 0, 1},
        8, methods_QWebEngineExtensionManager,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QWebEngineExtensionManager,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineExtensionManager,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineExtensionManager,
    cast_QWebEngineExtensionManager,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
