/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

//workaround to access protected functions
#define protected public

// default includes
#include <shiboken.h>
#ifndef QT_NO_VERSION_TAGGING
#  define QT_NO_VERSION_TAGGING
#endif
#include <QDebug>
#include <pysidesignal.h>
#include <pysideproperty.h>
#include <pyside.h>
#include <pysideqenum.h>
#include <feature_select.h>
QT_WARNING_DISABLE_DEPRECATED

#include <typeinfo>
#include <iterator>

// module include
#include "pyside6_qtdbus_python.h"

// main header
#include "qdbuspendingcall_wrapper.h"

// inner classes

// Extra includes
#include <QtDBus/qdbuserror.h>
#include <QtDBus/qdbusmessage.h>
#include <QtDBus/qdbuspendingcall.h>


#include <cctype>
#include <cstring>



template <class T>
static const char *typeNameOf(const T &t)
{
    const char *typeName =  typeid(t).name();
    auto size = std::strlen(typeName);
#if defined(Q_CC_MSVC) // MSVC: "class QPaintDevice * __ptr64"
    if (auto lastStar = strchr(typeName, '*')) {
        // MSVC: "class QPaintDevice * __ptr64"
        while (*--lastStar == ' ') {
        }
        size = lastStar - typeName + 1;
    }
#else // g++, Clang: "QPaintDevice *" -> "P12QPaintDevice"
    if (size > 2 && typeName[0] == 'P' && std::isdigit(typeName[1])) {
        ++typeName;
        --size;
    }
#endif
    char *result = new char[size + 1];
    result[size] = '\0';
    memcpy(result, typeName, size);
    return result;
}


// Target ---------------------------------------------------------

extern "C" {
static int
Sbk_QDBusPendingCall_Init(PyObject *self, PyObject *args, PyObject *kwds)
{
    SbkObject *sbkSelf = reinterpret_cast<SbkObject *>(self);
    PySide::Feature::Select(self);
    if (Shiboken::Object::isUserType(self) && !Shiboken::ObjectType::canCallConstructor(self->ob_type, Shiboken::SbkType< ::QDBusPendingCall >()))
        return -1;

    ::QDBusPendingCall *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.__init__";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[1];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0};

    // invalid argument lengths


    if (!PyArg_UnpackTuple(args, "QDBusPendingCall", 1, 1, &(pyArgs[0])))
        return -1;


    // Overloaded function decisor
    // 0: QDBusPendingCall::QDBusPendingCall(QDBusPendingCall)
    if (numArgs == 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], (pyArgs[0])))) {
        overloadId = 0; // QDBusPendingCall(QDBusPendingCall)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QDBusPendingCall_Init_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArgs[0]))
            return -1;
        ::QDBusPendingCall *cppArg0;
        pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!PyErr_Occurred()) {
            // QDBusPendingCall(QDBusPendingCall)
            cptr = new ::QDBusPendingCall(*cppArg0);
        }
    }

    if (PyErr_Occurred() || !Shiboken::Object::setCppPointer(sbkSelf, Shiboken::SbkType< ::QDBusPendingCall >(), cptr)) {
        delete cptr;
        return -1;
    }
    if (!cptr) goto Sbk_QDBusPendingCall_Init_TypeError;

    Shiboken::Object::setValidCpp(sbkSelf, true);
    if (Shiboken::BindingManager::instance().hasWrapper(cptr)) {
        Shiboken::BindingManager::instance().releaseWrapper(Shiboken::BindingManager::instance().retrieveWrapper(cptr));
    }
    Shiboken::BindingManager::instance().registerWrapper(sbkSelf, cptr);


    return 1;

    Sbk_QDBusPendingCall_Init_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return -1;
}

static PyObject *Sbk_QDBusPendingCallFunc_error(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QDBusPendingCall *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.error";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // error()const
            QDBusError cppResult = const_cast<const ::QDBusPendingCall *>(cppSelf)->error();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtDBusTypes[SBK_QDBUSERROR_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QDBusPendingCallFunc_fromCompletedCall(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.fromCompletedCall";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QDBusPendingCall::fromCompletedCall(QDBusMessage)->QDBusPendingCall
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtDBusTypes[SBK_QDBUSMESSAGE_IDX], (pyArg)))) {
        overloadId = 0; // fromCompletedCall(QDBusMessage)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QDBusPendingCallFunc_fromCompletedCall_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QDBusMessage *cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // fromCompletedCall(QDBusMessage)
            QDBusPendingCall* cppResult = new QDBusPendingCall(::QDBusPendingCall::fromCompletedCall(*cppArg0));
            pyResult = Shiboken::Object::newObject(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], cppResult, true, true);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QDBusPendingCallFunc_fromCompletedCall_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QDBusPendingCallFunc_fromError(PyObject *self, PyObject *pyArg)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.fromError";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: static QDBusPendingCall::fromError(QDBusError)->QDBusPendingCall
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtDBusTypes[SBK_QDBUSERROR_IDX], (pyArg)))) {
        overloadId = 0; // fromError(QDBusError)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QDBusPendingCallFunc_fromError_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QDBusError cppArg0_local;
        ::QDBusError *cppArg0 = &cppArg0_local;
        if (pythonToCpp.isValue())
            pythonToCpp(pyArg, &cppArg0_local);
        else
            pythonToCpp(pyArg, &cppArg0);


        if (!PyErr_Occurred()) {
            // fromError(QDBusError)
            QDBusPendingCall* cppResult = new QDBusPendingCall(::QDBusPendingCall::fromError(*cppArg0));
            pyResult = Shiboken::Object::newObject(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], cppResult, true, true);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QDBusPendingCallFunc_fromError_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QDBusPendingCallFunc_isError(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QDBusPendingCall *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.isError";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isError()const
            bool cppResult = const_cast<const ::QDBusPendingCall *>(cppSelf)->isError();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QDBusPendingCallFunc_isFinished(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QDBusPendingCall *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.isFinished";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isFinished()const
            bool cppResult = const_cast<const ::QDBusPendingCall *>(cppSelf)->isFinished();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QDBusPendingCallFunc_isValid(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QDBusPendingCall *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.isValid";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // isValid()const
            bool cppResult = const_cast<const ::QDBusPendingCall *>(cppSelf)->isValid();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QDBusPendingCallFunc_reply(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QDBusPendingCall *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.reply";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // reply()const
            QDBusMessage* cppResult = new QDBusMessage(const_cast<const ::QDBusPendingCall *>(cppSelf)->reply());
            pyResult = Shiboken::Object::newObject(SbkPySide6_QtDBusTypes[SBK_QDBUSMESSAGE_IDX], cppResult, true, true);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QDBusPendingCallFunc_swap(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QDBusPendingCall *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.swap";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QDBusPendingCall::swap(QDBusPendingCall&)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], (pyArg)))) {
        overloadId = 0; // swap(QDBusPendingCall&)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QDBusPendingCallFunc_swap_TypeError;

    // Call function/method
    {
        if (!Shiboken::Object::isValid(pyArg))
            return {};
        ::QDBusPendingCall *cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // swap(QDBusPendingCall&)
            cppSelf->swap(*cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QDBusPendingCallFunc_swap_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QDBusPendingCallFunc_waitForFinished(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QDBusPendingCall *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtDBus.QDBusPendingCall.waitForFinished";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // waitForFinished()
            cppSelf->waitForFinished();
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;
}


static const char *Sbk_QDBusPendingCall_PropertyStrings[] = {
    nullptr // Sentinel
};

static PyMethodDef Sbk_QDBusPendingCall_methods[] = {
    {"error", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_error), METH_NOARGS},
    {"fromCompletedCall", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_fromCompletedCall), METH_O|METH_STATIC},
    {"fromError", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_fromError), METH_O|METH_STATIC},
    {"isError", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_isError), METH_NOARGS},
    {"isFinished", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_isFinished), METH_NOARGS},
    {"isValid", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_isValid), METH_NOARGS},
    {"reply", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_reply), METH_NOARGS},
    {"swap", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_swap), METH_O},
    {"waitForFinished", reinterpret_cast<PyCFunction>(Sbk_QDBusPendingCallFunc_waitForFinished), METH_NOARGS},

    {nullptr, nullptr} // Sentinel
};

} // extern "C"

static int Sbk_QDBusPendingCall_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QDBusPendingCall_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QDBusPendingCall_Type = nullptr;
static PyTypeObject *Sbk_QDBusPendingCall_TypeF(void)
{
    return _Sbk_QDBusPendingCall_Type;
}

static PyType_Slot Sbk_QDBusPendingCall_slots[] = {
    {Py_tp_base,        nullptr}, // inserted by introduceWrapperType
    {Py_tp_dealloc,     reinterpret_cast<void *>(&SbkDeallocWrapper)},
    {Py_tp_repr,        nullptr},
    {Py_tp_hash,        nullptr},
    {Py_tp_call,        nullptr},
    {Py_tp_str,         nullptr},
    {Py_tp_getattro,    nullptr},
    {Py_tp_setattro,    nullptr},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QDBusPendingCall_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QDBusPendingCall_clear)},
    {Py_tp_richcompare, nullptr},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QDBusPendingCall_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QDBusPendingCall_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QDBusPendingCall_spec = {
    "2:PySide6.QtDBus.QDBusPendingCall",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QDBusPendingCall_slots
};

} //extern "C"


// Type conversion functions.

// Python to C++ pointer conversion - returns the C++ object of the Python wrapper (keeps object identity).
static void QDBusPendingCall_PythonToCpp_QDBusPendingCall_PTR(PyObject *pyIn, void *cppOut)
{
    Shiboken::Conversions::pythonToCppPointer(Sbk_QDBusPendingCall_TypeF(), pyIn, cppOut);
}
static PythonToCppFunc is_QDBusPendingCall_PythonToCpp_QDBusPendingCall_PTR_Convertible(PyObject *pyIn)
{
    if (pyIn == Py_None)
        return Shiboken::Conversions::nonePythonToCppNullPtr;
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QDBusPendingCall_TypeF())))
        return QDBusPendingCall_PythonToCpp_QDBusPendingCall_PTR;
    return {};
}

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QDBusPendingCall_PTR_CppToPython_QDBusPendingCall(const void *cppIn)
{
    auto pyOut = reinterpret_cast<PyObject *>(Shiboken::BindingManager::instance().retrieveWrapper(cppIn));
    if (pyOut) {
        Py_INCREF(pyOut);
        return pyOut;
    }
    bool changedTypeName = false;
    auto tCppIn = reinterpret_cast<const ::QDBusPendingCall *>(cppIn);
    const char *typeName = typeid(*tCppIn).name();
    auto sbkType = Shiboken::ObjectType::typeForTypeName(typeName);
    if (sbkType && Shiboken::ObjectType::hasSpecialCastFunction(sbkType)) {
        typeName = typeNameOf(tCppIn);
        changedTypeName = true;
    }
    PyObject *result = Shiboken::Object::newObject(Sbk_QDBusPendingCall_TypeF(), const_cast<void *>(cppIn), false, /* exactType */ changedTypeName, typeName);
    if (changedTypeName)
        delete [] typeName;
    return result;
}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QDBusPendingCall_SignatureStrings[] = {
    "PySide6.QtDBus.QDBusPendingCall(self,other:PySide6.QtDBus.QDBusPendingCall)",
    "PySide6.QtDBus.QDBusPendingCall.error(self)->PySide6.QtDBus.QDBusError",
    "PySide6.QtDBus.QDBusPendingCall.fromCompletedCall(message:PySide6.QtDBus.QDBusMessage)->PySide6.QtDBus.QDBusPendingCall",
    "PySide6.QtDBus.QDBusPendingCall.fromError(error:typing.Union[PySide6.QtDBus.QDBusError, PySide6.QtDBus.QDBusMessage])->PySide6.QtDBus.QDBusPendingCall",
    "PySide6.QtDBus.QDBusPendingCall.isError(self)->bool",
    "PySide6.QtDBus.QDBusPendingCall.isFinished(self)->bool",
    "PySide6.QtDBus.QDBusPendingCall.isValid(self)->bool",
    "PySide6.QtDBus.QDBusPendingCall.reply(self)->PySide6.QtDBus.QDBusMessage",
    "PySide6.QtDBus.QDBusPendingCall.swap(self,other:PySide6.QtDBus.QDBusPendingCall)",
    "PySide6.QtDBus.QDBusPendingCall.waitForFinished(self)",
    nullptr}; // Sentinel

void init_QDBusPendingCall(PyObject *module)
{
    _Sbk_QDBusPendingCall_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QDBusPendingCall",
        "QDBusPendingCall*",
        &Sbk_QDBusPendingCall_spec,
        &Shiboken::callCppDestructor< ::QDBusPendingCall >,
        0,
        0,
        0);
    auto *pyType = Sbk_QDBusPendingCall_TypeF(); // references _Sbk_QDBusPendingCall_Type
    InitSignatureStrings(pyType, QDBusPendingCall_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QDBusPendingCall_Type), Sbk_QDBusPendingCall_PropertyStrings);
    SbkPySide6_QtDBusTypes[SBK_QDBUSPENDINGCALL_IDX]
        = Sbk_QDBusPendingCall_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QDBusPendingCall_TypeF(),
        QDBusPendingCall_PythonToCpp_QDBusPendingCall_PTR,
        is_QDBusPendingCall_PythonToCpp_QDBusPendingCall_PTR_Convertible,
        QDBusPendingCall_PTR_CppToPython_QDBusPendingCall);

    Shiboken::Conversions::registerConverterName(converter, "QDBusPendingCall");
    Shiboken::Conversions::registerConverterName(converter, "QDBusPendingCall*");
    Shiboken::Conversions::registerConverterName(converter, "QDBusPendingCall&");
    Shiboken::Conversions::registerConverterName(converter, typeid(::QDBusPendingCall).name());


}
