/*
 * 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 "sipAPIQtWebEngineWidgets.h"

#line 28 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/sip/QtWebEngineWidgets/qwebenginedownloaditem.sip"
#include <qwebenginedownloaditem.h>
#line 29 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.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/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/sip/QtWebEngineWidgets/qwebenginepage.sip"
#include <qwebenginepage.h>
#line 36 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 109 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 39 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 44 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 47 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 247 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 53 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 235 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 28 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 59 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 62 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 38 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 65 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 30 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 68 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 149 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 71 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 74 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 77 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 80 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qregexp.sip"
#include <qregexp.h>
#line 83 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 86 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 89 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineDownloadItem.cpp"


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->id();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_id, doc_QWebEngineDownloadItem_id);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadItem_state, "state(self) -> QWebEngineDownloadItem.DownloadState");

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->state();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_state, doc_QWebEngineDownloadItem_state);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->totalBytes();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_totalBytes, doc_QWebEngineDownloadItem_totalBytes);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->receivedBytes();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_receivedBytes, doc_QWebEngineDownloadItem_receivedBytes);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_url, doc_QWebEngineDownloadItem_url);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadItem_path, "path(self) -> str");

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_path, doc_QWebEngineDownloadItem_path);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadItem_setPath, "setPath(self, str)");

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

    {
         ::QString* a0;
        int a0State = 0;
         ::QWebEngineDownloadItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineDownloadItem, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setPath(*a0);
            sipReleaseType(a0, sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_setPath, doc_QWebEngineDownloadItem_setPath);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->isFinished();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_isFinished, doc_QWebEngineDownloadItem_isFinished);

    return SIP_NULLPTR;
}


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

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

    {
         ::QWebEngineDownloadItem *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_accept, doc_QWebEngineDownloadItem_accept);

    return SIP_NULLPTR;
}


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

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

    {
         ::QWebEngineDownloadItem *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_cancel, doc_QWebEngineDownloadItem_cancel);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_mimeType, doc_QWebEngineDownloadItem_mimeType);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadItem_savePageFormat, "savePageFormat(self) -> QWebEngineDownloadItem.SavePageFormat");

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->savePageFormat();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_savePageFormat, doc_QWebEngineDownloadItem_savePageFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadItem_setSavePageFormat, "setSavePageFormat(self, QWebEngineDownloadItem.SavePageFormat)");

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

    {
         ::QWebEngineDownloadItem::SavePageFormat a0;
         ::QWebEngineDownloadItem *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_setSavePageFormat, doc_QWebEngineDownloadItem_setSavePageFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadItem_type, "type(self) -> QWebEngineDownloadItem.DownloadType");

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineDownloadItem, &sipCpp))
        {
             ::QWebEngineDownloadItem::DownloadType sipRes;

            sipRes = sipCpp->type();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_type, doc_QWebEngineDownloadItem_type);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDownloadItem_interruptReason, "interruptReason(self) -> QWebEngineDownloadItem.DownloadInterruptReason");

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->interruptReason();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_interruptReason, doc_QWebEngineDownloadItem_interruptReason);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_interruptReasonString, doc_QWebEngineDownloadItem_interruptReasonString);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->isPaused();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_isPaused, doc_QWebEngineDownloadItem_isPaused);

    return SIP_NULLPTR;
}


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

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

    {
         ::QWebEngineDownloadItem *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_pause, doc_QWebEngineDownloadItem_pause);

    return SIP_NULLPTR;
}


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

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

    {
         ::QWebEngineDownloadItem *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_resume, doc_QWebEngineDownloadItem_resume);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->isSavePageDownload();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_isSavePageDownload, doc_QWebEngineDownloadItem_isSavePageDownload);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

            sipRes = sipCpp->page();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_page, doc_QWebEngineDownloadItem_page);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_suggestedFileName, doc_QWebEngineDownloadItem_suggestedFileName);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_downloadDirectory, doc_QWebEngineDownloadItem_downloadDirectory);

    return SIP_NULLPTR;
}


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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineDownloadItem, &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_QWebEngineDownloadItem, sipName_setDownloadDirectory, doc_QWebEngineDownloadItem_setDownloadDirectory);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineDownloadItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDownloadItem, sipName_downloadFileName, doc_QWebEngineDownloadItem_downloadFileName);

    return SIP_NULLPTR;
}


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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineDownloadItem, &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_QWebEngineDownloadItem, sipName_setDownloadFileName, doc_QWebEngineDownloadItem_setDownloadFileName);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QWebEngineDownloadItem)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


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


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


static PyMethodDef methods_QWebEngineDownloadItem[] = {
    {sipName_accept, meth_QWebEngineDownloadItem_accept, METH_VARARGS, doc_QWebEngineDownloadItem_accept},
    {sipName_cancel, meth_QWebEngineDownloadItem_cancel, METH_VARARGS, doc_QWebEngineDownloadItem_cancel},
    {sipName_downloadDirectory, meth_QWebEngineDownloadItem_downloadDirectory, METH_VARARGS, doc_QWebEngineDownloadItem_downloadDirectory},
    {sipName_downloadFileName, meth_QWebEngineDownloadItem_downloadFileName, METH_VARARGS, doc_QWebEngineDownloadItem_downloadFileName},
    {sipName_id, meth_QWebEngineDownloadItem_id, METH_VARARGS, doc_QWebEngineDownloadItem_id},
    {sipName_interruptReason, meth_QWebEngineDownloadItem_interruptReason, METH_VARARGS, doc_QWebEngineDownloadItem_interruptReason},
    {sipName_interruptReasonString, meth_QWebEngineDownloadItem_interruptReasonString, METH_VARARGS, doc_QWebEngineDownloadItem_interruptReasonString},
    {sipName_isFinished, meth_QWebEngineDownloadItem_isFinished, METH_VARARGS, doc_QWebEngineDownloadItem_isFinished},
    {sipName_isPaused, meth_QWebEngineDownloadItem_isPaused, METH_VARARGS, doc_QWebEngineDownloadItem_isPaused},
    {sipName_isSavePageDownload, meth_QWebEngineDownloadItem_isSavePageDownload, METH_VARARGS, doc_QWebEngineDownloadItem_isSavePageDownload},
    {sipName_mimeType, meth_QWebEngineDownloadItem_mimeType, METH_VARARGS, doc_QWebEngineDownloadItem_mimeType},
    {sipName_page, meth_QWebEngineDownloadItem_page, METH_VARARGS, doc_QWebEngineDownloadItem_page},
    {sipName_path, meth_QWebEngineDownloadItem_path, METH_VARARGS, doc_QWebEngineDownloadItem_path},
    {sipName_pause, meth_QWebEngineDownloadItem_pause, METH_VARARGS, doc_QWebEngineDownloadItem_pause},
    {sipName_receivedBytes, meth_QWebEngineDownloadItem_receivedBytes, METH_VARARGS, doc_QWebEngineDownloadItem_receivedBytes},
    {sipName_resume, meth_QWebEngineDownloadItem_resume, METH_VARARGS, doc_QWebEngineDownloadItem_resume},
    {sipName_savePageFormat, meth_QWebEngineDownloadItem_savePageFormat, METH_VARARGS, doc_QWebEngineDownloadItem_savePageFormat},
    {sipName_setDownloadDirectory, meth_QWebEngineDownloadItem_setDownloadDirectory, METH_VARARGS, doc_QWebEngineDownloadItem_setDownloadDirectory},
    {sipName_setDownloadFileName, meth_QWebEngineDownloadItem_setDownloadFileName, METH_VARARGS, doc_QWebEngineDownloadItem_setDownloadFileName},
    {sipName_setPath, meth_QWebEngineDownloadItem_setPath, METH_VARARGS, doc_QWebEngineDownloadItem_setPath},
    {sipName_setSavePageFormat, meth_QWebEngineDownloadItem_setSavePageFormat, METH_VARARGS, doc_QWebEngineDownloadItem_setSavePageFormat},
    {sipName_state, meth_QWebEngineDownloadItem_state, METH_VARARGS, doc_QWebEngineDownloadItem_state},
    {sipName_suggestedFileName, meth_QWebEngineDownloadItem_suggestedFileName, METH_VARARGS, doc_QWebEngineDownloadItem_suggestedFileName},
    {sipName_totalBytes, meth_QWebEngineDownloadItem_totalBytes, METH_VARARGS, doc_QWebEngineDownloadItem_totalBytes},
    {sipName_type, meth_QWebEngineDownloadItem_type, METH_VARARGS, doc_QWebEngineDownloadItem_type},
    {sipName_url, meth_QWebEngineDownloadItem_url, METH_VARARGS, doc_QWebEngineDownloadItem_url}
};

static sipEnumMemberDef enummembers_QWebEngineDownloadItem[] = {
    {sipName_Attachment, static_cast<int>( ::QWebEngineDownloadItem::Attachment), 14},
    {sipName_CompleteHtmlSaveFormat, static_cast<int>( ::QWebEngineDownloadItem::CompleteHtmlSaveFormat), 15},
    {sipName_DownloadAttribute, static_cast<int>( ::QWebEngineDownloadItem::DownloadAttribute), 14},
    {sipName_DownloadCancelled, static_cast<int>( ::QWebEngineDownloadItem::DownloadCancelled), 13},
    {sipName_DownloadCompleted, static_cast<int>( ::QWebEngineDownloadItem::DownloadCompleted), 13},
    {sipName_DownloadInProgress, static_cast<int>( ::QWebEngineDownloadItem::DownloadInProgress), 13},
    {sipName_DownloadInterrupted, static_cast<int>( ::QWebEngineDownloadItem::DownloadInterrupted), 13},
    {sipName_DownloadRequested, static_cast<int>( ::QWebEngineDownloadItem::DownloadRequested), 13},
    {sipName_FileAccessDenied, static_cast<int>( ::QWebEngineDownloadItem::FileAccessDenied), 12},
    {sipName_FileBlocked, static_cast<int>( ::QWebEngineDownloadItem::FileBlocked), 12},
    {sipName_FileFailed, static_cast<int>( ::QWebEngineDownloadItem::FileFailed), 12},
    {sipName_FileHashMismatch, static_cast<int>( ::QWebEngineDownloadItem::FileHashMismatch), 12},
    {sipName_FileNameTooLong, static_cast<int>( ::QWebEngineDownloadItem::FileNameTooLong), 12},
    {sipName_FileNoSpace, static_cast<int>( ::QWebEngineDownloadItem::FileNoSpace), 12},
    {sipName_FileSecurityCheckFailed, static_cast<int>( ::QWebEngineDownloadItem::FileSecurityCheckFailed), 12},
    {sipName_FileTooLarge, static_cast<int>( ::QWebEngineDownloadItem::FileTooLarge), 12},
    {sipName_FileTooShort, static_cast<int>( ::QWebEngineDownloadItem::FileTooShort), 12},
    {sipName_FileTransientError, static_cast<int>( ::QWebEngineDownloadItem::FileTransientError), 12},
    {sipName_FileVirusInfected, static_cast<int>( ::QWebEngineDownloadItem::FileVirusInfected), 12},
    {sipName_MimeHtmlSaveFormat, static_cast<int>( ::QWebEngineDownloadItem::MimeHtmlSaveFormat), 15},
    {sipName_NetworkDisconnected, static_cast<int>( ::QWebEngineDownloadItem::NetworkDisconnected), 12},
    {sipName_NetworkFailed, static_cast<int>( ::QWebEngineDownloadItem::NetworkFailed), 12},
    {sipName_NetworkInvalidRequest, static_cast<int>( ::QWebEngineDownloadItem::NetworkInvalidRequest), 12},
    {sipName_NetworkServerDown, static_cast<int>( ::QWebEngineDownloadItem::NetworkServerDown), 12},
    {sipName_NetworkTimeout, static_cast<int>( ::QWebEngineDownloadItem::NetworkTimeout), 12},
    {sipName_NoReason, static_cast<int>( ::QWebEngineDownloadItem::NoReason), 12},
    {sipName_SavePage, static_cast<int>( ::QWebEngineDownloadItem::SavePage), 14},
    {sipName_ServerBadContent, static_cast<int>( ::QWebEngineDownloadItem::ServerBadContent), 12},
    {sipName_ServerCertProblem, static_cast<int>( ::QWebEngineDownloadItem::ServerCertProblem), 12},
    {sipName_ServerFailed, static_cast<int>( ::QWebEngineDownloadItem::ServerFailed), 12},
    {sipName_ServerForbidden, static_cast<int>( ::QWebEngineDownloadItem::ServerForbidden), 12},
    {sipName_ServerUnauthorized, static_cast<int>( ::QWebEngineDownloadItem::ServerUnauthorized), 12},
    {sipName_ServerUnreachable, static_cast<int>( ::QWebEngineDownloadItem::ServerUnreachable), 12},
    {sipName_SingleHtmlSaveFormat, static_cast<int>( ::QWebEngineDownloadItem::SingleHtmlSaveFormat), 15},
    {sipName_UnknownSaveFormat, static_cast<int>( ::QWebEngineDownloadItem::UnknownSaveFormat), 15},
    {sipName_UserCanceled, static_cast<int>( ::QWebEngineDownloadItem::UserCanceled), 12},
    {sipName_UserRequested, static_cast<int>( ::QWebEngineDownloadItem::UserRequested), 14},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QWebEngineDownloadItem[] = {
    {"isPausedChanged(bool)", "\1isPausedChanged(self, bool)", SIP_NULLPTR, SIP_NULLPTR},
    {"downloadProgress(qint64,qint64)", "\1downloadProgress(self, int, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"stateChanged(QWebEngineDownloadItem::DownloadState)", "\1stateChanged(self, QWebEngineDownloadItem.DownloadState)", SIP_NULLPTR, SIP_NULLPTR},
    {"finished()", "\1finished(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QWebEngineDownloadItem = {
    & ::QWebEngineDownloadItem::staticMetaObject,
    0,
    signals_QWebEngineDownloadItem,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineWidgets_QWebEngineDownloadItem = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineDownloadItem,
        SIP_NULLPTR,
        &plugin_QWebEngineDownloadItem
    },
    {
        sipNameNr_QWebEngineDownloadItem,
        {0, 0, 1},
        26, methods_QWebEngineDownloadItem,
        37, enummembers_QWebEngineDownloadItem,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QWebEngineDownloadItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineDownloadItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineDownloadItem,
    cast_QWebEngineDownloadItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
