/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6-Graphs.
 * 
 * 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 "sipAPIQtGraphs.h"

#line 26 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/sip/QtGraphs/qpiemodelmapper.sip"
#include <qpiemodelmapper.h>
#line 29 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"

#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 121 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 36 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 41 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/sip/QtGraphs/qpieseries.sip"
#include <qpieseries.h>
#line 44 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 49 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 52 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 55 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 277 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 58 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 254 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 61 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 64 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 67 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 70 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 73 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 76 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 79 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 82 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 85 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 88 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 91 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQPieModelMapper.cpp"


class sipQPieModelMapper : public ::QPieModelMapper
{
public:
    sipQPieModelMapper(::QObject*);
    virtual ~sipQPieModelMapper();

    int qt_metacall(QMetaObject::Call, int, void **) SIP_OVERRIDE;
    void *qt_metacast(const char *) SIP_OVERRIDE;
    const QMetaObject *metaObject() const SIP_OVERRIDE;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(::QEvent*) SIP_OVERRIDE;
    bool eventFilter(::QObject*, ::QEvent*) SIP_OVERRIDE;
    void timerEvent(::QTimerEvent*) SIP_OVERRIDE;
    void childEvent(::QChildEvent*) SIP_OVERRIDE;
    void customEvent(::QEvent*) SIP_OVERRIDE;
    void connectNotify(const ::QMetaMethod&) SIP_OVERRIDE;
    void disconnectNotify(const ::QMetaMethod&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPieModelMapper(const sipQPieModelMapper &);
    sipQPieModelMapper &operator = (const sipQPieModelMapper &);

    char sipPyMethods[7];
};

sipQPieModelMapper::sipQPieModelMapper(::QObject*a0): ::QPieModelMapper(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPieModelMapper::~sipQPieModelMapper()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQPieModelMapper::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGraphs_qt_metaobject(sipPySelf, sipType_QPieModelMapper);

    return ::QPieModelMapper::metaObject();
}

int sipQPieModelMapper::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ::QPieModelMapper::qt_metacall(_c, _id, _a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtGraphs_qt_metacall(sipPySelf, sipType_QPieModelMapper, _c, _id, _a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQPieModelMapper::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGraphs_qt_metacast(sipPySelf, sipType_QPieModelMapper, _clname, &sipCpp) ? sipCpp : ::QPieModelMapper::qt_metacast(_clname));
}

bool sipQPieModelMapper::event(::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], &sipPySelf, SIP_NULLPTR, sipName_event);

    if (!sipMeth)
        return ::QPieModelMapper::event(a0);

    extern bool sipVH_QtGraphs_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QEvent*);

    return sipVH_QtGraphs_5(sipGILState, sipImportedVirtErrorHandlers_QtGraphs_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQPieModelMapper::eventFilter(::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_eventFilter);

    if (!sipMeth)
        return ::QPieModelMapper::eventFilter(a0, a1);

    extern bool sipVH_QtGraphs_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QObject*, ::QEvent*);

    return sipVH_QtGraphs_4(sipGILState, sipImportedVirtErrorHandlers_QtGraphs_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQPieModelMapper::timerEvent(::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

    if (!sipMeth)
    {
        ::QPieModelMapper::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGraphs_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QTimerEvent*);

    sipVH_QtGraphs_3(sipGILState, sipImportedVirtErrorHandlers_QtGraphs_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPieModelMapper::childEvent(::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

    if (!sipMeth)
    {
        ::QPieModelMapper::childEvent(a0);
        return;
    }

    extern void sipVH_QtGraphs_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QChildEvent*);

    sipVH_QtGraphs_2(sipGILState, sipImportedVirtErrorHandlers_QtGraphs_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPieModelMapper::customEvent(::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

    if (!sipMeth)
    {
        ::QPieModelMapper::customEvent(a0);
        return;
    }

    extern void sipVH_QtGraphs_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QEvent*);

    sipVH_QtGraphs_1(sipGILState, sipImportedVirtErrorHandlers_QtGraphs_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPieModelMapper::connectNotify(const ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[5], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

    if (!sipMeth)
    {
        ::QPieModelMapper::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGraphs_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QMetaMethod&);

    sipVH_QtGraphs_0(sipGILState, sipImportedVirtErrorHandlers_QtGraphs_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPieModelMapper::disconnectNotify(const ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

    if (!sipMeth)
    {
        ::QPieModelMapper::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGraphs_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QMetaMethod&);

    sipVH_QtGraphs_0(sipGILState, sipImportedVirtErrorHandlers_QtGraphs_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QPieModelMapper_series, "series(self) -> QPieSeries|None");

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

    {
        const ::QPieModelMapper *sipCpp;

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

            sipRes = sipCpp->series();

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

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_series, doc_QPieModelMapper_series);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_setSeries, "setSeries(self, series: QPieSeries|None)");

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

    {
        ::QPieSeries* a0;
        ::QPieModelMapper *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QPieModelMapper, &sipCpp, sipType_QPieSeries, &a0))
        {
            sipCpp->setSeries(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_setSeries, doc_QPieModelMapper_setSeries);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_first, "first(self) -> int");

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

    {
        const ::QPieModelMapper *sipCpp;

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

            sipRes = sipCpp->first();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_first, doc_QPieModelMapper_first);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_setFirst, "setFirst(self, first: int)");

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

    {
        ::qsizetype a0;
        ::QPieModelMapper *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QPieModelMapper, &sipCpp, &a0))
        {
            sipCpp->setFirst(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_setFirst, doc_QPieModelMapper_setFirst);

    return SIP_NULLPTR;
}


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

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

    {
        const ::QPieModelMapper *sipCpp;

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

            sipRes = sipCpp->count();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_count, doc_QPieModelMapper_count);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_setCount, "setCount(self, count: int)");

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

    {
        ::qsizetype a0;
        ::QPieModelMapper *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QPieModelMapper, &sipCpp, &a0))
        {
            sipCpp->setCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_setCount, doc_QPieModelMapper_setCount);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_valuesSection, "valuesSection(self) -> int");

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

    {
        const ::QPieModelMapper *sipCpp;

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

            sipRes = sipCpp->valuesSection();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_valuesSection, doc_QPieModelMapper_valuesSection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_setValuesSection, "setValuesSection(self, valuesSection: int)");

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

    {
        ::qsizetype a0;
        ::QPieModelMapper *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QPieModelMapper, &sipCpp, &a0))
        {
            sipCpp->setValuesSection(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_setValuesSection, doc_QPieModelMapper_setValuesSection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_labelsSection, "labelsSection(self) -> int");

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

    {
        const ::QPieModelMapper *sipCpp;

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

            sipRes = sipCpp->labelsSection();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_labelsSection, doc_QPieModelMapper_labelsSection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_setLabelsSection, "setLabelsSection(self, labelsSection: int)");

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

    {
        ::qsizetype a0;
        ::QPieModelMapper *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QPieModelMapper, &sipCpp, &a0))
        {
            sipCpp->setLabelsSection(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_setLabelsSection, doc_QPieModelMapper_setLabelsSection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_orientation, "orientation(self) -> Qt.Orientation");

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

    {
        const ::QPieModelMapper *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPieModelMapper, &sipCpp))
        {
            ::Qt::Orientation sipRes;

            sipRes = sipCpp->orientation();

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

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_orientation, doc_QPieModelMapper_orientation);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_setOrientation, "setOrientation(self, orientation: Qt.Orientation)");

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

    {
        ::Qt::Orientation a0;
        ::QPieModelMapper *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPieModelMapper, &sipCpp, sipType_Qt_Orientation, &a0))
        {
            sipCpp->setOrientation(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_setOrientation, doc_QPieModelMapper_setOrientation);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_model, "model(self) -> QAbstractItemModel|None");

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

    {
        const ::QPieModelMapper *sipCpp;

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

            sipRes = sipCpp->model();

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

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_model, doc_QPieModelMapper_model);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPieModelMapper_setModel, "setModel(self, model: QAbstractItemModel|None)");

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

    {
        ::QAbstractItemModel* a0;
        PyObject *a0Keep;
        ::QPieModelMapper *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QPieModelMapper, &sipCpp, &a0Keep, sipType_QAbstractItemModel, &a0))
        {
            sipCpp->setModel(a0);

            sipKeepReference(sipSelf, -2, a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QPieModelMapper, sipName_setModel, doc_QPieModelMapper_setModel);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QPieModelMapper)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


extern "C" {static void *array_QPieModelMapper(Py_ssize_t);}
static void *array_QPieModelMapper(Py_ssize_t sipNrElem)
{
    return new ::QPieModelMapper[sipNrElem];
}


extern "C" {static void array_delete_QPieModelMapper(void *);}
static void array_delete_QPieModelMapper(void *sipCpp)
{
    delete[] reinterpret_cast< ::QPieModelMapper *>(sipCpp);
}


extern "C" {static void dealloc_QPieModelMapper(sipSimpleWrapper *);}
static void dealloc_QPieModelMapper(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPieModelMapper *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPieModelMapper(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_QPieModelMapper(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPieModelMapper(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQPieModelMapper *sipCpp = SIP_NULLPTR;

    {
        ::QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQPieModelMapper(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QPieModelMapper[] = {
    {sipName_count, meth_QPieModelMapper_count, METH_VARARGS, doc_QPieModelMapper_count},
    {sipName_first, meth_QPieModelMapper_first, METH_VARARGS, doc_QPieModelMapper_first},
    {sipName_labelsSection, meth_QPieModelMapper_labelsSection, METH_VARARGS, doc_QPieModelMapper_labelsSection},
    {sipName_model, meth_QPieModelMapper_model, METH_VARARGS, doc_QPieModelMapper_model},
    {sipName_orientation, meth_QPieModelMapper_orientation, METH_VARARGS, doc_QPieModelMapper_orientation},
    {sipName_series, meth_QPieModelMapper_series, METH_VARARGS, doc_QPieModelMapper_series},
    {sipName_setCount, meth_QPieModelMapper_setCount, METH_VARARGS, doc_QPieModelMapper_setCount},
    {sipName_setFirst, meth_QPieModelMapper_setFirst, METH_VARARGS, doc_QPieModelMapper_setFirst},
    {sipName_setLabelsSection, meth_QPieModelMapper_setLabelsSection, METH_VARARGS, doc_QPieModelMapper_setLabelsSection},
    {sipName_setModel, meth_QPieModelMapper_setModel, METH_VARARGS, doc_QPieModelMapper_setModel},
    {sipName_setOrientation, meth_QPieModelMapper_setOrientation, METH_VARARGS, doc_QPieModelMapper_setOrientation},
    {sipName_setSeries, meth_QPieModelMapper_setSeries, METH_VARARGS, doc_QPieModelMapper_setSeries},
    {sipName_setValuesSection, meth_QPieModelMapper_setValuesSection, METH_VARARGS, doc_QPieModelMapper_setValuesSection},
    {sipName_valuesSection, meth_QPieModelMapper_valuesSection, METH_VARARGS, doc_QPieModelMapper_valuesSection}
};

PyDoc_STRVAR(doc_QPieModelMapper, "\1QPieModelMapper(parent: QObject|None = None)");


/* Define this type's signals. */
static const pyqt6QtSignal signals_QPieModelMapper[] = {
    {"orientationChanged()", "\1orientationChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"countChanged()", "\1countChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"firstChanged()", "\1firstChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"labelsSectionChanged()", "\1labelsSectionChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"valuesSectionChanged()", "\1valuesSectionChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"modelChanged()", "\1modelChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"seriesChanged()", "\1seriesChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QPieModelMapper = {
    &::QPieModelMapper::staticMetaObject,
    signals_QPieModelMapper,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtGraphs_QPieModelMapper = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPieModelMapper,
        SIP_NULLPTR,
        &plugin_QPieModelMapper,
    },
    {
        sipNameNr_QPieModelMapper,
        {0, 0, 1},
        14, methods_QPieModelMapper,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QPieModelMapper,
    -1,
    -1,
    supers_QPieModelMapper,
    SIP_NULLPTR,
    init_type_QPieModelMapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QPieModelMapper,
    SIP_NULLPTR,
    array_QPieModelMapper,
    SIP_NULLPTR,
    release_QPieModelMapper,
    cast_QPieModelMapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QPieModelMapper,
    sizeof (::QPieModelMapper),
};
