/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * Copyright (c) 2024 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 "sipAPIQtCore.h"

#line 26 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 31 "/build/pyqt5/src/PyQt5-5.15.11/build/QtCore/sipQtCoreQMetaObjectConnection.cpp"



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


extern "C" {static void *array_QMetaObject_Connection(Py_ssize_t);}
static void *array_QMetaObject_Connection(Py_ssize_t sipNrElem)
{
    return new ::QMetaObject::Connection[sipNrElem];
}


extern "C" {static void array_delete_QMetaObject_Connection(void *);}
static void array_delete_QMetaObject_Connection(void *sipCpp)
{
    delete[] reinterpret_cast< ::QMetaObject::Connection *>(sipCpp);
}


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


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


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new ::QMetaObject::Connection();

            return sipCpp;
        }
    }

    {
        const ::QMetaObject::Connection* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}

PyDoc_STRVAR(doc_QMetaObject_Connection, "\1QMetaObject.Connection()\n"
"QMetaObject.Connection(other: QMetaObject.Connection)");


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


sipClassTypeDef sipTypeDef_QtCore_QMetaObject_Connection = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMetaObject__Connection,
        SIP_NULLPTR,
        &plugin_QMetaObject_Connection,
    },
    {
        sipNameNr_Connection,
        {176, 255, 0},
        0, SIP_NULLPTR,
        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},
    },
    doc_QMetaObject_Connection,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QMetaObject_Connection,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QMetaObject_Connection,
    assign_QMetaObject_Connection,
    array_QMetaObject_Connection,
    copy_QMetaObject_Connection,
    release_QMetaObject_Connection,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QMetaObject_Connection,
    sizeof (::QMetaObject::Connection),
};
