/*
 * 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/qwebenginedownloadrequest.sip"
#include <qwebenginedownloadrequest.h>
#line 29 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"

#line 24 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 33 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 26 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/sip/QtWebEngineCore/qwebenginepage.sip"
#include <qwebenginepage.h>
#line 36 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.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/sipQtWebEngineCoreQWebEngineDownloadRequest.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/sipQtWebEngineCoreQWebEngineDownloadRequest.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/sipQtWebEngineCoreQWebEngineDownloadRequest.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/sipQtWebEngineCoreQWebEngineDownloadRequest.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/sipQtWebEngineCoreQWebEngineDownloadRequest.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/sipQtWebEngineCoreQWebEngineDownloadRequest.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/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 62 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 28 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 65 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 30 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 68 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 135 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 71 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.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 76 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 79 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 82 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 25 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 85 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 88 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 91 "/build/pyqt6-webengine/src/PyQt6_WebEngine-6.4.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDownloadRequest.cpp"


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_id, "id(self) -> int");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

            sipRes = sipCpp->id();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_id, doc_QWebEngineDownloadRequest_id);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_state, "state(self) -> QWebEngineDownloadRequest.DownloadState");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineDownloadRequest, &sipCpp))
        {
             ::QWebEngineDownloadRequest::DownloadState sipRes;

            sipRes = sipCpp->state();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_state, doc_QWebEngineDownloadRequest_state);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_totalBytes, "totalBytes(self) -> int");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

            sipRes = sipCpp->totalBytes();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_totalBytes, doc_QWebEngineDownloadRequest_totalBytes);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_receivedBytes, "receivedBytes(self) -> int");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

            sipRes = sipCpp->receivedBytes();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_receivedBytes, doc_QWebEngineDownloadRequest_receivedBytes);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_url, doc_QWebEngineDownloadRequest_url);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_isFinished, "isFinished(self) -> bool");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

            sipRes = sipCpp->isFinished();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_isFinished, doc_QWebEngineDownloadRequest_isFinished);

    return SIP_NULLPTR;
}


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

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

    {
         ::QWebEngineDownloadRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_accept, doc_QWebEngineDownloadRequest_accept);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_cancel, "cancel(self)");

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

    {
         ::QWebEngineDownloadRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_cancel, doc_QWebEngineDownloadRequest_cancel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_pause, "pause(self)");

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

    {
         ::QWebEngineDownloadRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_pause, doc_QWebEngineDownloadRequest_pause);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_resume, "resume(self)");

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

    {
         ::QWebEngineDownloadRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_resume, doc_QWebEngineDownloadRequest_resume);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_mimeType, "mimeType(self) -> str");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_mimeType, doc_QWebEngineDownloadRequest_mimeType);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_savePageFormat, "savePageFormat(self) -> QWebEngineDownloadRequest.SavePageFormat");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineDownloadRequest, &sipCpp))
        {
             ::QWebEngineDownloadRequest::SavePageFormat sipRes;

            sipRes = sipCpp->savePageFormat();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_savePageFormat, doc_QWebEngineDownloadRequest_savePageFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_setSavePageFormat, "setSavePageFormat(self, QWebEngineDownloadRequest.SavePageFormat)");

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

    {
         ::QWebEngineDownloadRequest::SavePageFormat a0;
         ::QWebEngineDownloadRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWebEngineDownloadRequest, &sipCpp, sipType_QWebEngineDownloadRequest_SavePageFormat, &a0))
        {
            sipCpp->setSavePageFormat(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_setSavePageFormat, doc_QWebEngineDownloadRequest_setSavePageFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_interruptReason, "interruptReason(self) -> QWebEngineDownloadRequest.DownloadInterruptReason");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineDownloadRequest, &sipCpp))
        {
             ::QWebEngineDownloadRequest::DownloadInterruptReason sipRes;

            sipRes = sipCpp->interruptReason();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_interruptReason, doc_QWebEngineDownloadRequest_interruptReason);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_interruptReasonString, "interruptReasonString(self) -> str");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_interruptReasonString, doc_QWebEngineDownloadRequest_interruptReasonString);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_isPaused, "isPaused(self) -> bool");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

            sipRes = sipCpp->isPaused();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_isPaused, doc_QWebEngineDownloadRequest_isPaused);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_isSavePageDownload, "isSavePageDownload(self) -> bool");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

            sipRes = sipCpp->isSavePageDownload();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_isSavePageDownload, doc_QWebEngineDownloadRequest_isSavePageDownload);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_page, "page(self) -> QWebEnginePage");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

            sipRes = sipCpp->page();

            return sipConvertFromType(sipRes,sipType_QWebEnginePage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_page, doc_QWebEngineDownloadRequest_page);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_suggestedFileName, "suggestedFileName(self) -> str");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_suggestedFileName, doc_QWebEngineDownloadRequest_suggestedFileName);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_downloadDirectory, "downloadDirectory(self) -> str");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_downloadDirectory, doc_QWebEngineDownloadRequest_downloadDirectory);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_setDownloadDirectory, "setDownloadDirectory(self, str)");

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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QWebEngineDownloadRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineDownloadRequest, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setDownloadDirectory(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_setDownloadDirectory, doc_QWebEngineDownloadRequest_setDownloadDirectory);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_downloadFileName, "downloadFileName(self) -> str");

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

    {
        const  ::QWebEngineDownloadRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_downloadFileName, doc_QWebEngineDownloadRequest_downloadFileName);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadRequest_setDownloadFileName, "setDownloadFileName(self, str)");

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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QWebEngineDownloadRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineDownloadRequest, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setDownloadFileName(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadRequest, sipName_setDownloadFileName, doc_QWebEngineDownloadRequest_setDownloadFileName);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QWebEngineDownloadRequest)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


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


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


static PyMethodDef methods_QWebEngineDownloadRequest[] = {
    {sipName_accept, meth_QWebEngineDownloadRequest_accept, METH_VARARGS, doc_QWebEngineDownloadRequest_accept},
    {sipName_cancel, meth_QWebEngineDownloadRequest_cancel, METH_VARARGS, doc_QWebEngineDownloadRequest_cancel},
    {sipName_downloadDirectory, meth_QWebEngineDownloadRequest_downloadDirectory, METH_VARARGS, doc_QWebEngineDownloadRequest_downloadDirectory},
    {sipName_downloadFileName, meth_QWebEngineDownloadRequest_downloadFileName, METH_VARARGS, doc_QWebEngineDownloadRequest_downloadFileName},
    {sipName_id, meth_QWebEngineDownloadRequest_id, METH_VARARGS, doc_QWebEngineDownloadRequest_id},
    {sipName_interruptReason, meth_QWebEngineDownloadRequest_interruptReason, METH_VARARGS, doc_QWebEngineDownloadRequest_interruptReason},
    {sipName_interruptReasonString, meth_QWebEngineDownloadRequest_interruptReasonString, METH_VARARGS, doc_QWebEngineDownloadRequest_interruptReasonString},
    {sipName_isFinished, meth_QWebEngineDownloadRequest_isFinished, METH_VARARGS, doc_QWebEngineDownloadRequest_isFinished},
    {sipName_isPaused, meth_QWebEngineDownloadRequest_isPaused, METH_VARARGS, doc_QWebEngineDownloadRequest_isPaused},
    {sipName_isSavePageDownload, meth_QWebEngineDownloadRequest_isSavePageDownload, METH_VARARGS, doc_QWebEngineDownloadRequest_isSavePageDownload},
    {sipName_mimeType, meth_QWebEngineDownloadRequest_mimeType, METH_VARARGS, doc_QWebEngineDownloadRequest_mimeType},
    {sipName_page, meth_QWebEngineDownloadRequest_page, METH_VARARGS, doc_QWebEngineDownloadRequest_page},
    {sipName_pause, meth_QWebEngineDownloadRequest_pause, METH_VARARGS, doc_QWebEngineDownloadRequest_pause},
    {sipName_receivedBytes, meth_QWebEngineDownloadRequest_receivedBytes, METH_VARARGS, doc_QWebEngineDownloadRequest_receivedBytes},
    {sipName_resume, meth_QWebEngineDownloadRequest_resume, METH_VARARGS, doc_QWebEngineDownloadRequest_resume},
    {sipName_savePageFormat, meth_QWebEngineDownloadRequest_savePageFormat, METH_VARARGS, doc_QWebEngineDownloadRequest_savePageFormat},
    {sipName_setDownloadDirectory, meth_QWebEngineDownloadRequest_setDownloadDirectory, METH_VARARGS, doc_QWebEngineDownloadRequest_setDownloadDirectory},
    {sipName_setDownloadFileName, meth_QWebEngineDownloadRequest_setDownloadFileName, METH_VARARGS, doc_QWebEngineDownloadRequest_setDownloadFileName},
    {sipName_setSavePageFormat, meth_QWebEngineDownloadRequest_setSavePageFormat, METH_VARARGS, doc_QWebEngineDownloadRequest_setSavePageFormat},
    {sipName_state, meth_QWebEngineDownloadRequest_state, METH_VARARGS, doc_QWebEngineDownloadRequest_state},
    {sipName_suggestedFileName, meth_QWebEngineDownloadRequest_suggestedFileName, METH_VARARGS, doc_QWebEngineDownloadRequest_suggestedFileName},
    {sipName_totalBytes, meth_QWebEngineDownloadRequest_totalBytes, METH_VARARGS, doc_QWebEngineDownloadRequest_totalBytes},
    {sipName_url, meth_QWebEngineDownloadRequest_url, METH_VARARGS, doc_QWebEngineDownloadRequest_url}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QWebEngineDownloadRequest[] = {
    {sipName_NoReason, static_cast<int>( ::QWebEngineDownloadRequest::NoReason)},
    {sipName_FileFailed, static_cast<int>( ::QWebEngineDownloadRequest::FileFailed)},
    {sipName_FileAccessDenied, static_cast<int>( ::QWebEngineDownloadRequest::FileAccessDenied)},
    {sipName_FileNoSpace, static_cast<int>( ::QWebEngineDownloadRequest::FileNoSpace)},
    {sipName_FileNameTooLong, static_cast<int>( ::QWebEngineDownloadRequest::FileNameTooLong)},
    {sipName_FileTooLarge, static_cast<int>( ::QWebEngineDownloadRequest::FileTooLarge)},
    {sipName_FileVirusInfected, static_cast<int>( ::QWebEngineDownloadRequest::FileVirusInfected)},
    {sipName_FileTransientError, static_cast<int>( ::QWebEngineDownloadRequest::FileTransientError)},
    {sipName_FileBlocked, static_cast<int>( ::QWebEngineDownloadRequest::FileBlocked)},
    {sipName_FileSecurityCheckFailed, static_cast<int>( ::QWebEngineDownloadRequest::FileSecurityCheckFailed)},
    {sipName_FileTooShort, static_cast<int>( ::QWebEngineDownloadRequest::FileTooShort)},
    {sipName_FileHashMismatch, static_cast<int>( ::QWebEngineDownloadRequest::FileHashMismatch)},
    {sipName_NetworkFailed, static_cast<int>( ::QWebEngineDownloadRequest::NetworkFailed)},
    {sipName_NetworkTimeout, static_cast<int>( ::QWebEngineDownloadRequest::NetworkTimeout)},
    {sipName_NetworkDisconnected, static_cast<int>( ::QWebEngineDownloadRequest::NetworkDisconnected)},
    {sipName_NetworkServerDown, static_cast<int>( ::QWebEngineDownloadRequest::NetworkServerDown)},
    {sipName_NetworkInvalidRequest, static_cast<int>( ::QWebEngineDownloadRequest::NetworkInvalidRequest)},
    {sipName_ServerFailed, static_cast<int>( ::QWebEngineDownloadRequest::ServerFailed)},
    {sipName_ServerBadContent, static_cast<int>( ::QWebEngineDownloadRequest::ServerBadContent)},
    {sipName_ServerUnauthorized, static_cast<int>( ::QWebEngineDownloadRequest::ServerUnauthorized)},
    {sipName_ServerCertProblem, static_cast<int>( ::QWebEngineDownloadRequest::ServerCertProblem)},
    {sipName_ServerForbidden, static_cast<int>( ::QWebEngineDownloadRequest::ServerForbidden)},
    {sipName_ServerUnreachable, static_cast<int>( ::QWebEngineDownloadRequest::ServerUnreachable)},
    {sipName_UserCanceled, static_cast<int>( ::QWebEngineDownloadRequest::UserCanceled)},
    {sipName_DownloadRequested, static_cast<int>( ::QWebEngineDownloadRequest::DownloadRequested)},
    {sipName_DownloadInProgress, static_cast<int>( ::QWebEngineDownloadRequest::DownloadInProgress)},
    {sipName_DownloadCompleted, static_cast<int>( ::QWebEngineDownloadRequest::DownloadCompleted)},
    {sipName_DownloadCancelled, static_cast<int>( ::QWebEngineDownloadRequest::DownloadCancelled)},
    {sipName_DownloadInterrupted, static_cast<int>( ::QWebEngineDownloadRequest::DownloadInterrupted)},
    {sipName_UnknownSaveFormat, static_cast<int>( ::QWebEngineDownloadRequest::UnknownSaveFormat)},
    {sipName_SingleHtmlSaveFormat, static_cast<int>( ::QWebEngineDownloadRequest::SingleHtmlSaveFormat)},
    {sipName_CompleteHtmlSaveFormat, static_cast<int>( ::QWebEngineDownloadRequest::CompleteHtmlSaveFormat)},
    {sipName_MimeHtmlSaveFormat, static_cast<int>( ::QWebEngineDownloadRequest::MimeHtmlSaveFormat)},
    {0, 0}
};


/* Define this type's signals. */
static const pyqt6QtSignal signals_QWebEngineDownloadRequest[] = {
    {"downloadFileNameChanged()", "\1downloadFileNameChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"downloadDirectoryChanged()", "\1downloadDirectoryChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"isPausedChanged()", "\1isPausedChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"isFinishedChanged()", "\1isFinishedChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"interruptReasonChanged()", "\1interruptReasonChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"totalBytesChanged()", "\1totalBytesChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"receivedBytesChanged()", "\1receivedBytesChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"savePageFormatChanged()", "\1savePageFormatChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"stateChanged(QWebEngineDownloadRequest::DownloadState)", "\1stateChanged(self, QWebEngineDownloadRequest.DownloadState)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QWebEngineDownloadRequest = {
    & ::QWebEngineDownloadRequest::staticMetaObject,
    signals_QWebEngineDownloadRequest,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineDownloadRequest = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineDownloadRequest,
        SIP_NULLPTR,
        &plugin_QWebEngineDownloadRequest
    },
    {
        sipNameNr_QWebEngineDownloadRequest,
        {0, 0, 1},
        23, methods_QWebEngineDownloadRequest,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QWebEngineDownloadRequest, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QWebEngineDownloadRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineDownloadRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineDownloadRequest,
    cast_QWebEngineDownloadRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
