/*
 * 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 51 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/sip/QtWebEngineWidgets/qwebenginehistory.sip"
#include <qwebenginehistory.h>
#line 29 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineHistory.cpp"

#line 28 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/sip/QtWebEngineWidgets/qwebenginehistory.sip"
#include <qwebenginehistory.h>
#line 33 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineHistory.cpp"
#line 38 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 36 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineHistory.cpp"


PyDoc_STRVAR(doc_QWebEngineHistory_clear, "clear(self)");

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

    {
         ::QWebEngineHistory *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_clear, doc_QWebEngineHistory_clear);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_items, "items(self) -> List[QWebEngineHistoryItem]");

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

    {
        const  ::QWebEngineHistory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineHistory, &sipCpp))
        {
            QList< ::QWebEngineHistoryItem>*sipRes;

            sipRes = new QList< ::QWebEngineHistoryItem>(sipCpp->items());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_items, doc_QWebEngineHistory_items);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_backItems, "backItems(self, int) -> List[QWebEngineHistoryItem]");

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

    {
        int a0;
        const  ::QWebEngineHistory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWebEngineHistory, &sipCpp, &a0))
        {
            QList< ::QWebEngineHistoryItem>*sipRes;

            sipRes = new QList< ::QWebEngineHistoryItem>(sipCpp->backItems(a0));

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_backItems, doc_QWebEngineHistory_backItems);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_forwardItems, "forwardItems(self, int) -> List[QWebEngineHistoryItem]");

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

    {
        int a0;
        const  ::QWebEngineHistory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWebEngineHistory, &sipCpp, &a0))
        {
            QList< ::QWebEngineHistoryItem>*sipRes;

            sipRes = new QList< ::QWebEngineHistoryItem>(sipCpp->forwardItems(a0));

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_forwardItems, doc_QWebEngineHistory_forwardItems);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_canGoBack, "canGoBack(self) -> bool");

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

    {
        const  ::QWebEngineHistory *sipCpp;

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

            sipRes = sipCpp->canGoBack();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_canGoBack, doc_QWebEngineHistory_canGoBack);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_canGoForward, "canGoForward(self) -> bool");

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

    {
        const  ::QWebEngineHistory *sipCpp;

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

            sipRes = sipCpp->canGoForward();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_canGoForward, doc_QWebEngineHistory_canGoForward);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_back, "back(self)");

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

    {
         ::QWebEngineHistory *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_back, doc_QWebEngineHistory_back);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_forward, "forward(self)");

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

    {
         ::QWebEngineHistory *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_forward, doc_QWebEngineHistory_forward);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_goToItem, "goToItem(self, QWebEngineHistoryItem)");

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

    {
        const  ::QWebEngineHistoryItem* a0;
         ::QWebEngineHistory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWebEngineHistory, &sipCpp, sipType_QWebEngineHistoryItem, &a0))
        {
            sipCpp->goToItem(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_goToItem, doc_QWebEngineHistory_goToItem);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_backItem, "backItem(self) -> QWebEngineHistoryItem");

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

    {
        const  ::QWebEngineHistory *sipCpp;

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

            sipRes = new  ::QWebEngineHistoryItem(sipCpp->backItem());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_backItem, doc_QWebEngineHistory_backItem);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_currentItem, "currentItem(self) -> QWebEngineHistoryItem");

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

    {
        const  ::QWebEngineHistory *sipCpp;

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

            sipRes = new  ::QWebEngineHistoryItem(sipCpp->currentItem());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_currentItem, doc_QWebEngineHistory_currentItem);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_forwardItem, "forwardItem(self) -> QWebEngineHistoryItem");

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

    {
        const  ::QWebEngineHistory *sipCpp;

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

            sipRes = new  ::QWebEngineHistoryItem(sipCpp->forwardItem());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_forwardItem, doc_QWebEngineHistory_forwardItem);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_itemAt, "itemAt(self, int) -> QWebEngineHistoryItem");

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

    {
        int a0;
        const  ::QWebEngineHistory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWebEngineHistory, &sipCpp, &a0))
        {
             ::QWebEngineHistoryItem*sipRes;

            sipRes = new  ::QWebEngineHistoryItem(sipCpp->itemAt(a0));

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_itemAt, doc_QWebEngineHistory_itemAt);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_currentItemIndex, "currentItemIndex(self) -> int");

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

    {
        const  ::QWebEngineHistory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineHistory, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->currentItemIndex();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_currentItemIndex, doc_QWebEngineHistory_currentItemIndex);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistory_count, "count(self) -> int");

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

    {
        const  ::QWebEngineHistory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineHistory, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->count();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistory, sipName_count, doc_QWebEngineHistory_count);

    return SIP_NULLPTR;
}


extern "C" {static Py_ssize_t slot_QWebEngineHistory___len__(PyObject *);}
static Py_ssize_t slot_QWebEngineHistory___len__(PyObject *sipSelf)
{
     ::QWebEngineHistory *sipCpp = reinterpret_cast< ::QWebEngineHistory *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QWebEngineHistory));

    if (!sipCpp)
        return 0;


    {
        {
            Py_ssize_t sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (Py_ssize_t)sipCpp->count();
#line 459 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineHistory.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWebEngineHistory(void *, int);}
static void release_QWebEngineHistory(void *, int)
{
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QWebEngineHistory[] = {
    {(void *)slot_QWebEngineHistory___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QWebEngineHistory[] = {
    {sipName_back, meth_QWebEngineHistory_back, METH_VARARGS, doc_QWebEngineHistory_back},
    {sipName_backItem, meth_QWebEngineHistory_backItem, METH_VARARGS, doc_QWebEngineHistory_backItem},
    {sipName_backItems, meth_QWebEngineHistory_backItems, METH_VARARGS, doc_QWebEngineHistory_backItems},
    {sipName_canGoBack, meth_QWebEngineHistory_canGoBack, METH_VARARGS, doc_QWebEngineHistory_canGoBack},
    {sipName_canGoForward, meth_QWebEngineHistory_canGoForward, METH_VARARGS, doc_QWebEngineHistory_canGoForward},
    {sipName_clear, meth_QWebEngineHistory_clear, METH_VARARGS, doc_QWebEngineHistory_clear},
    {sipName_count, meth_QWebEngineHistory_count, METH_VARARGS, doc_QWebEngineHistory_count},
    {sipName_currentItem, meth_QWebEngineHistory_currentItem, METH_VARARGS, doc_QWebEngineHistory_currentItem},
    {sipName_currentItemIndex, meth_QWebEngineHistory_currentItemIndex, METH_VARARGS, doc_QWebEngineHistory_currentItemIndex},
    {sipName_forward, meth_QWebEngineHistory_forward, METH_VARARGS, doc_QWebEngineHistory_forward},
    {sipName_forwardItem, meth_QWebEngineHistory_forwardItem, METH_VARARGS, doc_QWebEngineHistory_forwardItem},
    {sipName_forwardItems, meth_QWebEngineHistory_forwardItems, METH_VARARGS, doc_QWebEngineHistory_forwardItems},
    {sipName_goToItem, meth_QWebEngineHistory_goToItem, METH_VARARGS, doc_QWebEngineHistory_goToItem},
    {sipName_itemAt, meth_QWebEngineHistory_itemAt, METH_VARARGS, doc_QWebEngineHistory_itemAt},
    {sipName_items, meth_QWebEngineHistory_items, METH_VARARGS, doc_QWebEngineHistory_items}
};


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


sipClassTypeDef sipTypeDef_QtWebEngineWidgets_QWebEngineHistory = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineHistory,
        SIP_NULLPTR,
        &plugin_QWebEngineHistory
    },
    {
        sipNameNr_QWebEngineHistory,
        {0, 0, 1},
        15, methods_QWebEngineHistory,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QWebEngineHistory,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineHistory,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
