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

#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlScheme.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 36 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineUrlScheme.cpp"


PyDoc_STRVAR(doc_QWebEngineUrlScheme_name, "name(self) -> QByteArray");

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

    {
        const ::QWebEngineUrlScheme *sipCpp;

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

            sipRes = new ::QByteArray(sipCpp->name());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_name, doc_QWebEngineUrlScheme_name);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_setName, "setName(self, newValue: QByteArray|bytes|bytearray|memoryview)");

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

    {
        const ::QByteArray* a0;
        int a0State = 0;
        ::QWebEngineUrlScheme *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineUrlScheme, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            sipCpp->setName(*a0);
            sipReleaseType(const_cast< ::QByteArray *>(a0), sipType_QByteArray, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_setName, doc_QWebEngineUrlScheme_setName);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_syntax, "syntax(self) -> QWebEngineUrlScheme.Syntax");

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

    {
        const ::QWebEngineUrlScheme *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineUrlScheme, &sipCpp))
        {
            ::QWebEngineUrlScheme::Syntax sipRes;

            sipRes = sipCpp->syntax();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QWebEngineUrlScheme_Syntax);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_syntax, doc_QWebEngineUrlScheme_syntax);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_setSyntax, "setSyntax(self, newValue: QWebEngineUrlScheme.Syntax)");

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

    {
        ::QWebEngineUrlScheme::Syntax a0;
        ::QWebEngineUrlScheme *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWebEngineUrlScheme, &sipCpp, sipType_QWebEngineUrlScheme_Syntax, &a0))
        {
            sipCpp->setSyntax(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_setSyntax, doc_QWebEngineUrlScheme_setSyntax);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_defaultPort, "defaultPort(self) -> int");

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

    {
        const ::QWebEngineUrlScheme *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineUrlScheme, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->defaultPort();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_defaultPort, doc_QWebEngineUrlScheme_defaultPort);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_setDefaultPort, "setDefaultPort(self, newValue: int)");

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

    {
        int a0;
        ::QWebEngineUrlScheme *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWebEngineUrlScheme, &sipCpp, &a0))
        {
            sipCpp->setDefaultPort(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_setDefaultPort, doc_QWebEngineUrlScheme_setDefaultPort);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_flags, "flags(self) -> QWebEngineUrlScheme.Flag");

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

    {
        const ::QWebEngineUrlScheme *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineUrlScheme, &sipCpp))
        {
            ::QWebEngineUrlScheme::Flags*sipRes;

            sipRes = new ::QWebEngineUrlScheme::Flags(sipCpp->flags());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_flags, doc_QWebEngineUrlScheme_flags);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_setFlags, "setFlags(self, newValue: QWebEngineUrlScheme.Flag)");

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

    {
        ::QWebEngineUrlScheme::Flags* a0;
        int a0State = 0;
        ::QWebEngineUrlScheme *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineUrlScheme, &sipCpp, sipType_QFlags_0100QWebEngineUrlScheme_Flag, &a0, &a0State))
        {
            sipCpp->setFlags(*a0);
            sipReleaseType(a0, sipType_QFlags_0100QWebEngineUrlScheme_Flag, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_setFlags, doc_QWebEngineUrlScheme_setFlags);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_registerScheme, "registerScheme(scheme: QWebEngineUrlScheme)");

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

    {
        const ::QWebEngineUrlScheme* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "CJ9", &sipSelf, sipType_QWebEngineUrlScheme, &a0))
        {
            ::QWebEngineUrlScheme::registerScheme(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_registerScheme, doc_QWebEngineUrlScheme_registerScheme);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineUrlScheme_schemeByName, "schemeByName(name: QByteArray|bytes|bytearray|memoryview) -> QWebEngineUrlScheme");

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

    {
        const ::QByteArray* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "CJ1", &sipSelf, sipType_QByteArray, &a0, &a0State))
        {
            ::QWebEngineUrlScheme*sipRes;

            sipRes = new ::QWebEngineUrlScheme(::QWebEngineUrlScheme::schemeByName(*a0));
            sipReleaseType(const_cast< ::QByteArray *>(a0), sipType_QByteArray, a0State);

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

    sipNoMethod(sipParseErr, sipName_QWebEngineUrlScheme, sipName_schemeByName, doc_QWebEngineUrlScheme_schemeByName);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QWebEngineUrlScheme___ne__(PyObject *, PyObject *);}
static PyObject *slot_QWebEngineUrlScheme___ne__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QWebEngineUrlScheme *sipCpp = reinterpret_cast< ::QWebEngineUrlScheme *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QWebEngineUrlScheme));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QWebEngineUrlScheme* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QWebEngineUrlScheme, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->::QWebEngineUrlScheme::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtWebEngineCore, ne_slot, sipType_QWebEngineUrlScheme, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QWebEngineUrlScheme___eq__(PyObject *, PyObject *);}
static PyObject *slot_QWebEngineUrlScheme___eq__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QWebEngineUrlScheme *sipCpp = reinterpret_cast< ::QWebEngineUrlScheme *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QWebEngineUrlScheme));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QWebEngineUrlScheme* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QWebEngineUrlScheme, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->::QWebEngineUrlScheme::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtWebEngineCore, eq_slot, sipType_QWebEngineUrlScheme, sipSelf, sipArg);
}


/* Call the instance's destructor. */
extern "C" {static void release_QWebEngineUrlScheme(void *, int);}
static void release_QWebEngineUrlScheme(void *sipCppV, int)
{
    delete reinterpret_cast< ::QWebEngineUrlScheme *>(sipCppV);
}


extern "C" {static void *array_QWebEngineUrlScheme(Py_ssize_t);}
static void *array_QWebEngineUrlScheme(Py_ssize_t sipNrElem)
{
    return new ::QWebEngineUrlScheme[sipNrElem];
}


extern "C" {static void array_delete_QWebEngineUrlScheme(void *);}
static void array_delete_QWebEngineUrlScheme(void *sipCpp)
{
    delete[] reinterpret_cast< ::QWebEngineUrlScheme *>(sipCpp);
}


extern "C" {static void assign_QWebEngineUrlScheme(void *, Py_ssize_t, void *);}
static void assign_QWebEngineUrlScheme(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QWebEngineUrlScheme *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QWebEngineUrlScheme *>(sipSrc);
}


extern "C" {static void *copy_QWebEngineUrlScheme(const void *, Py_ssize_t);}
static void *copy_QWebEngineUrlScheme(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new ::QWebEngineUrlScheme(reinterpret_cast<const ::QWebEngineUrlScheme *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_type_QWebEngineUrlScheme(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QWebEngineUrlScheme(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    ::QWebEngineUrlScheme *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new ::QWebEngineUrlScheme();

            return sipCpp;
        }
    }

    {
        const ::QByteArray* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J1", sipType_QByteArray, &a0, &a0State))
        {
            sipCpp = new ::QWebEngineUrlScheme(*a0);
            sipReleaseType(const_cast< ::QByteArray *>(a0), sipType_QByteArray, a0State);

            return sipCpp;
        }
    }

    {
        const ::QWebEngineUrlScheme* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QWebEngineUrlScheme, &a0))
        {
            sipCpp = new ::QWebEngineUrlScheme(*a0);

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QWebEngineUrlScheme[] = {
    {(void *)slot_QWebEngineUrlScheme___ne__, ne_slot},
    {(void *)slot_QWebEngineUrlScheme___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QWebEngineUrlScheme[] = {
    {sipName_defaultPort, meth_QWebEngineUrlScheme_defaultPort, METH_VARARGS, doc_QWebEngineUrlScheme_defaultPort},
    {sipName_flags, meth_QWebEngineUrlScheme_flags, METH_VARARGS, doc_QWebEngineUrlScheme_flags},
    {sipName_name, meth_QWebEngineUrlScheme_name, METH_VARARGS, doc_QWebEngineUrlScheme_name},
    {sipName_registerScheme, meth_QWebEngineUrlScheme_registerScheme, METH_VARARGS, doc_QWebEngineUrlScheme_registerScheme},
    {sipName_schemeByName, meth_QWebEngineUrlScheme_schemeByName, METH_VARARGS, doc_QWebEngineUrlScheme_schemeByName},
    {sipName_setDefaultPort, meth_QWebEngineUrlScheme_setDefaultPort, METH_VARARGS, doc_QWebEngineUrlScheme_setDefaultPort},
    {sipName_setFlags, meth_QWebEngineUrlScheme_setFlags, METH_VARARGS, doc_QWebEngineUrlScheme_setFlags},
    {sipName_setName, meth_QWebEngineUrlScheme_setName, METH_VARARGS, doc_QWebEngineUrlScheme_setName},
    {sipName_setSyntax, meth_QWebEngineUrlScheme_setSyntax, METH_VARARGS, doc_QWebEngineUrlScheme_setSyntax},
    {sipName_syntax, meth_QWebEngineUrlScheme_syntax, METH_VARARGS, doc_QWebEngineUrlScheme_syntax}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QWebEngineUrlScheme[] = {
    {sipName_SecureScheme, static_cast<int>(::QWebEngineUrlScheme::SecureScheme)},
    {sipName_LocalScheme, static_cast<int>(::QWebEngineUrlScheme::LocalScheme)},
    {sipName_LocalAccessAllowed, static_cast<int>(::QWebEngineUrlScheme::LocalAccessAllowed)},
    {sipName_NoAccessAllowed, static_cast<int>(::QWebEngineUrlScheme::NoAccessAllowed)},
    {sipName_ServiceWorkersAllowed, static_cast<int>(::QWebEngineUrlScheme::ServiceWorkersAllowed)},
    {sipName_ViewSourceAllowed, static_cast<int>(::QWebEngineUrlScheme::ViewSourceAllowed)},
    {sipName_ContentSecurityPolicyIgnored, static_cast<int>(::QWebEngineUrlScheme::ContentSecurityPolicyIgnored)},
    {sipName_CorsEnabled, static_cast<int>(::QWebEngineUrlScheme::CorsEnabled)},
    {sipName_FetchApiAllowed, static_cast<int>(::QWebEngineUrlScheme::FetchApiAllowed)},
    {sipName_PortUnspecified, static_cast<int>(::QWebEngineUrlScheme::PortUnspecified)},
    {sipName_HostPortAndUserInformation, static_cast<int>(::QWebEngineUrlScheme::Syntax::HostPortAndUserInformation)},
    {sipName_HostAndPort, static_cast<int>(::QWebEngineUrlScheme::Syntax::HostAndPort)},
    {sipName_Host, static_cast<int>(::QWebEngineUrlScheme::Syntax::Host)},
    {sipName_Path, static_cast<int>(::QWebEngineUrlScheme::Syntax::Path)},
    {0, 0}
};

PyDoc_STRVAR(doc_QWebEngineUrlScheme, "\1QWebEngineUrlScheme()\n"
"QWebEngineUrlScheme(name: QByteArray|bytes|bytearray|memoryview)\n"
"QWebEngineUrlScheme(that: QWebEngineUrlScheme)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineUrlScheme = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineUrlScheme,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineUrlScheme,
        {0, 0, 1},
        10, methods_QWebEngineUrlScheme,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QWebEngineUrlScheme, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineUrlScheme,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QWebEngineUrlScheme,
    init_type_QWebEngineUrlScheme,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineUrlScheme,
    assign_QWebEngineUrlScheme,
    array_QWebEngineUrlScheme,
    copy_QWebEngineUrlScheme,
    release_QWebEngineUrlScheme,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebEngineUrlScheme,
    sizeof (::QWebEngineUrlScheme),
};
