/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQtWebEngine.
 * 
 * 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/pyqt5-webengine/src/PyQtWebEngine-5.15.6/sip/QtWebEngineCore/qwebengineregisterprotocolhandlerrequest.sip"
#include <qwebengineregisterprotocolhandlerrequest.h>
#line 29 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineRegisterProtocolHandlerRequest.cpp"

#line 27 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 33 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineRegisterProtocolHandlerRequest.cpp"
#line 109 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 36 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineRegisterProtocolHandlerRequest.cpp"


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

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

    {
         ::QWebEngineRegisterProtocolHandlerRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineRegisterProtocolHandlerRequest, sipName_accept, doc_QWebEngineRegisterProtocolHandlerRequest_accept);

    return SIP_NULLPTR;
}


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

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

    {
         ::QWebEngineRegisterProtocolHandlerRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineRegisterProtocolHandlerRequest, sipName_reject, doc_QWebEngineRegisterProtocolHandlerRequest_reject);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineRegisterProtocolHandlerRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineRegisterProtocolHandlerRequest, sipName_origin, doc_QWebEngineRegisterProtocolHandlerRequest_origin);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineRegisterProtocolHandlerRequest_scheme, "scheme(self) -> str");

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

    {
        const  ::QWebEngineRegisterProtocolHandlerRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineRegisterProtocolHandlerRequest, sipName_scheme, doc_QWebEngineRegisterProtocolHandlerRequest_scheme);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QWebEngineRegisterProtocolHandlerRequest___ne__(PyObject *,PyObject *);}
static PyObject *slot_QWebEngineRegisterProtocolHandlerRequest___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QWebEngineRegisterProtocolHandlerRequest *sipCpp = reinterpret_cast< ::QWebEngineRegisterProtocolHandlerRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QWebEngineRegisterProtocolHandlerRequest));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QWebEngineRegisterProtocolHandlerRequest* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

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


extern "C" {static PyObject *slot_QWebEngineRegisterProtocolHandlerRequest___eq__(PyObject *,PyObject *);}
static PyObject *slot_QWebEngineRegisterProtocolHandlerRequest___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QWebEngineRegisterProtocolHandlerRequest *sipCpp = reinterpret_cast< ::QWebEngineRegisterProtocolHandlerRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QWebEngineRegisterProtocolHandlerRequest));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QWebEngineRegisterProtocolHandlerRequest* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

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


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const  ::QWebEngineRegisterProtocolHandlerRequest* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QWebEngineRegisterProtocolHandlerRequest[] = {
    {sipName_accept, meth_QWebEngineRegisterProtocolHandlerRequest_accept, METH_VARARGS, doc_QWebEngineRegisterProtocolHandlerRequest_accept},
    {sipName_origin, meth_QWebEngineRegisterProtocolHandlerRequest_origin, METH_VARARGS, doc_QWebEngineRegisterProtocolHandlerRequest_origin},
    {sipName_reject, meth_QWebEngineRegisterProtocolHandlerRequest_reject, METH_VARARGS, doc_QWebEngineRegisterProtocolHandlerRequest_reject},
    {sipName_scheme, meth_QWebEngineRegisterProtocolHandlerRequest_scheme, METH_VARARGS, doc_QWebEngineRegisterProtocolHandlerRequest_scheme}
};

PyDoc_STRVAR(doc_QWebEngineRegisterProtocolHandlerRequest, "\1QWebEngineRegisterProtocolHandlerRequest()\n"
"QWebEngineRegisterProtocolHandlerRequest(QWebEngineRegisterProtocolHandlerRequest)");


static pyqt5ClassPluginDef plugin_QWebEngineRegisterProtocolHandlerRequest = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineRegisterProtocolHandlerRequest = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineRegisterProtocolHandlerRequest,
        SIP_NULLPTR,
        &plugin_QWebEngineRegisterProtocolHandlerRequest
    },
    {
        sipNameNr_QWebEngineRegisterProtocolHandlerRequest,
        {0, 0, 1},
        4, methods_QWebEngineRegisterProtocolHandlerRequest,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineRegisterProtocolHandlerRequest,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QWebEngineRegisterProtocolHandlerRequest,
    init_type_QWebEngineRegisterProtocolHandlerRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineRegisterProtocolHandlerRequest,
    assign_QWebEngineRegisterProtocolHandlerRequest,
    array_QWebEngineRegisterProtocolHandlerRequest,
    copy_QWebEngineRegisterProtocolHandlerRequest,
    release_QWebEngineRegisterProtocolHandlerRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebEngineRegisterProtocolHandlerRequest,
    sizeof ( ::QWebEngineRegisterProtocolHandlerRequest),
};
