/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * 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 "sipAPIQtRemoteObjects.h"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtRemoteObjects/qremoteobjectabstractitemmodelreplica.sip"
#include <qremoteobjectabstractitemmodelreplica.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 275 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qhash.sip"
#include <qhash.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 442 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 51 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 67 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 54 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 111 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 57 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 60 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 63 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 66 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 69 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 72 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 76 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 75 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 111 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 78 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qsize.sip"
#include <qsize.h>
#line 81 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 84 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 87 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 146 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 90 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 95 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 98 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 101 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 104 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 107 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 110 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 113 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 116 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 119 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 122 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 125 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 128 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 131 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 134 "/build/pyqt5/src/PyQt5-5.15.7/build/QtRemoteObjects/sipQtRemoteObjectsQAbstractItemModelReplica.cpp"


PyDoc_STRVAR(doc_QAbstractItemModelReplica_selectionModel, "selectionModel(self) -> QItemSelectionModel");

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

    {
        const  ::QAbstractItemModelReplica *sipCpp;

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

            sipRes = sipCpp->selectionModel();

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

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_selectionModel, doc_QAbstractItemModelReplica_selectionModel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_data, "data(self, QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) -> Any");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_data(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_data(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QModelIndex* a0;
        int a1 = Qt::ItemDataRole::DisplayRole;
        const  ::QAbstractItemModelReplica *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|i", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, sipType_QModelIndex, &a0, &a1))
        {
             ::QVariant*sipRes;

            sipRes = new  ::QVariant((sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::data(*a0,a1) : sipCpp->data(*a0,a1)));

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

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_data, doc_QAbstractItemModelReplica_data);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_setData, "setData(self, QModelIndex, Any, role: int = Qt.ItemDataRole.EditRole) -> bool");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_setData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_setData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QModelIndex* a0;
        const  ::QVariant* a1;
        int a1State = 0;
        int a2 = Qt::ItemDataRole::EditRole;
         ::QAbstractItemModelReplica *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J1|i", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, sipType_QModelIndex, &a0, sipType_QVariant, &a1, &a1State, &a2))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::setData(*a0,*a1,a2) : sipCpp->setData(*a0,*a1,a2));
            sipReleaseType(const_cast< ::QVariant *>(a1), sipType_QVariant, a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_setData, doc_QAbstractItemModelReplica_setData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_parent, "parent(self, QModelIndex) -> QModelIndex");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_parent(PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_parent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QModelIndex* a0;
        const  ::QAbstractItemModelReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, sipType_QModelIndex, &a0))
        {
             ::QModelIndex*sipRes;

            sipRes = new  ::QModelIndex((sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::parent(*a0) : sipCpp->parent(*a0)));

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

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_parent, doc_QAbstractItemModelReplica_parent);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_index, "index(self, int, int, parent: QModelIndex = QModelIndex()) -> QModelIndex");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_index(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_index(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        const  ::QModelIndex& a2def = QModelIndex();
        const  ::QModelIndex* a2 = &a2def;
        const  ::QAbstractItemModelReplica *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii|J9", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
             ::QModelIndex*sipRes;

            sipRes = new  ::QModelIndex((sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::index(a0,a1,*a2) : sipCpp->index(a0,a1,*a2)));

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

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_index, doc_QAbstractItemModelReplica_index);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_hasChildren, "hasChildren(self, parent: QModelIndex = QModelIndex()) -> bool");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_hasChildren(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_hasChildren(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::QAbstractItemModelReplica *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|J9", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, sipType_QModelIndex, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::hasChildren(*a0) : sipCpp->hasChildren(*a0));

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_hasChildren, doc_QAbstractItemModelReplica_hasChildren);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_rowCount, "rowCount(self, parent: QModelIndex = QModelIndex()) -> int");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_rowCount(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_rowCount(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::QAbstractItemModelReplica *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|J9", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::rowCount(*a0) : sipCpp->rowCount(*a0));

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_rowCount, doc_QAbstractItemModelReplica_rowCount);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_columnCount, "columnCount(self, parent: QModelIndex = QModelIndex()) -> int");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_columnCount(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_columnCount(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::QAbstractItemModelReplica *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|J9", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::columnCount(*a0) : sipCpp->columnCount(*a0));

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_columnCount, doc_QAbstractItemModelReplica_columnCount);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_headerData, "headerData(self, int, Qt.Orientation, int) -> Any");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_headerData(PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_headerData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int a0;
         ::Qt::Orientation a1;
        int a2;
        const  ::QAbstractItemModelReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiEi", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, &a0, sipType_Qt_Orientation, &a1, &a2))
        {
             ::QVariant*sipRes;

            sipRes = new  ::QVariant((sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::headerData(a0,a1,a2) : sipCpp->headerData(a0,a1,a2)));

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

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_headerData, doc_QAbstractItemModelReplica_headerData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_flags, "flags(self, QModelIndex) -> Qt.ItemFlags");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_flags(PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QModelIndex* a0;
        const  ::QAbstractItemModelReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, sipType_QModelIndex, &a0))
        {
             ::Qt::ItemFlags*sipRes;

            sipRes = new  ::Qt::ItemFlags((sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::flags(*a0) : sipCpp->flags(*a0)));

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

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_flags, doc_QAbstractItemModelReplica_flags);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_availableRoles, "availableRoles(self) -> List[int]");

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

    {
        const  ::QAbstractItemModelReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp))
        {
             ::QVector<int>*sipRes;

            sipRes = new  ::QVector<int>(sipCpp->availableRoles());

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

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_availableRoles, doc_QAbstractItemModelReplica_availableRoles);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_roleNames, "roleNames(self) -> Dict[int, QByteArray]");

extern "C" {static PyObject *meth_QAbstractItemModelReplica_roleNames(PyObject *, PyObject *);}
static PyObject *meth_QAbstractItemModelReplica_roleNames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QAbstractItemModelReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp))
        {
            QHash<int, ::QByteArray>*sipRes;

            sipRes = new QHash<int, ::QByteArray>((sipSelfWasArg ? sipCpp-> ::QAbstractItemModelReplica::roleNames() : sipCpp->roleNames()));

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

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_roleNames, doc_QAbstractItemModelReplica_roleNames);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_isInitialized, "isInitialized(self) -> bool");

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

    {
        const  ::QAbstractItemModelReplica *sipCpp;

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

            sipRes = sipCpp->isInitialized();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_isInitialized, doc_QAbstractItemModelReplica_isInitialized);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_hasData, "hasData(self, QModelIndex, int) -> bool");

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

    {
        const  ::QModelIndex* a0;
        int a1;
        const  ::QAbstractItemModelReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9i", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, sipType_QModelIndex, &a0, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->hasData(*a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_hasData, doc_QAbstractItemModelReplica_hasData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_rootCacheSize, "rootCacheSize(self) -> int");

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

    {
        const  ::QAbstractItemModelReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp))
        {
            size_t sipRes;

            sipRes = sipCpp->rootCacheSize();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_rootCacheSize, doc_QAbstractItemModelReplica_rootCacheSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QAbstractItemModelReplica_setRootCacheSize, "setRootCacheSize(self, int)");

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

    {
        size_t a0;
         ::QAbstractItemModelReplica *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B=", &sipSelf, sipType_QAbstractItemModelReplica, &sipCpp, &a0))
        {
            sipCpp->setRootCacheSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractItemModelReplica, sipName_setRootCacheSize, doc_QAbstractItemModelReplica_setRootCacheSize);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QAbstractItemModelReplica)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_QAbstractItemModel)->ctd_cast(static_cast< ::QAbstractItemModel *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


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

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


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


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


static PyMethodDef methods_QAbstractItemModelReplica[] = {
    {sipName_availableRoles, meth_QAbstractItemModelReplica_availableRoles, METH_VARARGS, doc_QAbstractItemModelReplica_availableRoles},
    {sipName_columnCount, SIP_MLMETH_CAST(meth_QAbstractItemModelReplica_columnCount), METH_VARARGS|METH_KEYWORDS, doc_QAbstractItemModelReplica_columnCount},
    {sipName_data, SIP_MLMETH_CAST(meth_QAbstractItemModelReplica_data), METH_VARARGS|METH_KEYWORDS, doc_QAbstractItemModelReplica_data},
    {sipName_flags, meth_QAbstractItemModelReplica_flags, METH_VARARGS, doc_QAbstractItemModelReplica_flags},
    {sipName_hasChildren, SIP_MLMETH_CAST(meth_QAbstractItemModelReplica_hasChildren), METH_VARARGS|METH_KEYWORDS, doc_QAbstractItemModelReplica_hasChildren},
    {sipName_hasData, meth_QAbstractItemModelReplica_hasData, METH_VARARGS, doc_QAbstractItemModelReplica_hasData},
    {sipName_headerData, meth_QAbstractItemModelReplica_headerData, METH_VARARGS, doc_QAbstractItemModelReplica_headerData},
    {sipName_index, SIP_MLMETH_CAST(meth_QAbstractItemModelReplica_index), METH_VARARGS|METH_KEYWORDS, doc_QAbstractItemModelReplica_index},
    {sipName_isInitialized, meth_QAbstractItemModelReplica_isInitialized, METH_VARARGS, doc_QAbstractItemModelReplica_isInitialized},
    {sipName_parent, meth_QAbstractItemModelReplica_parent, METH_VARARGS, doc_QAbstractItemModelReplica_parent},
    {sipName_roleNames, meth_QAbstractItemModelReplica_roleNames, METH_VARARGS, doc_QAbstractItemModelReplica_roleNames},
    {sipName_rootCacheSize, meth_QAbstractItemModelReplica_rootCacheSize, METH_VARARGS, doc_QAbstractItemModelReplica_rootCacheSize},
    {sipName_rowCount, SIP_MLMETH_CAST(meth_QAbstractItemModelReplica_rowCount), METH_VARARGS|METH_KEYWORDS, doc_QAbstractItemModelReplica_rowCount},
    {sipName_selectionModel, meth_QAbstractItemModelReplica_selectionModel, METH_VARARGS, doc_QAbstractItemModelReplica_selectionModel},
    {sipName_setData, SIP_MLMETH_CAST(meth_QAbstractItemModelReplica_setData), METH_VARARGS|METH_KEYWORDS, doc_QAbstractItemModelReplica_setData},
    {sipName_setRootCacheSize, meth_QAbstractItemModelReplica_setRootCacheSize, METH_VARARGS, doc_QAbstractItemModelReplica_setRootCacheSize}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QAbstractItemModelReplica[] = {
    {"initialized()", "\1initialized(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QAbstractItemModelReplica = {
    & ::QAbstractItemModelReplica::staticMetaObject,
    0,
    signals_QAbstractItemModelReplica,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtRemoteObjects_QAbstractItemModelReplica = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QAbstractItemModelReplica,
        SIP_NULLPTR,
        &plugin_QAbstractItemModelReplica
    },
    {
        sipNameNr_QAbstractItemModelReplica,
        {0, 0, 1},
        16, methods_QAbstractItemModelReplica,
        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,
    -1,
    supers_QAbstractItemModelReplica,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QAbstractItemModelReplica,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QAbstractItemModelReplica,
    cast_QAbstractItemModelReplica,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
