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

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


PyDoc_STRVAR(doc_QWebEngineClientCertificateSelection_host, "host(self) -> QUrl");

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

    {
        const ::QWebEngineClientCertificateSelection *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineClientCertificateSelection, sipName_host, doc_QWebEngineClientCertificateSelection_host);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineClientCertificateSelection_select, "select(self, certificate: QSslCertificate)");

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

    {
        const ::QSslCertificate* a0;
        ::QWebEngineClientCertificateSelection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWebEngineClientCertificateSelection, &sipCpp, sipType_QSslCertificate, &a0))
        {
            sipCpp->select(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineClientCertificateSelection, sipName_select, doc_QWebEngineClientCertificateSelection_select);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineClientCertificateSelection_selectNone, "selectNone(self)");

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

    {
        ::QWebEngineClientCertificateSelection *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineClientCertificateSelection, sipName_selectNone, doc_QWebEngineClientCertificateSelection_selectNone);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineClientCertificateSelection_certificates, "certificates(self) -> list[QSslCertificate]");

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

    {
        const ::QWebEngineClientCertificateSelection *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineClientCertificateSelection, sipName_certificates, doc_QWebEngineClientCertificateSelection_certificates);

    return SIP_NULLPTR;
}


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


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


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


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


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

    {
        const ::QWebEngineClientCertificateSelection* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_QWebEngineClientCertificateSelection[] = {
    {sipName_certificates, meth_QWebEngineClientCertificateSelection_certificates, METH_VARARGS, doc_QWebEngineClientCertificateSelection_certificates},
    {sipName_host, meth_QWebEngineClientCertificateSelection_host, METH_VARARGS, doc_QWebEngineClientCertificateSelection_host},
    {sipName_select, meth_QWebEngineClientCertificateSelection_select, METH_VARARGS, doc_QWebEngineClientCertificateSelection_select},
    {sipName_selectNone, meth_QWebEngineClientCertificateSelection_selectNone, METH_VARARGS, doc_QWebEngineClientCertificateSelection_selectNone}
};

PyDoc_STRVAR(doc_QWebEngineClientCertificateSelection, "\1QWebEngineClientCertificateSelection(a0: QWebEngineClientCertificateSelection)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineClientCertificateSelection = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineClientCertificateSelection,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineClientCertificateSelection,
        {0, 0, 1},
        4, methods_QWebEngineClientCertificateSelection,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineClientCertificateSelection,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QWebEngineClientCertificateSelection,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineClientCertificateSelection,
    assign_QWebEngineClientCertificateSelection,
    SIP_NULLPTR,
    copy_QWebEngineClientCertificateSelection,
    release_QWebEngineClientCertificateSelection,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof (::QWebEngineClientCertificateSelection),
};
