/*
 * 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/qwebenginehistory.sip"
#include <qwebenginehistory.h>
#line 29 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineHistoryItem.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/sipQtWebEngineCoreQWebEngineHistoryItem.cpp"
#line 262 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 36 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineHistoryItem.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 39 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineHistoryItem.cpp"


PyDoc_STRVAR(doc_QWebEngineHistoryItem_originalUrl, "originalUrl(self) -> QUrl");

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

    {
        const ::QWebEngineHistoryItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistoryItem, sipName_originalUrl, doc_QWebEngineHistoryItem_originalUrl);

    return SIP_NULLPTR;
}


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

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

    {
        const ::QWebEngineHistoryItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistoryItem, sipName_url, doc_QWebEngineHistoryItem_url);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistoryItem_title, "title(self) -> str");

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

    {
        const ::QWebEngineHistoryItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistoryItem, sipName_title, doc_QWebEngineHistoryItem_title);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistoryItem_lastVisited, "lastVisited(self) -> QDateTime");

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

    {
        const ::QWebEngineHistoryItem *sipCpp;

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

            sipRes = new ::QDateTime(sipCpp->lastVisited());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistoryItem, sipName_lastVisited, doc_QWebEngineHistoryItem_lastVisited);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistoryItem_iconUrl, "iconUrl(self) -> QUrl");

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

    {
        const ::QWebEngineHistoryItem *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineHistoryItem, sipName_iconUrl, doc_QWebEngineHistoryItem_iconUrl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistoryItem_isValid, "isValid(self) -> bool");

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

    {
        const ::QWebEngineHistoryItem *sipCpp;

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

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistoryItem, sipName_isValid, doc_QWebEngineHistoryItem_isValid);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineHistoryItem_swap, "swap(self, other: QWebEngineHistoryItem)");

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

    {
        ::QWebEngineHistoryItem* a0;
        ::QWebEngineHistoryItem *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineHistoryItem, sipName_swap, doc_QWebEngineHistoryItem_swap);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWebEngineHistoryItem(void *, int);}
static void release_QWebEngineHistoryItem(void *sipCppV, int)
{
    delete reinterpret_cast< ::QWebEngineHistoryItem *>(sipCppV);
}


extern "C" {static void assign_QWebEngineHistoryItem(void *, Py_ssize_t, void *);}
static void assign_QWebEngineHistoryItem(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QWebEngineHistoryItem *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QWebEngineHistoryItem *>(sipSrc);
}


extern "C" {static void *copy_QWebEngineHistoryItem(const void *, Py_ssize_t);}
static void *copy_QWebEngineHistoryItem(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new ::QWebEngineHistoryItem(reinterpret_cast<const ::QWebEngineHistoryItem *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_type_QWebEngineHistoryItem(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QWebEngineHistoryItem(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    ::QWebEngineHistoryItem *sipCpp = SIP_NULLPTR;

    {
        const ::QWebEngineHistoryItem* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QWebEngineHistoryItem, &a0))
        {
            sipCpp = new ::QWebEngineHistoryItem(*a0);

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_QWebEngineHistoryItem[] = {
    {sipName_iconUrl, meth_QWebEngineHistoryItem_iconUrl, METH_VARARGS, doc_QWebEngineHistoryItem_iconUrl},
    {sipName_isValid, meth_QWebEngineHistoryItem_isValid, METH_VARARGS, doc_QWebEngineHistoryItem_isValid},
    {sipName_lastVisited, meth_QWebEngineHistoryItem_lastVisited, METH_VARARGS, doc_QWebEngineHistoryItem_lastVisited},
    {sipName_originalUrl, meth_QWebEngineHistoryItem_originalUrl, METH_VARARGS, doc_QWebEngineHistoryItem_originalUrl},
    {sipName_swap, meth_QWebEngineHistoryItem_swap, METH_VARARGS, doc_QWebEngineHistoryItem_swap},
    {sipName_title, meth_QWebEngineHistoryItem_title, METH_VARARGS, doc_QWebEngineHistoryItem_title},
    {sipName_url, meth_QWebEngineHistoryItem_url, METH_VARARGS, doc_QWebEngineHistoryItem_url}
};

PyDoc_STRVAR(doc_QWebEngineHistoryItem, "\1QWebEngineHistoryItem(other: QWebEngineHistoryItem)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineHistoryItem = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineHistoryItem,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineHistoryItem,
        {0, 0, 1},
        7, methods_QWebEngineHistoryItem,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineHistoryItem,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QWebEngineHistoryItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineHistoryItem,
    assign_QWebEngineHistoryItem,
    SIP_NULLPTR,
    copy_QWebEngineHistoryItem,
    release_QWebEngineHistoryItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof (::QWebEngineHistoryItem),
};
