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

#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineCertificateError.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 36 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineCertificateError.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 39 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineCertificateError.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 42 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineCertificateError.cpp"


PyDoc_STRVAR(doc_QWebEngineCertificateError_url, "url(self) -> QUrl");

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

    {
        const ::QWebEngineCertificateError *sipCpp;

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

            sipRes = new ::QUrl(sipCpp->url());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_url, doc_QWebEngineCertificateError_url);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineCertificateError_isOverridable, "isOverridable(self) -> bool");

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

    {
        const ::QWebEngineCertificateError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineCertificateError, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isOverridable();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_isOverridable, doc_QWebEngineCertificateError_isOverridable);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineCertificateError_defer, "defer(self)");

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

    {
        ::QWebEngineCertificateError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineCertificateError, &sipCpp))
        {
            sipCpp->defer();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_defer, doc_QWebEngineCertificateError_defer);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineCertificateError_rejectCertificate, "rejectCertificate(self)");

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

    {
        ::QWebEngineCertificateError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineCertificateError, &sipCpp))
        {
            sipCpp->rejectCertificate();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_rejectCertificate, doc_QWebEngineCertificateError_rejectCertificate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineCertificateError_certificateChain, "certificateChain(self) -> list[QSslCertificate]");

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

    {
        const ::QWebEngineCertificateError *sipCpp;

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

            sipRes = new QList< ::QSslCertificate>(sipCpp->certificateChain());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_certificateChain, doc_QWebEngineCertificateError_certificateChain);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineCertificateError_type, "type(self) -> QWebEngineCertificateError.Type");

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

    {
        const ::QWebEngineCertificateError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineCertificateError, &sipCpp))
        {
            ::QWebEngineCertificateError::Type sipRes;

            sipRes = sipCpp->type();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_type, doc_QWebEngineCertificateError_type);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineCertificateError_description, "description(self) -> str");

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

    {
        const ::QWebEngineCertificateError *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_description, doc_QWebEngineCertificateError_description);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineCertificateError_acceptCertificate, "acceptCertificate(self)");

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

    {
        ::QWebEngineCertificateError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineCertificateError, &sipCpp))
        {
            sipCpp->acceptCertificate();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_acceptCertificate, doc_QWebEngineCertificateError_acceptCertificate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineCertificateError_isMainFrame, "isMainFrame(self) -> bool");

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

    {
        const ::QWebEngineCertificateError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineCertificateError, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isMainFrame();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineCertificateError, sipName_isMainFrame, doc_QWebEngineCertificateError_isMainFrame);

    return SIP_NULLPTR;
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::QWebEngineCertificateError* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_QWebEngineCertificateError[] = {
    {sipName_acceptCertificate, meth_QWebEngineCertificateError_acceptCertificate, METH_VARARGS, doc_QWebEngineCertificateError_acceptCertificate},
    {sipName_certificateChain, meth_QWebEngineCertificateError_certificateChain, METH_VARARGS, doc_QWebEngineCertificateError_certificateChain},
    {sipName_defer, meth_QWebEngineCertificateError_defer, METH_VARARGS, doc_QWebEngineCertificateError_defer},
    {sipName_description, meth_QWebEngineCertificateError_description, METH_VARARGS, doc_QWebEngineCertificateError_description},
    {sipName_isMainFrame, meth_QWebEngineCertificateError_isMainFrame, METH_VARARGS, doc_QWebEngineCertificateError_isMainFrame},
    {sipName_isOverridable, meth_QWebEngineCertificateError_isOverridable, METH_VARARGS, doc_QWebEngineCertificateError_isOverridable},
    {sipName_rejectCertificate, meth_QWebEngineCertificateError_rejectCertificate, METH_VARARGS, doc_QWebEngineCertificateError_rejectCertificate},
    {sipName_type, meth_QWebEngineCertificateError_type, METH_VARARGS, doc_QWebEngineCertificateError_type},
    {sipName_url, meth_QWebEngineCertificateError_url, METH_VARARGS, doc_QWebEngineCertificateError_url}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QWebEngineCertificateError[] = {
    {sipName_Ok, static_cast<int>(::QWebEngineCertificateError::Ok)},
    {sipName_SslPinnedKeyNotInCertificateChain, static_cast<int>(::QWebEngineCertificateError::SslPinnedKeyNotInCertificateChain)},
    {sipName_CertificateCommonNameInvalid, static_cast<int>(::QWebEngineCertificateError::CertificateCommonNameInvalid)},
    {sipName_CertificateDateInvalid, static_cast<int>(::QWebEngineCertificateError::CertificateDateInvalid)},
    {sipName_CertificateAuthorityInvalid, static_cast<int>(::QWebEngineCertificateError::CertificateAuthorityInvalid)},
    {sipName_CertificateContainsErrors, static_cast<int>(::QWebEngineCertificateError::CertificateContainsErrors)},
    {sipName_CertificateNoRevocationMechanism, static_cast<int>(::QWebEngineCertificateError::CertificateNoRevocationMechanism)},
    {sipName_CertificateUnableToCheckRevocation, static_cast<int>(::QWebEngineCertificateError::CertificateUnableToCheckRevocation)},
    {sipName_CertificateRevoked, static_cast<int>(::QWebEngineCertificateError::CertificateRevoked)},
    {sipName_CertificateInvalid, static_cast<int>(::QWebEngineCertificateError::CertificateInvalid)},
    {sipName_CertificateWeakSignatureAlgorithm, static_cast<int>(::QWebEngineCertificateError::CertificateWeakSignatureAlgorithm)},
    {sipName_CertificateNonUniqueName, static_cast<int>(::QWebEngineCertificateError::CertificateNonUniqueName)},
    {sipName_CertificateWeakKey, static_cast<int>(::QWebEngineCertificateError::CertificateWeakKey)},
    {sipName_CertificateNameConstraintViolation, static_cast<int>(::QWebEngineCertificateError::CertificateNameConstraintViolation)},
    {sipName_CertificateValidityTooLong, static_cast<int>(::QWebEngineCertificateError::CertificateValidityTooLong)},
    {sipName_CertificateTransparencyRequired, static_cast<int>(::QWebEngineCertificateError::CertificateTransparencyRequired)},
    {sipName_CertificateSymantecLegacy, static_cast<int>(::QWebEngineCertificateError::CertificateSymantecLegacy)},
    {sipName_CertificateKnownInterceptionBlocked, static_cast<int>(::QWebEngineCertificateError::CertificateKnownInterceptionBlocked)},
    {sipName_SslObsoleteVersion, static_cast<int>(::QWebEngineCertificateError::SslObsoleteVersion)},
    {0, 0}
};

PyDoc_STRVAR(doc_QWebEngineCertificateError, "\1QWebEngineCertificateError()\n"
"QWebEngineCertificateError(other: QWebEngineCertificateError)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineCertificateError = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineCertificateError,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineCertificateError,
        {0, 0, 1},
        9, methods_QWebEngineCertificateError,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QWebEngineCertificateError, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineCertificateError,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QWebEngineCertificateError,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineCertificateError,
    assign_QWebEngineCertificateError,
    array_QWebEngineCertificateError,
    copy_QWebEngineCertificateError,
    release_QWebEngineCertificateError,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebEngineCertificateError,
    sizeof (::QWebEngineCertificateError),
};
