/*
 * 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 "sipAPIQtDBus.h"

#line 203 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/build/QtDBus/sipQtDBusQDBusReply0100QDBusConnectionInterfaceRegisterServiceReply.cpp"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtDBus/qdbusconnectioninterface.sip"
#include <qdbusconnectioninterface.h>
#line 34 "/build/pyqt5/src/PyQt5-5.15.7/build/QtDBus/sipQtDBusQDBusReply0100QDBusConnectionInterfaceRegisterServiceReply.cpp"


extern "C" {static void assign_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *, Py_ssize_t, void *);}
static void assign_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QDBusReply< ::QDBusConnectionInterface::RegisterServiceReply> *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QDBusReply< ::QDBusConnectionInterface::RegisterServiceReply> *>(sipSrc);
}


extern "C" {static void *array_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(Py_ssize_t);}
static void *array_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(Py_ssize_t sipNrElem)
{
    return new  ::QDBusReply< ::QDBusConnectionInterface::RegisterServiceReply>[sipNrElem];
}


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *, int);}
static void release_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *sipCppV, int)
{
     ::QDBusReply< ::QDBusConnectionInterface::RegisterServiceReply> *sipCpp = reinterpret_cast< ::QDBusReply< ::QDBusConnectionInterface::RegisterServiceReply> *>(sipCppV);
    delete sipCpp;
}



extern "C" {static int convertTo_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(PyObject *, void **, int *, PyObject *);}
static int convertTo_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(PyObject *, void **, int *, PyObject *)
{
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtDBus/qpydbusreply.sip"
    // We never create a QDBusReply from Python.
    return 0;
#line 74 "/build/pyqt5/src/PyQt5-5.15.7/build/QtDBus/sipQtDBusQDBusReply0100QDBusConnectionInterfaceRegisterServiceReply.cpp"
}


extern "C" {static PyObject *convertFrom_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *, PyObject *);}
static PyObject *convertFrom_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *sipCppV, PyObject *sipTransferObj)
{
    ::QDBusReply< ::QDBusConnectionInterface::RegisterServiceReply> *sipCpp = reinterpret_cast< ::QDBusReply< ::QDBusConnectionInterface::RegisterServiceReply> *>(sipCppV);

#line 208 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtDBus/qpydbusreply.sip"
    PyObject *value_obj;

    if (sipCpp->isValid())
    {
        if ((value_obj = sipConvertFromEnum(sipCpp->value(), sipType_QDBusConnectionInterface_RegisterServiceReply)) == NULL)
            return NULL;
    }
    else
    {
        value_obj = 0;
    }

    QPyDBusReply *reply = new QPyDBusReply(value_obj,
            sipCpp->isValid(), sipCpp->error());

    PyObject *reply_obj = sipConvertFromNewType(reply, sipType_QPyDBusReply, sipTransferObj);

    if (reply_obj == NULL)
    {
        delete reply;
        return NULL;
    }

    return reply_obj;
#line 108 "/build/pyqt5/src/PyQt5-5.15.7/build/QtDBus/sipQtDBusQDBusReply0100QDBusConnectionInterfaceRegisterServiceReply.cpp"
}


sipMappedTypeDef sipTypeDef_QtDBus_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_MAPPED,
        sipNameNr_0,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    array_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    copy_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    release_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    convertTo_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    convertFrom_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply
};
