/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.7.0
 *
 * Copyright (c) 2022 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.4.0/sip/QtWebEngineCore/qwebenginenewwindowrequest.sip"
#include <qwebenginenewwindowrequest.h>
#line 29 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"

#line 26 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/sip/QtWebEngineCore/qwebenginepage.sip"
#include <qwebenginepage.h>
#line 33 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qrect.sip"
#include <qrect.h>
#line 36 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 39 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 151 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 44 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 47 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 245 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 53 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 232 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 28 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 59 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 24 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 62 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 65 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 28 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 68 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 30 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 71 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 135 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 74 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 150 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 79 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 82 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 85 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 25 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 88 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 91 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 94 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNewWindowRequest.cpp"


PyDoc_STRVAR(doc_QWebEngineNewWindowRequest_destination, "destination(self) -> QWebEngineNewWindowRequest.DestinationType");

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

    {
        const  ::QWebEngineNewWindowRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineNewWindowRequest, &sipCpp))
        {
             ::QWebEngineNewWindowRequest::DestinationType sipRes;

            sipRes = sipCpp->destination();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNewWindowRequest, sipName_destination, doc_QWebEngineNewWindowRequest_destination);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNewWindowRequest_requestedUrl, "requestedUrl(self) -> QUrl");

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

    {
        const  ::QWebEngineNewWindowRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNewWindowRequest, sipName_requestedUrl, doc_QWebEngineNewWindowRequest_requestedUrl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNewWindowRequest_requestedGeometry, "requestedGeometry(self) -> QRect");

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

    {
        const  ::QWebEngineNewWindowRequest *sipCpp;

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

            sipRes = new  ::QRect(sipCpp->requestedGeometry());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNewWindowRequest, sipName_requestedGeometry, doc_QWebEngineNewWindowRequest_requestedGeometry);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNewWindowRequest_isUserInitiated, "isUserInitiated(self) -> bool");

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

    {
        const  ::QWebEngineNewWindowRequest *sipCpp;

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

            sipRes = sipCpp->isUserInitiated();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNewWindowRequest, sipName_isUserInitiated, doc_QWebEngineNewWindowRequest_isUserInitiated);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNewWindowRequest_openIn, "openIn(self, QWebEnginePage)");

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

    {
         ::QWebEnginePage* a0;
         ::QWebEngineNewWindowRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QWebEngineNewWindowRequest, &sipCpp, sipType_QWebEnginePage, &a0))
        {
            sipCpp->openIn(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNewWindowRequest, sipName_openIn, doc_QWebEngineNewWindowRequest_openIn);

    return SIP_NULLPTR;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QWebEngineNewWindowRequest(void *, const sipTypeDef *);}
static void *cast_QWebEngineNewWindowRequest(void *sipCppV, const sipTypeDef *targetType)
{
     ::QWebEngineNewWindowRequest *sipCpp = reinterpret_cast< ::QWebEngineNewWindowRequest *>(sipCppV);

    if (targetType == sipType_QWebEngineNewWindowRequest)
        return sipCppV;

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWebEngineNewWindowRequest(void *, int);}
static void release_QWebEngineNewWindowRequest(void *sipCppV, int)
{
     ::QWebEngineNewWindowRequest *sipCpp = reinterpret_cast< ::QWebEngineNewWindowRequest *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


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


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWebEngineNewWindowRequest[] = {{19, 0, 1}};


static PyMethodDef methods_QWebEngineNewWindowRequest[] = {
    {sipName_destination, meth_QWebEngineNewWindowRequest_destination, METH_VARARGS, doc_QWebEngineNewWindowRequest_destination},
    {sipName_isUserInitiated, meth_QWebEngineNewWindowRequest_isUserInitiated, METH_VARARGS, doc_QWebEngineNewWindowRequest_isUserInitiated},
    {sipName_openIn, meth_QWebEngineNewWindowRequest_openIn, METH_VARARGS, doc_QWebEngineNewWindowRequest_openIn},
    {sipName_requestedGeometry, meth_QWebEngineNewWindowRequest_requestedGeometry, METH_VARARGS, doc_QWebEngineNewWindowRequest_requestedGeometry},
    {sipName_requestedUrl, meth_QWebEngineNewWindowRequest_requestedUrl, METH_VARARGS, doc_QWebEngineNewWindowRequest_requestedUrl}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QWebEngineNewWindowRequest[] = {
    {sipName_InNewWindow, static_cast<int>( ::QWebEngineNewWindowRequest::InNewWindow)},
    {sipName_InNewTab, static_cast<int>( ::QWebEngineNewWindowRequest::InNewTab)},
    {sipName_InNewDialog, static_cast<int>( ::QWebEngineNewWindowRequest::InNewDialog)},
    {sipName_InNewBackgroundTab, static_cast<int>( ::QWebEngineNewWindowRequest::InNewBackgroundTab)},
    {0, 0}
};


static pyqt6ClassPluginDef plugin_QWebEngineNewWindowRequest = {
    & ::QWebEngineNewWindowRequest::staticMetaObject,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineNewWindowRequest = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineNewWindowRequest,
        SIP_NULLPTR,
        &plugin_QWebEngineNewWindowRequest
    },
    {
        sipNameNr_QWebEngineNewWindowRequest,
        {0, 0, 1},
        5, methods_QWebEngineNewWindowRequest,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QWebEngineNewWindowRequest, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QWebEngineNewWindowRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineNewWindowRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineNewWindowRequest,
    cast_QWebEngineNewWindowRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
