/*
 * Module code.
 *
 * Generated by SIP 4.18.1
 */

#include "sipAPIkdecore.h"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kpty.sip"
#include <kpty.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"



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

    {
        KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPty, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->open();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPty, &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(sipParseErr, sipName_KPty, sipName_close, NULL);

    return NULL;
}


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

    {
        KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPty, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->closeSlave();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPty, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCTty();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char* a0 = 0;
        PyObject *a0Keep = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|AAAA", &sipSelf, sipType_KPty, &sipCpp, &a0Keep, &a0, &a1Keep, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->login(a0,a1);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a0Keep);
            Py_XDECREF(a1Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPty, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->logout();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KPty, &sipCpp, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setWinSize(a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KPty, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setEcho(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPty, &sipCpp))
        {
            const char*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ttyName();
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

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

    return NULL;
}


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

    {
        const KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPty, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->masterFd();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KPty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPty, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->slaveFd();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KPty *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KPty(sipSimpleWrapper *);}
static void dealloc_KPty(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KPty(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KPty(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KPty(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KPty *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPty();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KPty[] = {
    {SIP_MLNAME_CAST(sipName_close), meth_KPty_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeSlave), meth_KPty_closeSlave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_login), meth_KPty_login, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_logout), meth_KPty_logout, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_masterFd), meth_KPty_masterFd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KPty_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCTty), meth_KPty_setCTty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEcho), meth_KPty_setEcho, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWinSize), meth_KPty_setWinSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slaveFd), meth_KPty_slaveFd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ttyName), meth_KPty_ttyName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KPty = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KPty,
        {0}
    },
    {
        sipNameNr_KPty,
        {0, 0, 1},
        11, methods_KPty,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KPty,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPty,
    0,
    0,
    0,
    release_KPty,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 435 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 439 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    delete reinterpret_cast<KProtocolInfo::ExtraField *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KProtocolInfo_ExtraField(void *, SIP_SSIZE_T, const void *);}
static void assign_KProtocolInfo_ExtraField(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KProtocolInfo::ExtraField *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KProtocolInfo::ExtraField *>(sipSrc);
}


extern "C" {static void *array_KProtocolInfo_ExtraField(SIP_SSIZE_T);}
static void *array_KProtocolInfo_ExtraField(SIP_SSIZE_T sipNrElem)
{
    return new KProtocolInfo::ExtraField[sipNrElem];
}


extern "C" {static void *copy_KProtocolInfo_ExtraField(const void *, SIP_SSIZE_T);}
static void *copy_KProtocolInfo_ExtraField(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KProtocolInfo::ExtraField(reinterpret_cast<const KProtocolInfo::ExtraField *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KProtocolInfo_ExtraField(sipSimpleWrapper *);}
static void dealloc_KProtocolInfo_ExtraField(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KProtocolInfo_ExtraField(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KProtocolInfo_ExtraField(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KProtocolInfo_ExtraField(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KProtocolInfo::ExtraField *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KProtocolInfo::ExtraField();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        KProtocolInfo::ExtraField::Type a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1E", sipType_QString,&a0, &a0State, sipType_KProtocolInfo_ExtraField_Type, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KProtocolInfo::ExtraField(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const KProtocolInfo::ExtraField* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KProtocolInfo_ExtraField, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KProtocolInfo::ExtraField(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}

static sipEnumMemberDef enummembers_KProtocolInfo_ExtraField[] = {
    {sipName_DateTime, static_cast<int>(KProtocolInfo::ExtraField::DateTime), 145},
    {sipName_Invalid, static_cast<int>(KProtocolInfo::ExtraField::Invalid), 145},
    {sipName_String, static_cast<int>(KProtocolInfo::ExtraField::String), 145},
};


extern "C" {static PyObject *varget_KProtocolInfo_ExtraField_name(void *, PyObject *, PyObject *);}
static PyObject *varget_KProtocolInfo_ExtraField_name(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QString*sipVal;
    KProtocolInfo::ExtraField *sipCpp = reinterpret_cast<KProtocolInfo::ExtraField *>(sipSelf);

    sipPy = sipGetReference(sipPySelf, -1);
    if (sipPy)
        return sipPy;

    sipVal = &sipCpp->name;

    sipPy = sipConvertFromType(sipVal, sipType_QString, NULL);
    sipKeepReference(sipPySelf, -1, sipPy);

    return sipPy;
}


extern "C" {static int varset_KProtocolInfo_ExtraField_name(void *, PyObject *, PyObject *);}
static int varset_KProtocolInfo_ExtraField_name(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString*sipVal;
    KProtocolInfo::ExtraField *sipCpp = reinterpret_cast<KProtocolInfo::ExtraField *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->name = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KProtocolInfo_ExtraField_type(void *, PyObject *, PyObject *);}
static PyObject *varget_KProtocolInfo_ExtraField_type(void *sipSelf, PyObject *, PyObject *)
{
    KProtocolInfo::ExtraField::Type sipVal;
    KProtocolInfo::ExtraField *sipCpp = reinterpret_cast<KProtocolInfo::ExtraField *>(sipSelf);

    sipVal = sipCpp->type;

    return sipConvertFromEnum(sipVal, sipType_KProtocolInfo_ExtraField_Type);
}


extern "C" {static int varset_KProtocolInfo_ExtraField_type(void *, PyObject *, PyObject *);}
static int varset_KProtocolInfo_ExtraField_type(void *sipSelf, PyObject *sipPy, PyObject *)
{
    KProtocolInfo::ExtraField::Type sipVal;
    KProtocolInfo::ExtraField *sipCpp = reinterpret_cast<KProtocolInfo::ExtraField *>(sipSelf);

    sipVal = (KProtocolInfo::ExtraField::Type)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->type = sipVal;

    return 0;
}

sipVariableDef variables_KProtocolInfo_ExtraField[] = {
    {InstanceVariable, sipName_name, (PyMethodDef *)varget_KProtocolInfo_ExtraField_name, (PyMethodDef *)varset_KProtocolInfo_ExtraField_name, NULL, NULL},
    {InstanceVariable, sipName_type, (PyMethodDef *)varget_KProtocolInfo_ExtraField_type, (PyMethodDef *)varset_KProtocolInfo_ExtraField_type, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KProtocolInfo_ExtraField = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KProtocolInfo__ExtraField,
        {0}
    },
    {
        sipNameNr_ExtraField,
        {143, 255, 0},
        0, 0,
        3, enummembers_KProtocolInfo_ExtraField,
        2, variables_KProtocolInfo_ExtraField,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KProtocolInfo_ExtraField,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KProtocolInfo_ExtraField,
    assign_KProtocolInfo_ExtraField,
    array_KProtocolInfo_ExtraField,
    copy_KProtocolInfo_ExtraField,
    release_KProtocolInfo_ExtraField,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 671 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 675 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 678 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 681 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 684 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 687 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 690 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 693 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KProtocolInfo::protocols());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isKnownProtocol(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isKnownProtocol(*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(sipParseErr, sipName_KProtocolInfo, sipName_isKnownProtocol, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::exec(*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(sipParseErr, sipName_KProtocolInfo, sipName_exec_, NULL);

    return NULL;
}


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

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            KProtocolInfo::ExtraFieldList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KProtocolInfo::ExtraFieldList(KProtocolInfo::extraFields(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isHelperProtocol(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isHelperProtocol(*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(sipParseErr, sipName_KProtocolInfo, sipName_isHelperProtocol, NULL);

    return NULL;
}


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

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isFilterProtocol(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::isFilterProtocol(*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(sipParseErr, sipName_KProtocolInfo, sipName_isFilterProtocol, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::icon(*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(sipParseErr, sipName_KProtocolInfo, sipName_icon, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::config(*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(sipParseErr, sipName_KProtocolInfo, sipName_config, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::maxSlaves(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::determineMimetypeFromExtension(*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(sipParseErr, sipName_KProtocolInfo, sipName_determineMimetypeFromExtension, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::docPath(*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(sipParseErr, sipName_KProtocolInfo, sipName_docPath, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::protocolClass(*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(sipParseErr, sipName_KProtocolInfo, sipName_protocolClass, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::showFilePreview(*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(sipParseErr, sipName_KProtocolInfo, sipName_showFilePreview, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KProtocolInfo::capabilities(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KProtocolInfo::proxiedBy(*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(sipParseErr, sipName_KProtocolInfo, sipName_proxiedBy, NULL);

    return NULL;
}


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

    {
        const KProtocolInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KProtocolInfo, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportsListing();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KProtocolInfo *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KProtocolInfo *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KProtocolInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KProtocolInfo, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->canRenameFromFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KProtocolInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KProtocolInfo, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->canRenameToFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KProtocolInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KProtocolInfo, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->canDeleteRecursive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KProtocolInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KProtocolInfo, &sipCpp))
        {
            KProtocolInfo::FileNameUsedForCopying sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fileNameUsedForCopying();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KProtocolInfo_FileNameUsedForCopying);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProtocolInfo::maxSlavesPerHost(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KProtocolInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KProtocolInfo(sipSimpleWrapper *);}
static void dealloc_KProtocolInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KProtocolInfo(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KProtocolInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KProtocolInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KProtocolInfo *sipCpp = 0;

    {
        QDataStream* a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9i", sipType_QDataStream, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KProtocolInfo(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KProtocolInfo[] = {{193, 255, 1}};


static PyMethodDef methods_KProtocolInfo[] = {
    {SIP_MLNAME_CAST(sipName_archiveMimeTypes), meth_KProtocolInfo_archiveMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canDeleteRecursive), meth_KProtocolInfo_canDeleteRecursive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canRenameFromFile), meth_KProtocolInfo_canRenameFromFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canRenameToFile), meth_KProtocolInfo_canRenameToFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_capabilities), meth_KProtocolInfo_capabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_KProtocolInfo_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultMimeType), meth_KProtocolInfo_defaultMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_determineMimetypeFromExtension), meth_KProtocolInfo_determineMimetypeFromExtension, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_docPath), meth_KProtocolInfo_docPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_KProtocolInfo_exec_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extraFields), meth_KProtocolInfo_extraFields, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileNameUsedForCopying), meth_KProtocolInfo_fileNameUsedForCopying, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KProtocolInfo_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFilterProtocol), meth_KProtocolInfo_isFilterProtocol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHelperProtocol), meth_KProtocolInfo_isHelperProtocol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isKnownProtocol), meth_KProtocolInfo_isKnownProtocol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxSlaves), meth_KProtocolInfo_maxSlaves, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxSlavesPerHost), meth_KProtocolInfo_maxSlavesPerHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_protocolClass), meth_KProtocolInfo_protocolClass, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_protocols), meth_KProtocolInfo_protocols, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxiedBy), meth_KProtocolInfo_proxiedBy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showFilePreview), meth_KProtocolInfo_showFilePreview, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportsListing), meth_KProtocolInfo_supportsListing, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KProtocolInfo[] = {
    {sipName_DisplayName, static_cast<int>(KProtocolInfo::DisplayName), 146},
    {sipName_FromUrl, static_cast<int>(KProtocolInfo::FromUrl), 146},
    {sipName_Name, static_cast<int>(KProtocolInfo::Name), 146},
    {sipName_T_ERROR, static_cast<int>(KProtocolInfo::T_ERROR), 147},
    {sipName_T_FILESYSTEM, static_cast<int>(KProtocolInfo::T_FILESYSTEM), 147},
    {sipName_T_NONE, static_cast<int>(KProtocolInfo::T_NONE), 147},
    {sipName_T_STREAM, static_cast<int>(KProtocolInfo::T_STREAM), 147},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KProtocolInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KProtocolInfo,
        {0}
    },
    {
        sipNameNr_KProtocolInfo,
        {0, 0, 1},
        23, methods_KProtocolInfo,
        7, enummembers_KProtocolInfo,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KProtocolInfo,
    0,
    init_type_KProtocolInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KProtocolInfo,
    0,
    0,
    0,
    release_KProtocolInfo,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 1529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 1533 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1536 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1539 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1542 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    {
        KSycocaType a0;
        const KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KSycocaEntry, &sipCpp, sipType_KSycocaType, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isType(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSycocaEntry, &sipCpp))
        {
            KSycocaType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sycocaType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KSycocaType);
        }
    }

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

    return NULL;
}


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

    {
        QDataStream* a0;
        QString* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1", sipType_QDataStream, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            KSycocaEntry::read(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QDataStream* a0;
        QStringList* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1", sipType_QDataStream, &a0, sipType_QStringList,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            KSycocaEntry::read(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QStringList,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSycocaEntry, &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(sipParseErr, sipName_KSycocaEntry, sipName_name, NULL);

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSycocaEntry, &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(sipParseErr, sipName_KSycocaEntry, sipName_entryPath, NULL);

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSycocaEntry, &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(sipParseErr, sipName_KSycocaEntry, sipName_isValid, NULL);

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSycocaEntry, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDeleted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KSycocaEntry, &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(sipParseErr, sipName_KSycocaEntry, sipName_property, NULL);

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        bool a0;
        KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KSycocaEntry, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDeleted(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSycocaEntry, &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(sipParseErr, sipName_KSycocaEntry, sipName_isSeparator, NULL);

    return NULL;
}


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

    {
        const KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSycocaEntry, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->offset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QDataStream* a0;
        KSycocaEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KSycocaEntry, &sipCpp, sipType_QDataStream, &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(sipParseErr, sipName_KSycocaEntry, sipName_save, NULL);

    return NULL;
}


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

    delete reinterpret_cast<KSycocaEntry *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSycocaEntry(sipSimpleWrapper *);}
static void dealloc_KSycocaEntry(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KSycocaEntry(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KSycocaEntry(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSycocaEntry(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KSycocaEntry *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KSycocaEntry();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KSycocaEntry[] = {
    {SIP_MLNAME_CAST(sipName_entryPath), meth_KSycocaEntry_entryPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDeleted), meth_KSycocaEntry_isDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSeparator), meth_KSycocaEntry_isSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isType), meth_KSycocaEntry_isType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KSycocaEntry_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KSycocaEntry_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_KSycocaEntry_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KSycocaEntry_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_propertyNames), meth_KSycocaEntry_propertyNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_read), meth_KSycocaEntry_read, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_KSycocaEntry_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDeleted), meth_KSycocaEntry_setDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_storageId), meth_KSycocaEntry_storageId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sycocaType), meth_KSycocaEntry_sycocaType, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSycocaEntry = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KSycocaEntry,
        {0}
    },
    {
        sipNameNr_KSycocaEntry,
        {0, 0, 1},
        14, methods_KSycocaEntry,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KSycocaEntry,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSycocaEntry,
    0,
    0,
    0,
    release_KSycocaEntry,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kprocess.sip"
#include <kprocess.h>
#line 2061 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2065 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2068 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2071 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 2074 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 210 "/usr/share/python3-sip/PyQt4/QtCore/qprocess.sip"
#include <qprocess.h>
#line 2077 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qprocess.sip"
#include <qprocess.h>
#line 2080 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2083 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2086 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2089 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2092 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2095 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2098 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2101 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2104 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2107 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


class sipKProcess : public KProcess
{
public:
    sipKProcess(QObject*);
    virtual ~sipKProcess();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    qint64 readLineData(char*,qint64);
    bool reset();
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readData(char*,qint64);
    void setupChildProcess();
    bool atEnd() const;
    void close();
    bool canReadLine() const;
    bool isSequential() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKProcess(const sipKProcess &);
    sipKProcess &operator = (const sipKProcess &);

    char sipPyMethods[24];
};

sipKProcess::sipKProcess(QObject*a0): KProcess(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKProcess::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KProcess);
}

int sipKProcess::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KProcess::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KProcess,_c,_id,_a);

    return _id;
}

void *sipKProcess::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KProcess, _clname)) ? this : KProcess::qt_metacast(_clname);
}

void sipKProcess::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KProcess::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKProcess::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KProcess::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKProcess::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KProcess::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKProcess::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KProcess::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKProcess::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KProcess::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKProcess::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KProcess::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKProcess::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KProcess::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKProcess::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return KProcess::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKProcess::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return KProcess::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKProcess::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return KProcess::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKProcess::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return KProcess::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKProcess::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return KProcess::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKProcess::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KProcess::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKProcess::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KProcess::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKProcess::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return KProcess::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKProcess::setupChildProcess()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_setupChildProcess);

    if (!sipMeth)
    {
        KProcess::setupChildProcess();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKProcess::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return KProcess::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKProcess::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        KProcess::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKProcess::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return KProcess::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKProcess::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return KProcess::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKProcess::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return KProcess::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKProcess::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return KProcess::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKProcess::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return KProcess::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKProcess::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return KProcess::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        KProcess::OutputChannelMode a0;
        KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KProcess, &sipCpp, sipType_KProcess_OutputChannelMode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOutputChannelMode(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KProcess, &sipCpp))
        {
            KProcess::OutputChannelMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->outputChannelMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KProcess_OutputChannelMode);
        }
    }

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

    return NULL;
}


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

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KProcess, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNextOpenMode(*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(sipParseErr, sipName_KProcess, sipName_setNextOpenMode, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        bool a2 = 1;
        KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1|b", &sipSelf, sipType_KProcess, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEnv(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,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(sipParseErr, sipName_KProcess, sipName_setEnv, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KProcess, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->unsetEnv(*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(sipParseErr, sipName_KProcess, sipName_unsetEnv, NULL);

    return NULL;
}


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

    {
        KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KProcess, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearEnvironment();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_KProcess, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProgram(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KProcess, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProgram(*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(sipParseErr, sipName_KProcess, sipName_setProgram, NULL);

    return NULL;
}


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

    {
        KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KProcess, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearProgram();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KProcess, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setShellCommand(*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(sipParseErr, sipName_KProcess, sipName_setShellCommand, NULL);

    return NULL;
}


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

    {
        const KProcess *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KProcess, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->start();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0 = -1;
        KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KProcess, &sipCpp, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->execute(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList* a1 = &a1def;
        int a1State = 0;
        int a2 = -1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1i", sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProcess::execute(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QStringList* a0;
        int a0State = 0;
        int a1 = -1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|i", sipType_QStringList,&a0, &a0State, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProcess::execute(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KProcess, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->startDetached();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1", sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProcess::startDetached(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QStringList* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QStringList,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KProcess::startDetached(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KProcess, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pid();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_KProcess___lshift__(PyObject *,PyObject *);}
static PyObject *slot_KProcess___lshift__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KProcess* a0;
        const QString* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J1", sipType_KProcess, &a0, sipType_QString,&a1, &a1State))
        {
            KProcess*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        KProcess* a0;
        const QStringList* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J1", sipType_KProcess, &a0, sipType_QStringList,&a1, &a1State))
        {
            KProcess*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


/* Call the instance's destructor. */
extern "C" {static void release_KProcess(void *, int);}
static void release_KProcess(void *sipCppV,int)
{
    KProcess *sipCpp = reinterpret_cast<KProcess *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KProcess(sipSimpleWrapper *);}
static void dealloc_KProcess(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKProcess *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KProcess(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KProcess(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KProcess(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKProcess *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKProcess(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KProcess[] = {{151, 0, 1}};


/* Define this type's Python slots. */
static sipPySlotDef slots_KProcess[] = {
    {(void *)slot_KProcess___lshift__, lshift_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KProcess[] = {
    {SIP_MLNAME_CAST(sipName_clearEnvironment), meth_KProcess_clearEnvironment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearProgram), meth_KProcess_clearProgram, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_execute), meth_KProcess_execute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outputChannelMode), meth_KProcess_outputChannelMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pid), meth_KProcess_pid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_program), meth_KProcess_program, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEnv), meth_KProcess_setEnv, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNextOpenMode), meth_KProcess_setNextOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOutputChannelMode), meth_KProcess_setOutputChannelMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgram), meth_KProcess_setProgram, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShellCommand), meth_KProcess_setShellCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_KProcess_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startDetached), meth_KProcess_startDetached, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unsetEnv), meth_KProcess_unsetEnv, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KProcess[] = {
    {sipName_ForwardedChannels, static_cast<int>(KProcess::ForwardedChannels), 142},
    {sipName_MergedChannels, static_cast<int>(KProcess::MergedChannels), 142},
    {sipName_OnlyStderrChannel, static_cast<int>(KProcess::OnlyStderrChannel), 142},
    {sipName_OnlyStdoutChannel, static_cast<int>(KProcess::OnlyStdoutChannel), 142},
    {sipName_SeparateChannels, static_cast<int>(KProcess::SeparateChannels), 142},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KProcess = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KProcess,
        {0}
    },
    {
        sipNameNr_KProcess,
        {0, 0, 1},
        14, methods_KProcess,
        5, enummembers_KProcess,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KProcess,
    slots_KProcess,
    init_type_KProcess,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KProcess,
    0,
    0,
    0,
    release_KProcess,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KProcess::staticMetaObject,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kpluginloader.sip"
#include <kpluginloader.h>
#line 3263 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3267 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 3270 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3273 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 3276 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 3279 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlibrary.sip"
#include <qlibrary.h>
#line 3282 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3285 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3288 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3291 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3294 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3297 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3300 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3303 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3306 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 3309 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3312 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3315 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


class sipKPluginLoader : public KPluginLoader
{
public:
    sipKPluginLoader(const QString&,const KComponentData&,QObject*);
    sipKPluginLoader(const KService&,const KComponentData&,QObject*);
    virtual ~sipKPluginLoader();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKPluginLoader(const sipKPluginLoader &);
    sipKPluginLoader &operator = (const sipKPluginLoader &);

    char sipPyMethods[7];
};

sipKPluginLoader::sipKPluginLoader(const QString& a0,const KComponentData& a1,QObject*a2): KPluginLoader(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPluginLoader::sipKPluginLoader(const KService& a0,const KComponentData& a1,QObject*a2): KPluginLoader(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKPluginLoader::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KPluginLoader);
}

int sipKPluginLoader::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KPluginLoader::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KPluginLoader,_c,_id,_a);

    return _id;
}

void *sipKPluginLoader::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KPluginLoader, _clname)) ? this : KPluginLoader::qt_metacast(_clname);
}

void sipKPluginLoader::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KPluginLoader::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPluginLoader::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KPluginLoader::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPluginLoader::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KPluginLoader::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPluginLoader::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KPluginLoader::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPluginLoader::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KPluginLoader::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKPluginLoader::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KPluginLoader::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKPluginLoader::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KPluginLoader::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        KPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPluginLoader, &sipCpp))
        {
            KPluginFactory*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->factory();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPluginLoader, &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(sipParseErr, sipName_KPluginLoader, sipName_pluginName, NULL);

    return NULL;
}


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

    {
        const KPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPluginLoader, &sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pluginVersion();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPluginLoader, &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(sipParseErr, sipName_KPluginLoader, sipName_errorString, NULL);

    return NULL;
}


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

    {
        const KPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPluginLoader, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLoaded();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KPluginLoader, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KPluginLoader(void *, int);}
static void release_KPluginLoader(void *sipCppV,int)
{
    KPluginLoader *sipCpp = reinterpret_cast<KPluginLoader *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KPluginLoader(sipSimpleWrapper *);}
static void dealloc_KPluginLoader(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKPluginLoader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KPluginLoader(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KPluginLoader(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KPluginLoader(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKPluginLoader *sipCpp = 0;

    {
        const QString* a0;
        int a0State = 0;
        const KComponentData& a1def = KGlobal::mainComponent();
        const KComponentData* a1 = &a1def;
        QObject* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J9JH", sipType_QString,&a0, &a0State, sipType_KComponentData, &a1, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginLoader(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KService* a0;
        const KComponentData& a1def = KGlobal::mainComponent();
        const KComponentData* a1 = &a1def;
        QObject* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|J9JH", sipType_KService, &a0, sipType_KComponentData, &a1, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginLoader(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KPluginLoader[] = {{148, 0, 1}};


static PyMethodDef methods_KPluginLoader[] = {
    {SIP_MLNAME_CAST(sipName_errorString), meth_KPluginLoader_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_factory), meth_KPluginLoader_factory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLoaded), meth_KPluginLoader_isLoaded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_load), meth_KPluginLoader_load, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginName), meth_KPluginLoader_pluginName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginVersion), meth_KPluginLoader_pluginVersion, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KPluginLoader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KPluginLoader,
        {0}
    },
    {
        sipNameNr_KPluginLoader,
        {0, 0, 1},
        6, methods_KPluginLoader,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KPluginLoader,
    0,
    init_type_KPluginLoader,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPluginLoader,
    0,
    0,
    0,
    release_KPluginLoader,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KPluginLoader::staticMetaObject,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 3816 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3820 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 3823 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 3826 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 3829 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 114 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 3832 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3835 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3838 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3841 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J9", sipType_QList_0100KService_Ptr,&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_0100KService_Ptr,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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);

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

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

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_isHidden, NULL);

    return NULL;
}


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

    {
        bool a0;
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_setPluginEnabled, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_isPluginEnabled, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_isPluginEnabledByDefault, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_property, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_name, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_comment, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_icon, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_entryPath, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_author, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_email, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_category, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_pluginName, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_version, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_website, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_license, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_fullLicense, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_dependencies, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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

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

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

    return NULL;
}


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

    {
        const KConfigGroup* a0;
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_setConfig, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_config, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_save, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_load, NULL);

    return NULL;
}


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

    {
        KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_defaults, NULL);

    return NULL;
}


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

    {
        const KPluginInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KPluginInfo, sipName_isValid, NULL);

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KPluginInfo* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KPluginInfo* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KPluginInfo* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KPluginInfo* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KPluginInfo* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KPluginInfo* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


/* 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 *, SIP_SSIZE_T, const void *);}
static void assign_KPluginInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KPluginInfo *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KPluginInfo *>(sipSrc);
}


extern "C" {static void *array_KPluginInfo(SIP_SSIZE_T);}
static void *array_KPluginInfo(SIP_SSIZE_T sipNrElem)
{
    return new KPluginInfo[sipNrElem];
}


extern "C" {static void *copy_KPluginInfo(const void *, SIP_SSIZE_T);}
static void *copy_KPluginInfo(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KPluginInfo(reinterpret_cast<const KPluginInfo *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KPluginInfo(sipSimpleWrapper *);}
static void dealloc_KPluginInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KPluginInfo(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KPluginInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KPluginInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KPluginInfo *sipCpp = 0;

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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);

            return sipCpp;
        }
    }

    {
        const KService::Ptr* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KSharedPtr_0100KService,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPluginInfo(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KService::Ptr *>(a0),sipType_KSharedPtr_0100KService,a0State);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPluginInfo();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KPluginInfo* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KPluginInfo, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPluginInfo(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* 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 sipTypeDef_kdecore_KPluginInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KPluginInfo,
        {0}
    },
    {
        sipNameNr_KPluginInfo,
        {0, 0, 1},
        29, methods_KPluginInfo,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KPluginInfo,
    init_type_KPluginInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPluginInfo,
    assign_KPluginInfo,
    array_KPluginInfo,
    copy_KPluginInfo,
    release_KPluginInfo,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 5056 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5060 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 5063 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 5066 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5069 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5072 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5075 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5078 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 5081 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5084 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5087 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5090 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5093 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5096 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5099 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5102 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5105 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5108 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5111 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5114 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


class sipKPluginFactory : public KPluginFactory
{
public:
    sipKPluginFactory(const char*,const char*,QObject*);
    sipKPluginFactory(const KAboutData&,QObject*);
    sipKPluginFactory(const KAboutData*,QObject*);
    sipKPluginFactory(QObject*);
    virtual ~sipKPluginFactory();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QObject* create(const char*,QWidget*,QObject*,const QVariantList&,const QString&);
    QObject* createObject(QObject*,const char*,const QStringList&);
    void setupTranslations();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKPluginFactory(const sipKPluginFactory &);
    sipKPluginFactory &operator = (const sipKPluginFactory &);

    char sipPyMethods[10];
};

sipKPluginFactory::sipKPluginFactory(const char*a0,const char*a1,QObject*a2): KPluginFactory(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPluginFactory::sipKPluginFactory(const KAboutData& a0,QObject*a1): KPluginFactory(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPluginFactory::sipKPluginFactory(const KAboutData*a0,QObject*a1): KPluginFactory(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPluginFactory::sipKPluginFactory(QObject*a0): KPluginFactory(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKPluginFactory::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KPluginFactory);
}

int sipKPluginFactory::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KPluginFactory::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KPluginFactory,_c,_id,_a);

    return _id;
}

void *sipKPluginFactory::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KPluginFactory, _clname)) ? this : KPluginFactory::qt_metacast(_clname);
}

void sipKPluginFactory::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KPluginFactory::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPluginFactory::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KPluginFactory::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPluginFactory::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KPluginFactory::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPluginFactory::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KPluginFactory::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPluginFactory::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KPluginFactory::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKPluginFactory::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KPluginFactory::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKPluginFactory::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KPluginFactory::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipKPluginFactory::create(const char*a0,QWidget*a1,QObject*a2,const QVariantList& a3,const QString& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_create);

    if (!sipMeth)
        return KPluginFactory::create(a0,a1,a2,a3,a4);

    extern QObject* sipVH_kdecore_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,QWidget*,QObject*,const QList<QVariant>&,const QString&);

    return sipVH_kdecore_16(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QObject* sipKPluginFactory::createObject(QObject*a0,const char*a1,const QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_createObject);

    if (!sipMeth)
        return KPluginFactory::createObject(a0,a1,a2);

    extern QObject* sipVH_kdecore_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,const char*,const QStringList&);

    return sipVH_kdecore_17(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKPluginFactory::setupTranslations()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_setupTranslations);

    if (!sipMeth)
    {
        KPluginFactory::setupTranslations();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const KPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPluginFactory, &sipCpp))
        {
            KComponentData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(sipCpp->componentData());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KPluginFactory_create(PyObject *, PyObject *);}
static PyObject *meth_KPluginFactory_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject* a0 = 0;
        const char* a1 = "QObject";
        PyObject *a1Keep = 0;
        const QStringList& a2def = QStringList();
        const QStringList* a2 = &a2def;
        int a2State = 0;
        KPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J:AAJ1", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_QObject, &a0, &a1Keep, &a1, sipType_QStringList,&a2, &a2State))
        {
            QObject*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->create(a0,a1,*a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);
            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

    {
        const char* a0;
        PyObject *a0Keep;
        QWidget* a1;
        QObject* a2;
        const QVariantList* a3;
        int a3State = 0;
        const QString* a4;
        int a4State = 0;
        KPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pAAJ8J:J1J1", &sipSelf, sipType_KPluginFactory, &sipCpp, &a0Keep, &a0, sipType_QWidget, &a1, sipType_QObject, &a2, sipType_QList_0100QVariant,&a3, &a3State, sipType_QString,&a4, &a4State))
        {
            QObject*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPluginFactory::create(a0,a1,a2,*a3,*a4) : sipCpp->create(a0,a1,a2,*a3,*a4));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QVariantList *>(a3),sipType_QList_0100QVariant,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            QVariantList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantList(sipCpp->stringListToVariantList(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

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

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

    return NULL;
}


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

    {
        const QVariantList* a0;
        int a0State = 0;
        KPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_QList_0100QVariant,&a0, &a0State))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->variantListToStringList(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariantList *>(a0),sipType_QList_0100QVariant,a0State);

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KPluginFactory_setupTranslations(PyObject *, PyObject *);}
static PyObject *meth_KPluginFactory_setupTranslations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KPluginFactory, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KPluginFactory::setupTranslations() : sipCpp->setupTranslations());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KPluginFactory_createObject(PyObject *, PyObject *);}
static PyObject *meth_KPluginFactory_createObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject* a0;
        const char* a1;
        PyObject *a1Keep;
        const QStringList* a2;
        int a2State = 0;
        KPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ:AAJ1", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_QObject, &a0, &a1Keep, &a1, sipType_QStringList,&a2, &a2State))
        {
            QObject*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPluginFactory::createObject(a0,a1,*a2) : sipCpp->createObject(a0,a1,*a2));
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);
            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

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

    return NULL;
}


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

    {
        const KComponentData* a0;
        KPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setComponentData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KPluginFactory(void *, int);}
static void release_KPluginFactory(void *sipCppV,int)
{
    KPluginFactory *sipCpp = reinterpret_cast<KPluginFactory *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KPluginFactory(sipSimpleWrapper *);}
static void dealloc_KPluginFactory(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKPluginFactory *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KPluginFactory(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KPluginFactory(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KPluginFactory(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKPluginFactory *sipCpp = 0;

    {
        const char* a0 = 0;
        PyObject *a0Keep = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        QObject* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|AAAAJH", &a0Keep, &a0, &a1Keep, &a1, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginFactory(a0,a1,a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a0Keep);
            Py_XDECREF(a1Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KAboutData* a0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|JH", sipType_KAboutData, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginFactory(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KAboutData* a0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_KAboutData, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginFactory(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPluginFactory(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KPluginFactory[] = {{141, 0, 1}};


static PyMethodDef methods_KPluginFactory[] = {
    {SIP_MLNAME_CAST(sipName_componentData), meth_KPluginFactory_componentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KPluginFactory_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createObject), meth_KPluginFactory_createObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KPluginFactory_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setupTranslations), meth_KPluginFactory_setupTranslations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stringListToVariantList), meth_KPluginFactory_stringListToVariantList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variantListToStringList), meth_KPluginFactory_variantListToStringList, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KPluginFactory[] = {
    {"objectCreated(QObject*)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KPluginFactory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KPluginFactory,
        {0}
    },
    {
        sipNameNr_KPluginFactory,
        {0, 0, 1},
        7, methods_KPluginFactory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KPluginFactory,
    0,
    init_type_KPluginFactory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPluginFactory,
    0,
    0,
    0,
    release_KPluginFactory,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KPluginFactory::staticMetaObject,
    0,
    signals_KPluginFactory,
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmimetypetrader.sip"
#include <kmimetypetrader.h>
#line 5792 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5796 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 5799 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5802 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 114 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 5805 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    {
        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;
        const KMimeTypeTrader *sipCpp;

        if (sipParseArgs(&sipParseErr, 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);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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);

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeTypeTrader, sipName_self, NULL);

    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(sipGetAddress(sipSelf),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 sipTypeDef_kdecore_KMimeTypeTrader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KMimeTypeTrader,
        {0}
    },
    {
        sipNameNr_KMimeTypeTrader,
        {0, 0, 1},
        3, methods_KMimeTypeTrader,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMimeTypeTrader,
    0,
    0,
    0,
    release_KMimeTypeTrader,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 87 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 5989 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5993 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 5996 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


extern "C" {static void assign_QList_0100KMimeType_Ptr(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100KMimeType_Ptr(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<KMimeType::Ptr> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<KMimeType::Ptr> *>(sipSrc);
}


extern "C" {static void *array_QList_0100KMimeType_Ptr(SIP_SSIZE_T);}
static void *array_QList_0100KMimeType_Ptr(SIP_SSIZE_T sipNrElem)
{
    return new QList<KMimeType::Ptr>[sipNrElem];
}


extern "C" {static void *copy_QList_0100KMimeType_Ptr(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100KMimeType_Ptr(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<KMimeType::Ptr>(reinterpret_cast<const QList<KMimeType::Ptr> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100KMimeType_Ptr(void *, int);}
static void release_QList_0100KMimeType_Ptr(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<KMimeType::Ptr> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QList_0100KMimeType_Ptr(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100KMimeType_Ptr(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<KMimeType::Ptr> **sipCppPtr = reinterpret_cast<QList<KMimeType::Ptr> **>(sipCppPtrV);

#line 118 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmimetype.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;

        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_KMimeType, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<KMimeType::Ptr> *ql = new QList<KMimeType::Ptr>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        KMimeType *t = reinterpret_cast<KMimeType *>(sipConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_KMimeType, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseInstance(t, sipClass_KMimeType, state);

            delete ql;
            return 0;
        }

        KSharedPtr<KMimeType> *tptr = new KSharedPtr<KMimeType> (t);

        ql->append(*tptr);

        sipReleaseInstance(t, sipClass_KMimeType, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 6075 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100KMimeType_Ptr(void *, PyObject *);}
static PyObject *convertFrom_QList_0100KMimeType_Ptr(void *sipCppV, PyObject *sipTransferObj)
{
   QList<KMimeType::Ptr> *sipCpp = reinterpret_cast<QList<KMimeType::Ptr> *>(sipCppV);

#line 91 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmimetype.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        KMimeType::Ptr *t = new KMimeType::Ptr (sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewInstance(t->data(), sipClass_KMimeType, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 6109 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0100KMimeType_Ptr = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6310,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100KMimeType_Ptr,
    array_QList_0100KMimeType_Ptr,
    copy_QList_0100KMimeType_Ptr,
    release_QList_0100KMimeType_Ptr,
    convertTo_QList_0100KMimeType_Ptr,
    convertFrom_QList_0100KMimeType_Ptr
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 6140 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 6144 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6150 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6153 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 87 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 6156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6159 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 6162 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 6165 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 68 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 6168 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6171 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 6174 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 144 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 6177 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6180 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_iconName, NULL);

    return NULL;
}


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

    {
        const KUrl* a0;
        mode_t a1 = 0;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_iconNameForUrl, NULL);

    return NULL;
}


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

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_favIconForUrl, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_comment, NULL);

    return NULL;
}


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

    {
        const KMimeType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_patterns, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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 = sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KMimeType,NULL);
            return sipBuildResult(0,"(Ri)",sipResObj,a4);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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 = sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KMimeType,NULL);
            return sipBuildResult(0,"(Ri)",sipResObj,a3);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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 = sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KMimeType,NULL);
            return sipBuildResult(0,"(Ri)",sipResObj,a1);
        }
    }

    {
        QIODevice* a0;
        int a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QIODevice, &a0))
        {
            KMimeType::Ptr*sipRes;

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

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KMimeType,NULL);
            return sipBuildResult(0,"(Ri)",sipResObj,a1);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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 = sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KMimeType,NULL);
            return sipBuildResult(0,"(Ri)",sipResObj,a3);
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8|u", sipType_QString,&a0, &a0State, sipType_QIODevice, &a1, &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);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KMimeType,NULL);
            return sipBuildResult(0,"(Ri)",sipResObj,a3);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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 = sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KMimeType,NULL);
            return sipBuildResult(0,"(Ri)",sipResObj,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_isBinaryData, NULL);

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_isBufferBinaryData, NULL);

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_defaultMimeType, NULL);

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

    {
        const KMimeType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_isDefault, NULL);

    return NULL;
}


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

    {
        const KMimeType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_parentMimeType, NULL);

    return NULL;
}


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

    {
        const KMimeType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_parentMimeTypes, NULL);

    return NULL;
}


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

    {
        const KMimeType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_allParentMimeTypes, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_is_, NULL);

    return NULL;
}


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

    {
        const KMimeType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_userSpecifiedIconName, NULL);

    return NULL;
}


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

    {
        const KMimeType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_mainExtension, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_extractKnownExtension, NULL);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KMimeType, sipName_sharedMimeInfoVersion, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KMimeType::matchFileName(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KMimeType *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KMimeType(sipSimpleWrapper *);}
static void dealloc_KMimeType(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KMimeType(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KMimeType(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KMimeType(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KMimeType *sipCpp = 0;

    {
        QDataStream* a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9i", sipType_QDataStream, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KMimeType(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KMimeType(*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);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KMimeType[] = {{162, 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_matchFileName), meth_KMimeType_matchFileName, 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, static_cast<int>(KMimeType::DontResolveAlias), 136},
    {sipName_ResolveAliases, static_cast<int>(KMimeType::ResolveAliases), 136},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KMimeType = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KMimeType,
        {0}
    },
    {
        sipNameNr_KMimeType,
        {0, 0, 1},
        26, methods_KMimeType,
        2, enummembers_KMimeType,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KMimeType,
    0,
    init_type_KMimeType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMimeType,
    0,
    0,
    0,
    release_KMimeType,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 7124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kdesktopfile.sip"
#include <kdesktopfile.h>
#line 7128 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 7131 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 68 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 7134 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7137 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7140 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 144 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 7143 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7146 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7149 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    {
        const KServiceType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_comment, NULL);

    return NULL;
}


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

    {
        const KServiceType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_desktopEntryPath, NULL);

    return NULL;
}


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

    {
        const KServiceType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_isDerived, NULL);

    return NULL;
}


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

    {
        const KServiceType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_parentServiceType, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_inherits, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_propertyDef, NULL);

    return NULL;
}


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

    {
        const KServiceType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_propertyDefNames, NULL);

    return NULL;
}


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

    {
        const KServiceType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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

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

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

    return NULL;
}


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

    {
        KServiceType *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        KServiceType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_setServiceOffersOffset, NULL);

    return NULL;
}


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

    {
        const KServiceType *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KServiceType, sipName_serviceOffersOffset, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, 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);

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

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

    return NULL;
}


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

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

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

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

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

    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(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KServiceType(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KServiceType(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KServiceType *sipCpp = 0;

    {
        KDesktopFile* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KDesktopFile, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceType(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        QDataStream* a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9i", sipType_QDataStream, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceType(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KServiceType[] = {{193, 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 sipTypeDef_kdecore_KServiceType = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KServiceType,
        {0}
    },
    {
        sipNameNr_KServiceType,
        {0, 0, 1},
        13, methods_KServiceType,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KServiceType,
    0,
    init_type_KServiceType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KServiceType,
    0,
    0,
    0,
    release_KServiceType,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 51 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmessage.sip"
#include <kmessage.h>
#line 7643 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7647 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


class sipKMessageHandler : public KMessageHandler
{
public:
    sipKMessageHandler();
    sipKMessageHandler(const KMessageHandler&);
    virtual ~sipKMessageHandler();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void message(KMessage::MessageType,const QString&,const QString&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKMessageHandler(const sipKMessageHandler &);
    sipKMessageHandler &operator = (const sipKMessageHandler &);

    char sipPyMethods[1];
};

sipKMessageHandler::sipKMessageHandler(): KMessageHandler(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKMessageHandler::sipKMessageHandler(const KMessageHandler& a0): KMessageHandler(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKMessageHandler::message(KMessage::MessageType a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_KMessageHandler,sipName_message);

    if (!sipMeth)
        return;

    extern void sipVH_kdecore_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KMessage::MessageType,const QString&,const QString&);

    sipVH_kdecore_18(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}


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

    {
        KMessage::MessageType a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        KMessageHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1J1", &sipSelf, sipType_KMessageHandler, &sipCpp, sipType_KMessage_MessageType, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KMessageHandler, sipName_message);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->message(a0,*a1,*a2);
            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;
        }
    }

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKMessageHandler *>(sipCppV);
    else
        delete reinterpret_cast<KMessageHandler *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KMessageHandler(sipSimpleWrapper *);}
static void dealloc_KMessageHandler(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKMessageHandler *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KMessageHandler(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KMessageHandler(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KMessageHandler(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKMessageHandler *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKMessageHandler();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KMessageHandler* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KMessageHandler, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKMessageHandler(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KMessageHandler[] = {
    {SIP_MLNAME_CAST(sipName_message), meth_KMessageHandler_message, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KMessageHandler = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KMessageHandler,
        {0}
    },
    {
        sipNameNr_KMessageHandler,
        {0, 0, 1},
        1, methods_KMessageHandler,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KMessageHandler,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMessageHandler,
    0,
    0,
    0,
    release_KMessageHandler,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7871 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 51 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmessage.sip"
#include <kmessage.h>
#line 7874 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    {
        KMessageHandler* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_KMessageHandler, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KMessage::setMessageHandler(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KMessage::MessageType a0;
        const QString* a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "EJ1|J1", sipType_KMessage_MessageType, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            KMessage::message(a0,*a1,*a2);
            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;
        }
    }

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

    return NULL;
}


static PyMethodDef methods_KMessage[] = {
    {SIP_MLNAME_CAST(sipName_message), meth_KMessage_message, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMessageHandler), meth_KMessage_setMessageHandler, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KMessage[] = {
    {sipName_Error, static_cast<int>(KMessage::Error), 133},
    {sipName_Fatal, static_cast<int>(KMessage::Fatal), 133},
    {sipName_Information, static_cast<int>(KMessage::Information), 133},
    {sipName_Sorry, static_cast<int>(KMessage::Sorry), 133},
    {sipName_Warning, static_cast<int>(KMessage::Warning), 133},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KMessage = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KMessage,
        {0}
    },
    {
        sipNameNr_KMessage,
        {0, 0, 1},
        2, methods_KMessage,
        5, enummembers_KMessage,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8006 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 8009 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 116 "/usr/share/python3-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 8012 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8015 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 67 "/usr/share/python3-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 8018 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 8021 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 8024 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 51 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8027 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8030 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 8033 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    {
        const QString* a0;
        int a0State = 0;
        const QHash<QChar,QString>* a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QChar_0100QString,&a1, &a1State, sipType_QChar,&a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacrosShellQuote(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QChar,QString> *>(a1),sipType_QHash_0100QChar_0100QString,a1State);
            sipReleaseType(a2,sipType_QChar,a2State);

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

    {
        const QString* a0;
        int a0State = 0;
        const QHash<QString,QString>* a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QString_0100QString,&a1, &a1State, sipType_QChar,&a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacrosShellQuote(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QString,QString> *>(a1),sipType_QHash_0100QString_0100QString,a1State);
            sipReleaseType(a2,sipType_QChar,a2State);

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

    {
        const QString* a0;
        int a0State = 0;
        const QHash<QChar,QStringList>* a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QChar_0100QStringList,&a1, &a1State, sipType_QChar,&a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacrosShellQuote(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QChar,QStringList> *>(a1),sipType_QHash_0100QChar_0100QStringList,a1State);
            sipReleaseType(a2,sipType_QChar,a2State);

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

    {
        const QString* a0;
        int a0State = 0;
        const QHash<QString,QStringList>* a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QString_0100QStringList,&a1, &a1State, sipType_QChar,&a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacrosShellQuote(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QString,QStringList> *>(a1),sipType_QHash_0100QString_0100QStringList,a1State);
            sipReleaseType(a2,sipType_QChar,a2State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QHash<QChar,QString>* a1;
        int a1State = 0;
        QChar a2def = '%';
        QChar* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QChar_0100QString,&a1, &a1State, sipType_QChar,&a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacros(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QChar,QString> *>(a1),sipType_QHash_0100QChar_0100QString,a1State);
            sipReleaseType(a2,sipType_QChar,a2State);

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

    {
        const QString* a0;
        int a0State = 0;
        const QHash<QString,QString>* a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QString_0100QString,&a1, &a1State, sipType_QChar,&a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacros(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QString,QString> *>(a1),sipType_QHash_0100QString_0100QString,a1State);
            sipReleaseType(a2,sipType_QChar,a2State);

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

    {
        const QString* a0;
        int a0State = 0;
        const QHash<QChar,QStringList>* a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QChar_0100QStringList,&a1, &a1State, sipType_QChar,&a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacros(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QChar,QStringList> *>(a1),sipType_QHash_0100QChar_0100QStringList,a1State);
            sipReleaseType(a2,sipType_QChar,a2State);

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

    {
        const QString* a0;
        int a0State = 0;
        const QHash<QString,QStringList>* a1;
        int a1State = 0;
        QChar a2def = QLatin1Char('%');
        QChar* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QString_0100QStringList,&a1, &a1State, sipType_QChar,&a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KMacroExpander::expandMacros(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHash<QString,QStringList> *>(a1),sipType_QHash_0100QString_0100QStringList,a1State);
            sipReleaseType(a2,sipType_QChar,a2State);

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

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

    return NULL;
}


static PyMethodDef methods_KMacroExpander[] = {
    {SIP_MLNAME_CAST(sipName_expandMacros), meth_KMacroExpander_expandMacros, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacrosShellQuote), meth_KMacroExpander_expandMacrosShellQuote, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KMacroExpander = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KMacroExpander,
        {0}
    },
    {
        sipNameNr_KMacroExpander,
        {0, 0, 1},
        2, methods_KMacroExpander,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 91 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 8313 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 67 "/usr/share/python3-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 8317 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8320 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8323 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


class sipKCharMacroExpander : public KCharMacroExpander
{
public:
    sipKCharMacroExpander(QChar);
    virtual ~sipKCharMacroExpander();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool expandMacro(QChar,QStringList&);
    int expandEscapedMacro(const QString&,int,QStringList&);
    int expandPlainMacro(const QString&,int,QStringList&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKCharMacroExpander(const sipKCharMacroExpander &);
    sipKCharMacroExpander &operator = (const sipKCharMacroExpander &);

    char sipPyMethods[3];
};

sipKCharMacroExpander::sipKCharMacroExpander(QChar a0): KCharMacroExpander(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKCharMacroExpander::expandMacro(QChar a0,QStringList& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_KCharMacroExpander,sipName_expandMacro);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChar,QStringList&);

    return sipVH_kdecore_19(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKCharMacroExpander::expandEscapedMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_expandEscapedMacro);

    if (!sipMeth)
        return KCharMacroExpander::expandEscapedMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

int sipKCharMacroExpander::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_expandPlainMacro);

    if (!sipMeth)
        return KCharMacroExpander::expandPlainMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}


extern "C" {static PyObject *meth_KCharMacroExpander_expandPlainMacro(PyObject *, PyObject *);}
static PyObject *meth_KCharMacroExpander_expandPlainMacro(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        QStringList* a2;
        int a2State = 0;
        KCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1iJ1", &sipSelf, sipType_KCharMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCharMacroExpander::expandPlainMacro(*a0,a1,*a2) : sipCpp->expandPlainMacro(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QStringList,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KCharMacroExpander_expandEscapedMacro(PyObject *, PyObject *);}
static PyObject *meth_KCharMacroExpander_expandEscapedMacro(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        QStringList* a2;
        int a2State = 0;
        KCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1iJ1", &sipSelf, sipType_KCharMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCharMacroExpander::expandEscapedMacro(*a0,a1,*a2) : sipCpp->expandEscapedMacro(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QStringList,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QChar* a0;
        int a0State = 0;
        QStringList* a1;
        int a1State = 0;
        KCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_KCharMacroExpander, &sipCpp, sipType_QChar,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCharMacroExpander, sipName_expandMacro);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->expandMacro(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QChar,a0State);
            sipReleaseType(a1,sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCharMacroExpander *>(sipCppV);
    else
        delete reinterpret_cast<KCharMacroExpander *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KCharMacroExpander(sipSimpleWrapper *);}
static void dealloc_KCharMacroExpander(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKCharMacroExpander *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KCharMacroExpander(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KCharMacroExpander(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KCharMacroExpander(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKCharMacroExpander *sipCpp = 0;

    {
        QChar a0def = QLatin1Char('%');
        QChar* a0 = &a0def;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1", sipType_QChar,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCharMacroExpander(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QChar,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KCharMacroExpander[] = {{131, 255, 1}};


static PyMethodDef methods_KCharMacroExpander[] = {
    {SIP_MLNAME_CAST(sipName_expandEscapedMacro), meth_KCharMacroExpander_expandEscapedMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacro), meth_KCharMacroExpander_expandMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandPlainMacro), meth_KCharMacroExpander_expandPlainMacro, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCharMacroExpander = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KCharMacroExpander,
        {0}
    },
    {
        sipNameNr_KCharMacroExpander,
        {0, 0, 1},
        3, methods_KCharMacroExpander,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCharMacroExpander,
    0,
    init_type_KCharMacroExpander,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCharMacroExpander,
    0,
    0,
    0,
    release_KCharMacroExpander,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 64 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 8638 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 67 "/usr/share/python3-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 8642 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8645 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8648 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


class sipKWordMacroExpander : public KWordMacroExpander
{
public:
    sipKWordMacroExpander(QChar);
    virtual ~sipKWordMacroExpander();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool expandMacro(const QString&,QStringList&);
    int expandEscapedMacro(const QString&,int,QStringList&);
    int expandPlainMacro(const QString&,int,QStringList&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKWordMacroExpander(const sipKWordMacroExpander &);
    sipKWordMacroExpander &operator = (const sipKWordMacroExpander &);

    char sipPyMethods[3];
};

sipKWordMacroExpander::sipKWordMacroExpander(QChar a0): KWordMacroExpander(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKWordMacroExpander::expandMacro(const QString& a0,QStringList& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_KWordMacroExpander,sipName_expandMacro);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,QStringList&);

    return sipVH_kdecore_21(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKWordMacroExpander::expandEscapedMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_expandEscapedMacro);

    if (!sipMeth)
        return KWordMacroExpander::expandEscapedMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

int sipKWordMacroExpander::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_expandPlainMacro);

    if (!sipMeth)
        return KWordMacroExpander::expandPlainMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}


extern "C" {static PyObject *meth_KWordMacroExpander_expandPlainMacro(PyObject *, PyObject *);}
static PyObject *meth_KWordMacroExpander_expandPlainMacro(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        QStringList* a2;
        int a2State = 0;
        KWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1iJ1", &sipSelf, sipType_KWordMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KWordMacroExpander::expandPlainMacro(*a0,a1,*a2) : sipCpp->expandPlainMacro(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QStringList,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KWordMacroExpander_expandEscapedMacro(PyObject *, PyObject *);}
static PyObject *meth_KWordMacroExpander_expandEscapedMacro(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        QStringList* a2;
        int a2State = 0;
        KWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1iJ1", &sipSelf, sipType_KWordMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KWordMacroExpander::expandEscapedMacro(*a0,a1,*a2) : sipCpp->expandEscapedMacro(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QStringList,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        QStringList* a1;
        int a1State = 0;
        KWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_KWordMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KWordMacroExpander, sipName_expandMacro);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->expandMacro(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKWordMacroExpander *>(sipCppV);
    else
        delete reinterpret_cast<KWordMacroExpander *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KWordMacroExpander(sipSimpleWrapper *);}
static void dealloc_KWordMacroExpander(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKWordMacroExpander *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KWordMacroExpander(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KWordMacroExpander(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KWordMacroExpander(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKWordMacroExpander *sipCpp = 0;

    {
        QChar a0def = QLatin1Char('%');
        QChar* a0 = &a0def;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1", sipType_QChar,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKWordMacroExpander(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QChar,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KWordMacroExpander[] = {{131, 255, 1}};


static PyMethodDef methods_KWordMacroExpander[] = {
    {SIP_MLNAME_CAST(sipName_expandEscapedMacro), meth_KWordMacroExpander_expandEscapedMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacro), meth_KWordMacroExpander_expandMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandPlainMacro), meth_KWordMacroExpander_expandPlainMacro, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KWordMacroExpander = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KWordMacroExpander,
        {0}
    },
    {
        sipNameNr_KWordMacroExpander,
        {0, 0, 1},
        3, methods_KWordMacroExpander,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KWordMacroExpander,
    0,
    init_type_KWordMacroExpander,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KWordMacroExpander,
    0,
    0,
    0,
    release_KWordMacroExpander,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 8963 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 67 "/usr/share/python3-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 8967 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8970 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8973 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


class sipKMacroExpanderBase : public KMacroExpanderBase
{
public:
    sipKMacroExpanderBase(QChar);
    virtual ~sipKMacroExpanderBase();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int expandEscapedMacro(const QString&,int,QStringList&);
    int expandPlainMacro(const QString&,int,QStringList&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKMacroExpanderBase(const sipKMacroExpanderBase &);
    sipKMacroExpanderBase &operator = (const sipKMacroExpanderBase &);

    char sipPyMethods[2];
};

sipKMacroExpanderBase::sipKMacroExpanderBase(QChar a0): KMacroExpanderBase(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

int sipKMacroExpanderBase::expandEscapedMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_expandEscapedMacro);

    if (!sipMeth)
        return KMacroExpanderBase::expandEscapedMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

int sipKMacroExpanderBase::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_expandPlainMacro);

    if (!sipMeth)
        return KMacroExpanderBase::expandPlainMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}


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

    {
        QString* a0;
        int a0State = 0;
        KMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KMacroExpanderBase, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->expandMacros(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QString* a0;
        int a0State = 0;
        int a1;
        KMacroExpanderBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->expandMacrosShellQuote(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QString,a0State);

            return sipBuildResult(0,"(bi)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        QChar* a0;
        int a0State = 0;
        KMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KMacroExpanderBase, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEscapeChar(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QChar,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KMacroExpanderBase, &sipCpp))
        {
            QChar*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar(sipCpp->escapeChar());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KMacroExpanderBase_expandPlainMacro(PyObject *, PyObject *);}
static PyObject *meth_KMacroExpanderBase_expandPlainMacro(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        QStringList* a2;
        int a2State = 0;
        KMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1iJ1", &sipSelf, sipType_KMacroExpanderBase, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KMacroExpanderBase::expandPlainMacro(*a0,a1,*a2) : sipCpp->expandPlainMacro(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QStringList,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KMacroExpanderBase_expandEscapedMacro(PyObject *, PyObject *);}
static PyObject *meth_KMacroExpanderBase_expandEscapedMacro(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        QStringList* a2;
        int a2State = 0;
        KMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1iJ1", &sipSelf, sipType_KMacroExpanderBase, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KMacroExpanderBase::expandEscapedMacro(*a0,a1,*a2) : sipCpp->expandEscapedMacro(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QStringList,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKMacroExpanderBase *>(sipCppV);
    else
        delete reinterpret_cast<KMacroExpanderBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KMacroExpanderBase(sipSimpleWrapper *);}
static void dealloc_KMacroExpanderBase(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKMacroExpanderBase *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KMacroExpanderBase(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KMacroExpanderBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KMacroExpanderBase(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKMacroExpanderBase *sipCpp = 0;

    {
        QChar a0def = QLatin1Char('%');
        QChar* a0 = &a0def;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1", sipType_QChar,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKMacroExpanderBase(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QChar,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KMacroExpanderBase[] = {
    {SIP_MLNAME_CAST(sipName_escapeChar), meth_KMacroExpanderBase_escapeChar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandEscapedMacro), meth_KMacroExpanderBase_expandEscapedMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacros), meth_KMacroExpanderBase_expandMacros, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacrosShellQuote), meth_KMacroExpanderBase_expandMacrosShellQuote, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandPlainMacro), meth_KMacroExpanderBase_expandPlainMacro, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEscapeChar), meth_KMacroExpanderBase_setEscapeChar, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KMacroExpanderBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KMacroExpanderBase,
        {0}
    },
    {
        sipNameNr_KMacroExpanderBase,
        {0, 0, 1},
        6, methods_KMacroExpanderBase,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KMacroExpanderBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMacroExpanderBase,
    0,
    0,
    0,
    release_KMacroExpanderBase,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 9347 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 9351 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


extern "C" {static int slot_KLockFile_LockFlags___bool__(PyObject *);}
static int slot_KLockFile_LockFlags___bool__(PyObject *sipSelf)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KLockFile::LockFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 9373 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KLockFile_LockFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_KLockFile_LockFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLockFile::LockFlags* a0;
        int a0State = 0;

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

#line 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KLockFile::LockFlags::Int() != a0->operator KLockFile::LockFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 9407 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
            sipReleaseType(const_cast<KLockFile::LockFlags *>(a0),sipType_KLockFile_LockFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_KLockFile_LockFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLockFile::LockFlags* a0;
        int a0State = 0;

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

#line 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KLockFile::LockFlags::Int() == a0->operator KLockFile::LockFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 9447 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
            sipReleaseType(const_cast<KLockFile::LockFlags *>(a0),sipType_KLockFile_LockFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___invert__(PyObject *);}
static PyObject *slot_KLockFile_LockFlags___invert__(PyObject *sipSelf)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;


    {
        {
            KLockFile::LockFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLockFile::LockFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_KLockFile_LockFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_KLockFile_LockFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KLockFile::LockFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLockFile_LockFlags, &a0, &a0State, &a1))
        {
            KLockFile::LockFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLockFile::LockFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_KLockFile_LockFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KLockFile::LockFlags* a0;
        int a0State = 0;
        KLockFile::LockFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLockFile_LockFlags, &a0, &a0State, sipType_KLockFile_LockFlags, &a1, &a1State))
        {
            KLockFile::LockFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLockFile::LockFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);
            sipReleaseType(a1,sipType_KLockFile_LockFlags,a1State);

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

    {
        KLockFile::LockFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLockFile_LockFlags, &a0, &a0State, &a1))
        {
            KLockFile::LockFlags*sipRes = 0;

#line 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KLockFile::LockFlags(*a0 ^ a1);
#line 9556 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_KLockFile_LockFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KLockFile::LockFlags* a0;
        int a0State = 0;
        KLockFile::LockFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLockFile_LockFlags, &a0, &a0State, sipType_KLockFile_LockFlags, &a1, &a1State))
        {
            KLockFile::LockFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLockFile::LockFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);
            sipReleaseType(a1,sipType_KLockFile_LockFlags,a1State);

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

    {
        KLockFile::LockFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLockFile_LockFlags, &a0, &a0State, &a1))
        {
            KLockFile::LockFlags*sipRes = 0;

#line 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KLockFile::LockFlags(*a0 | a1);
#line 9608 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLockFile_LockFlags___int__(PyObject *);}
static PyObject *slot_KLockFile_LockFlags___int__(PyObject *sipSelf)
{
    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLockFile::LockFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLockFile_LockFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLockFile::LockFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLockFile::LockFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLockFile_LockFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLockFile::LockFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLockFile::LockFlags *sipCpp = reinterpret_cast<KLockFile::LockFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLockFile_LockFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLockFile::LockFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    delete reinterpret_cast<KLockFile::LockFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KLockFile_LockFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_KLockFile_LockFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KLockFile::LockFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KLockFile::LockFlags *>(sipSrc);
}


extern "C" {static void *array_KLockFile_LockFlags(SIP_SSIZE_T);}
static void *array_KLockFile_LockFlags(SIP_SSIZE_T sipNrElem)
{
    return new KLockFile::LockFlags[sipNrElem];
}


extern "C" {static void *copy_KLockFile_LockFlags(const void *, SIP_SSIZE_T);}
static void *copy_KLockFile_LockFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KLockFile::LockFlags(reinterpret_cast<const KLockFile::LockFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KLockFile_LockFlags(sipSimpleWrapper *);}
static void dealloc_KLockFile_LockFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KLockFile_LockFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KLockFile_LockFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KLockFile_LockFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KLockFile::LockFlags *sipCpp = 0;

    {
        const KLockFile::LockFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KLockFile_LockFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLockFile::LockFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KLockFile::LockFlags *>(a0),sipType_KLockFile_LockFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLockFile::LockFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLockFile::LockFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 398 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KLockFile::LockFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLockFile_LockFlag)) ||
            sipCanConvertToType(sipPy, sipType_KLockFile_LockFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLockFile_LockFlag)))
{
    *sipCppPtr = new KLockFile::LockFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KLockFile::LockFlags *>(sipConvertToType(sipPy, sipType_KLockFile_LockFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 9892 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KLockFile_LockFlags[] = {
    {(void *)slot_KLockFile_LockFlags___bool__, bool_slot},
    {(void *)slot_KLockFile_LockFlags___ne__, ne_slot},
    {(void *)slot_KLockFile_LockFlags___eq__, eq_slot},
    {(void *)slot_KLockFile_LockFlags___invert__, invert_slot},
    {(void *)slot_KLockFile_LockFlags___and__, and_slot},
    {(void *)slot_KLockFile_LockFlags___xor__, xor_slot},
    {(void *)slot_KLockFile_LockFlags___or__, or_slot},
    {(void *)slot_KLockFile_LockFlags___int__, int_slot},
    {(void *)slot_KLockFile_LockFlags___ixor__, ixor_slot},
    {(void *)slot_KLockFile_LockFlags___ior__, ior_slot},
    {(void *)slot_KLockFile_LockFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLockFile_LockFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLockFile__LockFlags,
        {0}
    },
    {
        sipNameNr_LockFlags,
        {126, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KLockFile_LockFlags,
    init_type_KLockFile_LockFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLockFile_LockFlags,
    assign_KLockFile_LockFlags,
    array_KLockFile_LockFlags,
    copy_KLockFile_LockFlags,
    release_KLockFile_LockFlags,
    0,
    convertTo_KLockFile_LockFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 9968 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9972 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 9975 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 9978 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    {
        KLockFile::LockFlags a0def = KLockFile::LockFlags();
        KLockFile::LockFlags* a0 = &a0def;
        int a0State = 0;
        KLockFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KLockFile, &sipCpp, sipType_KLockFile_LockFlags, &a0, &a0State))
        {
            KLockFile::LockResult sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lock(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLockFile_LockFlags,a0State);

            return sipConvertFromEnum(sipRes,sipType_KLockFile_LockResult);
        }
    }

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

    return NULL;
}


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

    {
        const KLockFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLockFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLocked();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLockFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLockFile, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->unlock();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KLockFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLockFile, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->staleTime();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KLockFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLockFile, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStaleTime(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        QString* a1;
        QString* a2;
        KLockFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLockFile, &sipCpp))
        {
            bool sipRes;
            a1 = new QString();
            a2 = new QString();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getLockInfo(a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(biNN)",sipRes,a0,a1,sipType_QString,NULL,a2,sipType_QString,NULL);
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KLockFile *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KLockFile(sipSimpleWrapper *);}
static void dealloc_KLockFile(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KLockFile(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KLockFile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KLockFile(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KLockFile *sipCpp = 0;

    {
        const QString* a0;
        int a0State = 0;
        const KComponentData& a1def = KGlobal::mainComponent();
        const KComponentData* a1 = &a1def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J9", sipType_QString,&a0, &a0State, sipType_KComponentData, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLockFile(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KLockFile[] = {
    {SIP_MLNAME_CAST(sipName_getLockInfo), meth_KLockFile_getLockInfo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLocked), meth_KLockFile_isLocked, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lock), meth_KLockFile_lock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStaleTime), meth_KLockFile_setStaleTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_staleTime), meth_KLockFile_staleTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unlock), meth_KLockFile_unlock, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KLockFile[] = {
    {sipName_ForceFlag, static_cast<int>(KLockFile::ForceFlag), 127},
    {sipName_LockError, static_cast<int>(KLockFile::LockError), 129},
    {sipName_LockFail, static_cast<int>(KLockFile::LockFail), 129},
    {sipName_LockOK, static_cast<int>(KLockFile::LockOK), 129},
    {sipName_LockStale, static_cast<int>(KLockFile::LockStale), 129},
    {sipName_NoBlockFlag, static_cast<int>(KLockFile::NoBlockFlag), 127},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLockFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLockFile,
        {0}
    },
    {
        sipNameNr_KLockFile,
        {0, 0, 1},
        6, methods_KLockFile,
        6, enummembers_KLockFile,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KLockFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLockFile,
    0,
    0,
    0,
    release_KLockFile,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 64 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 10273 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 10277 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10280 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 10283 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 10286 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10289 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10292 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10295 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10298 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10301 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10304 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10307 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10310 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 10313 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10316 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10319 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void incomingConnection(int);
    KLocalSocket* nextPendingConnection();
    bool hasPendingConnections() const;

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(sipPySelf, sipType_KLocalSocketServer, _clname)) ? this : KLocalSocketServer::qt_metacast(_clname);
}

void sipKLocalSocketServer::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KLocalSocketServer::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocketServer::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KLocalSocketServer::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocketServer::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KLocalSocketServer::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocketServer::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KLocalSocketServer::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocketServer::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KLocalSocketServer::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKLocalSocketServer::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KLocalSocketServer::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKLocalSocketServer::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KLocalSocketServer::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocketServer::incomingConnection(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_incomingConnection);

    if (!sipMeth)
    {
        KLocalSocketServer::incomingConnection(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_kdecore_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KLocalSocket* sipKLocalSocketServer::nextPendingConnection()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_nextPendingConnection);

    if (!sipMeth)
        return KLocalSocketServer::nextPendingConnection();

    extern KLocalSocket* sipVH_kdecore_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_22(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKLocalSocketServer::hasPendingConnections() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_hasPendingConnections);

    if (!sipMeth)
        return KLocalSocketServer::hasPendingConnections();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const QString* a0;
        int a0State = 0;
        KLocalSocket::LocalSocketType a1 = KLocalSocket::UnixSocket;
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_listen, NULL);

    return NULL;
}


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

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_close, NULL);

    return NULL;
}


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

    {
        const KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_isListening, NULL);

    return NULL;
}


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

    {
        int a0;
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_setMaxPendingConnections, NULL);

    return NULL;
}


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

    {
        const KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_maxPendingConnections, NULL);

    return NULL;
}


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

    {
        const KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_localSocketType, NULL);

    return NULL;
}


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

    {
        const KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_localPath, NULL);

    return NULL;
}


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

    {
        int a0 = 0;
        bool a1;
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_waitForNewConnection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_hasPendingConnections(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_hasPendingConnections(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_hasPendingConnections, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_nextPendingConnection(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_nextPendingConnection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_nextPendingConnection, NULL);

    return NULL;
}


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

    {
        const KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_serverError, NULL);

    return NULL;
}


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

    {
        const KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocketServer, sipName_errorString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KLocalSocketServer_incomingConnection(PyObject *, PyObject *);}
static PyObject *meth_KLocalSocketServer_incomingConnection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pi", &sipSelf, sipType_KLocalSocketServer, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KLocalSocketServer::incomingConnection(a0) : sipCpp->incomingConnection(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KLocalSocketServer(void *, int);}
static void release_KLocalSocketServer(void *sipCppV,int)
{
    KLocalSocketServer *sipCpp = reinterpret_cast<KLocalSocketServer *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KLocalSocketServer(sipSimpleWrapper *);}
static void dealloc_KLocalSocketServer(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKLocalSocketServer *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KLocalSocketServer(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KLocalSocketServer(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KLocalSocketServer(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKLocalSocketServer *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKLocalSocketServer(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KLocalSocketServer[] = {{141, 0, 1}};


static PyMethodDef methods_KLocalSocketServer[] = {
    {SIP_MLNAME_CAST(sipName_close), meth_KLocalSocketServer_close, 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_serverError), meth_KLocalSocketServer_serverError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxPendingConnections), meth_KLocalSocketServer_setMaxPendingConnections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForNewConnection), meth_KLocalSocketServer_waitForNewConnection, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KLocalSocketServer[] = {
    {"newConnection()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocalSocketServer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLocalSocketServer,
        {0}
    },
    {
        sipNameNr_KLocalSocketServer,
        {0, 0, 1},
        13, methods_KLocalSocketServer,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KLocalSocketServer,
    0,
    init_type_KLocalSocketServer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalSocketServer,
    0,
    0,
    0,
    release_KLocalSocketServer,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KLocalSocketServer::staticMetaObject,
    0,
    signals_KLocalSocketServer,
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 11053 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11057 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11060 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 11063 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11066 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 11069 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 11072 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 11075 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 11078 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11081 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11084 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11087 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11090 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11093 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11096 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11099 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11102 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11105 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11108 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool reset();
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool atEnd() const;
    bool isSequential() const;
    void close();
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;

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(sipPySelf, sipType_KLocalSocket, _clname)) ? this : KLocalSocket::qt_metacast(_clname);
}

void sipKLocalSocket::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KLocalSocket::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocket::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KLocalSocket::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocket::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KLocalSocket::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocket::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KLocalSocket::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKLocalSocket::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KLocalSocket::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKLocalSocket::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KLocalSocket::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKLocalSocket::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KLocalSocket::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKLocalSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return KLocalSocket::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKLocalSocket::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return KLocalSocket::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKLocalSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return KLocalSocket::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKLocalSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return KLocalSocket::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKLocalSocket::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KLocalSocket::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKLocalSocket::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KLocalSocket::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKLocalSocket::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return KLocalSocket::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKLocalSocket::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return KLocalSocket::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKLocalSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return KLocalSocket::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKLocalSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return KLocalSocket::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKLocalSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return KLocalSocket::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKLocalSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return KLocalSocket::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKLocalSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        KLocalSocket::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKLocalSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return KLocalSocket::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKLocalSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return KLocalSocket::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKLocalSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return KLocalSocket::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const QString* a0;
        int a0State = 0;
        QIODevice::OpenMode a1def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a1 = &a1def;
        int a1State = 0;
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(&sipParseErr, 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(sipParseErr, sipName_KLocalSocket, sipName_connectToPath, NULL);

    return NULL;
}


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

    {
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocket, sipName_disconnectFromPath, NULL);

    return NULL;
}


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

    {
        const KLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocket, sipName_localSocketType, NULL);

    return NULL;
}


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

    {
        const KLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocket, sipName_localPath, NULL);

    return NULL;
}


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

    {
        const KLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KLocalSocket, sipName_peerPath, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode* a2;
        int a2State = 0;
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1tJ1", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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(sipParseErr, sipName_KLocalSocket, sipName_connectToHostImplementation, NULL);

    return NULL;
}


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

    {
        KLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KLocalSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->disconnectFromHostImplementation();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KLocalSocket(void *, int);}
static void release_KLocalSocket(void *sipCppV,int)
{
    KLocalSocket *sipCpp = reinterpret_cast<KLocalSocket *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KLocalSocket(sipSimpleWrapper *);}
static void dealloc_KLocalSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKLocalSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KLocalSocket(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KLocalSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KLocalSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKLocalSocket *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKLocalSocket(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KLocalSocket[] = {{102, 1, 1}};


static PyMethodDef methods_KLocalSocket[] = {
    {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_disconnectFromHostImplementation), meth_KLocalSocket_disconnectFromHostImplementation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromPath), meth_KLocalSocket_disconnectFromPath, 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}
};

static sipEnumMemberDef enummembers_KLocalSocket[] = {
    {sipName_AbstractUnixSocket, static_cast<int>(KLocalSocket::AbstractUnixSocket), 100},
    {sipName_UnixSocket, static_cast<int>(KLocalSocket::UnixSocket), 100},
    {sipName_UnknownLocalSocketType, static_cast<int>(KLocalSocket::UnknownLocalSocketType), 100},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocalSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLocalSocket,
        {0}
    },
    {
        sipNameNr_KLocalSocket,
        {0, 0, 1},
        7, methods_KLocalSocket,
        3, enummembers_KLocalSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KLocalSocket,
    0,
    init_type_KLocalSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalSocket,
    0,
    0,
    0,
    release_KLocalSocket,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KLocalSocket::staticMetaObject,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 11905 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11909 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 67 "/usr/share/python3-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 11912 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 11915 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    {
        const KLocalizedString *sipCpp;

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

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

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

    {
        const KLocale* a0;
        const KLocalizedString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KLocalizedString, &sipCpp, sipType_KLocale, &a0))
        {
            QString*sipRes;

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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalizedString, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const KLocale* a0;
        const QString* a1;
        int a1State = 0;
        const KLocalizedString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KLocalizedString, &sipCpp, sipType_KLocale, &a0, sipType_QString,&a1, &a1State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const KLocalizedString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedString, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qlonglong a0;
        int a1 = 0;
        int a2 = 10;
        const QChar& a3def = QLatin1Char(' ');
        const QChar* a3 = &a3def;
        int a3State = 0;
        const KLocalizedString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn|iiJ1", &sipSelf, sipType_KLocalizedString, &sipCpp, &a0, &a1, &a2, sipType_QChar,&a3, &a3State))
        {
            KLocalizedString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedString(sipCpp->subs(a0,a1,a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QChar *>(a3),sipType_QChar,a3State);

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

    {
        QChar* a0;
        int a0State = 0;
        int a1 = 0;
        const QChar& a2def = QLatin1Char(' ');
        const QChar* a2 = &a2def;
        int a2State = 0;
        const KLocalizedString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|iJ1", &sipSelf, sipType_KLocalizedString, &sipCpp, sipType_QChar,&a0, &a0State, &a1, sipType_QChar,&a2, &a2State))
        {
            KLocalizedString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedString(sipCpp->subs(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QChar,a0State);
            sipReleaseType(const_cast<QChar *>(a2),sipType_QChar,a2State);

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

    {
        const QString* a0;
        int a0State = 0;
        int a1 = 0;
        const QChar& a2def = QLatin1Char(' ');
        const QChar* a2 = &a2def;
        int a2State = 0;
        const KLocalizedString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|iJ1", &sipSelf, sipType_KLocalizedString, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QChar,&a2, &a2State))
        {
            KLocalizedString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedString(sipCpp->subs(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QChar *>(a2),sipType_QChar,a2State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const KLocalizedString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KLocalizedString, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            KLocalizedString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedString(sipCpp->inContext(*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_KLocalizedString,NULL);
        }
    }

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

    return NULL;
}


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

    delete reinterpret_cast<KLocalizedString *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KLocalizedString(void *, SIP_SSIZE_T, const void *);}
static void assign_KLocalizedString(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KLocalizedString *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KLocalizedString *>(sipSrc);
}


extern "C" {static void *array_KLocalizedString(SIP_SSIZE_T);}
static void *array_KLocalizedString(SIP_SSIZE_T sipNrElem)
{
    return new KLocalizedString[sipNrElem];
}


extern "C" {static void *copy_KLocalizedString(const void *, SIP_SSIZE_T);}
static void *copy_KLocalizedString(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KLocalizedString(reinterpret_cast<const KLocalizedString *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KLocalizedString(sipSimpleWrapper *);}
static void dealloc_KLocalizedString(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KLocalizedString(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KLocalizedString(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KLocalizedString(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KLocalizedString *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocalizedString();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KLocalizedString* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KLocalizedString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocalizedString(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KLocalizedString[] = {
    {SIP_MLNAME_CAST(sipName_inContext), meth_KLocalizedString_inContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_KLocalizedString_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subs), meth_KLocalizedString_subs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_KLocalizedString_toString, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocalizedString = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLocalizedString,
        {0}
    },
    {
        sipNameNr_KLocalizedString,
        {0, 0, 1},
        4, methods_KLocalizedString,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KLocalizedString,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalizedString,
    assign_KLocalizedString,
    array_KLocalizedString,
    copy_KLocalizedString,
    release_KLocalizedString,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 23 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocalizeddate.sip"
#include <klocalizeddate.h>
#line 12277 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 12281 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kcalendarsystem.sip"
#include <kcalendarsystem.h>
#line 12284 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12287 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 12290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


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

    {
        KLocale::CalendarSystem a0;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocale_CalendarSystem, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCalendarSystem(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            KLocale::CalendarSystem sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->calendarSystem();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_CalendarSystem);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            const KCalendarSystem*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->calendar();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KCalendarSystem *>(sipRes),sipType_KCalendarSystem,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &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(sipParseErr, sipName_KLocalizedDate, sipName_isNull, NULL);

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &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(sipParseErr, sipName_KLocalizedDate, sipName_isValid, NULL);

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setDate(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        int a2;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biii", &sipSelf, sipType_KLocalizedDate, &sipCpp, &a0, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setDate(a0,a1,a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KLocalizedDate, &sipCpp, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setDate(a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QString* a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iii", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_QString,&a0, &a0State, &a1, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setDate(*a0,a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        KLocale::WeekNumberSystem a0;
        int a1;
        int a2;
        int a3;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEiii", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocale_WeekNumberSystem, &a0, &a1, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setDate(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setCurrentDate();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(KLocalizedDate::currentDate());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QDate, &a0, &a0State))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(KLocalizedDate::fromDate(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(KLocalizedDate::fromJulianDay(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toJulianDay();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->date());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        int a2;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->getDate(&a0,&a1,&a2);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(iii)",a0,a1,a2);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->year();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->month();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->day();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->yearInEra();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dayOfYear();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dayOfWeek();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->week(&a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(ii)",sipRes,a0);
        }
    }

    {
        KLocale::WeekNumberSystem a0;
        int a1;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocale_WeekNumberSystem, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->week(a0,&a1);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(ii)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->monthsInYear();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->weeksInYear();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        KLocale::WeekNumberSystem a0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocale_WeekNumberSystem, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->weeksInYear(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->daysInYear();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->daysInMonth();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->daysInWeek();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLeapYear();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KLocale::DateFormat a0 = KLocale::LongDate;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocale_DateFormat, &a0))
        {
            QString*sipRes;

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

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

    {
        const QString* a0;
        int a0State = 0;
        KLocale::DateTimeFormatStandard a1 = KLocale::KdeFormat;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_QString,&a0, &a0State, sipType_KLocale_DateTimeFormatStandard, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatDate(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        KLocale::DateTimeComponent a0;
        KLocale::DateTimeComponentFormat a1 = KLocale::DefaultComponentFormat;
        KLocale::WeekNumberSystem a2 = KLocale::DefaultWeekNumber;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|EE", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocale_DateTimeComponent, &a0, sipType_KLocale_DateTimeComponentFormat, &a1, sipType_KLocale_WeekNumberSystem, &a2))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatDate(a0,a1,a2));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KLocale::DateTimeParseMode a1 = KLocale::LiberalParsing;
        const KCalendarSystem* a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|EJ8", sipType_QString,&a0, &a0State, sipType_KLocale_DateTimeParseMode, &a1, sipType_KCalendarSystem, &a2))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(KLocalizedDate::readDate(*a0,a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const QString* a0;
        int a0State = 0;
        KLocale::ReadDateFlags a1;
        KLocale::DateTimeParseMode a2 = KLocale::LiberalParsing;
        const KCalendarSystem* a3 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1E|EJ8", sipType_QString,&a0, &a0State, sipType_KLocale_ReadDateFlags, &a1, sipType_KLocale_DateTimeParseMode, &a2, sipType_KCalendarSystem, &a3))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(KLocalizedDate::readDate(*a0,a1,a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        KLocale::DateTimeParseMode a2 = KLocale::LiberalParsing;
        KLocale::DateTimeFormatStandard a3 = KLocale::KdeFormat;
        const KCalendarSystem* a4 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|EEJ8", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_KLocale_DateTimeParseMode, &a2, sipType_KLocale_DateTimeFormatStandard, &a3, sipType_KCalendarSystem, &a4))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(KLocalizedDate::readDate(*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 sipConvertFromNewType(sipRes,sipType_KLocalizedDate,NULL);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocalizedDate, &sipCpp, &a0))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(sipCpp->addYears(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocalizedDate, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addYearsTo(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocalizedDate, &sipCpp, &a0))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(sipCpp->addMonths(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocalizedDate, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addMonthsTo(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocalizedDate, &sipCpp, &a0))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(sipCpp->addDays(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocalizedDate, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addDaysTo(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate* a0;
        int a1;
        int a2;
        int a3;
        int a4;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocalizedDate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->dateDifference(*a0,&a1,&a2,&a3,&a4);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(iiii)",a1,a2,a3,a4);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        int a4;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->dateDifference(*a0,&a1,&a2,&a3,&a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipBuildResult(0,"(iiii)",a1,a2,a3,a4);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate* a0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocalizedDate, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->yearsDifference(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate* a0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocalizedDate, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->monthsDifference(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate* a0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_KLocalizedDate, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalizedDate, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->daysDifference(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(sipCpp->firstDayOfYear());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(sipCpp->lastDayOfYear());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(sipCpp->firstDayOfMonth());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KLocalizedDate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalizedDate, &sipCpp))
        {
            KLocalizedDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocalizedDate(sipCpp->lastDayOfMonth());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_KLocalizedDate___ge__(PyObject *,PyObject *);}
static PyObject *slot_KLocalizedDate___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocalizedDate *sipCpp = reinterpret_cast<KLocalizedDate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocalizedDate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocalizedDate* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KLocalizedDate, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDate, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KLocalizedDate::operator>=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocalizedDate___gt__(PyObject *,PyObject *);}
static PyObject *slot_KLocalizedDate___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocalizedDate *sipCpp = reinterpret_cast<KLocalizedDate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocalizedDate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocalizedDate* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KLocalizedDate, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDate, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KLocalizedDate::operator>(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocalizedDate___le__(PyObject *,PyObject *);}
static PyObject *slot_KLocalizedDate___le__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocalizedDate *sipCpp = reinterpret_cast<KLocalizedDate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocalizedDate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocalizedDate* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KLocalizedDate, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDate, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KLocalizedDate::operator<=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocalizedDate___lt__(PyObject *,PyObject *);}
static PyObject *slot_KLocalizedDate___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocalizedDate *sipCpp = reinterpret_cast<KLocalizedDate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocalizedDate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocalizedDate* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KLocalizedDate, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDate, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KLocalizedDate::operator<(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocalizedDate___ne__(PyObject *,PyObject *);}
static PyObject *slot_KLocalizedDate___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocalizedDate *sipCpp = reinterpret_cast<KLocalizedDate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocalizedDate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocalizedDate* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KLocalizedDate, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDate, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KLocalizedDate::operator!=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocalizedDate___eq__(PyObject *,PyObject *);}
static PyObject *slot_KLocalizedDate___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocalizedDate *sipCpp = reinterpret_cast<KLocalizedDate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocalizedDate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocalizedDate* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KLocalizedDate, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDate, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KLocalizedDate::operator==(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    delete reinterpret_cast<KLocalizedDate *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KLocalizedDate(void *, SIP_SSIZE_T, const void *);}
static void assign_KLocalizedDate(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KLocalizedDate *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KLocalizedDate *>(sipSrc);
}


extern "C" {static void *array_KLocalizedDate(SIP_SSIZE_T);}
static void *array_KLocalizedDate(SIP_SSIZE_T sipNrElem)
{
    return new KLocalizedDate[sipNrElem];
}


extern "C" {static void *copy_KLocalizedDate(const void *, SIP_SSIZE_T);}
static void *copy_KLocalizedDate(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KLocalizedDate(reinterpret_cast<const KLocalizedDate *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KLocalizedDate(sipSimpleWrapper *);}
static void dealloc_KLocalizedDate(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KLocalizedDate(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KLocalizedDate(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KLocalizedDate(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KLocalizedDate *sipCpp = 0;

    {
        const QDate& a0def = QDate();
        const QDate* a0 = &a0def;
        int a0State = 0;
        const KCalendarSystem* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1J8", sipType_QDate, &a0, &a0State, sipType_KCalendarSystem, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocalizedDate(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        const KCalendarSystem* a3 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iii|J8", &a0, &a1, &a2, sipType_KCalendarSystem, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocalizedDate(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KLocalizedDate* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KLocalizedDate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocalizedDate(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KLocalizedDate[] = {
    {(void *)slot_KLocalizedDate___ge__, ge_slot},
    {(void *)slot_KLocalizedDate___gt__, gt_slot},
    {(void *)slot_KLocalizedDate___le__, le_slot},
    {(void *)slot_KLocalizedDate___lt__, lt_slot},
    {(void *)slot_KLocalizedDate___ne__, ne_slot},
    {(void *)slot_KLocalizedDate___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KLocalizedDate[] = {
    {SIP_MLNAME_CAST(sipName_addDays), meth_KLocalizedDate_addDays, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addDaysTo), meth_KLocalizedDate_addDaysTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMonths), meth_KLocalizedDate_addMonths, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMonthsTo), meth_KLocalizedDate_addMonthsTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addYears), meth_KLocalizedDate_addYears, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addYearsTo), meth_KLocalizedDate_addYearsTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendar), meth_KLocalizedDate_calendar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarSystem), meth_KLocalizedDate_calendarSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentDate), meth_KLocalizedDate_currentDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_date), meth_KLocalizedDate_date, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateDifference), meth_KLocalizedDate_dateDifference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_day), meth_KLocalizedDate_day, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayOfWeek), meth_KLocalizedDate_dayOfWeek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayOfYear), meth_KLocalizedDate_dayOfYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysDifference), meth_KLocalizedDate_daysDifference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInMonth), meth_KLocalizedDate_daysInMonth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInWeek), meth_KLocalizedDate_daysInWeek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInYear), meth_KLocalizedDate_daysInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eraName), meth_KLocalizedDate_eraName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eraYear), meth_KLocalizedDate_eraYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstDayOfMonth), meth_KLocalizedDate_firstDayOfMonth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstDayOfYear), meth_KLocalizedDate_firstDayOfYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatDate), meth_KLocalizedDate_formatDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromDate), meth_KLocalizedDate_fromDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromJulianDay), meth_KLocalizedDate_fromJulianDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getDate), meth_KLocalizedDate_getDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLeapYear), meth_KLocalizedDate_isLeapYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KLocalizedDate_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KLocalizedDate_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastDayOfMonth), meth_KLocalizedDate_lastDayOfMonth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastDayOfYear), meth_KLocalizedDate_lastDayOfYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_month), meth_KLocalizedDate_month, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthsDifference), meth_KLocalizedDate_monthsDifference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthsInYear), meth_KLocalizedDate_monthsInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDate), meth_KLocalizedDate_readDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCalendarSystem), meth_KLocalizedDate_setCalendarSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentDate), meth_KLocalizedDate_setCurrentDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDate), meth_KLocalizedDate_setDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toJulianDay), meth_KLocalizedDate_toJulianDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_week), meth_KLocalizedDate_week, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weeksInYear), meth_KLocalizedDate_weeksInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_year), meth_KLocalizedDate_year, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearInEra), meth_KLocalizedDate_yearInEra, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearsDifference), meth_KLocalizedDate_yearsDifference, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocalizedDate = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLocalizedDate,
        {0}
    },
    {
        sipNameNr_KLocalizedDate,
        {0, 0, 1},
        44, methods_KLocalizedDate,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KLocalizedDate,
    init_type_KLocalizedDate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalizedDate,
    assign_KLocalizedDate,
    array_KLocalizedDate,
    copy_KLocalizedDate,
    release_KLocalizedDate,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 14284 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 14288 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"


extern "C" {static int slot_KLocale_DateTimeComponents___bool__(PyObject *);}
static int slot_KLocale_DateTimeComponents___bool__(PyObject *sipSelf)
{
    KLocale::DateTimeComponents *sipCpp = reinterpret_cast<KLocale::DateTimeComponents *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeComponents));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KLocale::DateTimeComponents::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 14310 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KLocale_DateTimeComponents___ne__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_DateTimeComponents___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocale::DateTimeComponents *sipCpp = reinterpret_cast<KLocale::DateTimeComponents *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeComponents));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocale::DateTimeComponents* a0;
        int a0State = 0;

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

#line 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KLocale::DateTimeComponents::Int() != a0->operator KLocale::DateTimeComponents::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 14344 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
            sipReleaseType(const_cast<KLocale::DateTimeComponents *>(a0),sipType_KLocale_DateTimeComponents,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocale_DateTimeComponents___eq__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_DateTimeComponents___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KLocale::DateTimeComponents *sipCpp = reinterpret_cast<KLocale::DateTimeComponents *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeComponents));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KLocale::DateTimeComponents* a0;
        int a0State = 0;

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

#line 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KLocale::DateTimeComponents::Int() == a0->operator KLocale::DateTimeComponents::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 14384 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
            sipReleaseType(const_cast<KLocale::DateTimeComponents *>(a0),sipType_KLocale_DateTimeComponents,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocale_DateTimeComponents___invert__(PyObject *);}
static PyObject *slot_KLocale_DateTimeComponents___invert__(PyObject *sipSelf)
{
    KLocale::DateTimeComponents *sipCpp = reinterpret_cast<KLocale::DateTimeComponents *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeComponents));

    if (!sipCpp)
        return 0;


    {
        {
            KLocale::DateTimeComponents*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeComponents(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_KLocale_DateTimeComponents___and__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_DateTimeComponents___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KLocale::DateTimeComponents* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_DateTimeComponents, &a0, &a0State, &a1))
        {
            KLocale::DateTimeComponents*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeComponents((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeComponents,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocale_DateTimeComponents___xor__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_DateTimeComponents___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KLocale::DateTimeComponents* a0;
        int a0State = 0;
        KLocale::DateTimeComponents* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLocale_DateTimeComponents, &a0, &a0State, sipType_KLocale_DateTimeComponents, &a1, &a1State))
        {
            KLocale::DateTimeComponents*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeComponents((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeComponents,a0State);
            sipReleaseType(a1,sipType_KLocale_DateTimeComponents,a1State);

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

    {
        KLocale::DateTimeComponents* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_DateTimeComponents, &a0, &a0State, &a1))
        {
            KLocale::DateTimeComponents*sipRes = 0;

#line 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KLocale::DateTimeComponents(*a0 ^ a1);
#line 14493 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
            sipReleaseType(a0,sipType_KLocale_DateTimeComponents,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocale_DateTimeComponents___or__(PyObject *,PyObject *);}
static PyObject *slot_KLocale_DateTimeComponents___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KLocale::DateTimeComponents* a0;
        int a0State = 0;
        KLocale::DateTimeComponents* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KLocale_DateTimeComponents, &a0, &a0State, sipType_KLocale_DateTimeComponents, &a1, &a1State))
        {
            KLocale::DateTimeComponents*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KLocale::DateTimeComponents((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeComponents,a0State);
            sipReleaseType(a1,sipType_KLocale_DateTimeComponents,a1State);

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

    {
        KLocale::DateTimeComponents* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KLocale_DateTimeComponents, &a0, &a0State, &a1))
        {
            KLocale::DateTimeComponents*sipRes = 0;

#line 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KLocale::DateTimeComponents(*a0 | a1);
#line 14545 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
            sipReleaseType(a0,sipType_KLocale_DateTimeComponents,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KLocale_DateTimeComponents___int__(PyObject *);}
static PyObject *slot_KLocale_DateTimeComponents___int__(PyObject *sipSelf)
{
    KLocale::DateTimeComponents *sipCpp = reinterpret_cast<KLocale::DateTimeComponents *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeComponents));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    KLocale::DateTimeComponents *sipCpp = reinterpret_cast<KLocale::DateTimeComponents *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeComponents));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLocale::DateTimeComponents* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLocale_DateTimeComponents, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::DateTimeComponents::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeComponents,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLocale::DateTimeComponents *sipCpp = reinterpret_cast<KLocale::DateTimeComponents *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeComponents));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KLocale::DateTimeComponents* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KLocale_DateTimeComponents, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::DateTimeComponents::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KLocale_DateTimeComponents,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    KLocale::DateTimeComponents *sipCpp = reinterpret_cast<KLocale::DateTimeComponents *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KLocale_DateTimeComponents));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KLocale::DateTimeComponents::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    delete reinterpret_cast<KLocale::DateTimeComponents *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KLocale_DateTimeComponents(void *, SIP_SSIZE_T, const void *);}
static void assign_KLocale_DateTimeComponents(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KLocale::DateTimeComponents *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KLocale::DateTimeComponents *>(sipSrc);
}


extern "C" {static void *array_KLocale_DateTimeComponents(SIP_SSIZE_T);}
static void *array_KLocale_DateTimeComponents(SIP_SSIZE_T sipNrElem)
{
    return new KLocale::DateTimeComponents[sipNrElem];
}


extern "C" {static void *copy_KLocale_DateTimeComponents(const void *, SIP_SSIZE_T);}
static void *copy_KLocale_DateTimeComponents(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KLocale::DateTimeComponents(reinterpret_cast<const KLocale::DateTimeComponents *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KLocale_DateTimeComponents(sipSimpleWrapper *);}
static void dealloc_KLocale_DateTimeComponents(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KLocale_DateTimeComponents(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KLocale_DateTimeComponents(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KLocale_DateTimeComponents(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KLocale::DateTimeComponents *sipCpp = 0;

    {
        const KLocale::DateTimeComponents* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KLocale_DateTimeComponents, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale::DateTimeComponents(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KLocale::DateTimeComponents *>(a0),sipType_KLocale_DateTimeComponents,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale::DateTimeComponents(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KLocale::DateTimeComponents();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 398 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KLocale::DateTimeComponents is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLocale_DateTimeComponent)) ||
            sipCanConvertToType(sipPy, sipType_KLocale_DateTimeComponents, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KLocale_DateTimeComponent)))
{
    *sipCppPtr = new KLocale::DateTimeComponents(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KLocale::DateTimeComponents *>(sipConvertToType(sipPy, sipType_KLocale_DateTimeComponents, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 14829 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kdecore/sipkdecorepart4.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KLocale_DateTimeComponents[] = {
    {(void *)slot_KLocale_DateTimeComponents___bool__, bool_slot},
    {(void *)slot_KLocale_DateTimeComponents___ne__, ne_slot},
    {(void *)slot_KLocale_DateTimeComponents___eq__, eq_slot},
    {(void *)slot_KLocale_DateTimeComponents___invert__, invert_slot},
    {(void *)slot_KLocale_DateTimeComponents___and__, and_slot},
    {(void *)slot_KLocale_DateTimeComponents___xor__, xor_slot},
    {(void *)slot_KLocale_DateTimeComponents___or__, or_slot},
    {(void *)slot_KLocale_DateTimeComponents___int__, int_slot},
    {(void *)slot_KLocale_DateTimeComponents___ixor__, ixor_slot},
    {(void *)slot_KLocale_DateTimeComponents___ior__, ior_slot},
    {(void *)slot_KLocale_DateTimeComponents___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocale_DateTimeComponents = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KLocale__DateTimeComponents,
        {0}
    },
    {
        sipNameNr_DateTimeComponents,
        {102, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KLocale_DateTimeComponents,
    init_type_KLocale_DateTimeComponents,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocale_DateTimeComponents,
    assign_KLocale_DateTimeComponents,
    array_KLocale_DateTimeComponents,
    copy_KLocale_DateTimeComponents,
    release_KLocale_DateTimeComponents,
    0,
    convertTo_KLocale_DateTimeComponents,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};
