/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 19:57:25 2009
 */

#include "sipAPIkdecore.h"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetypetrader.sip"
#include <kservicetypetrader.h>
#line 12 "sipkdecorepart2.cpp"

#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 66 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 69 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 72 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 75 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 78 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 81 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 84 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 87 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 90 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 93 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 96 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 99 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 102 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 105 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 108 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 111 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 114 "sipkdecorepart2.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 117 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 120 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 123 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 126 "sipkdecorepart2.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 141 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 144 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 147 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 150 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 153 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 156 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 159 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 162 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 165 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KServiceTypeTrader_query(PyObject *, PyObject *);}
static PyObject *meth_KServiceTypeTrader_query(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KServiceTypeTrader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_KServiceTypeTrader,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            KService::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(sipCpp->query(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceTypeTrader,sipName_query);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceTypeTrader_defaultOffers(PyObject *, PyObject *);}
static PyObject *meth_KServiceTypeTrader_defaultOffers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KServiceTypeTrader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_KServiceTypeTrader,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            KService::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(sipCpp->defaultOffers(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceTypeTrader,sipName_defaultOffers);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceTypeTrader_preferredService(PyObject *, PyObject *);}
static PyObject *meth_KServiceTypeTrader_preferredService(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KServiceTypeTrader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KServiceTypeTrader,&sipCpp,sipType_QString,&a0,&a0State))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(sipCpp->preferredService(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceTypeTrader,sipName_preferredService);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceTypeTrader_self(PyObject *, PyObject *);}
static PyObject *meth_KServiceTypeTrader_self(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KServiceTypeTrader *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KServiceTypeTrader::self();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KServiceTypeTrader,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceTypeTrader,sipName_self);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceTypeTrader_applyConstraints(PyObject *, PyObject *);}
static PyObject *meth_KServiceTypeTrader_applyConstraints(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KService::List * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1",sipType_QList_27000600KSharedPtr_0200KService,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            KServiceTypeTrader::applyConstraints(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QList_27000600KSharedPtr_0200KService,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceTypeTrader,sipName_applyConstraints);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KServiceTypeTrader(void *, const sipTypeDef *);}
static void *cast_KServiceTypeTrader(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KServiceTypeTrader)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KServiceTypeTrader(void *, int);}
static void release_KServiceTypeTrader(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KServiceTypeTrader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KServiceTypeTrader(sipSimpleWrapper *);}
static void dealloc_KServiceTypeTrader(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KServiceTypeTrader(sipSelf->u.cppPtr,0);
    }
}


static PyMethodDef methods_KServiceTypeTrader[] = {
    {SIP_MLNAME_CAST(sipName_applyConstraints), meth_KServiceTypeTrader_applyConstraints, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultOffers), meth_KServiceTypeTrader_defaultOffers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preferredService), meth_KServiceTypeTrader_preferredService, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_query), meth_KServiceTypeTrader_query, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KServiceTypeTrader_self, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KServiceTypeTrader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KServiceTypeTrader,
        {0}
    },
    sipNameNr_KServiceTypeTrader,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    5, methods_KServiceTypeTrader,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KServiceTypeTrader,
    release_KServiceTypeTrader,
    cast_KServiceTypeTrader,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 425 "sipkdecorepart2.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 478 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 481 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 484 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 487 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 490 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 493 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 496 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 499 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 502 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 505 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 508 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 511 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 514 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 517 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 520 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 523 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 526 "sipkdecorepart2.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 529 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 532 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 535 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 538 "sipkdecorepart2.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 553 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 556 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 559 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 562 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 565 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 568 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 571 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 574 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KServiceTypeProfile_hasProfile(PyObject *,PyObject *);}
static PyObject *meth_KServiceTypeProfile_hasProfile(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KServiceTypeProfile::hasProfile(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_hasProfile);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceTypeProfile_configurationMode(PyObject *,PyObject *);}
static PyObject *meth_KServiceTypeProfile_configurationMode(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KServiceTypeProfile::configurationMode();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_configurationMode);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceTypeProfile_setConfigurationMode(PyObject *,PyObject *);}
static PyObject *meth_KServiceTypeProfile_setConfigurationMode(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            KServiceTypeProfile::setConfigurationMode();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_setConfigurationMode);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceTypeProfile_deleteServiceTypeProfile(PyObject *,PyObject *);}
static PyObject *meth_KServiceTypeProfile_deleteServiceTypeProfile(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KServiceTypeProfile::deleteServiceTypeProfile(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_deleteServiceTypeProfile);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceTypeProfile_writeServiceTypeProfile(PyObject *,PyObject *);}
static PyObject *meth_KServiceTypeProfile_writeServiceTypeProfile(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const KService::List * a1;
        int a1State = 0;
        const KService::List& a2def = KService::List();
        const KService::List * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J1",sipType_QString,&a0,&a0State,sipType_QList_27000600KSharedPtr_0200KService,&a1,&a1State,sipType_QList_27000600KSharedPtr_0200KService,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            KServiceTypeProfile::writeServiceTypeProfile(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<KService::List *>(a1),sipType_QList_27000600KSharedPtr_0200KService,a1State);
            sipReleaseType(const_cast<KService::List *>(a2),sipType_QList_27000600KSharedPtr_0200KService,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_writeServiceTypeProfile);

    return NULL;
}


static PyMethodDef methods_KServiceTypeProfile[] = {
    {SIP_MLNAME_CAST(sipName_configurationMode), meth_KServiceTypeProfile_configurationMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteServiceTypeProfile), meth_KServiceTypeProfile_deleteServiceTypeProfile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasProfile), meth_KServiceTypeProfile_hasProfile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setConfigurationMode), meth_KServiceTypeProfile_setConfigurationMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeServiceTypeProfile), meth_KServiceTypeProfile_writeServiceTypeProfile, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KServiceTypeProfile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KServiceTypeProfile,
        {0}
    },
    sipNameNr_KServiceTypeProfile,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    5, methods_KServiceTypeProfile,
    0, 0,
    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, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 781 "sipkdecorepart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 785 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 788 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 791 "sipkdecorepart2.cpp"


extern "C" {static void assign_QMap_0200QString_0200QString(void *, const void*);}
static void assign_QMap_0200QString_0200QString(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<QMap<QString,QString> *>(sipDst) = *reinterpret_cast<const QMap<QString,QString> *>(sipSrc);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QMap_0200QString_0200QString(void *, int);}
static void release_QMap_0200QString_0200QString(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QMap<QString,QString> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QMap_0200QString_0200QString(PyObject *, void **, int *, PyObject *);}
static int convertTo_QMap_0200QString_0200QString(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QMap<QString,QString> **sipCppPtr = reinterpret_cast<QMap<QString,QString> **>(sipCppPtrV);

#line 99 "/usr/local/share/py-sip/QtCore/qmap.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyDict_Check(sipPy))
            return 0;

        while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
        {
            if (!sipCanConvertToType(t1obj, sipType_QString, SIP_NOT_NONE))
                return 0;

            if (!sipCanConvertToType(t2obj, sipType_QString, SIP_NOT_NONE))
                return 0;
        } 

        return 1;
    }

    QMap<QString, QString> *qm = new QMap<QString, QString>;
 
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        int state1, state2;

        QString *t1 = reinterpret_cast<QString *>(sipConvertToType(t1obj, sipType_QString, sipTransferObj, SIP_NOT_NONE, &state1, sipIsErr));
        QString *t2 = reinterpret_cast<QString *>(sipConvertToType(t2obj, sipType_QString, sipTransferObj, SIP_NOT_NONE, &state2, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseType(t1, sipType_QString, state1);
            sipReleaseType(t2, sipType_QString, state2);

            delete qm;
            return 0;
        }

        qm->insert(*t1, *t2);

        sipReleaseType(t1, sipType_QString, state1);
        sipReleaseType(t2, sipType_QString, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 866 "sipkdecorepart2.cpp"
}


extern "C" {static PyObject *convertFrom_QMap_0200QString_0200QString(void *, PyObject *);}
static PyObject *convertFrom_QMap_0200QString_0200QString(void *sipCppV,PyObject *sipTransferObj)
{
   QMap<QString,QString> *sipCpp = reinterpret_cast<QMap<QString,QString> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qmap.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QMap<QString, QString>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        QString *t1 = new QString(i.key());
        QString *t2 = new QString(i.value());

        PyObject *t1obj = sipConvertFromNewType(t1, sipType_QString, sipTransferObj);
        PyObject *t2obj = sipConvertFromNewType(t2, sipType_QString, sipTransferObj);

        if (t1obj == NULL || t2obj == NULL || PyDict_SetItem(d, t1obj, t2obj) < 0)
        {
            Py_DECREF(d);

            if (t1obj)
            {
                Py_DECREF(t1obj);
            }
            else
            {
                delete t1;
            }

            if (t2obj)
            {
                Py_DECREF(t2obj);
            }
            else
            {
                delete t2;
            }

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 925 "sipkdecorepart2.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_kdecore_QMap_0200QString_0200QString = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_5148,
        {0}
    },
    release_QMap_0200QString_0200QString,
    convertTo_QMap_0200QString_0200QString,
    convertFrom_QMap_0200QString_0200QString
},
    assign_QMap_0200QString_0200QString
};


extern "C" {static void assign_QMap_0200QString_0200KTimeZone(void *, const void*);}
static void assign_QMap_0200QString_0200KTimeZone(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<QMap<QString,KTimeZone> *>(sipDst) = *reinterpret_cast<const QMap<QString,KTimeZone> *>(sipSrc);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QMap_0200QString_0200KTimeZone(void *, int);}
static void release_QMap_0200QString_0200KTimeZone(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QMap<QString,KTimeZone> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QMap_0200QString_0200KTimeZone(PyObject *, void **, int *, PyObject *);}
static int convertTo_QMap_0200QString_0200KTimeZone(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QMap<QString,KTimeZone> **sipCppPtr = reinterpret_cast<QMap<QString,KTimeZone> **>(sipCppPtrV);

#line 99 "/usr/local/share/py-sip/QtCore/qmap.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyDict_Check(sipPy))
            return 0;

        while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
        {
            if (!sipCanConvertToType(t1obj, sipType_QString, SIP_NOT_NONE))
                return 0;

            if (!sipCanConvertToType(t2obj, sipType_KTimeZone, SIP_NOT_NONE))
                return 0;
        } 

        return 1;
    }

    QMap<QString, KTimeZone> *qm = new QMap<QString, KTimeZone>;
 
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        int state1, state2;

        QString *t1 = reinterpret_cast<QString *>(sipConvertToType(t1obj, sipType_QString, sipTransferObj, SIP_NOT_NONE, &state1, sipIsErr));
        KTimeZone *t2 = reinterpret_cast<KTimeZone *>(sipConvertToType(t2obj, sipType_KTimeZone, sipTransferObj, SIP_NOT_NONE, &state2, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseType(t1, sipType_QString, state1);
            sipReleaseType(t2, sipType_KTimeZone, state2);

            delete qm;
            return 0;
        }

        qm->insert(*t1, *t2);

        sipReleaseType(t1, sipType_QString, state1);
        sipReleaseType(t2, sipType_KTimeZone, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 1019 "sipkdecorepart2.cpp"
}


extern "C" {static PyObject *convertFrom_QMap_0200QString_0200KTimeZone(void *, PyObject *);}
static PyObject *convertFrom_QMap_0200QString_0200KTimeZone(void *sipCppV,PyObject *sipTransferObj)
{
   QMap<QString,KTimeZone> *sipCpp = reinterpret_cast<QMap<QString,KTimeZone> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qmap.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QMap<QString, KTimeZone>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        QString *t1 = new QString(i.key());
        KTimeZone *t2 = new KTimeZone(i.value());

        PyObject *t1obj = sipConvertFromNewType(t1, sipType_QString, sipTransferObj);
        PyObject *t2obj = sipConvertFromNewType(t2, sipType_KTimeZone, sipTransferObj);

        if (t1obj == NULL || t2obj == NULL || PyDict_SetItem(d, t1obj, t2obj) < 0)
        {
            Py_DECREF(d);

            if (t1obj)
            {
                Py_DECREF(t1obj);
            }
            else
            {
                delete t1;
            }

            if (t2obj)
            {
                Py_DECREF(t2obj);
            }
            else
            {
                delete t2;
            }

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 1078 "sipkdecorepart2.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_kdecore_QMap_0200QString_0200KTimeZone = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3797,
        {0}
    },
    release_QMap_0200QString_0200KTimeZone,
    convertTo_QMap_0200QString_0200KTimeZone,
    convertFrom_QMap_0200QString_0200KTimeZone
},
    assign_QMap_0200QString_0200KTimeZone
};


extern "C" {static void assign_QMap_0200QString_0500QVariant_Type(void *, const void*);}
static void assign_QMap_0200QString_0500QVariant_Type(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<QMap<QString,QVariant::Type> *>(sipDst) = *reinterpret_cast<const QMap<QString,QVariant::Type> *>(sipSrc);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QMap_0200QString_0500QVariant_Type(void *, int);}
static void release_QMap_0200QString_0500QVariant_Type(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QMap<QString,QVariant::Type> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QMap_0200QString_0500QVariant_Type(PyObject *, void **, int *, PyObject *);}
static int convertTo_QMap_0200QString_0500QVariant_Type(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QMap<QString,QVariant::Type> **sipCppPtr = reinterpret_cast<QMap<QString,QVariant::Type> **>(sipCppPtrV);

#line 183 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyDict_Check(sipPy))
            return 0;

        while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
        {
            if (!sipCanConvertToInstance(t1obj, sipClass_QString, SIP_NOT_NONE))
                return 0;

            if (!PyInt_Check (t2obj))
                return 0;
        } 

        return 1;
    }

    QMap<QString, QVariant::Type> *qm = new QMap<QString, QVariant::Type>;
 
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        int state1;

        QString *t1 = reinterpret_cast<QString *>(sipConvertToInstance(t1obj, sipClass_QString, sipTransferObj, SIP_NOT_NONE, &state1, sipIsErr));
        QVariant::Type t2 = (QVariant::Type)PyInt_AS_LONG (t2obj);
 
        if (*sipIsErr)
        {
            sipReleaseInstance(t1, sipClass_QString, state1);

            delete qm;
            return 0;
        }

        qm->insert(*t1, t2);

        sipReleaseInstance(t1, sipClass_QString, state1);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 1170 "sipkdecorepart2.cpp"
}


extern "C" {static PyObject *convertFrom_QMap_0200QString_0500QVariant_Type(void *, PyObject *);}
static PyObject *convertFrom_QMap_0200QString_0500QVariant_Type(void *sipCppV,PyObject *sipTransferObj)
{
   QMap<QString,QVariant::Type> *sipCpp = reinterpret_cast<QMap<QString,QVariant::Type> *>(sipCppV);

#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QMap<QString, QVariant::Type>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        QString *t1 = new QString (i.key());
        QVariant::Type t2 =  (QVariant::Type) (i.value());

        PyObject *t1obj = sipConvertFromNewInstance(t1, sipClass_QString, sipTransferObj);
        PyObject *t2obj = PyInt_FromLong ((long) t2);

        if (t1obj == NULL || t2obj == NULL || PyDict_SetItem(d, t1obj, t2obj) < 0)
        {
            Py_DECREF(d);

            if (t1obj)
                Py_DECREF(t1obj);
            else
                delete t1;

            if (t2obj)
                Py_DECREF(t2obj);

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 1219 "sipkdecorepart2.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_kdecore_QMap_0200QString_0500QVariant_Type = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1896,
        {0}
    },
    release_QMap_0200QString_0500QVariant_Type,
    convertTo_QMap_0200QString_0500QVariant_Type,
    convertFrom_QMap_0200QString_0500QVariant_Type
},
    assign_QMap_0200QString_0500QVariant_Type
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 1242 "sipkdecorepart2.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 1246 "sipkdecorepart2.cpp"


extern "C" {static int slot_KServiceGroup_EntriesOptions___bool__(PyObject *sipSelf);}
static int slot_KServiceGroup_EntriesOptions___bool__(PyObject *sipSelf)
{
    KServiceGroup::EntriesOptions *sipCpp = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KServiceGroup_EntriesOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1264 "sipkdecorepart2.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KServiceGroup_EntriesOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KServiceGroup::EntriesOptions *sipCpp = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KServiceGroup_EntriesOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KServiceGroup::EntriesOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KServiceGroup_EntriesOptions,&a0,&a0State))
        {
            bool sipRes = 0;

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1292 "sipkdecorepart2.cpp"

            sipReleaseType(const_cast<KServiceGroup::EntriesOptions *>(a0),sipType_KServiceGroup_EntriesOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KServiceGroup_EntriesOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KServiceGroup_EntriesOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KServiceGroup::EntriesOptions *sipCpp = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KServiceGroup_EntriesOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KServiceGroup::EntriesOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KServiceGroup_EntriesOptions,&a0,&a0State))
        {
            bool sipRes = 0;

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1324 "sipkdecorepart2.cpp"

            sipReleaseType(const_cast<KServiceGroup::EntriesOptions *>(a0),sipType_KServiceGroup_EntriesOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KServiceGroup_EntriesOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___invert__(PyObject *sipSelf);}
static PyObject *slot_KServiceGroup_EntriesOptions___invert__(PyObject *sipSelf)
{
    KServiceGroup::EntriesOptions *sipCpp = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KServiceGroup_EntriesOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KServiceGroup::EntriesOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::EntriesOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KServiceGroup_EntriesOptions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup::EntriesOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_KServiceGroup_EntriesOptions,&a0,&a0State,&a1))
        {
            KServiceGroup::EntriesOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::EntriesOptions((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);

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

    return sipPySlotExtend(&sipModuleAPI_kdecore,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KServiceGroup_EntriesOptions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup::EntriesOptions * a0;
        int a0State = 0;
        KServiceGroup::EntriesOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KServiceGroup_EntriesOptions,&a0,&a0State,sipType_KServiceGroup_EntriesOptions,&a1,&a1State))
        {
            KServiceGroup::EntriesOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::EntriesOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);
            sipReleaseType(a1,sipType_KServiceGroup_EntriesOptions,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_kdecore,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KServiceGroup_EntriesOptions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup::EntriesOptions * a0;
        int a0State = 0;
        KServiceGroup::EntriesOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KServiceGroup_EntriesOptions,&a0,&a0State,sipType_KServiceGroup_EntriesOptions,&a1,&a1State))
        {
            KServiceGroup::EntriesOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::EntriesOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);
            sipReleaseType(a1,sipType_KServiceGroup_EntriesOptions,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_kdecore,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___int__(PyObject *sipSelf);}
static PyObject *slot_KServiceGroup_EntriesOptions___int__(PyObject *sipSelf)
{
    KServiceGroup::EntriesOptions *sipCpp = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KServiceGroup_EntriesOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KServiceGroup_EntriesOptions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KServiceGroup_EntriesOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KServiceGroup::EntriesOptions *sipCpp = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KServiceGroup_EntriesOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KServiceGroup::EntriesOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KServiceGroup_EntriesOptions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KServiceGroup::EntriesOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___ior__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KServiceGroup_EntriesOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KServiceGroup_EntriesOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KServiceGroup::EntriesOptions *sipCpp = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KServiceGroup_EntriesOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KServiceGroup::EntriesOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KServiceGroup_EntriesOptions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KServiceGroup::EntriesOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KServiceGroup_EntriesOptions___iand__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KServiceGroup_EntriesOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KServiceGroup_EntriesOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KServiceGroup::EntriesOptions *sipCpp = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KServiceGroup_EntriesOptions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KServiceGroup::EntriesOptions::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KServiceGroup_EntriesOptions(void *, const sipTypeDef *);}
static void *cast_KServiceGroup_EntriesOptions(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KServiceGroup_EntriesOptions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KServiceGroup_EntriesOptions(void *, int);}
static void release_KServiceGroup_EntriesOptions(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KServiceGroup::EntriesOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KServiceGroup_EntriesOptions(void *, const void*);}
static void assign_KServiceGroup_EntriesOptions(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KServiceGroup::EntriesOptions *>(sipDst) = *reinterpret_cast<const KServiceGroup::EntriesOptions *>(sipSrc);
}


extern "C" {static void dealloc_KServiceGroup_EntriesOptions(sipSimpleWrapper *);}
static void dealloc_KServiceGroup_EntriesOptions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KServiceGroup_EntriesOptions(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KServiceGroup_EntriesOptions(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KServiceGroup_EntriesOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KServiceGroup::EntriesOptions *sipCpp = 0;

    if (!sipCpp)
    {
        const KServiceGroup::EntriesOptions * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KServiceGroup_EntriesOptions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceGroup::EntriesOptions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KServiceGroup::EntriesOptions *>(a0),sipType_KServiceGroup_EntriesOptions,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceGroup::EntriesOptions(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceGroup::EntriesOptions();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


extern "C" {static int convertTo_KServiceGroup_EntriesOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_KServiceGroup_EntriesOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KServiceGroup::EntriesOptions **sipCppPtr = reinterpret_cast<KServiceGroup::EntriesOptions **>(sipCppPtrV);

#line 276 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KServiceGroup::EntriesOptions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KServiceGroup_EntriesOption)) ||
            sipCanConvertToType(sipPy, sipType_KServiceGroup_EntriesOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KServiceGroup_EntriesOption)))
{
    *sipCppPtr = new KServiceGroup::EntriesOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KServiceGroup::EntriesOptions *>(sipConvertToType(sipPy, sipType_KServiceGroup_EntriesOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 1695 "sipkdecorepart2.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KServiceGroup_EntriesOptions[] = {
    {(void *)slot_KServiceGroup_EntriesOptions___bool__, bool_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___ne__, ne_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___eq__, eq_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___invert__, invert_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___and__, and_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___xor__, xor_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___or__, or_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___int__, int_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___ixor__, ixor_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___ior__, ior_slot},
    {(void *)slot_KServiceGroup_EntriesOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KServiceGroup_EntriesOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KServiceGroup__EntriesOptions,
        {0}
    },
    sipNameNr_EntriesOptions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {133, 255, 0},
    0,
    slots_KServiceGroup_EntriesOptions,
    0, 0,
    0, 0,
    0, 0,
    init_KServiceGroup_EntriesOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KServiceGroup_EntriesOptions,
    release_KServiceGroup_EntriesOptions,
    cast_KServiceGroup_EntriesOptions,
    convertTo_KServiceGroup_EntriesOptions,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KServiceGroup_EntriesOptions,
    0,
    1,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 1763 "sipkdecorepart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1767 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 1770 "sipkdecorepart2.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 1785 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 1788 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 1791 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 1794 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 1797 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 1800 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 1803 "sipkdecorepart2.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1856 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 1859 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 1862 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 1865 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 1868 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 1871 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 1874 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 1877 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 1880 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 1883 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 1886 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 1889 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 1892 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 1895 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 1898 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1901 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 1904 "sipkdecorepart2.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 1907 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 1910 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 1913 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 1916 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 1919 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1922 "sipkdecorepart2.cpp"


class sipKServiceGroup : public KServiceGroup
{
public:
    sipKServiceGroup(const QString&);
    sipKServiceGroup(const QString&,const QString&);
    sipKServiceGroup(QDataStream&,int,bool);
    ~sipKServiceGroup();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_addEntry(const KSycocaEntry::Ptr&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKServiceGroup(const sipKServiceGroup &);
    sipKServiceGroup &operator = (const sipKServiceGroup &);
};

sipKServiceGroup::sipKServiceGroup(const QString& a0): KServiceGroup(a0), sipPySelf(0)
{
}

sipKServiceGroup::sipKServiceGroup(const QString& a0,const QString& a1): KServiceGroup(a0,a1), sipPySelf(0)
{
}

sipKServiceGroup::sipKServiceGroup(QDataStream& a0,int a1,bool a2): KServiceGroup(a0,a1,a2), sipPySelf(0)
{
}

sipKServiceGroup::~sipKServiceGroup()
{
    sipCommonDtor(sipPySelf);
}

void sipKServiceGroup::sipProtect_addEntry(const KSycocaEntry::Ptr& a0)
{
    KServiceGroup::addEntry(a0);
}


extern "C" {static PyObject *meth_KServiceGroup_relPath(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_relPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->relPath());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_relPath);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_caption(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_caption(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->caption());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_caption);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_icon(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_icon(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->icon());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_icon);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_comment(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_comment(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->comment());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_comment);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_childCount(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_childCount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->childCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_childCount);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_noDisplay(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_noDisplay(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->noDisplay();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_noDisplay);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_showEmptyMenu(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_showEmptyMenu(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->showEmptyMenu();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_showEmptyMenu);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_setShowEmptyMenu(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_setShowEmptyMenu(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KServiceGroup,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setShowEmptyMenu(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_setShowEmptyMenu);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_showInlineHeader(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_showInlineHeader(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->showInlineHeader();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_showInlineHeader);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_setShowInlineHeader(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_setShowInlineHeader(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KServiceGroup,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setShowInlineHeader(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_setShowInlineHeader);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_inlineAlias(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_inlineAlias(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->inlineAlias();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_inlineAlias);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_setInlineAlias(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_setInlineAlias(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KServiceGroup,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInlineAlias(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_setInlineAlias);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_allowInline(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_allowInline(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->allowInline();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_allowInline);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_setAllowInline(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_setAllowInline(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KServiceGroup,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAllowInline(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_setAllowInline);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_inlineValue(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_inlineValue(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->inlineValue();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_inlineValue);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_setInlineValue(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_setInlineValue(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KServiceGroup,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInlineValue(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_setInlineValue);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_suppressGenericNames(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_suppressGenericNames(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->suppressGenericNames());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_suppressGenericNames);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_setLayoutInfo(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_setLayoutInfo(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QStringList * a0;
        int a0State = 0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KServiceGroup,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLayoutInfo(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_setLayoutInfo);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_layoutInfo(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_layoutInfo(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->layoutInfo());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_layoutInfo);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_entries(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_entries(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        bool a1;
        bool a2;
        bool a3 = 0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bbbb|b",&sipSelf,sipType_KServiceGroup,&sipCpp,&a0,&a1,&a2,&a3))
        {
            KSycocaEntry::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSycocaEntry::List(sipCpp->entries(a0,a1,a2,a3));
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KSycocaEntry,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    {
        bool a0;
        bool a1;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bbb",&sipSelf,sipType_KServiceGroup,&sipCpp,&a0,&a1))
        {
            KSycocaEntry::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSycocaEntry::List(sipCpp->entries(a0,a1));
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KSycocaEntry,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    {
        bool a0 = 0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|b",&sipSelf,sipType_KServiceGroup,&sipCpp,&a0))
        {
            KSycocaEntry::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSycocaEntry::List(sipCpp->entries(a0));
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KSycocaEntry,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_entries);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_serviceEntries(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_serviceEntries(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup::EntriesOptions a0def = KServiceGroup::ExcludeNoDisplay;
        KServiceGroup::EntriesOptions * a0 = &a0def;
        int a0State = 0;
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J1",&sipSelf,sipType_KServiceGroup,&sipCpp,sipType_KServiceGroup_EntriesOptions,&a0,&a0State))
        {
            KService::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(sipCpp->serviceEntries(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_serviceEntries);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_baseGroupName(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_baseGroupName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->baseGroupName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_baseGroupName);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_directoryEntryPath(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_directoryEntryPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceGroup,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->directoryEntryPath());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_directoryEntryPath);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_baseGroup(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_baseGroup(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KServiceGroup::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::Ptr(KServiceGroup::baseGroup(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KServiceGroup,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_baseGroup);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_root(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_root(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KServiceGroup::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::Ptr(KServiceGroup::root());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KServiceGroup,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_root);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_group(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_group(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KServiceGroup::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::Ptr(KServiceGroup::group(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KServiceGroup,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_group);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_childGroup(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_childGroup(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J3",sipType_QString,&a0,&a0State))
        {
            KServiceGroup::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::Ptr(KServiceGroup::childGroup(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KServiceGroup,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_childGroup);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceGroup_addEntry(PyObject *, PyObject *);}
static PyObject *meth_KServiceGroup_addEntry(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KSycocaEntry::Ptr * a0;
        int a0State = 0;
        sipKServiceGroup *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KServiceGroup,&sipCpp,sipType_KSharedPtr_0200KSycocaEntry,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_addEntry(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KSycocaEntry::Ptr *>(a0),sipType_KSharedPtr_0200KSycocaEntry,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceGroup,sipName_addEntry);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KServiceGroup(void *, const sipTypeDef *);}
static void *cast_KServiceGroup(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KServiceGroup)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KSycocaEntry)->ctd_cast((KSycocaEntry *)(KServiceGroup *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KServiceGroup(void *, int);}
static void release_KServiceGroup(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKServiceGroup *>(sipCppV);
    else
        delete reinterpret_cast<KServiceGroup *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KServiceGroup(sipSimpleWrapper *);}
static void dealloc_KServiceGroup(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKServiceGroup *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KServiceGroup(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KServiceGroup(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KServiceGroup(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKServiceGroup *sipCpp = 0;

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKServiceGroup(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKServiceGroup(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
        }
    }

    if (!sipCpp)
    {
        QDataStream * a0;
        int a1;
        bool a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9ib",sipType_QDataStream,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKServiceGroup(*a0,a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KServiceGroup[] = {{167, 255, 1}};


static PyMethodDef methods_KServiceGroup[] = {
    {SIP_MLNAME_CAST(sipName_addEntry), meth_KServiceGroup_addEntry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allowInline), meth_KServiceGroup_allowInline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_baseGroup), meth_KServiceGroup_baseGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_baseGroupName), meth_KServiceGroup_baseGroupName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_caption), meth_KServiceGroup_caption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childCount), meth_KServiceGroup_childCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childGroup), meth_KServiceGroup_childGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KServiceGroup_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_directoryEntryPath), meth_KServiceGroup_directoryEntryPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entries), meth_KServiceGroup_entries, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_group), meth_KServiceGroup_group, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KServiceGroup_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inlineAlias), meth_KServiceGroup_inlineAlias, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inlineValue), meth_KServiceGroup_inlineValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_layoutInfo), meth_KServiceGroup_layoutInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_noDisplay), meth_KServiceGroup_noDisplay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_relPath), meth_KServiceGroup_relPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_root), meth_KServiceGroup_root, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceEntries), meth_KServiceGroup_serviceEntries, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllowInline), meth_KServiceGroup_setAllowInline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInlineAlias), meth_KServiceGroup_setInlineAlias, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInlineValue), meth_KServiceGroup_setInlineValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLayoutInfo), meth_KServiceGroup_setLayoutInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowEmptyMenu), meth_KServiceGroup_setShowEmptyMenu, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowInlineHeader), meth_KServiceGroup_setShowInlineHeader, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEmptyMenu), meth_KServiceGroup_showEmptyMenu, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showInlineHeader), meth_KServiceGroup_showInlineHeader, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suppressGenericNames), meth_KServiceGroup_suppressGenericNames, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KServiceGroup[] = {
    {sipName_AllowSeparators, KServiceGroup::AllowSeparators, 134},
    {sipName_ExcludeNoDisplay, KServiceGroup::ExcludeNoDisplay, 134},
    {sipName_NoOptions, KServiceGroup::NoOptions, 134},
    {sipName_SortByGenericName, KServiceGroup::SortByGenericName, 134},
    {sipName_SortEntries, KServiceGroup::SortEntries, 134},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KServiceGroup = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KServiceGroup,
        {0}
    },
    sipNameNr_KServiceGroup,
    -1,
    -1,
    {0, 0, 1},
    supers_KServiceGroup,
    0,
    28, methods_KServiceGroup,
    5, enummembers_KServiceGroup,
    0, 0,
    init_KServiceGroup,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KServiceGroup,
    release_KServiceGroup,
    cast_KServiceGroup,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 2999 "sipkdecorepart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3003 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3006 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KServiceAction_setData(PyObject *, PyObject *);}
static PyObject *meth_KServiceAction_setData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QVariant * a0;
        int a0State = 0;
        KServiceAction *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KServiceAction,&sipCpp,sipType_QVariant,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceAction,sipName_setData);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceAction_data(PyObject *, PyObject *);}
static PyObject *meth_KServiceAction_data(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceAction *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceAction,&sipCpp))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->data());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceAction,sipName_data);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceAction_name(PyObject *, PyObject *);}
static PyObject *meth_KServiceAction_name(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceAction *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceAction,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceAction,sipName_name);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceAction_text(PyObject *, PyObject *);}
static PyObject *meth_KServiceAction_text(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceAction *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceAction,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->text());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceAction,sipName_text);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceAction_icon(PyObject *, PyObject *);}
static PyObject *meth_KServiceAction_icon(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceAction *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceAction,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->icon());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceAction,sipName_icon);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceAction_exec_(PyObject *, PyObject *);}
static PyObject *meth_KServiceAction_exec_(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceAction *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceAction,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->exec());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceAction,sipName_exec_);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceAction_noDisplay(PyObject *, PyObject *);}
static PyObject *meth_KServiceAction_noDisplay(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceAction *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceAction,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->noDisplay();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceAction,sipName_noDisplay);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceAction_isSeparator(PyObject *, PyObject *);}
static PyObject *meth_KServiceAction_isSeparator(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceAction *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceAction,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSeparator();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceAction,sipName_isSeparator);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KServiceAction(void *, const sipTypeDef *);}
static void *cast_KServiceAction(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KServiceAction)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KServiceAction(void *, int);}
static void release_KServiceAction(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KServiceAction *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KServiceAction(void *, const void*);}
static void assign_KServiceAction(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KServiceAction *>(sipDst) = *reinterpret_cast<const KServiceAction *>(sipSrc);
}


extern "C" {static void dealloc_KServiceAction(sipSimpleWrapper *);}
static void dealloc_KServiceAction(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KServiceAction(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KServiceAction(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KServiceAction(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KServiceAction *sipCpp = 0;

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString * a3;
        int a3State = 0;
        bool a4 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1J1J1|b",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,&a4))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceAction(*a0,*a1,*a2,*a3,a4);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceAction();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KServiceAction * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KServiceAction,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceAction(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KServiceAction[] = {
    {SIP_MLNAME_CAST(sipName_data), meth_KServiceAction_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_KServiceAction_exec_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KServiceAction_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSeparator), meth_KServiceAction_isSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KServiceAction_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_noDisplay), meth_KServiceAction_noDisplay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_KServiceAction_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_KServiceAction_text, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KServiceAction = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KServiceAction,
        {0}
    },
    sipNameNr_KServiceAction,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    8, methods_KServiceAction,
    0, 0,
    0, 0,
    init_KServiceAction,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KServiceAction,
    release_KServiceAction,
    cast_KServiceAction,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KServiceAction,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 3383 "sipkdecorepart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3387 "sipkdecorepart2.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 3402 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 3405 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 3408 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 3411 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 3414 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 3417 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 3420 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 3423 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 3426 "sipkdecorepart2.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3479 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 3482 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 3485 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 3488 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 3491 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 3494 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3497 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3500 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3503 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3506 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 3509 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3512 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 3515 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 3518 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3521 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 3524 "sipkdecorepart2.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 3527 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 3530 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 3533 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 3536 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3539 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KPluginInfo_fromServices(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_fromServices(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KService::List * a0;
        int a0State = 0;
        const KConfigGroup& a1def = KConfigGroup();
        const KConfigGroup * a1 = &a1def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J9",sipType_QList_27000600KSharedPtr_0200KService,&a0,&a0State,sipType_KConfigGroup,&a1))
        {
            KPluginInfo::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPluginInfo::List(KPluginInfo::fromServices(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KService::List *>(a0),sipType_QList_27000600KSharedPtr_0200KService,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KPluginInfo,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_fromServices);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_fromFiles(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_fromFiles(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QStringList * a0;
        int a0State = 0;
        const KConfigGroup& a1def = KConfigGroup();
        const KConfigGroup * a1 = &a1def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J9",sipType_QStringList,&a0,&a0State,sipType_KConfigGroup,&a1))
        {
            KPluginInfo::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPluginInfo::List(KPluginInfo::fromFiles(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KPluginInfo,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_fromFiles);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_fromKPartsInstanceName(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_fromKPartsInstanceName(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const KConfigGroup& a1def = KConfigGroup();
        const KConfigGroup * a1 = &a1def;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J9",sipType_QString,&a0,&a0State,sipType_KConfigGroup,&a1))
        {
            KPluginInfo::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPluginInfo::List(KPluginInfo::fromKPartsInstanceName(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KPluginInfo,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_fromKPartsInstanceName);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_isHidden(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_isHidden(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isHidden();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_isHidden);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_setPluginEnabled(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_setPluginEnabled(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KPluginInfo,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPluginEnabled(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_setPluginEnabled);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_isPluginEnabled(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_isPluginEnabled(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isPluginEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_isPluginEnabled);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_isPluginEnabledByDefault(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_isPluginEnabledByDefault(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isPluginEnabledByDefault();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_isPluginEnabledByDefault);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_property(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_property(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KPluginInfo,&sipCpp,sipType_QString,&a0,&a0State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_property);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_name(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_name(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_name);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_comment(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_comment(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->comment());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_comment);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_icon(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_icon(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->icon());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_icon);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_entryPath(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_entryPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->entryPath());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_entryPath);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_author(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_author(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->author());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_author);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_email(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_email(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->email());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_email);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_category(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_category(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->category());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_category);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_pluginName(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_pluginName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->pluginName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_pluginName);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_version(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_version(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->version());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_version);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_website(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_website(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->website());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_website);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_license(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_license(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->license());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_license);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_fullLicense(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_fullLicense(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            KAboutLicense *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAboutLicense(sipCpp->fullLicense());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_fullLicense);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_dependencies(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_dependencies(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->dependencies());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_dependencies);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_service(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_service(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(sipCpp->service());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_service);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_kcmServices(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_kcmServices(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            QList<KService::Ptr> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KService::Ptr>(sipCpp->kcmServices());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_kcmServices);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_setConfig(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_setConfig(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KConfigGroup * a0;
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KPluginInfo,&sipCpp,sipType_KConfigGroup,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setConfig(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_setConfig);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_config(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_config(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            KConfigGroup *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KConfigGroup(sipCpp->config());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_config);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_save(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_save(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KConfigGroup a0def = KConfigGroup();
        KConfigGroup * a0 = &a0def;
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J9",&sipSelf,sipType_KPluginInfo,&sipCpp,sipType_KConfigGroup,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->save(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_save);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_load(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_load(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KConfigGroup& a0def = KConfigGroup();
        const KConfigGroup * a0 = &a0def;
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J9",&sipSelf,sipType_KPluginInfo,&sipCpp,sipType_KConfigGroup,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->load(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_load);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_defaults(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_defaults(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->defaults();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_defaults);

    return NULL;
}


extern "C" {static PyObject *meth_KPluginInfo_isValid(PyObject *, PyObject *);}
static PyObject *meth_KPluginInfo_isValid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KPluginInfo,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KPluginInfo,sipName_isValid);

    return NULL;
}


extern "C" {static PyObject *slot_KPluginInfo___ge__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KPluginInfo___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    KPluginInfo *sipCpp = reinterpret_cast<KPluginInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPluginInfo));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KPluginInfo * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KPluginInfo,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->KPluginInfo::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ge_slot,sipType_KPluginInfo,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KPluginInfo___le__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KPluginInfo___le__(PyObject *sipSelf,PyObject *sipArg)
{
    KPluginInfo *sipCpp = reinterpret_cast<KPluginInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPluginInfo));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KPluginInfo * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KPluginInfo,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->KPluginInfo::operator>(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,le_slot,sipType_KPluginInfo,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KPluginInfo___gt__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KPluginInfo___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    KPluginInfo *sipCpp = reinterpret_cast<KPluginInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPluginInfo));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KPluginInfo * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KPluginInfo,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KPluginInfo::operator>(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,gt_slot,sipType_KPluginInfo,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KPluginInfo___lt__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KPluginInfo___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    KPluginInfo *sipCpp = reinterpret_cast<KPluginInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPluginInfo));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KPluginInfo * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KPluginInfo,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KPluginInfo::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,lt_slot,sipType_KPluginInfo,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KPluginInfo___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KPluginInfo___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KPluginInfo *sipCpp = reinterpret_cast<KPluginInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPluginInfo));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KPluginInfo * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KPluginInfo,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KPluginInfo::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KPluginInfo,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KPluginInfo___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KPluginInfo___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KPluginInfo *sipCpp = reinterpret_cast<KPluginInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPluginInfo));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KPluginInfo * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_KPluginInfo,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KPluginInfo::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KPluginInfo,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KPluginInfo(void *, const sipTypeDef *);}
static void *cast_KPluginInfo(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KPluginInfo)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KPluginInfo(void *, int);}
static void release_KPluginInfo(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KPluginInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KPluginInfo(void *, const void*);}
static void assign_KPluginInfo(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KPluginInfo *>(sipDst) = *reinterpret_cast<const KPluginInfo *>(sipSrc);
}


extern "C" {static void dealloc_KPluginInfo(sipSimpleWrapper *);}
static void dealloc_KPluginInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KPluginInfo(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KPluginInfo(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KPluginInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KPluginInfo *sipCpp = 0;

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const char * a1 = 0;
        PyObject *a1Keep = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|AA",sipType_QString,&a0,&a0State,&a1Keep,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPluginInfo(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);
        }
    }

    if (!sipCpp)
    {
        const KService::Ptr * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KSharedPtr_0200KService,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPluginInfo(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KService::Ptr *>(a0),sipType_KSharedPtr_0200KService,a0State);
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPluginInfo();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KPluginInfo * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KPluginInfo,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPluginInfo(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KPluginInfo[] = {
    {(void *)slot_KPluginInfo___ge__, ge_slot},
    {(void *)slot_KPluginInfo___le__, le_slot},
    {(void *)slot_KPluginInfo___gt__, gt_slot},
    {(void *)slot_KPluginInfo___lt__, lt_slot},
    {(void *)slot_KPluginInfo___ne__, ne_slot},
    {(void *)slot_KPluginInfo___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KPluginInfo[] = {
    {SIP_MLNAME_CAST(sipName_author), meth_KPluginInfo_author, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_category), meth_KPluginInfo_category, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KPluginInfo_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_KPluginInfo_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaults), meth_KPluginInfo_defaults, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dependencies), meth_KPluginInfo_dependencies, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_email), meth_KPluginInfo_email, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entryPath), meth_KPluginInfo_entryPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromFiles), meth_KPluginInfo_fromFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromKPartsInstanceName), meth_KPluginInfo_fromKPartsInstanceName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromServices), meth_KPluginInfo_fromServices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fullLicense), meth_KPluginInfo_fullLicense, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KPluginInfo_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHidden), meth_KPluginInfo_isHidden, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isPluginEnabled), meth_KPluginInfo_isPluginEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isPluginEnabledByDefault), meth_KPluginInfo_isPluginEnabledByDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KPluginInfo_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kcmServices), meth_KPluginInfo_kcmServices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_license), meth_KPluginInfo_license, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_load), meth_KPluginInfo_load, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KPluginInfo_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginName), meth_KPluginInfo_pluginName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KPluginInfo_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_KPluginInfo_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_service), meth_KPluginInfo_service, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setConfig), meth_KPluginInfo_setConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginEnabled), meth_KPluginInfo_setPluginEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_version), meth_KPluginInfo_version, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_website), meth_KPluginInfo_website, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KPluginInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KPluginInfo,
        {0}
    },
    sipNameNr_KPluginInfo,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    slots_KPluginInfo,
    29, methods_KPluginInfo,
    0, 0,
    0, 0,
    init_KPluginInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPluginInfo,
    release_KPluginInfo,
    cast_KPluginInfo,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KPluginInfo,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetypetrader.sip"
#include <kmimetypetrader.h>
#line 4730 "sipkdecorepart2.cpp"

#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 4746 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 4749 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 4752 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 4755 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 4758 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 4761 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 4764 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 4767 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4770 "sipkdecorepart2.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4823 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 4826 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 4829 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 4832 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 4835 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 4838 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 4841 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4844 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4847 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 4850 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 4853 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 4856 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 4859 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 4862 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 4865 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4868 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 4871 "sipkdecorepart2.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 4874 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 4877 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 4880 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 4883 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KMimeTypeTrader_query(PyObject *, PyObject *);}
static PyObject *meth_KMimeTypeTrader_query(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString::fromLatin1("Application");
        const QString * a1 = &a1def;
        int a1State = 0;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        KMimeTypeTrader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1J1",&sipSelf,sipType_KMimeTypeTrader,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            KService::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(sipCpp->query(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeTypeTrader,sipName_query);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeTypeTrader_preferredService(PyObject *, PyObject *);}
static PyObject *meth_KMimeTypeTrader_preferredService(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString::fromLatin1("Application");
        const QString * a1 = &a1def;
        int a1State = 0;
        KMimeTypeTrader *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_KMimeTypeTrader,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            KService::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(sipCpp->preferredService(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KService,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeTypeTrader,sipName_preferredService);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeTypeTrader_self(PyObject *, PyObject *);}
static PyObject *meth_KMimeTypeTrader_self(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KMimeTypeTrader *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KMimeTypeTrader::self();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KMimeTypeTrader,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeTypeTrader,sipName_self);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KMimeTypeTrader(void *, const sipTypeDef *);}
static void *cast_KMimeTypeTrader(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KMimeTypeTrader)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KMimeTypeTrader(void *, int);}
static void release_KMimeTypeTrader(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KMimeTypeTrader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KMimeTypeTrader(sipSimpleWrapper *);}
static void dealloc_KMimeTypeTrader(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KMimeTypeTrader(sipSelf->u.cppPtr,0);
    }
}


static PyMethodDef methods_KMimeTypeTrader[] = {
    {SIP_MLNAME_CAST(sipName_preferredService), meth_KMimeTypeTrader_preferredService, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_query), meth_KMimeTypeTrader_query, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KMimeTypeTrader_self, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KMimeTypeTrader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KMimeTypeTrader,
        {0}
    },
    sipNameNr_KMimeTypeTrader,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    3, methods_KMimeTypeTrader,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMimeTypeTrader,
    release_KMimeTypeTrader,
    cast_KMimeTypeTrader,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 5078 "sipkdecorepart2.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kdesktopfile.sip"
#include <kdesktopfile.h>
#line 5082 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 5085 "sipkdecorepart2.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5138 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5141 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 5144 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 5147 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5150 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5153 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 5156 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5159 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5162 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5165 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5168 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 5171 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5174 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5177 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 5180 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5183 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 5186 "sipkdecorepart2.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 5189 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 5192 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 5195 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 5198 "sipkdecorepart2.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5213 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 5216 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 5219 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 5222 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 5225 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 5228 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 5231 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5234 "sipkdecorepart2.cpp"
#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 5241 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5244 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5247 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KServiceType_comment(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_comment(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceType,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->comment());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_comment);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_desktopEntryPath(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_desktopEntryPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceType,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->desktopEntryPath());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_desktopEntryPath);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_isDerived(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_isDerived(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceType,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDerived();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_isDerived);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_parentServiceType(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_parentServiceType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceType,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->parentServiceType());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_parentServiceType);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_inherits(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_inherits(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KServiceType,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->inherits(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_inherits);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_propertyDef(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_propertyDef(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KServiceType,&sipCpp,sipType_QString,&a0,&a0State))
        {
            QVariant::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->propertyDef(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(sipRes,sipType_QVariant_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_propertyDef);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_propertyDefNames(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_propertyDefNames(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceType,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->propertyDefNames());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_propertyDefNames);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_propertyDefs(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_propertyDefs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceType,&sipCpp))
        {
            QMap<QString,QVariant::Type> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap<QString,QVariant::Type>(sipCpp->propertyDefs());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QMap_0200QString_0500QVariant_Type,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_propertyDefs);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_parentType(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_parentType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceType,&sipCpp))
        {
            KServiceType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceType::Ptr(sipCpp->parentType());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KServiceType,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_parentType);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_setServiceOffersOffset(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_setServiceOffersOffset(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KServiceType,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setServiceOffersOffset(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_setServiceOffersOffset);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_serviceOffersOffset(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_serviceOffersOffset(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KServiceType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KServiceType,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serviceOffersOffset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_serviceOffersOffset);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_serviceType(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_serviceType(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KServiceType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceType::Ptr(KServiceType::serviceType(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KServiceType,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_serviceType);

    return NULL;
}


extern "C" {static PyObject *meth_KServiceType_allServiceTypes(PyObject *, PyObject *);}
static PyObject *meth_KServiceType_allServiceTypes(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KServiceType::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceType::List(KServiceType::allServiceTypes());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KServiceType,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KServiceType,sipName_allServiceTypes);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KServiceType(void *, const sipTypeDef *);}
static void *cast_KServiceType(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KServiceType)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KSycocaEntry)->ctd_cast((KSycocaEntry *)(KServiceType *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KServiceType(void *, int);}
static void release_KServiceType(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KServiceType *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KServiceType(sipSimpleWrapper *);}
static void dealloc_KServiceType(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KServiceType(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KServiceType(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KServiceType(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KServiceType *sipCpp = 0;

    if (!sipCpp)
    {
        KDesktopFile * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_KDesktopFile,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceType(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        QDataStream * a0;
        int a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9i",sipType_QDataStream,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceType(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KServiceType[] = {{167, 255, 1}};


static PyMethodDef methods_KServiceType[] = {
    {SIP_MLNAME_CAST(sipName_allServiceTypes), meth_KServiceType_allServiceTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KServiceType_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_desktopEntryPath), meth_KServiceType_desktopEntryPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inherits), meth_KServiceType_inherits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDerived), meth_KServiceType_isDerived, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentServiceType), meth_KServiceType_parentServiceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentType), meth_KServiceType_parentType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyDef), meth_KServiceType_propertyDef, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyDefNames), meth_KServiceType_propertyDefNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyDefs), meth_KServiceType_propertyDefs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceOffersOffset), meth_KServiceType_serviceOffersOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceType), meth_KServiceType_serviceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setServiceOffersOffset), meth_KServiceType_setServiceOffersOffset, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KServiceType = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KServiceType,
        {0}
    },
    sipNameNr_KServiceType,
    -1,
    -1,
    {0, 0, 1},
    supers_KServiceType,
    0,
    13, methods_KServiceType,
    0, 0,
    0, 0,
    init_KServiceType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KServiceType,
    release_KServiceType,
    cast_KServiceType,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 5762 "sipkdecorepart2.cpp"

#line 42 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 5766 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5769 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5772 "sipkdecorepart2.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5787 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 5790 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 5793 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 5796 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 5799 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 5802 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 5805 "sipkdecorepart2.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5858 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5861 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 5864 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 5867 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5870 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5873 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 5876 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5879 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5882 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5885 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5888 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 5891 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5894 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5897 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 5900 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 5903 "sipkdecorepart2.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 5906 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 5909 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 5912 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 5915 "sipkdecorepart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5918 "sipkdecorepart2.cpp"
#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 5925 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5928 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5931 "sipkdecorepart2.cpp"


class sipKMimeType : public KMimeType
{
public:
    sipKMimeType(QDataStream&,int);
    sipKMimeType(const QString&,const QString&,const QString&);
    ~sipKMimeType();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKMimeType(const sipKMimeType &);
    sipKMimeType &operator = (const sipKMimeType &);
};

sipKMimeType::sipKMimeType(QDataStream& a0,int a1): KMimeType(a0,a1), sipPySelf(0)
{
}

sipKMimeType::sipKMimeType(const QString& a0,const QString& a1,const QString& a2): KMimeType(a0,a1,a2), sipPySelf(0)
{
}

sipKMimeType::~sipKMimeType()
{
    sipCommonDtor(sipPySelf);
}


extern "C" {static PyObject *meth_KMimeType_iconName(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_iconName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KUrl& a0def = KUrl();
        const KUrl * a0 = &a0def;
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J9",&sipSelf,sipType_KMimeType,&sipCpp,sipType_KUrl,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->iconName(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_iconName);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_iconNameForUrl(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_iconNameForUrl(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KUrl * a0;
        mode_t a1 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9|u",sipType_KUrl,&a0,&a1))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMimeType::iconNameForUrl(*a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_iconNameForUrl);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_favIconForUrl(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_favIconForUrl(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_KUrl,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMimeType::favIconForUrl(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_favIconForUrl);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_comment(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_comment(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KUrl& a0def = KUrl();
        const KUrl * a0 = &a0def;
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J9",&sipSelf,sipType_KMimeType,&sipCpp,sipType_KUrl,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->comment(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_comment);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_patterns(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_patterns(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KMimeType,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->patterns());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_patterns);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_mimeType(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_mimeType(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KMimeType::FindByNameOption a1 = KMimeType::DontResolveAlias;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|E",sipType_QString,&a0,&a0State,sipType_KMimeType_FindByNameOption,&a1))
        {
            KMimeType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(KMimeType::mimeType(*a0,a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KMimeType,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_mimeType);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_findByUrl(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_findByUrl(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KUrl * a0;
        mode_t a1 = 0;
        bool a2 = 0;
        bool a3 = 0;
        int a4;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9|ubb",sipType_KUrl,&a0,&a1,&a2,&a3))
        {
            KMimeType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(KMimeType::findByUrl(*a0,a1,a2,a3,&a4));
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KMimeType,NULL);
            delete sipRes;
            return sipBuildResult(0,"(Ri)",sipResObj,a4);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_findByUrl);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_findByPath(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_findByPath(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        mode_t a1 = 0;
        bool a2 = 0;
        int a3;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|ub",sipType_QString,&a0,&a0State,&a1,&a2))
        {
            KMimeType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(KMimeType::findByPath(*a0,a1,a2,&a3));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KMimeType,NULL);
            delete sipRes;
            return sipBuildResult(0,"(Ri)",sipResObj,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_findByPath);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_findByContent(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_findByContent(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;
        int a1;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QByteArray,&a0,&a0State))
        {
            KMimeType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(KMimeType::findByContent(*a0,&a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KMimeType,NULL);
            delete sipRes;
            return sipBuildResult(0,"(Ri)",sipResObj,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_findByContent);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_findByNameAndContent(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_findByNameAndContent(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        mode_t a2 = 0;
        int a3;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|u",sipType_QString,&a0,&a0State,sipType_QByteArray,&a1,&a1State,&a2))
        {
            KMimeType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(KMimeType::findByNameAndContent(*a0,*a1,a2,&a3));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KMimeType,NULL);
            delete sipRes;
            return sipBuildResult(0,"(Ri)",sipResObj,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_findByNameAndContent);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_findByFileContent(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_findByFileContent(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        int a1;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KMimeType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(KMimeType::findByFileContent(*a0,&a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KMimeType,NULL);
            delete sipRes;
            return sipBuildResult(0,"(Ri)",sipResObj,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_findByFileContent);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_isBinaryData(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_isBinaryData(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KMimeType::isBinaryData(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_isBinaryData);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_isBufferBinaryData(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_isBufferBinaryData(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QByteArray * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QByteArray,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KMimeType::isBufferBinaryData(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_isBufferBinaryData);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_allMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_allMimeTypes(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KMimeType::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::List(KMimeType::allMimeTypes());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_27000600KSharedPtr_0200KMimeType,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_allMimeTypes);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_defaultMimeType(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_defaultMimeType(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMimeType::defaultMimeType());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_defaultMimeType);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_defaultMimeTypePtr(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_defaultMimeTypePtr(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KMimeType::Ptr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(KMimeType::defaultMimeTypePtr());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KMimeType,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_defaultMimeTypePtr);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_isDefault(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_isDefault(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KMimeType,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDefault();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_isDefault);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_parentMimeType(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_parentMimeType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KMimeType,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->parentMimeType());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_parentMimeType);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_parentMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_parentMimeTypes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KMimeType,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->parentMimeTypes());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_parentMimeTypes);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_allParentMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_allParentMimeTypes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KMimeType,&sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->allParentMimeTypes());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_allParentMimeTypes);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_is_(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_is_(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KMimeType,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->is(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_is_);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_userSpecifiedIconName(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_userSpecifiedIconName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KMimeType,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->userSpecifiedIconName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_userSpecifiedIconName);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_mainExtension(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_mainExtension(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KMimeType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KMimeType,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->mainExtension());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_mainExtension);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_extractKnownExtension(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_extractKnownExtension(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMimeType::extractKnownExtension(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_extractKnownExtension);

    return NULL;
}


extern "C" {static PyObject *meth_KMimeType_sharedMimeInfoVersion(PyObject *, PyObject *);}
static PyObject *meth_KMimeType_sharedMimeInfoVersion(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KMimeType::sharedMimeInfoVersion();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KMimeType,sipName_sharedMimeInfoVersion);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KMimeType(void *, const sipTypeDef *);}
static void *cast_KMimeType(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KMimeType)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KServiceType)->ctd_cast((KServiceType *)(KMimeType *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KMimeType(void *, int);}
static void release_KMimeType(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKMimeType *>(sipCppV);
    else
        delete reinterpret_cast<KMimeType *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KMimeType(sipSimpleWrapper *);}
static void dealloc_KMimeType(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKMimeType *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KMimeType(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KMimeType(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KMimeType(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKMimeType *sipCpp = 0;

    if (!sipCpp)
    {
        QDataStream * a0;
        int a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9i",sipType_QDataStream,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKMimeType(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKMimeType(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KMimeType[] = {{136, 255, 1}};


static PyMethodDef methods_KMimeType[] = {
    {SIP_MLNAME_CAST(sipName_allMimeTypes), meth_KMimeType_allMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allParentMimeTypes), meth_KMimeType_allParentMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KMimeType_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultMimeType), meth_KMimeType_defaultMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultMimeTypePtr), meth_KMimeType_defaultMimeTypePtr, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extractKnownExtension), meth_KMimeType_extractKnownExtension, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_favIconForUrl), meth_KMimeType_favIconForUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findByContent), meth_KMimeType_findByContent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findByFileContent), meth_KMimeType_findByFileContent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findByNameAndContent), meth_KMimeType_findByNameAndContent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findByPath), meth_KMimeType_findByPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findByUrl), meth_KMimeType_findByUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iconName), meth_KMimeType_iconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iconNameForUrl), meth_KMimeType_iconNameForUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBinaryData), meth_KMimeType_isBinaryData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBufferBinaryData), meth_KMimeType_isBufferBinaryData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDefault), meth_KMimeType_isDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_is_), meth_KMimeType_is_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mainExtension), meth_KMimeType_mainExtension, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeType), meth_KMimeType_mimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentMimeType), meth_KMimeType_parentMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentMimeTypes), meth_KMimeType_parentMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_patterns), meth_KMimeType_patterns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sharedMimeInfoVersion), meth_KMimeType_sharedMimeInfoVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_userSpecifiedIconName), meth_KMimeType_userSpecifiedIconName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KMimeType[] = {
    {sipName_DontResolveAlias, KMimeType::DontResolveAlias, 110},
    {sipName_ResolveAliases, KMimeType::ResolveAliases, 110},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KMimeType = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KMimeType,
        {0}
    },
    sipNameNr_KMimeType,
    -1,
    -1,
    {0, 0, 1},
    supers_KMimeType,
    0,
    25, methods_KMimeType,
    2, enummembers_KMimeType,
    0, 0,
    init_KMimeType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMimeType,
    release_KMimeType,
    cast_KMimeType,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 253 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 6872 "sipkdecorepart2.cpp"

#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 6876 "sipkdecorepart2.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KSslErrorUiData(void *, const sipTypeDef *);}
static void *cast_KSslErrorUiData(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KSslErrorUiData)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslErrorUiData(void *, int);}
static void release_KSslErrorUiData(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KSslErrorUiData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslErrorUiData(void *, const void*);}
static void assign_KSslErrorUiData(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KSslErrorUiData *>(sipDst) = *reinterpret_cast<const KSslErrorUiData *>(sipSrc);
}


extern "C" {static void dealloc_KSslErrorUiData(sipSimpleWrapper *);}
static void dealloc_KSslErrorUiData(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSslErrorUiData(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KSslErrorUiData(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KSslErrorUiData(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KSslErrorUiData *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslErrorUiData();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KTcpSocket * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_KTcpSocket,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslErrorUiData(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KSslErrorUiData * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KSslErrorUiData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslErrorUiData(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


pyqt4ClassTypeDef pyqt4Type_kdecore_KSslErrorUiData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslErrorUiData,
        {0}
    },
    sipNameNr_KSslErrorUiData,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    0, 0,
    0, 0,
    0, 0,
    init_KSslErrorUiData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslErrorUiData,
    release_KSslErrorUiData,
    cast_KSslErrorUiData,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KSslErrorUiData,
    0,
    0,
    0
};

#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7009 "sipkdecorepart2.cpp"

#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7013 "sipkdecorepart2.cpp"


extern "C" {static int slot_KTcpSocket_SslVersions___bool__(PyObject *sipSelf);}
static int slot_KTcpSocket_SslVersions___bool__(PyObject *sipSelf)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 7031 "sipkdecorepart2.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTcpSocket_SslVersions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTcpSocket::SslVersions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTcpSocket_SslVersions,&a0,&a0State))
        {
            bool sipRes = 0;

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 7059 "sipkdecorepart2.cpp"

            sipReleaseType(const_cast<KTcpSocket::SslVersions *>(a0),sipType_KTcpSocket_SslVersions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KTcpSocket_SslVersions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTcpSocket_SslVersions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTcpSocket::SslVersions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTcpSocket_SslVersions,&a0,&a0State))
        {
            bool sipRes = 0;

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 7091 "sipkdecorepart2.cpp"

            sipReleaseType(const_cast<KTcpSocket::SslVersions *>(a0),sipType_KTcpSocket_SslVersions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KTcpSocket_SslVersions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___invert__(PyObject *sipSelf);}
static PyObject *slot_KTcpSocket_SslVersions___invert__(PyObject *sipSelf)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;


    {
        {
            KTcpSocket::SslVersions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTcpSocket::SslVersions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTcpSocket_SslVersions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket::SslVersions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_KTcpSocket_SslVersions,&a0,&a0State,&a1))
        {
            KTcpSocket::SslVersions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTcpSocket::SslVersions((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);

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

    return sipPySlotExtend(&sipModuleAPI_kdecore,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTcpSocket_SslVersions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket::SslVersions * a0;
        int a0State = 0;
        KTcpSocket::SslVersions * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KTcpSocket_SslVersions,&a0,&a0State,sipType_KTcpSocket_SslVersions,&a1,&a1State))
        {
            KTcpSocket::SslVersions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTcpSocket::SslVersions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);
            sipReleaseType(a1,sipType_KTcpSocket_SslVersions,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_kdecore,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTcpSocket_SslVersions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket::SslVersions * a0;
        int a0State = 0;
        KTcpSocket::SslVersions * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KTcpSocket_SslVersions,&a0,&a0State,sipType_KTcpSocket_SslVersions,&a1,&a1State))
        {
            KTcpSocket::SslVersions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTcpSocket::SslVersions((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);
            sipReleaseType(a1,sipType_KTcpSocket_SslVersions,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_kdecore,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___int__(PyObject *sipSelf);}
static PyObject *slot_KTcpSocket_SslVersions___int__(PyObject *sipSelf)
{
    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTcpSocket_SslVersions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KTcpSocket::SslVersions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTcpSocket_SslVersions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTcpSocket::SslVersions::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___ior__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTcpSocket_SslVersions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KTcpSocket::SslVersions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTcpSocket_SslVersions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTcpSocket::SslVersions::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTcpSocket_SslVersions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTcpSocket_SslVersions___iand__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTcpSocket_SslVersions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KTcpSocket::SslVersions *sipCpp = reinterpret_cast<KTcpSocket::SslVersions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTcpSocket_SslVersions));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTcpSocket::SslVersions::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTcpSocket_SslVersions(void *, const sipTypeDef *);}
static void *cast_KTcpSocket_SslVersions(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KTcpSocket_SslVersions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTcpSocket_SslVersions(void *, int);}
static void release_KTcpSocket_SslVersions(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KTcpSocket::SslVersions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTcpSocket_SslVersions(void *, const void*);}
static void assign_KTcpSocket_SslVersions(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTcpSocket::SslVersions *>(sipDst) = *reinterpret_cast<const KTcpSocket::SslVersions *>(sipSrc);
}


extern "C" {static void dealloc_KTcpSocket_SslVersions(sipSimpleWrapper *);}
static void dealloc_KTcpSocket_SslVersions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KTcpSocket_SslVersions(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KTcpSocket_SslVersions(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTcpSocket_SslVersions(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTcpSocket::SslVersions *sipCpp = 0;

    if (!sipCpp)
    {
        const KTcpSocket::SslVersions * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KTcpSocket_SslVersions,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTcpSocket::SslVersions(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KTcpSocket::SslVersions *>(a0),sipType_KTcpSocket_SslVersions,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTcpSocket::SslVersions(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTcpSocket::SslVersions();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


extern "C" {static int convertTo_KTcpSocket_SslVersions(PyObject *, void **, int *, PyObject *);}
static int convertTo_KTcpSocket_SslVersions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KTcpSocket::SslVersions **sipCppPtr = reinterpret_cast<KTcpSocket::SslVersions **>(sipCppPtrV);

#line 276 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KTcpSocket::SslVersions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersion)) ||
            sipCanConvertToType(sipPy, sipType_KTcpSocket_SslVersions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTcpSocket_SslVersion)))
{
    *sipCppPtr = new KTcpSocket::SslVersions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTcpSocket::SslVersions *>(sipConvertToType(sipPy, sipType_KTcpSocket_SslVersions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7462 "sipkdecorepart2.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTcpSocket_SslVersions[] = {
    {(void *)slot_KTcpSocket_SslVersions___bool__, bool_slot},
    {(void *)slot_KTcpSocket_SslVersions___ne__, ne_slot},
    {(void *)slot_KTcpSocket_SslVersions___eq__, eq_slot},
    {(void *)slot_KTcpSocket_SslVersions___invert__, invert_slot},
    {(void *)slot_KTcpSocket_SslVersions___and__, and_slot},
    {(void *)slot_KTcpSocket_SslVersions___xor__, xor_slot},
    {(void *)slot_KTcpSocket_SslVersions___or__, or_slot},
    {(void *)slot_KTcpSocket_SslVersions___int__, int_slot},
    {(void *)slot_KTcpSocket_SslVersions___ixor__, ixor_slot},
    {(void *)slot_KTcpSocket_SslVersions___ior__, ior_slot},
    {(void *)slot_KTcpSocket_SslVersions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTcpSocket_SslVersions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTcpSocket__SslVersions,
        {0}
    },
    sipNameNr_SslVersions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {174, 255, 0},
    0,
    slots_KTcpSocket_SslVersions,
    0, 0,
    0, 0,
    0, 0,
    init_KTcpSocket_SslVersions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTcpSocket_SslVersions,
    release_KTcpSocket_SslVersions,
    cast_KTcpSocket_SslVersions,
    convertTo_KTcpSocket_SslVersions,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTcpSocket_SslVersions,
    0,
    1,
    0
};

#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7530 "sipkdecorepart2.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 7534 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 7537 "sipkdecorepart2.cpp"
#line 44 "/usr/local/share/py-sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 7540 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7543 "sipkdecorepart2.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7546 "sipkdecorepart2.cpp"
#line 44 "/usr/local/share/py-sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 7549 "sipkdecorepart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7552 "sipkdecorepart2.cpp"
#line 45 "/usr/local/share/py-sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 7555 "sipkdecorepart2.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7608 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7611 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 7614 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 7617 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7620 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7623 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 7626 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7629 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7632 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 7635 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7638 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 7641 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7644 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 7647 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 7650 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7653 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 7656 "sipkdecorepart2.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7659 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7662 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 7665 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 7668 "sipkdecorepart2.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7683 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 7686 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 7689 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 7692 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 7695 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 7698 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 7701 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 7704 "sipkdecorepart2.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7721 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 7724 "sipkdecorepart2.cpp"
#line 45 "/usr/local/share/py-sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 7727 "sipkdecorepart2.cpp"
#line 44 "/usr/local/share/py-sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 7730 "sipkdecorepart2.cpp"
#line 50 "/usr/local/share/py-sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 7733 "sipkdecorepart2.cpp"
#line 84 "/usr/local/share/py-sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 7736 "sipkdecorepart2.cpp"
#line 45 "/usr/local/share/py-sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 7739 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 7742 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7745 "sipkdecorepart2.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7748 "sipkdecorepart2.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7751 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7754 "sipkdecorepart2.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 7785 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 7788 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 7791 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 7794 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 7797 "sipkdecorepart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7800 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 7803 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7806 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7809 "sipkdecorepart2.cpp"


class sipKTcpSocket : public KTcpSocket
{
public:
    sipKTcpSocket(QObject *);
    virtual ~sipKTcpSocket();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    qint64 sipProtect_readData(char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtect_writeData(const char *,PY_LONG_LONG);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool atEnd() const;
    qint64 bytesAvailable() const;
    qint64 bytesToWrite() const;
    bool canReadLine() const;
    void close();
    bool isSequential() const;
    bool open(QIODevice::OpenMode);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    qint64 pos() const;
    qint64 size() const;
    bool seek(qint64);
    bool reset();
    qint64 readData(char *,qint64);
    qint64 readLineData(char *,qint64);
    qint64 writeData(const char *,PY_LONG_LONG);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTcpSocket(const sipKTcpSocket &);
    sipKTcpSocket &operator = (const sipKTcpSocket &);

    char sipPyMethods[23];
};

sipKTcpSocket::sipKTcpSocket(QObject *a0): KTcpSocket(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTcpSocket::~sipKTcpSocket()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKTcpSocket::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KTcpSocket);
}

int sipKTcpSocket::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KTcpSocket::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KTcpSocket,_c,_id,_a);

    return _id;
}

void *sipKTcpSocket::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KTcpSocket,_clname)) ? this : KTcpSocket::qt_metacast(_clname);
}

bool sipKTcpSocket::atEnd() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_atEnd);

    if (!meth)
        return KTcpSocket::atEnd();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

qint64 sipKTcpSocket::bytesAvailable() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!meth)
        return KTcpSocket::bytesAvailable();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

qint64 sipKTcpSocket::bytesToWrite() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!meth)
        return KTcpSocket::bytesToWrite();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

bool sipKTcpSocket::canReadLine() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_canReadLine);

    if (!meth)
        return KTcpSocket::canReadLine();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKTcpSocket::close()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_close);

    if (!meth)
    {
        KTcpSocket::close();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipKTcpSocket::isSequential() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_isSequential);

    if (!meth)
        return KTcpSocket::isSequential();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTcpSocket::open(QIODevice::OpenMode a0)
{
    typedef bool (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_open);

    if (!meth)
        return KTcpSocket::open(a0);

    return ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,meth,a0);
}

bool sipKTcpSocket::waitForBytesWritten(int a0)
{
    typedef bool (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!meth)
        return KTcpSocket::waitForBytesWritten(a0);

    return ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

bool sipKTcpSocket::waitForReadyRead(int a0)
{
    typedef bool (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!meth)
        return KTcpSocket::waitForReadyRead(a0);

    return ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

qint64 sipKTcpSocket::pos() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_pos);

    if (!meth)
        return QIODevice::pos();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

qint64 sipKTcpSocket::size() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_size);

    if (!meth)
        return QIODevice::size();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

bool sipKTcpSocket::seek(qint64 a0)
{
    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_seek);

    if (!meth)
        return QIODevice::seek(a0);

    return ((sipVH_QtCore_28)(sipModuleAPI_kdecore_QtCore->em_virthandlers[28]))(sipGILState,meth,a0);
}

bool sipKTcpSocket::reset()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_reset);

    if (!meth)
        return QIODevice::reset();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

qint64 sipKTcpSocket::readData(char *a0,qint64 a1)
{
    typedef PY_LONG_LONG (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,sipName_KTcpSocket,sipName_readData);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_27)(sipModuleAPI_kdecore_QtCore->em_virthandlers[27]))(sipGILState,meth,a0,a1);
}

qint64 sipKTcpSocket::readLineData(char *a0,qint64 a1)
{
    typedef PY_LONG_LONG (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readLineData);

    if (!meth)
        return QIODevice::readLineData(a0,a1);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState,meth,a0,a1);
}

qint64 sipKTcpSocket::writeData(const char *a0,PY_LONG_LONG a1)
{
    typedef PY_LONG_LONG (*sipVH_QtCore_14)(sip_gilstate_t,PyObject *,const char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,sipName_KTcpSocket,sipName_writeData);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_14)(sipModuleAPI_kdecore_QtCore->em_virthandlers[14]))(sipGILState,meth,a0,a1);
}

bool sipKTcpSocket::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_kdecore_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKTcpSocket::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKTcpSocket::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_kdecore_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKTcpSocket::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKTcpSocket::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kdecore_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTcpSocket::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTcpSocket::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKTcpSocket::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKTcpSocket::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKTcpSocket::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKTcpSocket::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKTcpSocket::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKTcpSocket::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

qint64 sipKTcpSocket::sipProtect_readData(char *a0,qint64 a1)
{
    return readData(a0,a1);
}

qint64 sipKTcpSocket::sipProtectVirt_readLineData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QIODevice::readLineData(a0,a1) : readLineData(a0,a1));
}

qint64 sipKTcpSocket::sipProtect_writeData(const char *a0,PY_LONG_LONG a1)
{
    return writeData(a0,a1);
}

void sipKTcpSocket::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipKTcpSocket::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}


extern "C" {static PyObject *meth_KTcpSocket_receivers(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 8351 "sipkdecorepart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_readData(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_readData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pn",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KTcpSocket, sipName_readData);
                return NULL;
            }

#line 185 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->sipProtect_readData(s, a0);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 8556 "sipkdecorepart2.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_readData);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_readLineData(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_readLineData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pn",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 246 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 8618 "sipkdecorepart2.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_readLineData);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_writeData(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_writeData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const char * a0;
        SIP_SSIZE_T a1;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pk",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0,&a1))
        {
            qint64 sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_KTcpSocket, sipName_writeData);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_writeData(a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_writeData);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setOpenMode(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setOpenMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QIODevice_OpenMode,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setOpenMode);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setErrorString(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setErrorString(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipKTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setErrorString);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_atEnd(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_atEnd(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::atEnd() : sipCpp->atEnd());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_atEnd);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_bytesAvailable(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_bytesAvailable(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::bytesAvailable() : sipCpp->bytesAvailable());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_bytesAvailable);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_bytesToWrite(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_bytesToWrite(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::bytesToWrite() : sipCpp->bytesToWrite());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_bytesToWrite);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_canReadLine(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_canReadLine(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::canReadLine() : sipCpp->canReadLine());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_canReadLine);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_close(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_close(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTcpSocket::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_close);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_isSequential(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_isSequential(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::isSequential() : sipCpp->isSequential());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_isSequential);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_open(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_open(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QIODevice_OpenMode,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::open(*a0) : sipCpp->open(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_open);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForBytesWritten(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForBytesWritten(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::waitForBytesWritten(a0) : sipCpp->waitForBytesWritten(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_waitForBytesWritten);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForReadyRead(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForReadyRead(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = 30000;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|i",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTcpSocket::waitForReadyRead(a0) : sipCpp->waitForReadyRead(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_waitForReadyRead);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_abort(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_abort(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_abort);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_connectToHost(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_connectToHost(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        quint16 a1;
        KTcpSocket::ProxyPolicy a2 = KTcpSocket::AutoProxy;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1t|E",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_KTcpSocket_ProxyPolicy,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QHostAddress * a0;
        quint16 a1;
        KTcpSocket::ProxyPolicy a2 = KTcpSocket::AutoProxy;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9t|E",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QHostAddress,&a0,&a1,sipType_KTcpSocket_ProxyPolicy,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KUrl * a0;
        KTcpSocket::ProxyPolicy a1 = KTcpSocket::AutoProxy;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|E",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_KUrl,&a0,sipType_KTcpSocket_ProxyPolicy,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_connectToHost);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_disconnectFromHost(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_disconnectFromHost(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->disconnectFromHost();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_disconnectFromHost);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_error(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_error(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            KTcpSocket::Error sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_Error);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_error);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_sslErrors(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_sslErrors(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QList<KSslError> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KSslError>(sipCpp->sslErrors());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KSslError,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_sslErrors);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_flush(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_flush(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->flush();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_flush);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_isValid(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_isValid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_isValid);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_localAddress(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_localAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QHostAddress *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->localAddress());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_localAddress);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_peerAddress(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_peerAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QHostAddress *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->peerAddress());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_peerAddress);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_peerName(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_peerName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->peerName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_peerName);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_peerPort(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_peerPort(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerPort();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_peerPort);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_proxy(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_proxy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QNetworkProxy *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(sipCpp->proxy());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_proxy);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_readBufferSize(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_readBufferSize(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readBufferSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_readBufferSize);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setProxy(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setProxy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QNetworkProxy * a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QNetworkProxy,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProxy(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setProxy);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setReadBufferSize(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setReadBufferSize(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        qint64 a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bn",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReadBufferSize(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setReadBufferSize);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_state(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_state(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            KTcpSocket::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_State);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_state);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForConnected(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForConnected(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0 = 30000;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|i",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForConnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_waitForConnected);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForDisconnected(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForDisconnected(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0 = 30000;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|i",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForDisconnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_waitForDisconnected);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_addCaCertificate(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_addCaCertificate(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QSslCertificate * a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QSslCertificate,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCaCertificate(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_addCaCertificate);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_addCaCertificates(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_addCaCertificates(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QList<QSslCertificate> * a0;
        int a0State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QList_0200QSslCertificate,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCaCertificates(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0200QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_addCaCertificates);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_caCertificates(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_caCertificates(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QList<QSslCertificate> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(sipCpp->caCertificates());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200QSslCertificate,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_caCertificates);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_ciphers(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_ciphers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QList<KSslCipher> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KSslCipher>(sipCpp->ciphers());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KSslCipher,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_ciphers);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_connectToHostEncrypted(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_connectToHostEncrypted(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode * a2 = &a2def;
        int a2State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1t|J1",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QIODevice_OpenMode,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHostEncrypted(*a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_connectToHostEncrypted);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_localCertificate(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_localCertificate(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QSslCertificate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->localCertificate());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_localCertificate);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_peerCertificateChain(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_peerCertificateChain(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QList<QSslCertificate> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(sipCpp->peerCertificateChain());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200QSslCertificate,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_peerCertificateChain);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_privateKey(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_privateKey(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            KSslKey *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSslKey(sipCpp->privateKey());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_privateKey);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_sessionCipher(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_sessionCipher(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            KSslCipher *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSslCipher(sipCpp->sessionCipher());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_sessionCipher);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setCaCertificates(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setCaCertificates(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QList<QSslCertificate> * a0;
        int a0State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QList_0200QSslCertificate,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCaCertificates(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0200QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setCaCertificates);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setCiphers(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setCiphers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QList<KSslCipher> * a0;
        int a0State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QList_0200KSslCipher,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCiphers(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<KSslCipher> *>(a0),sipType_QList_0200KSslCipher,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setCiphers);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setLocalCertificate(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setLocalCertificate(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QSslCertificate * a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QSslCertificate,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        QSsl::EncodingFormat a1 = QSsl::Pem;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|E",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QString,&a0,&a0State,sipType_QSsl_EncodingFormat,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setLocalCertificate);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setPrivateKey(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setPrivateKey(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KSslKey * a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_KSslKey,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        KSslKey::Algorithm a1 = KSslKey::Rsa;
        QSsl::EncodingFormat a2 = QSsl::Pem;
        const QByteArray& a3def = QByteArray();
        const QByteArray * a3 = &a3def;
        int a3State = 0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|EEJ1",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_QString,&a0,&a0State,sipType_KSslKey_Algorithm,&a1,sipType_QSsl_EncodingFormat,&a2,sipType_QByteArray,&a3,&a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setPrivateKey);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_setAdvertisedSslVersion(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_setAdvertisedSslVersion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket::SslVersion a0;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KTcpSocket,&sipCpp,sipType_KTcpSocket_SslVersion,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAdvertisedSslVersion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_setAdvertisedSslVersion);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_advertisedSslVersion(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_advertisedSslVersion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            KTcpSocket::SslVersion sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->advertisedSslVersion();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_SslVersion);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_advertisedSslVersion);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_negotiatedSslVersion(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_negotiatedSslVersion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            KTcpSocket::SslVersion sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->negotiatedSslVersion();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_SslVersion);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_negotiatedSslVersion);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_negotiatedSslVersionName(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_negotiatedSslVersionName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->negotiatedSslVersionName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_negotiatedSslVersionName);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_waitForEncrypted(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_waitForEncrypted(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0 = 30000;
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|i",&sipSelf,sipType_KTcpSocket,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForEncrypted(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_waitForEncrypted);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_encryptionMode(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_encryptionMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            KTcpSocket::EncryptionMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encryptionMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTcpSocket_EncryptionMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_encryptionMode);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_ignoreSslErrors(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_ignoreSslErrors(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->ignoreSslErrors();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_ignoreSslErrors);

    return NULL;
}


extern "C" {static PyObject *meth_KTcpSocket_startClientEncryption(PyObject *, PyObject *);}
static PyObject *meth_KTcpSocket_startClientEncryption(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTcpSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTcpSocket,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->startClientEncryption();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KTcpSocket,sipName_startClientEncryption);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTcpSocket(void *, const sipTypeDef *);}
static void *cast_KTcpSocket(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KTcpSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QIODevice)->ctd_cast((QIODevice *)(KTcpSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTcpSocket(void *, int);}
static void release_KTcpSocket(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTcpSocket *>(sipCppV);
    else
        delete reinterpret_cast<KTcpSocket *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTcpSocket(sipSimpleWrapper *);}
static void dealloc_KTcpSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTcpSocket *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTcpSocket(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTcpSocket(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTcpSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipKTcpSocket *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTcpSocket(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KTcpSocket[] = {{62, 0, 1}};


static PyMethodDef methods_KTcpSocket[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_KTcpSocket_abort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCaCertificate), meth_KTcpSocket_addCaCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCaCertificates), meth_KTcpSocket_addCaCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_advertisedSslVersion), meth_KTcpSocket_advertisedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_atEnd), meth_KTcpSocket_atEnd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_KTcpSocket_bytesAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bytesToWrite), meth_KTcpSocket_bytesToWrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_caCertificates), meth_KTcpSocket_caCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canReadLine), meth_KTcpSocket_canReadLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTcpSocket_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ciphers), meth_KTcpSocket_ciphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KTcpSocket_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTcpSocket_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHost), meth_KTcpSocket_connectToHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHostEncrypted), meth_KTcpSocket_connectToHostEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTcpSocket_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHost), meth_KTcpSocket_disconnectFromHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTcpSocket_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encryptionMode), meth_KTcpSocket_encryptionMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_KTcpSocket_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flush), meth_KTcpSocket_flush, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoreSslErrors), meth_KTcpSocket_ignoreSslErrors, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSequential), meth_KTcpSocket_isSequential, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTcpSocket_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localAddress), meth_KTcpSocket_localAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localCertificate), meth_KTcpSocket_localCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negotiatedSslVersion), meth_KTcpSocket_negotiatedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_negotiatedSslVersionName), meth_KTcpSocket_negotiatedSslVersionName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KTcpSocket_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerAddress), meth_KTcpSocket_peerAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerCertificateChain), meth_KTcpSocket_peerCertificateChain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerName), meth_KTcpSocket_peerName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerPort), meth_KTcpSocket_peerPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_privateKey), meth_KTcpSocket_privateKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxy), meth_KTcpSocket_proxy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readBufferSize), meth_KTcpSocket_readBufferSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readData), meth_KTcpSocket_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KTcpSocket_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTcpSocket_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionCipher), meth_KTcpSocket_sessionCipher, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAdvertisedSslVersion), meth_KTcpSocket_setAdvertisedSslVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCaCertificates), meth_KTcpSocket_setCaCertificates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCiphers), meth_KTcpSocket_setCiphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KTcpSocket_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalCertificate), meth_KTcpSocket_setLocalCertificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KTcpSocket_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPrivateKey), meth_KTcpSocket_setPrivateKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProxy), meth_KTcpSocket_setProxy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setReadBufferSize), meth_KTcpSocket_setReadBufferSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sslErrors), meth_KTcpSocket_sslErrors, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startClientEncryption), meth_KTcpSocket_startClientEncryption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_state), meth_KTcpSocket_state, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTcpSocket_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForBytesWritten), meth_KTcpSocket_waitForBytesWritten, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForConnected), meth_KTcpSocket_waitForConnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForDisconnected), meth_KTcpSocket_waitForDisconnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForEncrypted), meth_KTcpSocket_waitForEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForReadyRead), meth_KTcpSocket_waitForReadyRead, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KTcpSocket_writeData, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTcpSocket[] = {
    {sipName_AnySslVersion, KTcpSocket::AnySslVersion, 178},
    {sipName_AutoProxy, KTcpSocket::AutoProxy, 177},
    {sipName_BoundState, KTcpSocket::BoundState, 180},
    {sipName_ClosingState, KTcpSocket::ClosingState, 180},
    {sipName_ConnectedState, KTcpSocket::ConnectedState, 180},
    {sipName_ConnectingState, KTcpSocket::ConnectingState, 180},
    {sipName_ConnectionRefusedError, KTcpSocket::ConnectionRefusedError, 176},
    {sipName_HostLookupState, KTcpSocket::HostLookupState, 180},
    {sipName_HostNotFoundError, KTcpSocket::HostNotFoundError, 176},
    {sipName_ListeningState, KTcpSocket::ListeningState, 180},
    {sipName_ManualProxy, KTcpSocket::ManualProxy, 177},
    {sipName_NetworkError, KTcpSocket::NetworkError, 176},
    {sipName_RemoteHostClosedError, KTcpSocket::RemoteHostClosedError, 176},
    {sipName_SocketAccessError, KTcpSocket::SocketAccessError, 176},
    {sipName_SocketResourceError, KTcpSocket::SocketResourceError, 176},
    {sipName_SocketTimeoutError, KTcpSocket::SocketTimeoutError, 176},
    {sipName_SslClientMode, KTcpSocket::SslClientMode, 175},
    {sipName_SslServerMode, KTcpSocket::SslServerMode, 175},
    {sipName_SslV2, KTcpSocket::SslV2, 178},
    {sipName_SslV3, KTcpSocket::SslV3, 178},
    {sipName_SslV3_1, KTcpSocket::SslV3_1, 178},
    {sipName_TlsV1, KTcpSocket::TlsV1, 178},
    {sipName_UnconnectedState, KTcpSocket::UnconnectedState, 180},
    {sipName_UnencryptedMode, KTcpSocket::UnencryptedMode, 175},
    {sipName_UnknownError, KTcpSocket::UnknownError, 176},
    {sipName_UnknownSslVersion, KTcpSocket::UnknownSslVersion, 178},
    {sipName_UnsupportedSocketOperationError, KTcpSocket::UnsupportedSocketOperationError, 176},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KTcpSocket[] = {
    {"encryptionModeChanged(KTcpSocket::EncryptionMode)", 0},
    {"encrypted()", 0},
    {"stateChanged(KTcpSocket::State)", 0},
    {"proxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator *)", 0},
    {"hostFound()", 0},
    {"disconnected()", 0},
    {"connected()", 0},
    {"readyRead()", 0},
    {"bytesWritten(qint64)", 0},
    {"aboutToClose()", 0},
    {"sslErrors(const QList<KSslError>&)", &methods_KTcpSocket[49]},
    {"error(KTcpSocket::Error)", &methods_KTcpSocket[19]},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KTcpSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTcpSocket,
        {0}
    },
    sipNameNr_KTcpSocket,
    -1,
    -1,
    {0, 0, 1},
    supers_KTcpSocket,
    0,
    59, methods_KTcpSocket,
    27, enummembers_KTcpSocket,
    0, 0,
    init_KTcpSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTcpSocket,
    release_KTcpSocket,
    cast_KTcpSocket,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTcpSocket::staticMetaObject,
    0,
    pyqt4_signals_KTcpSocket
};

#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10379 "sipkdecorepart2.cpp"

#line 45 "/usr/local/share/py-sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 10383 "sipkdecorepart2.cpp"
#line 45 "/usr/local/share/py-sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 10386 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10389 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslError_error(PyObject *, PyObject *);}
static PyObject *meth_KSslError_error(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslError *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslError,&sipCpp))
        {
            KSslError::Error sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslError_Error);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslError,sipName_error);

    return NULL;
}


extern "C" {static PyObject *meth_KSslError_errorString(PyObject *, PyObject *);}
static PyObject *meth_KSslError_errorString(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslError *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslError,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorString());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslError,sipName_errorString);

    return NULL;
}


extern "C" {static PyObject *meth_KSslError_certificate(PyObject *, PyObject *);}
static PyObject *meth_KSslError_certificate(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslError *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslError,&sipCpp))
        {
            QSslCertificate *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->certificate());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslError,sipName_certificate);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KSslError(void *, const sipTypeDef *);}
static void *cast_KSslError(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KSslError)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslError(void *, int);}
static void release_KSslError(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KSslError *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSslError(sipSimpleWrapper *);}
static void dealloc_KSslError(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSslError(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KSslError(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KSslError(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KSslError *sipCpp = 0;

    if (!sipCpp)
    {
        KSslError::Error a0 = KSslError::NoError;
        const QSslCertificate& a1def = QSslCertificate();
        const QSslCertificate * a1 = &a1def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|EJ9",sipType_KSslError_Error,&a0,sipType_QSslCertificate,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslError(a0,*a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QSslError * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_QSslError,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslError(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KSslError * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KSslError,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslError(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KSslError[] = {
    {SIP_MLNAME_CAST(sipName_certificate), meth_KSslError_certificate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_KSslError_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_KSslError_errorString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSslError[] = {
    {sipName_CertificateSignatureFailed, KSslError::CertificateSignatureFailed, 156},
    {sipName_ExpiredCertificate, KSslError::ExpiredCertificate, 156},
    {sipName_HostNameMismatch, KSslError::HostNameMismatch, 156},
    {sipName_InvalidCertificate, KSslError::InvalidCertificate, 156},
    {sipName_InvalidCertificateAuthorityCertificate, KSslError::InvalidCertificateAuthorityCertificate, 156},
    {sipName_InvalidCertificatePurpose, KSslError::InvalidCertificatePurpose, 156},
    {sipName_NoError, KSslError::NoError, 156},
    {sipName_NoPeerCertificate, KSslError::NoPeerCertificate, 156},
    {sipName_PathLengthExceeded, KSslError::PathLengthExceeded, 156},
    {sipName_RejectedCertificate, KSslError::RejectedCertificate, 156},
    {sipName_RevokedCertificate, KSslError::RevokedCertificate, 156},
    {sipName_SelfSignedCertificate, KSslError::SelfSignedCertificate, 156},
    {sipName_UnknownError, KSslError::UnknownError, 156},
    {sipName_UntrustedCertificate, KSslError::UntrustedCertificate, 156},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KSslError = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslError,
        {0}
    },
    sipNameNr_KSslError,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    3, methods_KSslError,
    14, enummembers_KSslError,
    0, 0,
    init_KSslError,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslError,
    release_KSslError,
    cast_KSslError,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10624 "sipkdecorepart2.cpp"

#line 45 "/usr/local/share/py-sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 10628 "sipkdecorepart2.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10681 "sipkdecorepart2.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 10684 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 10687 "sipkdecorepart2.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 10690 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 10693 "sipkdecorepart2.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 10696 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 10699 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 10702 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 10705 "sipkdecorepart2.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 10708 "sipkdecorepart2.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 10711 "sipkdecorepart2.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 10714 "sipkdecorepart2.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 10717 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 10720 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 10723 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10726 "sipkdecorepart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 10729 "sipkdecorepart2.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 10732 "sipkdecorepart2.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 10735 "sipkdecorepart2.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 10738 "sipkdecorepart2.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 10753 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 10756 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 10759 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 10762 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 10765 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 10768 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 10771 "sipkdecorepart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 10774 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10777 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslCipher_isNull(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_isNull(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslCipher *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslCipher,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_isNull);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_authenticationMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_authenticationMethod(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslCipher *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslCipher,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->authenticationMethod());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_authenticationMethod);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_encryptionMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_encryptionMethod(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslCipher *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslCipher,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->encryptionMethod());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_encryptionMethod);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_keyExchangeMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_keyExchangeMethod(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslCipher *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslCipher,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->keyExchangeMethod());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_keyExchangeMethod);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_digestMethod(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_digestMethod(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslCipher *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslCipher,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->digestMethod());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_digestMethod);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_name(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_name(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslCipher *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslCipher,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_name);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_supportedBits(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_supportedBits(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslCipher *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslCipher,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportedBits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_supportedBits);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_usedBits(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_usedBits(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslCipher *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslCipher,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->usedBits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_usedBits);

    return NULL;
}


extern "C" {static PyObject *meth_KSslCipher_supportedCiphers(PyObject *, PyObject *);}
static PyObject *meth_KSslCipher_supportedCiphers(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QList<KSslCipher> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KSslCipher>(KSslCipher::supportedCiphers());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KSslCipher,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslCipher,sipName_supportedCiphers);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KSslCipher(void *, const sipTypeDef *);}
static void *cast_KSslCipher(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KSslCipher)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslCipher(void *, int);}
static void release_KSslCipher(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KSslCipher *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslCipher(void *, const void*);}
static void assign_KSslCipher(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KSslCipher *>(sipDst) = *reinterpret_cast<const KSslCipher *>(sipSrc);
}


extern "C" {static void dealloc_KSslCipher(sipSimpleWrapper *);}
static void dealloc_KSslCipher(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSslCipher(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KSslCipher(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KSslCipher(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KSslCipher *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslCipher();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KSslCipher * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KSslCipher,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslCipher(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QSslCipher * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_QSslCipher,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslCipher(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KSslCipher[] = {
    {SIP_MLNAME_CAST(sipName_authenticationMethod), meth_KSslCipher_authenticationMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_digestMethod), meth_KSslCipher_digestMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encryptionMethod), meth_KSslCipher_encryptionMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KSslCipher_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyExchangeMethod), meth_KSslCipher_keyExchangeMethod, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KSslCipher_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedBits), meth_KSslCipher_supportedBits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedCiphers), meth_KSslCipher_supportedCiphers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usedBits), meth_KSslCipher_usedBits, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KSslCipher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslCipher,
        {0}
    },
    sipNameNr_KSslCipher,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    9, methods_KSslCipher,
    0, 0,
    0, 0,
    init_KSslCipher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslCipher,
    release_KSslCipher,
    cast_KSslCipher,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KSslCipher,
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 11167 "sipkdecorepart2.cpp"

#line 45 "/usr/local/share/py-sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 11171 "sipkdecorepart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11174 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSslKey_algorithm(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_algorithm(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslKey *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslKey,&sipCpp))
        {
            KSslKey::Algorithm sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->algorithm();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslKey_Algorithm);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslKey,sipName_algorithm);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_isExportable(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_isExportable(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslKey *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslKey,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isExportable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslKey,sipName_isExportable);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_secrecy(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_secrecy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslKey *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslKey,&sipCpp))
        {
            KSslKey::KeySecrecy sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->secrecy();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSslKey_KeySecrecy);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslKey,sipName_secrecy);

    return NULL;
}


extern "C" {static PyObject *meth_KSslKey_toDer(PyObject *, PyObject *);}
static PyObject *meth_KSslKey_toDer(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KSslKey *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KSslKey,&sipCpp))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toDer());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KSslKey,sipName_toDer);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KSslKey(void *, const sipTypeDef *);}
static void *cast_KSslKey(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KSslKey)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSslKey(void *, int);}
static void release_KSslKey(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KSslKey *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KSslKey(void *, const void*);}
static void assign_KSslKey(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KSslKey *>(sipDst) = *reinterpret_cast<const KSslKey *>(sipSrc);
}


extern "C" {static void dealloc_KSslKey(sipSimpleWrapper *);}
static void dealloc_KSslKey(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSslKey(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KSslKey(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KSslKey(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KSslKey *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslKey();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KSslKey * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KSslKey,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslKey(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QSslKey * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_QSslKey,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSslKey(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KSslKey[] = {
    {SIP_MLNAME_CAST(sipName_algorithm), meth_KSslKey_algorithm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isExportable), meth_KSslKey_isExportable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_secrecy), meth_KSslKey_secrecy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDer), meth_KSslKey_toDer, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSslKey[] = {
    {sipName_Dh, KSslKey::Dh, 159},
    {sipName_Dsa, KSslKey::Dsa, 159},
    {sipName_PrivateKey, KSslKey::PrivateKey, 160},
    {sipName_PublicKey, KSslKey::PublicKey, 160},
    {sipName_Rsa, KSslKey::Rsa, 159},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KSslKey = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSslKey,
        {0}
    },
    sipNameNr_KSslKey,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    4, methods_KSslKey,
    5, enummembers_KSslKey,
    0, 0,
    init_KSslKey,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSslKey,
    release_KSslKey,
    cast_KSslKey,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KSslKey,
    0,
    0,
    0
};


#line 42 "/usr/local/share/py-sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 11432 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11435 "sipkdecorepart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 11438 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 11441 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtNetwork/qtcpserver.sip"
#include <qtcpserver.h>
#line 11444 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 11447 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 11450 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 11453 "sipkdecorepart2.cpp"


extern "C" {static PyObject *meth_KSocketFactory_proxyForDatagram(PyObject *,PyObject *);}
static PyObject *meth_KSocketFactory_proxyForDatagram(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            QNetworkProxy *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(KSocketFactory::proxyForDatagram(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_proxyForDatagram);

    return NULL;
}


extern "C" {static PyObject *meth_KSocketFactory_proxyForListening(PyObject *,PyObject *);}
static PyObject *meth_KSocketFactory_proxyForListening(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QNetworkProxy *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(KSocketFactory::proxyForListening(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_proxyForListening);

    return NULL;
}


extern "C" {static PyObject *meth_KSocketFactory_proxyForConnection(PyObject *,PyObject *);}
static PyObject *meth_KSocketFactory_proxyForConnection(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            QNetworkProxy *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(KSocketFactory::proxyForConnection(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_proxyForConnection);

    return NULL;
}


extern "C" {static PyObject *meth_KSocketFactory_datagramSocket(PyObject *,PyObject *);}
static PyObject *meth_KSocketFactory_datagramSocket(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        QObject * a2 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J:",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QObject,&a2))
        {
            QUdpSocket *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::datagramSocket(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromType(sipRes,sipType_QUdpSocket,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_datagramSocket);

    return NULL;
}


extern "C" {static PyObject *meth_KSocketFactory_listen(PyObject *,PyObject *);}
static PyObject *meth_KSocketFactory_listen(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QHostAddress& a1def = QHostAddress::Any;
        const QHostAddress * a1 = &a1def;
        quint16 a2 = 0;
        QObject * a3 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J9tJ:",sipType_QString,&a0,&a0State,sipType_QHostAddress,&a1,&a2,sipType_QObject,&a3))
        {
            QTcpServer *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::listen(*a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_QTcpServer,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_listen);

    return NULL;
}


extern "C" {static PyObject *meth_KSocketFactory_synchronousConnectToHost(PyObject *,PyObject *);}
static PyObject *meth_KSocketFactory_synchronousConnectToHost(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        quint16 a2;
        int a3 = 30000;
        QObject * a4 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1t|iJ:",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,&a2,&a3,sipType_QObject,&a4))
        {
            QTcpSocket *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::synchronousConnectToHost(*a0,*a1,a2,a3,a4);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromType(sipRes,sipType_QTcpSocket,NULL);
        }
    }

    {
        const QUrl * a0;
        int a1 = 30000;
        QObject * a2 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9|iJ:",sipType_QUrl,&a0,&a1,sipType_QObject,&a2))
        {
            QTcpSocket *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::synchronousConnectToHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QTcpSocket,NULL);
        }
    }

    {
        QTcpSocket * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        quint16 a3;
        int a4 = 30000;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J8J1J1t|i",sipType_QTcpSocket,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,&a3,&a4))
        {
            Py_BEGIN_ALLOW_THREADS
            KSocketFactory::synchronousConnectToHost(a0,*a1,*a2,a3,a4);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QTcpSocket * a0;
        const QUrl * a1;
        int a2 = 30000;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J8J9|i",sipType_QTcpSocket,&a0,sipType_QUrl,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            KSocketFactory::synchronousConnectToHost(a0,*a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_synchronousConnectToHost);

    return NULL;
}


extern "C" {static PyObject *meth_KSocketFactory_connectToHost(PyObject *,PyObject *);}
static PyObject *meth_KSocketFactory_connectToHost(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        quint16 a2;
        QObject * a3 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1t|J:",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,&a2,sipType_QObject,&a3))
        {
            QTcpSocket *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::connectToHost(*a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromType(sipRes,sipType_QTcpSocket,NULL);
        }
    }

    {
        const QUrl * a0;
        QObject * a1 = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9|J:",sipType_QUrl,&a0,sipType_QObject,&a1))
        {
            QTcpSocket *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::connectToHost(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QTcpSocket,NULL);
        }
    }

    {
        QTcpSocket * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        quint16 a3;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J8J1J1t",sipType_QTcpSocket,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,&a3))
        {
            Py_BEGIN_ALLOW_THREADS
            KSocketFactory::connectToHost(a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QTcpSocket * a0;
        const QUrl * a1;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J8J9",sipType_QTcpSocket,&a0,sipType_QUrl,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            KSocketFactory::connectToHost(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_connectToHost);

    return NULL;
}


static PyMethodDef methods_KSocketFactory[] = {
    {SIP_MLNAME_CAST(sipName_connectToHost), meth_KSocketFactory_connectToHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_datagramSocket), meth_KSocketFactory_datagramSocket, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listen), meth_KSocketFactory_listen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxyForConnection), meth_KSocketFactory_proxyForConnection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxyForDatagram), meth_KSocketFactory_proxyForDatagram, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxyForListening), meth_KSocketFactory_proxyForListening, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronousConnectToHost), meth_KSocketFactory_synchronousConnectToHost, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KSocketFactory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KSocketFactory,
        {0}
    },
    sipNameNr_KSocketFactory,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    7, methods_KSocketFactory,
    0, 0,
    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, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 59 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 11858 "sipkdecorepart2.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 11862 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11865 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 11868 "sipkdecorepart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 11871 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11874 "sipkdecorepart2.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11877 "sipkdecorepart2.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11880 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11883 "sipkdecorepart2.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 11914 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 11917 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 11920 "sipkdecorepart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11923 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 11926 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 11929 "sipkdecorepart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11932 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 11935 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11938 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11941 "sipkdecorepart2.cpp"


class sipKLocalSocketServer : public KLocalSocketServer
{
public:
    sipKLocalSocketServer(QObject *);
    virtual ~sipKLocalSocketServer();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_incomingConnection(bool,int);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasPendingConnections() const;
    KLocalSocket * nextPendingConnection();
    void incomingConnection(int);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKLocalSocketServer(const sipKLocalSocketServer &);
    sipKLocalSocketServer &operator = (const sipKLocalSocketServer &);

    char sipPyMethods[10];
};

sipKLocalSocketServer::sipKLocalSocketServer(QObject *a0): KLocalSocketServer(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKLocalSocketServer::~sipKLocalSocketServer()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKLocalSocketServer::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KLocalSocketServer);
}

int sipKLocalSocketServer::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KLocalSocketServer::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KLocalSocketServer,_c,_id,_a);

    return _id;
}

void *sipKLocalSocketServer::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KLocalSocketServer,_clname)) ? this : KLocalSocketServer::qt_metacast(_clname);
}

bool sipKLocalSocketServer::hasPendingConnections() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_hasPendingConnections);

    if (!meth)
        return KLocalSocketServer::hasPendingConnections();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

KLocalSocket * sipKLocalSocketServer::nextPendingConnection()
{
    extern KLocalSocket * sipVH_kdecore_13(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_nextPendingConnection);

    if (!meth)
        return KLocalSocketServer::nextPendingConnection();

    return sipVH_kdecore_13(sipGILState,meth);
}

void sipKLocalSocketServer::incomingConnection(int a0)
{
    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_incomingConnection);

    if (!meth)
    {
        KLocalSocketServer::incomingConnection(a0);
        return;
    }

    ((sipVH_QtNetwork_1)(sipModuleAPI_kdecore_QtNetwork->em_virthandlers[1]))(sipGILState,meth,a0);
}

bool sipKLocalSocketServer::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_kdecore_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKLocalSocketServer::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKLocalSocketServer::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_kdecore_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKLocalSocketServer::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKLocalSocketServer::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kdecore_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKLocalSocketServer::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKLocalSocketServer::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKLocalSocketServer::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKLocalSocketServer::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKLocalSocketServer::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKLocalSocketServer::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKLocalSocketServer::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKLocalSocketServer::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipKLocalSocketServer::sipProtectVirt_incomingConnection(bool sipSelfWasArg,int a0)
{
    (sipSelfWasArg ? KLocalSocketServer::incomingConnection(a0) : incomingConnection(a0));
}


extern "C" {static PyObject *meth_KLocalSocketServer_receivers(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KLocalSocketServer,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 12251 "sipkdecorepart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLocalSocketServer,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLocalSocketServer,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLocalSocketServer,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KLocalSocketServer,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KLocalSocketServer,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_listen(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_listen(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        KLocalSocket::LocalSocketType a1 = KLocalSocket::UnixSocket;
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|E",&sipSelf,sipType_KLocalSocketServer,&sipCpp,sipType_QString,&a0,&a0State,sipType_KLocalSocket_LocalSocketType,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listen(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_listen);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_close(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_close(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->close();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_close);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_isListening(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_isListening(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isListening();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_isListening);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_setMaxPendingConnections(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_setMaxPendingConnections(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KLocalSocketServer,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaxPendingConnections(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_setMaxPendingConnections);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_maxPendingConnections(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_maxPendingConnections(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maxPendingConnections();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_maxPendingConnections);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_localSocketType(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_localSocketType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            KLocalSocket::LocalSocketType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->localSocketType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocalSocket_LocalSocketType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_localSocketType);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_localPath(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_localPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->localPath());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_localPath);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_waitForNewConnection(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_waitForNewConnection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0 = 0;
        bool a1;
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|i",&sipSelf,sipType_KLocalSocketServer,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForNewConnection(a0,&a1);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(bb)",sipRes,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_waitForNewConnection);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_hasPendingConnections(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_hasPendingConnections(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KLocalSocketServer::hasPendingConnections() : sipCpp->hasPendingConnections());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_hasPendingConnections);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_nextPendingConnection(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_nextPendingConnection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            KLocalSocket *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KLocalSocketServer::nextPendingConnection() : sipCpp->nextPendingConnection());
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KLocalSocket,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_nextPendingConnection);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_serverError(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_serverError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            QAbstractSocket::SocketError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serverError();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QAbstractSocket_SocketError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_serverError);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_errorString(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_errorString(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocketServer,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorString());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_errorString);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_incomingConnection(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_incomingConnection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_KLocalSocketServer,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_incomingConnection(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocketServer,sipName_incomingConnection);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KLocalSocketServer(void *, const sipTypeDef *);}
static void *cast_KLocalSocketServer(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KLocalSocketServer)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KLocalSocketServer *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KLocalSocketServer(void *, int);}
static void release_KLocalSocketServer(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKLocalSocketServer *>(sipCppV);
    else
        delete reinterpret_cast<KLocalSocketServer *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KLocalSocketServer(sipSimpleWrapper *);}
static void dealloc_KLocalSocketServer(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKLocalSocketServer *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KLocalSocketServer(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KLocalSocketServer(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KLocalSocketServer(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipKLocalSocketServer *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKLocalSocketServer(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KLocalSocketServer[] = {{111, 0, 1}};


static PyMethodDef methods_KLocalSocketServer[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KLocalSocketServer_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KLocalSocketServer_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KLocalSocketServer_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KLocalSocketServer_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KLocalSocketServer_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_KLocalSocketServer_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasPendingConnections), meth_KLocalSocketServer_hasPendingConnections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_incomingConnection), meth_KLocalSocketServer_incomingConnection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isListening), meth_KLocalSocketServer_isListening, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listen), meth_KLocalSocketServer_listen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localPath), meth_KLocalSocketServer_localPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localSocketType), meth_KLocalSocketServer_localSocketType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxPendingConnections), meth_KLocalSocketServer_maxPendingConnections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextPendingConnection), meth_KLocalSocketServer_nextPendingConnection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KLocalSocketServer_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serverError), meth_KLocalSocketServer_serverError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxPendingConnections), meth_KLocalSocketServer_setMaxPendingConnections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KLocalSocketServer_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForNewConnection), meth_KLocalSocketServer_waitForNewConnection, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KLocalSocketServer[] = {
    {"newConnection()", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KLocalSocketServer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLocalSocketServer,
        {0}
    },
    sipNameNr_KLocalSocketServer,
    -1,
    -1,
    {0, 0, 1},
    supers_KLocalSocketServer,
    0,
    19, methods_KLocalSocketServer,
    0, 0,
    0, 0,
    init_KLocalSocketServer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalSocketServer,
    release_KLocalSocketServer,
    cast_KLocalSocketServer,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KLocalSocketServer::staticMetaObject,
    0,
    pyqt4_signals_KLocalSocketServer
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 12913 "sipkdecorepart2.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12917 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12920 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 12923 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 12926 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 12929 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 12932 "sipkdecorepart2.cpp"
#line 44 "/usr/local/share/py-sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 12935 "sipkdecorepart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12938 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12941 "sipkdecorepart2.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12944 "sipkdecorepart2.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12947 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12950 "sipkdecorepart2.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 12981 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 12984 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 12987 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 12990 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 12993 "sipkdecorepart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12996 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12999 "sipkdecorepart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13002 "sipkdecorepart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13005 "sipkdecorepart2.cpp"


class sipKLocalSocket : public KLocalSocket
{
public:
    sipKLocalSocket(QObject *);
    virtual ~sipKLocalSocket();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_readData(bool,char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtectVirt_writeData(bool,const char *,PY_LONG_LONG);
    void sipProtect_setSocketState(QAbstractSocket::SocketState);
    void sipProtect_setSocketError(QAbstractSocket::SocketError);
    void sipProtect_setLocalPort(quint16);
    void sipProtect_setLocalAddress(const QHostAddress&);
    void sipProtect_setPeerPort(quint16);
    void sipProtect_setPeerAddress(const QHostAddress&);
    void sipProtect_setPeerName(const QString&);
    void sipProtect_connectToHostImplementation(const QString&,quint16,QIODevice::OpenMode);
    void sipProtect_disconnectFromHostImplementation();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    qint64 bytesAvailable() const;
    qint64 bytesToWrite() const;
    bool canReadLine() const;
    void close();
    bool isSequential() const;
    bool atEnd() const;
    bool waitForReadyRead(int);
    bool waitForBytesWritten(int);
    qint64 readData(char *,qint64);
    qint64 readLineData(char *,qint64);
    qint64 writeData(const char *,PY_LONG_LONG);
    bool open(QIODevice::OpenMode);
    qint64 pos() const;
    qint64 size() const;
    bool seek(qint64);
    bool reset();
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKLocalSocket(const sipKLocalSocket &);
    sipKLocalSocket &operator = (const sipKLocalSocket &);

    char sipPyMethods[23];
};

sipKLocalSocket::sipKLocalSocket(QObject *a0): KLocalSocket(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKLocalSocket::~sipKLocalSocket()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKLocalSocket::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KLocalSocket);
}

int sipKLocalSocket::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KLocalSocket::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KLocalSocket,_c,_id,_a);

    return _id;
}

void *sipKLocalSocket::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KLocalSocket,_clname)) ? this : KLocalSocket::qt_metacast(_clname);
}

qint64 sipKLocalSocket::bytesAvailable() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!meth)
        return QAbstractSocket::bytesAvailable();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

qint64 sipKLocalSocket::bytesToWrite() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!meth)
        return QAbstractSocket::bytesToWrite();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

bool sipKLocalSocket::canReadLine() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_canReadLine);

    if (!meth)
        return QAbstractSocket::canReadLine();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKLocalSocket::close()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_close);

    if (!meth)
    {
        QAbstractSocket::close();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipKLocalSocket::isSequential() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_isSequential);

    if (!meth)
        return QAbstractSocket::isSequential();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKLocalSocket::atEnd() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_atEnd);

    if (!meth)
        return QAbstractSocket::atEnd();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKLocalSocket::waitForReadyRead(int a0)
{
    typedef bool (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!meth)
        return QAbstractSocket::waitForReadyRead(a0);

    return ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

bool sipKLocalSocket::waitForBytesWritten(int a0)
{
    typedef bool (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!meth)
        return QAbstractSocket::waitForBytesWritten(a0);

    return ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

qint64 sipKLocalSocket::readData(char *a0,qint64 a1)
{
    typedef PY_LONG_LONG (*sipVH_QtNetwork_5)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_readData);

    if (!meth)
        return QAbstractSocket::readData(a0,a1);

    return ((sipVH_QtNetwork_5)(sipModuleAPI_kdecore_QtNetwork->em_virthandlers[5]))(sipGILState,meth,a0,a1);
}

qint64 sipKLocalSocket::readLineData(char *a0,qint64 a1)
{
    typedef PY_LONG_LONG (*sipVH_QtNetwork_5)(sip_gilstate_t,PyObject *,char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_readLineData);

    if (!meth)
        return QAbstractSocket::readLineData(a0,a1);

    return ((sipVH_QtNetwork_5)(sipModuleAPI_kdecore_QtNetwork->em_virthandlers[5]))(sipGILState,meth,a0,a1);
}

qint64 sipKLocalSocket::writeData(const char *a0,PY_LONG_LONG a1)
{
    typedef PY_LONG_LONG (*sipVH_QtCore_14)(sip_gilstate_t,PyObject *,const char *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_writeData);

    if (!meth)
        return QAbstractSocket::writeData(a0,a1);

    return ((sipVH_QtCore_14)(sipModuleAPI_kdecore_QtCore->em_virthandlers[14]))(sipGILState,meth,a0,a1);
}

bool sipKLocalSocket::open(QIODevice::OpenMode a0)
{
    typedef bool (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_open);

    if (!meth)
        return QIODevice::open(a0);

    return ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState,meth,a0);
}

qint64 sipKLocalSocket::pos() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_pos);

    if (!meth)
        return QIODevice::pos();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

qint64 sipKLocalSocket::size() const
{
    typedef PY_LONG_LONG (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_size);

    if (!meth)
        return QIODevice::size();

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,meth);
}

bool sipKLocalSocket::seek(qint64 a0)
{
    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_seek);

    if (!meth)
        return QIODevice::seek(a0);

    return ((sipVH_QtCore_28)(sipModuleAPI_kdecore_QtCore->em_virthandlers[28]))(sipGILState,meth,a0);
}

bool sipKLocalSocket::reset()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_reset);

    if (!meth)
        return QIODevice::reset();

    return ((sipVH_QtCore_1)(sipModuleAPI_kdecore_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKLocalSocket::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_kdecore_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKLocalSocket::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKLocalSocket::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_kdecore_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKLocalSocket::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKLocalSocket::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kdecore_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKLocalSocket::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKLocalSocket::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKLocalSocket::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKLocalSocket::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKLocalSocket::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKLocalSocket::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKLocalSocket::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKLocalSocket::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipKLocalSocket::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipKLocalSocket::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

qint64 sipKLocalSocket::sipProtectVirt_readData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readData(a0,a1) : readData(a0,a1));
}

qint64 sipKLocalSocket::sipProtectVirt_readLineData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readLineData(a0,a1) : readLineData(a0,a1));
}

qint64 sipKLocalSocket::sipProtectVirt_writeData(bool sipSelfWasArg,const char *a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QAbstractSocket::writeData(a0,a1) : writeData(a0,a1));
}

void sipKLocalSocket::sipProtect_setSocketState(QAbstractSocket::SocketState a0)
{
    QAbstractSocket::setSocketState(a0);
}

void sipKLocalSocket::sipProtect_setSocketError(QAbstractSocket::SocketError a0)
{
    QAbstractSocket::setSocketError(a0);
}

void sipKLocalSocket::sipProtect_setLocalPort(quint16 a0)
{
    QAbstractSocket::setLocalPort(a0);
}

void sipKLocalSocket::sipProtect_setLocalAddress(const QHostAddress& a0)
{
    QAbstractSocket::setLocalAddress(a0);
}

void sipKLocalSocket::sipProtect_setPeerPort(quint16 a0)
{
    QAbstractSocket::setPeerPort(a0);
}

void sipKLocalSocket::sipProtect_setPeerAddress(const QHostAddress& a0)
{
    QAbstractSocket::setPeerAddress(a0);
}

void sipKLocalSocket::sipProtect_setPeerName(const QString& a0)
{
    QAbstractSocket::setPeerName(a0);
}

void sipKLocalSocket::sipProtect_connectToHostImplementation(const QString& a0,quint16 a1,QIODevice::OpenMode a2)
{
    KLocalSocket::connectToHostImplementation(a0,a1,a2);
}

void sipKLocalSocket::sipProtect_disconnectFromHostImplementation()
{
    KLocalSocket::disconnectFromHostImplementation();
}


extern "C" {static PyObject *meth_KLocalSocket_receivers(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KLocalSocket,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 13601 "sipkdecorepart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KLocalSocket,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KLocalSocket,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setOpenMode(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setOpenMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QIODevice_OpenMode,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setOpenMode);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setErrorString(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setErrorString(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setErrorString);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_readData(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_readData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pn",&sipSelf,sipType_KLocalSocket,&sipCpp,&a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 234 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 13860 "sipkdecorepart2.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_readData);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_readLineData(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_readLineData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pn",&sipSelf,sipType_KLocalSocket,&sipCpp,&a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 268 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 13922 "sipkdecorepart2.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_readLineData);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_writeData(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_writeData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const char * a0;
        SIP_SSIZE_T a1;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pk",&sipSelf,sipType_KLocalSocket,&sipCpp,&a0,&a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_writeData);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setSocketState(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setSocketState(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QAbstractSocket::SocketState a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pE",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QAbstractSocket_SocketState,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketState(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setSocketState);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setSocketError(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setSocketError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QAbstractSocket::SocketError a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pE",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QAbstractSocket_SocketError,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setSocketError);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setLocalPort(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setLocalPort(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        quint16 a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pt",&sipSelf,sipType_KLocalSocket,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalPort(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setLocalPort);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setLocalAddress(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setLocalAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QHostAddress * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QHostAddress,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalAddress(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setLocalAddress);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setPeerPort(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setPeerPort(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        quint16 a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pt",&sipSelf,sipType_KLocalSocket,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerPort(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setPeerPort);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setPeerAddress(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setPeerAddress(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QHostAddress * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QHostAddress,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerAddress(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setPeerAddress);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_setPeerName(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_setPeerName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerName(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_setPeerName);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_connectToPath(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_connectToPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        QIODevice::OpenMode a1def = QIODevice::ReadWrite;
        QIODevice::OpenMode * a1 = &a1def;
        int a1State = 0;
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QString,&a0,&a0State,sipType_QIODevice_OpenMode,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToPath(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QIODevice_OpenMode,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        KLocalSocket::LocalSocketType a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode * a2 = &a2def;
        int a2State = 0;
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1E|J1",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QString,&a0,&a0State,sipType_KLocalSocket_LocalSocketType,&a1,sipType_QIODevice_OpenMode,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToPath(*a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_connectToPath);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_disconnectFromPath(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_disconnectFromPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocket,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->disconnectFromPath();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_disconnectFromPath);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_localSocketType(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_localSocketType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocket,&sipCpp))
        {
            KLocalSocket::LocalSocketType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->localSocketType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocalSocket_LocalSocketType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_localSocketType);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_localPath(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_localPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocket,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->localPath());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_localPath);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_peerPath(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_peerPath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KLocalSocket,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->peerPath());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_peerPath);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_connectToHostImplementation(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_connectToHostImplementation(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode * a2;
        int a2State = 0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1tJ1",&sipSelf,sipType_KLocalSocket,&sipCpp,sipType_QString,&a0,&a0State,&a1,sipType_QIODevice_OpenMode,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_connectToHostImplementation(*a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_connectToHostImplementation);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocket_disconnectFromHostImplementation(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocket_disconnectFromHostImplementation(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KLocalSocket,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_disconnectFromHostImplementation();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_KLocalSocket,sipName_disconnectFromHostImplementation);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KLocalSocket(void *, const sipTypeDef *);}
static void *cast_KLocalSocket(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KLocalSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTcpSocket)->ctd_cast((QTcpSocket *)(KLocalSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KLocalSocket(void *, int);}
static void release_KLocalSocket(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKLocalSocket *>(sipCppV);
    else
        delete reinterpret_cast<KLocalSocket *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KLocalSocket(sipSimpleWrapper *);}
static void dealloc_KLocalSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKLocalSocket *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KLocalSocket(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KLocalSocket(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KLocalSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipKLocalSocket *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKLocalSocket(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KLocalSocket[] = {{80, 1, 1}};


static PyMethodDef methods_KLocalSocket[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KLocalSocket_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KLocalSocket_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHostImplementation), meth_KLocalSocket_connectToHostImplementation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToPath), meth_KLocalSocket_connectToPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KLocalSocket_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHostImplementation), meth_KLocalSocket_disconnectFromHostImplementation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromPath), meth_KLocalSocket_disconnectFromPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KLocalSocket_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localPath), meth_KLocalSocket_localPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localSocketType), meth_KLocalSocket_localSocketType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerPath), meth_KLocalSocket_peerPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readData), meth_KLocalSocket_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KLocalSocket_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KLocalSocket_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KLocalSocket_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalAddress), meth_KLocalSocket_setLocalAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalPort), meth_KLocalSocket_setLocalPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KLocalSocket_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerAddress), meth_KLocalSocket_setPeerAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerName), meth_KLocalSocket_setPeerName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerPort), meth_KLocalSocket_setPeerPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketError), meth_KLocalSocket_setSocketError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketState), meth_KLocalSocket_setSocketState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KLocalSocket_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KLocalSocket_writeData, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KLocalSocket[] = {
    {sipName_AbstractUnixSocket, KLocalSocket::AbstractUnixSocket, 88},
    {sipName_UnixSocket, KLocalSocket::UnixSocket, 88},
    {sipName_UnknownLocalSocketType, KLocalSocket::UnknownLocalSocketType, 88},
};


pyqt4ClassTypeDef pyqt4Type_kdecore_KLocalSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLocalSocket,
        {0}
    },
    sipNameNr_KLocalSocket,
    -1,
    -1,
    {0, 0, 1},
    supers_KLocalSocket,
    0,
    25, methods_KLocalSocket,
    3, enummembers_KLocalSocket,
    0, 0,
    init_KLocalSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalSocket,
    release_KLocalSocket,
    cast_KLocalSocket,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KLocalSocket::staticMetaObject,
    0,
    0
};
