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

#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineQuotaRequest.cpp"


PyDoc_STRVAR(doc_QWebEngineQuotaRequest_accept, "accept(self)");

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

    {
        ::QWebEngineQuotaRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineQuotaRequest, sipName_accept, doc_QWebEngineQuotaRequest_accept);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineQuotaRequest_reject, "reject(self)");

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

    {
        ::QWebEngineQuotaRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineQuotaRequest, sipName_reject, doc_QWebEngineQuotaRequest_reject);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineQuotaRequest_origin, "origin(self) -> QUrl");

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

    {
        const ::QWebEngineQuotaRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineQuotaRequest, sipName_origin, doc_QWebEngineQuotaRequest_origin);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineQuotaRequest_requestedSize, "requestedSize(self) -> int");

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

    {
        const ::QWebEngineQuotaRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineQuotaRequest, &sipCpp))
        {
            ::qint64 sipRes;

            sipRes = sipCpp->requestedSize();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineQuotaRequest, sipName_requestedSize, doc_QWebEngineQuotaRequest_requestedSize);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QWebEngineQuotaRequest___ne__(PyObject *, PyObject *);}
static PyObject *slot_QWebEngineQuotaRequest___ne__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QWebEngineQuotaRequest *sipCpp = reinterpret_cast< ::QWebEngineQuotaRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QWebEngineQuotaRequest));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QWebEngineQuotaRequest* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

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


extern "C" {static PyObject *slot_QWebEngineQuotaRequest___eq__(PyObject *, PyObject *);}
static PyObject *slot_QWebEngineQuotaRequest___eq__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QWebEngineQuotaRequest *sipCpp = reinterpret_cast< ::QWebEngineQuotaRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QWebEngineQuotaRequest));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QWebEngineQuotaRequest* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

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


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::QWebEngineQuotaRequest* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QWebEngineQuotaRequest[] = {
    {sipName_accept, meth_QWebEngineQuotaRequest_accept, METH_VARARGS, doc_QWebEngineQuotaRequest_accept},
    {sipName_origin, meth_QWebEngineQuotaRequest_origin, METH_VARARGS, doc_QWebEngineQuotaRequest_origin},
    {sipName_reject, meth_QWebEngineQuotaRequest_reject, METH_VARARGS, doc_QWebEngineQuotaRequest_reject},
    {sipName_requestedSize, meth_QWebEngineQuotaRequest_requestedSize, METH_VARARGS, doc_QWebEngineQuotaRequest_requestedSize}
};

PyDoc_STRVAR(doc_QWebEngineQuotaRequest, "\1QWebEngineQuotaRequest()\n"
"QWebEngineQuotaRequest(a0: QWebEngineQuotaRequest)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineQuotaRequest = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineQuotaRequest,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineQuotaRequest,
        {0, 0, 1},
        4, methods_QWebEngineQuotaRequest,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineQuotaRequest,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QWebEngineQuotaRequest,
    init_type_QWebEngineQuotaRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineQuotaRequest,
    assign_QWebEngineQuotaRequest,
    array_QWebEngineQuotaRequest,
    copy_QWebEngineQuotaRequest,
    release_QWebEngineQuotaRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebEngineQuotaRequest,
    sizeof (::QWebEngineQuotaRequest),
};
