/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6.
 * 
 * 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/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 151 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 31 "/build/pyqt6/src/PyQt6-6.3.1/build/QtCore/sipQtCoreQMetaObjectConnection.cpp"



PyDoc_STRVAR(doc_QMetaObject_Connection_swap, "swap(self, QMetaObject.Connection)");

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

    {
         ::QMetaObject::Connection* a0;
         ::QMetaObject::Connection *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_Connection, sipName_swap, doc_QMetaObject_Connection_swap);

    return SIP_NULLPTR;
}


/* 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;
}


static PyMethodDef methods_QMetaObject_Connection[] = {
    {sipName_swap, meth_QMetaObject_Connection_swap, METH_VARARGS, doc_QMetaObject_Connection_swap}
};

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


sipClassTypeDef sipTypeDef_QtCore_QMetaObject_Connection = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMetaObject__Connection,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_Connection,
        {217, 255, 0},
        1, methods_QMetaObject_Connection,
        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_PyQt6_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),
};
