/*
 * 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/qwebenginenavigationrequest.sip"
#include <qwebenginenavigationrequest.h>
#line 29 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.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/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 38 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 41 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 44 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 277 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 47 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 254 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 53 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 56 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 59 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 62 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 65 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 68 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 73 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 76 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 79 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 82 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 85 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 88 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNavigationRequest.cpp"


PyDoc_STRVAR(doc_QWebEngineNavigationRequest_url, "url(self) -> QUrl");

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

    {
        const ::QWebEngineNavigationRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNavigationRequest, sipName_url, doc_QWebEngineNavigationRequest_url);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNavigationRequest_isMainFrame, "isMainFrame(self) -> bool");

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

    {
        const ::QWebEngineNavigationRequest *sipCpp;

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

            sipRes = sipCpp->isMainFrame();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNavigationRequest, sipName_isMainFrame, doc_QWebEngineNavigationRequest_isMainFrame);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNavigationRequest_navigationType, "navigationType(self) -> QWebEngineNavigationRequest.NavigationType");

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

    {
        const ::QWebEngineNavigationRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineNavigationRequest, &sipCpp))
        {
            ::QWebEngineNavigationRequest::NavigationType sipRes;

            sipRes = sipCpp->navigationType();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNavigationRequest, sipName_navigationType, doc_QWebEngineNavigationRequest_navigationType);

    return SIP_NULLPTR;
}


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

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

    {
        ::QWebEngineNavigationRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNavigationRequest, sipName_accept, doc_QWebEngineNavigationRequest_accept);

    return SIP_NULLPTR;
}


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

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

    {
        ::QWebEngineNavigationRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNavigationRequest, sipName_reject, doc_QWebEngineNavigationRequest_reject);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNavigationRequest_hasFormData, "hasFormData(self) -> bool");

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

    {
        const ::QWebEngineNavigationRequest *sipCpp;

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

            sipRes = sipCpp->hasFormData();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNavigationRequest, sipName_hasFormData, doc_QWebEngineNavigationRequest_hasFormData);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QWebEngineNavigationRequest)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


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


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


static PyMethodDef methods_QWebEngineNavigationRequest[] = {
    {sipName_accept, meth_QWebEngineNavigationRequest_accept, METH_VARARGS, doc_QWebEngineNavigationRequest_accept},
    {sipName_hasFormData, meth_QWebEngineNavigationRequest_hasFormData, METH_VARARGS, doc_QWebEngineNavigationRequest_hasFormData},
    {sipName_isMainFrame, meth_QWebEngineNavigationRequest_isMainFrame, METH_VARARGS, doc_QWebEngineNavigationRequest_isMainFrame},
    {sipName_navigationType, meth_QWebEngineNavigationRequest_navigationType, METH_VARARGS, doc_QWebEngineNavigationRequest_navigationType},
    {sipName_reject, meth_QWebEngineNavigationRequest_reject, METH_VARARGS, doc_QWebEngineNavigationRequest_reject},
    {sipName_url, meth_QWebEngineNavigationRequest_url, METH_VARARGS, doc_QWebEngineNavigationRequest_url}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QWebEngineNavigationRequest[] = {
    {sipName_LinkClickedNavigation, static_cast<int>(::QWebEngineNavigationRequest::LinkClickedNavigation)},
    {sipName_TypedNavigation, static_cast<int>(::QWebEngineNavigationRequest::TypedNavigation)},
    {sipName_FormSubmittedNavigation, static_cast<int>(::QWebEngineNavigationRequest::FormSubmittedNavigation)},
    {sipName_BackForwardNavigation, static_cast<int>(::QWebEngineNavigationRequest::BackForwardNavigation)},
    {sipName_ReloadNavigation, static_cast<int>(::QWebEngineNavigationRequest::ReloadNavigation)},
    {sipName_OtherNavigation, static_cast<int>(::QWebEngineNavigationRequest::OtherNavigation)},
    {sipName_RedirectNavigation, static_cast<int>(::QWebEngineNavigationRequest::RedirectNavigation)},
    {0, 0}
};


/* Define this type's signals. */
static const pyqt6QtSignal signals_QWebEngineNavigationRequest[] = {
    {"actionChanged()", "\1actionChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QWebEngineNavigationRequest = {
    &::QWebEngineNavigationRequest::staticMetaObject,
    signals_QWebEngineNavigationRequest,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineNavigationRequest = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineNavigationRequest,
        SIP_NULLPTR,
        &plugin_QWebEngineNavigationRequest,
    },
    {
        sipNameNr_QWebEngineNavigationRequest,
        {0, 0, 1},
        6, methods_QWebEngineNavigationRequest,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QWebEngineNavigationRequest, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QWebEngineNavigationRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineNavigationRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineNavigationRequest,
    cast_QWebEngineNavigationRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
