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

#line 28 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebenginewebauthuxrequest.sip"
#include <qwebenginewebauthuxrequest.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineWebAuthPinRequest.cpp"


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::QWebEngineWebAuthPinRequest* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


extern "C" {static PyObject *varget_QWebEngineWebAuthPinRequest_error(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebEngineWebAuthPinRequest_error(void *sipSelf, PyObject *, PyObject *)
{
    ::QWebEngineWebAuthUxRequest::PinEntryError sipVal;
    ::QWebEngineWebAuthPinRequest *sipCpp = reinterpret_cast< ::QWebEngineWebAuthPinRequest *>(sipSelf);

    sipVal = sipCpp->error;

    return sipConvertFromEnum(static_cast<int>(sipVal), sipType_QWebEngineWebAuthUxRequest_PinEntryError);
}


extern "C" {static int varset_QWebEngineWebAuthPinRequest_error(void *, PyObject *, PyObject *);}
static int varset_QWebEngineWebAuthPinRequest_error(void *sipSelf, PyObject *sipPy, PyObject *)
{
    ::QWebEngineWebAuthUxRequest::PinEntryError sipVal;
    ::QWebEngineWebAuthPinRequest *sipCpp = reinterpret_cast< ::QWebEngineWebAuthPinRequest *>(sipSelf);

    sipVal = (::QWebEngineWebAuthUxRequest::PinEntryError)sipConvertToEnum(sipPy, sipType_QWebEngineWebAuthUxRequest_PinEntryError);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->error = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QWebEngineWebAuthPinRequest_minPinLength(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebEngineWebAuthPinRequest_minPinLength(void *sipSelf, PyObject *, PyObject *)
{
    ::qint32 sipVal;
    ::QWebEngineWebAuthPinRequest *sipCpp = reinterpret_cast< ::QWebEngineWebAuthPinRequest *>(sipSelf);

    sipVal = sipCpp->minPinLength;

    return PyLong_FromLong(sipVal);
}


extern "C" {static int varset_QWebEngineWebAuthPinRequest_minPinLength(void *, PyObject *, PyObject *);}
static int varset_QWebEngineWebAuthPinRequest_minPinLength(void *sipSelf, PyObject *sipPy, PyObject *)
{
    ::qint32 sipVal;
    ::QWebEngineWebAuthPinRequest *sipCpp = reinterpret_cast< ::QWebEngineWebAuthPinRequest *>(sipSelf);

    sipVal = sipLong_AsInt(sipPy);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->minPinLength = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QWebEngineWebAuthPinRequest_reason(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebEngineWebAuthPinRequest_reason(void *sipSelf, PyObject *, PyObject *)
{
    ::QWebEngineWebAuthUxRequest::PinEntryReason sipVal;
    ::QWebEngineWebAuthPinRequest *sipCpp = reinterpret_cast< ::QWebEngineWebAuthPinRequest *>(sipSelf);

    sipVal = sipCpp->reason;

    return sipConvertFromEnum(static_cast<int>(sipVal), sipType_QWebEngineWebAuthUxRequest_PinEntryReason);
}


extern "C" {static int varset_QWebEngineWebAuthPinRequest_reason(void *, PyObject *, PyObject *);}
static int varset_QWebEngineWebAuthPinRequest_reason(void *sipSelf, PyObject *sipPy, PyObject *)
{
    ::QWebEngineWebAuthUxRequest::PinEntryReason sipVal;
    ::QWebEngineWebAuthPinRequest *sipCpp = reinterpret_cast< ::QWebEngineWebAuthPinRequest *>(sipSelf);

    sipVal = (::QWebEngineWebAuthUxRequest::PinEntryReason)sipConvertToEnum(sipPy, sipType_QWebEngineWebAuthUxRequest_PinEntryReason);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->reason = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QWebEngineWebAuthPinRequest_remainingAttempts(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebEngineWebAuthPinRequest_remainingAttempts(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
    ::QWebEngineWebAuthPinRequest *sipCpp = reinterpret_cast< ::QWebEngineWebAuthPinRequest *>(sipSelf);

    sipVal = sipCpp->remainingAttempts;

    return PyLong_FromLong(sipVal);
}


extern "C" {static int varset_QWebEngineWebAuthPinRequest_remainingAttempts(void *, PyObject *, PyObject *);}
static int varset_QWebEngineWebAuthPinRequest_remainingAttempts(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
    ::QWebEngineWebAuthPinRequest *sipCpp = reinterpret_cast< ::QWebEngineWebAuthPinRequest *>(sipSelf);

    sipVal = sipLong_AsInt(sipPy);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->remainingAttempts = sipVal;

    return 0;
}

sipVariableDef variables_QWebEngineWebAuthPinRequest[] = {
    {InstanceVariable, sipName_error, (PyMethodDef *)varget_QWebEngineWebAuthPinRequest_error, (PyMethodDef *)varset_QWebEngineWebAuthPinRequest_error, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_minPinLength, (PyMethodDef *)varget_QWebEngineWebAuthPinRequest_minPinLength, (PyMethodDef *)varset_QWebEngineWebAuthPinRequest_minPinLength, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_reason, (PyMethodDef *)varget_QWebEngineWebAuthPinRequest_reason, (PyMethodDef *)varset_QWebEngineWebAuthPinRequest_reason, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_remainingAttempts, (PyMethodDef *)varget_QWebEngineWebAuthPinRequest_remainingAttempts, (PyMethodDef *)varset_QWebEngineWebAuthPinRequest_remainingAttempts, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_QWebEngineWebAuthPinRequest, "\1QWebEngineWebAuthPinRequest()\n"
"QWebEngineWebAuthPinRequest(a0: QWebEngineWebAuthPinRequest)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineWebAuthPinRequest = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineWebAuthPinRequest,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineWebAuthPinRequest,
        {0, 0, 1},
        0, SIP_NULLPTR,
        4, variables_QWebEngineWebAuthPinRequest,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineWebAuthPinRequest,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QWebEngineWebAuthPinRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineWebAuthPinRequest,
    assign_QWebEngineWebAuthPinRequest,
    array_QWebEngineWebAuthPinRequest,
    copy_QWebEngineWebAuthPinRequest,
    release_QWebEngineWebAuthPinRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebEngineWebAuthPinRequest,
    sizeof (::QWebEngineWebAuthPinRequest),
};
