/*
 * Interface wrapper code.
 *
 * Generated by SIP 4.19.6
 */

#include "sipAPIKDBusAddons.h"

#include <kdbusconnectionpool.h>

#include <qdbusconnection.h>


extern "C" {static PyObject *meth_KDBusConnectionPool_threadConnection(PyObject *, PyObject *);}
static PyObject *meth_KDBusConnectionPool_threadConnection(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::QDBusConnection*sipRes;

            sipRes = new  ::QDBusConnection( ::KDBusConnectionPool::threadConnection());

            return sipConvertFromNewType(sipRes,sipType_QDBusConnection,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_threadConnection, NULL);

    return NULL;
}


static PyMethodDef methods_KDBusConnectionPool[] = {
    {SIP_MLNAME_CAST(sipName_threadConnection), meth_KDBusConnectionPool_threadConnection, METH_VARARGS, NULL}
};


static pyqt5ClassPluginDef plugin_KDBusConnectionPool = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_KDBusAddons_KDBusConnectionPool = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_NAMESPACE,
        sipNameNr_KDBusConnectionPool,
        {0},
        &plugin_KDBusConnectionPool
    },
    {
        sipNameNr_KDBusConnectionPool,
        {0, 0, 1},
        1, methods_KDBusConnectionPool,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};
