/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:25:28 2011
 */

#include "sipAPIkdecore.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kpty.sip"
#include <kpty.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;
}


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

    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_KPty(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KPty,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPty,
    0,
    0,
    0,
    release_KPty,
    cast_KPty,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 443 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 447 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"


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

    return NULL;
}


/* 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_KProtocolInfo_ExtraField(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KProtocolInfo::ExtraField::DateTime, 145},
    {sipName_Invalid, KProtocolInfo::ExtraField::Invalid, 145},
    {sipName_String, KProtocolInfo::ExtraField::String, 145},
};


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

    sipVal = &sipCpp->name;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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 *);}
static PyObject *varget_KProtocolInfo_ExtraField_type(void *sipSelf, 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_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,
    cast_KProtocolInfo_ExtraField,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 679 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 683 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 686 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 689 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 692 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 695 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 698 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 701 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"


class sipKProtocolInfo : public KProtocolInfo
{
public:
    sipKProtocolInfo(QDataStream&,int);
    ~sipKProtocolInfo();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_canRenameFromFile() const;
    bool sipProtect_canRenameToFile() const;
    bool sipProtect_canDeleteRecursive() const;
    KProtocolInfo::FileNameUsedForCopying sipProtect_fileNameUsedForCopying() const;

public:
    sipSimpleWrapper *sipPySelf;

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

sipKProtocolInfo::sipKProtocolInfo(QDataStream& a0,int a1): KProtocolInfo(a0,a1), sipPySelf(0)
{
}

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

bool sipKProtocolInfo::sipProtect_canRenameFromFile() const
{
    return KProtocolInfo::canRenameFromFile();
}

bool sipKProtocolInfo::sipProtect_canRenameToFile() const
{
    return KProtocolInfo::canRenameToFile();
}

bool sipKProtocolInfo::sipProtect_canDeleteRecursive() const
{
    return KProtocolInfo::canDeleteRecursive();
}

KProtocolInfo::FileNameUsedForCopying sipKProtocolInfo::sipProtect_fileNameUsedForCopying() const
{
    return KProtocolInfo::fileNameUsedForCopying();
}


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;

    {
        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;

    {
        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;

    {
        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;

    {
        sipKProtocolInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;

    {
        sipKProtocolInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;

    {
        sipKProtocolInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;

    {
        sipKProtocolInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;
}


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

    if (targetType == sipType_KProtocolInfo)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKProtocolInfo *>(sipCppV);
    else
        delete reinterpret_cast<KProtocolInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QDataStream * a0;
        int a1;

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

            sipCpp->sipPySelf = sipSelf;

            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, KProtocolInfo::DisplayName, 146},
    {sipName_FromUrl, KProtocolInfo::FromUrl, 146},
    {sipName_Name, KProtocolInfo::Name, 146},
    {sipName_T_ERROR, KProtocolInfo::T_ERROR, 147},
    {sipName_T_FILESYSTEM, KProtocolInfo::T_FILESYSTEM, 147},
    {sipName_T_NONE, KProtocolInfo::T_NONE, 147},
    {sipName_T_STREAM, 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_KProtocolInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KProtocolInfo,
    0,
    0,
    0,
    release_KProtocolInfo,
    cast_KProtocolInfo,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 1611 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 1615 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1618 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1621 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1624 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;

    {
        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;

    {
        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;

    {
        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;
}


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

    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_KSycocaEntry(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KSycocaEntry,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSycocaEntry,
    0,
    0,
    0,
    release_KSycocaEntry,
    cast_KSycocaEntry,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kprocess.sip"
#include <kprocess.h>
#line 2151 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2155 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2158 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2161 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 2164 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 209 "/usr/local/share/py-sip/QtCore/qprocess.sip"
#include <qprocess.h>
#line 2167 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qprocess.sip"
#include <qprocess.h>
#line 2170 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2173 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2176 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2179 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2182 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2185 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2191 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2197 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2200 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2203 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    void sipProtect_setProcessState(QProcess::ProcessState);
    void sipProtectVirt_setupChildProcess(bool);
    qint64 sipProtectVirt_readData(bool,char *,qint64);
    qint64 sipProtectVirt_writeData(bool,const char *,PY_LONG_LONG);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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 && sip_kdecore_qt_metacast(sipPySelf,sipType_KProcess,_clname)) ? this : KProcess::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKProcess::sipProtect_sender() const
{
    return QObject::sender();
}

int sipKProcess::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKProcess::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKProcess::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKProcess::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKProcess::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKProcess::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

qint64 sipKProcess::sipProtectVirt_readLineData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QIODevice::readLineData(a0,a1) : readLineData(a0,a1));
}

void sipKProcess::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipKProcess::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

void sipKProcess::sipProtect_setProcessState(QProcess::ProcessState a0)
{
    QProcess::setProcessState(a0);
}

void sipKProcess::sipProtectVirt_setupChildProcess(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QProcess::setupChildProcess() : setupChildProcess());
}

qint64 sipKProcess::sipProtectVirt_readData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QProcess::readData(a0,a1) : readData(a0,a1));
}

qint64 sipKProcess::sipProtectVirt_writeData(bool sipSelfWasArg,const char *a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QProcess::writeData(a0,a1) : writeData(a0,a1));
}


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

    {
        sipKProcess *sipCpp;

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

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 2783 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KProcess, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 2825 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KProcess, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KProcess, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KProcess, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KProcess, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KProcess, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KProcess, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 239 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QIODevice::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 3028 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KProcess, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KProcess, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QProcess::ProcessState a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KProcess, &sipCpp, sipType_QProcess_ProcessState, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessState(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_setProcessState, NULL);

    return NULL;
}


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

    {
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KProcess, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setupChildProcess(sipSelfWasArg);
            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_setupChildProcess, NULL);

    return NULL;
}


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

    {
        qint64 a0;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KProcess, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 154 "/usr/local/share/py-sip/QtCore/qprocess.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QProcess::readData(s, a0) : sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 3206 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        SIP_SSIZE_T a1;
        sipKProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bk", &sipSelf, sipType_KProcess, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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;

    {
        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;

    {
        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;

    {
        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);
}


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

    if (targetType == sipType_KProcess)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QProcess)->ctd_cast((QProcess *)(KProcess *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKProcess *>(sipCppV);
    else
        delete reinterpret_cast<KProcess *>(sipCppV);

    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_KProcess(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{144, 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_childEvent), meth_KProcess_childEvent, METH_VARARGS, NULL},
    {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_connectNotify), meth_KProcess_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KProcess_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KProcess_disconnectNotify, 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_readData), meth_KProcess_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KProcess_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KProcess_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KProcess_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEnv), meth_KProcess_setEnv, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KProcess_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNextOpenMode), meth_KProcess_setNextOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KProcess_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOutputChannelMode), meth_KProcess_setOutputChannelMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessState), meth_KProcess_setProcessState, 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_setupChildProcess), meth_KProcess_setupChildProcess, 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_timerEvent), meth_KProcess_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unsetEnv), meth_KProcess_unsetEnv, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KProcess_writeData, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KProcess[] = {
    {sipName_ForwardedChannels, KProcess::ForwardedChannels, 142},
    {sipName_MergedChannels, KProcess::MergedChannels, 142},
    {sipName_OnlyStderrChannel, KProcess::OnlyStderrChannel, 142},
    {sipName_OnlyStdoutChannel, KProcess::OnlyStdoutChannel, 142},
    {sipName_SeparateChannels, KProcess::SeparateChannels, 142},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KProcess = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KProcess,
        {0}
    },
    {
        sipNameNr_KProcess,
        {0, 0, 1},
        28, 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_KProcess,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KProcess,
    0,
    0,
    0,
    release_KProcess,
    cast_KProcess,
    0,
    0,
    0
},
    &KProcess::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kpluginloader.sip"
#include <kpluginloader.h>
#line 3962 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3966 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 3969 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3972 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 3975 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 3978 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qlibrary.sip"
#include <qlibrary.h>
#line 3981 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3984 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3987 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3990 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3993 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3996 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3999 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4002 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4005 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4008 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4011 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4014 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtect_load();

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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 && sip_kdecore_qt_metacast(sipPySelf,sipType_KPluginLoader,_clname)) ? this : KPluginLoader::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKPluginLoader::sipProtect_sender() const
{
    return QObject::sender();
}

int sipKPluginLoader::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKPluginLoader::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKPluginLoader::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKPluginLoader::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKPluginLoader::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKPluginLoader::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipKPluginLoader::sipProtect_load()
{
    return KPluginLoader::load();
}


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

    {
        sipKPluginLoader *sipCpp;

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

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 4286 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KPluginLoader, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 4328 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KPluginLoader, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KPluginLoader, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KPluginLoader, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KPluginLoader, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginLoader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KPluginLoader, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        sipKPluginLoader *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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;
}


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

    if (targetType == sipType_KPluginLoader)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPluginLoader)->ctd_cast((QPluginLoader *)(KPluginLoader *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKPluginLoader *>(sipCppV);
    else
        delete reinterpret_cast<KPluginLoader *>(sipCppV);

    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_KPluginLoader(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{141, 0, 1}};


static PyMethodDef methods_KPluginLoader[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KPluginLoader_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KPluginLoader_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KPluginLoader_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KPluginLoader_disconnectNotify, METH_VARARGS, NULL},
    {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},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KPluginLoader_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KPluginLoader_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KPluginLoader_timerEvent, METH_VARARGS, NULL}
};


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

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 4807 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4811 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 4814 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 4817 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 4820 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 4823 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4826 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4829 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4832 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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);
}


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

    return NULL;
}


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

    delete reinterpret_cast<KPluginInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KPluginInfo(void *, 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_KPluginInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KPluginInfo,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kpluginfactory.sip"
#include <kpluginfactory.h>
#line 6055 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6059 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 6062 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 6065 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6068 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6071 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6074 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6077 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 6080 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6083 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6086 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6089 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6092 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6095 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6098 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6101 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6104 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6107 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6110 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    QObject * sipProtectVirt_create(bool,const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    QVariantList sipProtect_stringListToVariantList(const QStringList&);
    QStringList sipProtect_variantListToStringList(const QVariantList&);
    void sipProtectVirt_setupTranslations(bool);
    QObject * sipProtectVirt_createObject(bool,QObject *,const char *,const QStringList&);
    void sipProtect_setComponentData(const KComponentData&);

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

public:
    sipSimpleWrapper *sipPySelf;

private:
    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 && sip_kdecore_qt_metacast(sipPySelf,sipType_KPluginFactory,_clname)) ? this : KPluginFactory::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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[2],sipPySelf,NULL,sipName_create);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKPluginFactory::sipProtect_sender() const
{
    return QObject::sender();
}

int sipKPluginFactory::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKPluginFactory::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKPluginFactory::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKPluginFactory::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKPluginFactory::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKPluginFactory::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

QObject * sipKPluginFactory::sipProtectVirt_create(bool sipSelfWasArg,const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    return (sipSelfWasArg ? KPluginFactory::create(a0,a1,a2,a3,a4) : create(a0,a1,a2,a3,a4));
}

QVariantList sipKPluginFactory::sipProtect_stringListToVariantList(const QStringList& a0)
{
    return KPluginFactory::stringListToVariantList(a0);
}

QStringList sipKPluginFactory::sipProtect_variantListToStringList(const QVariantList& a0)
{
    return KPluginFactory::variantListToStringList(a0);
}

void sipKPluginFactory::sipProtectVirt_setupTranslations(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KPluginFactory::setupTranslations() : setupTranslations());
}

QObject * sipKPluginFactory::sipProtectVirt_createObject(bool sipSelfWasArg,QObject *a0,const char *a1,const QStringList& a2)
{
    return (sipSelfWasArg ? KPluginFactory::createObject(a0,a1,a2) : createObject(a0,a1,a2));
}

void sipKPluginFactory::sipProtect_setComponentData(const KComponentData& a0)
{
    KPluginFactory::setComponentData(a0);
}


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

    {
        sipKPluginFactory *sipCpp;

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

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 6478 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KPluginFactory, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 6520 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KPluginFactory, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KPluginFactory, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ8J: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 = sipCpp->sipProtectVirt_create(sipSelfWasArg,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;
        sipKPluginFactory *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantList(sipCpp->sipProtect_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;
        sipKPluginFactory *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->sipProtect_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));

    {
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPluginFactory, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setupTranslations(sipSelfWasArg);
            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;
        sipKPluginFactory *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createObject(sipSelfWasArg,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;
        sipKPluginFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KPluginFactory, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
}


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

    if (targetType == sipType_KPluginFactory)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KPluginFactory *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKPluginFactory *>(sipCppV);
    else
        delete reinterpret_cast<KPluginFactory *>(sipCppV);

    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_KPluginFactory(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{134, 0, 1}};


static PyMethodDef methods_KPluginFactory[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KPluginFactory_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_componentData), meth_KPluginFactory_componentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KPluginFactory_connectNotify, 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_customEvent), meth_KPluginFactory_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KPluginFactory_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KPluginFactory_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KPluginFactory_sender, 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_timerEvent), meth_KPluginFactory_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variantListToStringList), meth_KPluginFactory_variantListToStringList, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KPluginFactory[] = {
    {"objectCreated(QObject *)", 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},
        14, methods_KPluginFactory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KPluginFactory,
    0,
    init_KPluginFactory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPluginFactory,
    0,
    0,
    0,
    release_KPluginFactory,
    cast_KPluginFactory,
    0,
    0,
    0
},
    &KPluginFactory::staticMetaObject,
    0,
    pyqt4_signals_KPluginFactory
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmimetypetrader.sip"
#include <kmimetypetrader.h>
#line 7113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7117 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 7120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 7126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        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;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KMimeTypeTrader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KMimeTypeTrader(sipSimpleWrapper *);}
static void dealloc_KMimeTypeTrader(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KMimeTypeTrader(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,
    cast_KMimeTypeTrader,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 87 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 7318 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7322 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 7325 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 7404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 7438 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 7469 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 7473 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7476 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7479 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7482 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 87 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 7485 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7488 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 7491 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7494 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 68 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 7497 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7500 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 7503 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 7506 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7509 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"


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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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


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

    {
        const KUrl& a0def = KUrl();
        const KUrl * a0 = &a0def;
        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;
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;

    {
        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;

    {
        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;
}


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

    if (targetType == sipType_KMimeType)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKMimeType *>(sipCppV);
    else
        delete reinterpret_cast<KMimeType *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QDataStream * a0;
        int a1;

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

            sipCpp->sipPySelf = sipSelf;

            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 sipKMimeType(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            sipCpp->sipPySelf = sipSelf;

            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, KMimeType::DontResolveAlias, 136},
    {sipName_ResolveAliases, 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_KMimeType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMimeType,
    0,
    0,
    0,
    release_KMimeType,
    cast_KMimeType,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 8505 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdesktopfile.sip"
#include <kdesktopfile.h>
#line 8509 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 8512 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 68 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 8515 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 8518 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8521 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 8524 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8527 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8530 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;
        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;

    {
        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;

    {
        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;

    {
        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;
}


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

    if (targetType == sipType_KServiceType)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<KServiceType *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *init_KServiceType(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KServiceType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KServiceType,
    0,
    0,
    0,
    release_KServiceType,
    cast_KServiceType,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmessage.sip"
#include <kmessage.h>
#line 9037 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9041 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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,PyObject *,KMessage::MessageType,const QString&,const QString&);

    sipVH_kdecore_18(sipGILState,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;
}


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

    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_KMessageHandler(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KMessageHandler,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMessageHandler,
    0,
    0,
    0,
    release_KMessageHandler,
    cast_KMessageHandler,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9273 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmessage.sip"
#include <kmessage.h>
#line 9276 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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, KMessage::Error, 133},
    {sipName_Fatal, KMessage::Fatal, 133},
    {sipName_Information, KMessage::Information, 133},
    {sipName_Sorry, KMessage::Sorry, 133},
    {sipName_Warning, 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
};


#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9405 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 9408 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 121 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 9411 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9414 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 72 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 9417 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 9420 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 9423 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 56 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9426 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9429 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 9432 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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
};

#line 91 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 9709 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 72 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 9713 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9716 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9719 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"


class sipKCharMacroExpander : public KCharMacroExpander
{
public:
    sipKCharMacroExpander(QChar);
    virtual ~sipKCharMacroExpander();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_expandPlainMacro(bool,const QString&,int,QStringList&);
    int sipProtectVirt_expandEscapedMacro(bool,const QString&,int,QStringList&);
    bool sipProtect_expandMacro(QChar,QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int expandPlainMacro(const QString&,int,QStringList&);
    int expandEscapedMacro(const QString&,int,QStringList&);
    bool expandMacro(QChar,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);
}

int sipKCharMacroExpander::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCharMacroExpander::expandPlainMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState,sipMeth,a0,a1,a2);
}

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,PyObject *,const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState,sipMeth,a0,a1,a2);
}

bool sipKCharMacroExpander::expandMacro(QChar a0,QStringList& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_KCharMacroExpander,sipName_expandMacro);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_19(sip_gilstate_t,PyObject *,QChar,QStringList&);

    return sipVH_kdecore_19(sipGILState,sipMeth,a0,a1);
}

int sipKCharMacroExpander::sipProtectVirt_expandPlainMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KCharMacroExpander::expandPlainMacro(a0,a1,a2) : expandPlainMacro(a0,a1,a2));
}

int sipKCharMacroExpander::sipProtectVirt_expandEscapedMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KCharMacroExpander::expandEscapedMacro(a0,a1,a2) : expandEscapedMacro(a0,a1,a2));
}

bool sipKCharMacroExpander::sipProtect_expandMacro(QChar a0,QStringList& a1)
{
    return expandMacro(a0,a1);
}


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;
        sipKCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iJ1", &sipSelf, sipType_KCharMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandPlainMacro(sipSelfWasArg,*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;
        sipKCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iJ1", &sipSelf, sipType_KCharMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandEscapedMacro(sipSelfWasArg,*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;
        sipKCharMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &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->sipProtect_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;
}


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

    if (targetType == sipType_KCharMacroExpander)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KMacroExpanderBase)->ctd_cast((KMacroExpanderBase *)(KCharMacroExpander *)ptr,targetType)) != NULL)
        return res;

    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_KCharMacroExpander(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KCharMacroExpander,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCharMacroExpander,
    0,
    0,
    0,
    release_KCharMacroExpander,
    cast_KCharMacroExpander,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 10070 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 72 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 10074 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10077 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10080 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"


class sipKWordMacroExpander : public KWordMacroExpander
{
public:
    sipKWordMacroExpander(QChar);
    virtual ~sipKWordMacroExpander();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_expandPlainMacro(bool,const QString&,int,QStringList&);
    int sipProtectVirt_expandEscapedMacro(bool,const QString&,int,QStringList&);
    bool sipProtect_expandMacro(const QString&,QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int expandPlainMacro(const QString&,int,QStringList&);
    int expandEscapedMacro(const QString&,int,QStringList&);
    bool expandMacro(const QString&,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);
}

int sipKWordMacroExpander::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KWordMacroExpander::expandPlainMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState,sipMeth,a0,a1,a2);
}

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,PyObject *,const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState,sipMeth,a0,a1,a2);
}

bool sipKWordMacroExpander::expandMacro(const QString& a0,QStringList& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_KWordMacroExpander,sipName_expandMacro);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_21(sip_gilstate_t,PyObject *,const QString&,QStringList&);

    return sipVH_kdecore_21(sipGILState,sipMeth,a0,a1);
}

int sipKWordMacroExpander::sipProtectVirt_expandPlainMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KWordMacroExpander::expandPlainMacro(a0,a1,a2) : expandPlainMacro(a0,a1,a2));
}

int sipKWordMacroExpander::sipProtectVirt_expandEscapedMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KWordMacroExpander::expandEscapedMacro(a0,a1,a2) : expandEscapedMacro(a0,a1,a2));
}

bool sipKWordMacroExpander::sipProtect_expandMacro(const QString& a0,QStringList& a1)
{
    return expandMacro(a0,a1);
}


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;
        sipKWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iJ1", &sipSelf, sipType_KWordMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandPlainMacro(sipSelfWasArg,*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;
        sipKWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iJ1", &sipSelf, sipType_KWordMacroExpander, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandEscapedMacro(sipSelfWasArg,*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;
        sipKWordMacroExpander *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &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->sipProtect_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;
}


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

    if (targetType == sipType_KWordMacroExpander)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KMacroExpanderBase)->ctd_cast((KMacroExpanderBase *)(KWordMacroExpander *)ptr,targetType)) != NULL)
        return res;

    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_KWordMacroExpander(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KWordMacroExpander,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KWordMacroExpander,
    0,
    0,
    0,
    release_KWordMacroExpander,
    cast_KWordMacroExpander,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmacroexpander.sip"
#include <kmacroexpander.h>
#line 10431 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 72 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 10435 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10438 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10441 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"


class sipKMacroExpanderBase : public KMacroExpanderBase
{
public:
    sipKMacroExpanderBase(QChar);
    virtual ~sipKMacroExpanderBase();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_expandPlainMacro(bool,const QString&,int,QStringList&);
    int sipProtectVirt_expandEscapedMacro(bool,const QString&,int,QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int expandPlainMacro(const QString&,int,QStringList&);
    int expandEscapedMacro(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::expandPlainMacro(const QString& a0,int a1,QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KMacroExpanderBase::expandPlainMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState,sipMeth,a0,a1,a2);
}

int sipKMacroExpanderBase::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 KMacroExpanderBase::expandEscapedMacro(a0,a1,a2);

    extern int sipVH_kdecore_20(sip_gilstate_t,PyObject *,const QString&,int,QStringList&);

    return sipVH_kdecore_20(sipGILState,sipMeth,a0,a1,a2);
}

int sipKMacroExpanderBase::sipProtectVirt_expandPlainMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KMacroExpanderBase::expandPlainMacro(a0,a1,a2) : expandPlainMacro(a0,a1,a2));
}

int sipKMacroExpanderBase::sipProtectVirt_expandEscapedMacro(bool sipSelfWasArg,const QString& a0,int a1,QStringList& a2)
{
    return (sipSelfWasArg ? KMacroExpanderBase::expandEscapedMacro(a0,a1,a2) : expandEscapedMacro(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;

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iJ1", &sipSelf, sipType_KMacroExpanderBase, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandPlainMacro(sipSelfWasArg,*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;
        sipKMacroExpanderBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iJ1", &sipSelf, sipType_KMacroExpanderBase, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QStringList,&a2, &a2State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expandEscapedMacro(sipSelfWasArg,*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;
}


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

    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_KMacroExpanderBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_KMacroExpanderBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KMacroExpanderBase,
    0,
    0,
    0,
    release_KMacroExpanderBase,
    cast_KMacroExpanderBase,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 10840 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 10844 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 10862 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 10892 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 10928 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLockFile::LockFlags(*a0 ^ a1);
#line 11037 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLockFile::LockFlags(*a0 | a1);
#line 11089 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
}


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

    return NULL;
}


/* 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_KLockFile_LockFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 11384 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    cast_KLockFile_LockFlags,
    convertTo_KLockFile_LockFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 11457 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11461 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 11464 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 11467 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;
}


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

    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_KLockFile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KLockFile::ForceFlag, 127},
    {sipName_LockError, KLockFile::LockError, 129},
    {sipName_LockFail, KLockFile::LockFail, 129},
    {sipName_LockOK, KLockFile::LockOK, 129},
    {sipName_LockStale, KLockFile::LockStale, 129},
    {sipName_NoBlockFlag, 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_KLockFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLockFile,
    0,
    0,
    0,
    release_KLockFile,
    cast_KLockFile,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 11770 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 11774 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11777 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 11780 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 11783 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11786 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11789 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11792 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11795 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11798 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11801 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11804 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11807 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 11810 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11813 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11816 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_incomingConnection(bool,int);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[10];
};

sipKLocalSocketServer::sipKLocalSocketServer(QObject *a0): KLocalSocketServer(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKLocalSocketServer::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KLocalSocketServer);
}

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

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

    return _id;
}

void *sipKLocalSocketServer::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KLocalSocketServer,_clname)) ? this : KLocalSocketServer::qt_metacast(_clname);
}

bool sipKLocalSocketServer::hasPendingConnections() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KLocalSocketServer::hasPendingConnections();

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

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

KLocalSocket * sipKLocalSocketServer::nextPendingConnection()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KLocalSocketServer::nextPendingConnection();

    extern KLocalSocket * sipVH_kdecore_22(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_22(sipGILState,sipMeth);
}

void sipKLocalSocketServer::incomingConnection(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KLocalSocketServer::incomingConnection(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t,PyObject *,int);

    ((sipVH_QtCore_4)(sipModuleAPI_kdecore_QtCore->em_virthandlers[4]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKLocalSocketServer::sipProtect_sender() const
{
    return QObject::sender();
}

int sipKLocalSocketServer::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKLocalSocketServer::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKLocalSocketServer::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKLocalSocketServer::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKLocalSocketServer::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKLocalSocketServer::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipKLocalSocketServer::sipProtectVirt_incomingConnection(bool sipSelfWasArg,int a0)
{
    (sipSelfWasArg ? KLocalSocketServer::incomingConnection(a0) : incomingConnection(a0));
}


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

    {
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalSocketServer, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 12133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KLocalSocketServer, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 12175 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KLocalSocketServer, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KLocalSocketServer, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KLocalSocketServer, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KLocalSocketServer, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKLocalSocketServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KLocalSocketServer, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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;

    {
        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;

    {
        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;

    {
        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;

    {
        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));

    {
        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;

    {
        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;

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KLocalSocketServer, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_incomingConnection(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KLocalSocketServer)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KLocalSocketServer *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKLocalSocketServer *>(sipCppV);
    else
        delete reinterpret_cast<KLocalSocketServer *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_KLocalSocketServer(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{134, 0, 1}};


static PyMethodDef methods_KLocalSocketServer[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KLocalSocketServer_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KLocalSocketServer_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KLocalSocketServer_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KLocalSocketServer_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KLocalSocketServer_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_KLocalSocketServer_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasPendingConnections), meth_KLocalSocketServer_hasPendingConnections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_incomingConnection), meth_KLocalSocketServer_incomingConnection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isListening), meth_KLocalSocketServer_isListening, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listen), meth_KLocalSocketServer_listen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localPath), meth_KLocalSocketServer_localPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localSocketType), meth_KLocalSocketServer_localSocketType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxPendingConnections), meth_KLocalSocketServer_maxPendingConnections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextPendingConnection), meth_KLocalSocketServer_nextPendingConnection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KLocalSocketServer_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KLocalSocketServer_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serverError), meth_KLocalSocketServer_serverError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxPendingConnections), meth_KLocalSocketServer_setMaxPendingConnections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KLocalSocketServer_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForNewConnection), meth_KLocalSocketServer_waitForNewConnection, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KLocalSocketServer[] = {
    {"newConnection()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocalSocketServer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLocalSocketServer,
        {0}
    },
    {
        sipNameNr_KLocalSocketServer,
        {0, 0, 1},
        20, methods_KLocalSocketServer,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KLocalSocketServer,
    0,
    init_KLocalSocketServer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalSocketServer,
    0,
    0,
    0,
    release_KLocalSocketServer,
    cast_KLocalSocketServer,
    0,
    0,
    0
},
    &KLocalSocketServer::staticMetaObject,
    0,
    pyqt4_signals_KLocalSocketServer
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalsocket.sip"
#include <klocalsocket.h>
#line 12842 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12846 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 12852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12855 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 12858 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 12861 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 12864 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 12867 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12870 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12873 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12876 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12879 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12882 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12885 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12888 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12891 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12894 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12897 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_readData(bool,char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtectVirt_writeData(bool,const char *,PY_LONG_LONG);
    void sipProtect_setSocketState(QAbstractSocket::SocketState);
    void sipProtect_setSocketError(QAbstractSocket::SocketError);
    void sipProtect_setLocalPort(quint16);
    void sipProtect_setLocalAddress(const QHostAddress&);
    void sipProtect_setPeerPort(quint16);
    void sipProtect_setPeerAddress(const QHostAddress&);
    void sipProtect_setPeerName(const QString&);
    void sipProtect_connectToHostImplementation(const QString&,quint16,QIODevice::OpenMode);
    void sipProtect_disconnectFromHostImplementation();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[23];
};

sipKLocalSocket::sipKLocalSocket(QObject *a0): KLocalSocket(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKLocalSocket::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KLocalSocket);
}

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

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

    return _id;
}

void *sipKLocalSocket::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_KLocalSocket,_clname)) ? this : KLocalSocket::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKLocalSocket::sipProtect_sender() const
{
    return QObject::sender();
}

int sipKLocalSocket::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKLocalSocket::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKLocalSocket::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKLocalSocket::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKLocalSocket::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKLocalSocket::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipKLocalSocket::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipKLocalSocket::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

qint64 sipKLocalSocket::sipProtectVirt_readData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readData(a0,a1) : readData(a0,a1));
}

qint64 sipKLocalSocket::sipProtectVirt_readLineData(bool sipSelfWasArg,char *a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readLineData(a0,a1) : readLineData(a0,a1));
}

qint64 sipKLocalSocket::sipProtectVirt_writeData(bool sipSelfWasArg,const char *a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QAbstractSocket::writeData(a0,a1) : writeData(a0,a1));
}

void sipKLocalSocket::sipProtect_setSocketState(QAbstractSocket::SocketState a0)
{
    QAbstractSocket::setSocketState(a0);
}

void sipKLocalSocket::sipProtect_setSocketError(QAbstractSocket::SocketError a0)
{
    QAbstractSocket::setSocketError(a0);
}

void sipKLocalSocket::sipProtect_setLocalPort(quint16 a0)
{
    QAbstractSocket::setLocalPort(a0);
}

void sipKLocalSocket::sipProtect_setLocalAddress(const QHostAddress& a0)
{
    QAbstractSocket::setLocalAddress(a0);
}

void sipKLocalSocket::sipProtect_setPeerPort(quint16 a0)
{
    QAbstractSocket::setPeerPort(a0);
}

void sipKLocalSocket::sipProtect_setPeerAddress(const QHostAddress& a0)
{
    QAbstractSocket::setPeerAddress(a0);
}

void sipKLocalSocket::sipProtect_setPeerName(const QString& a0)
{
    QAbstractSocket::setPeerName(a0);
}

void sipKLocalSocket::sipProtect_connectToHostImplementation(const QString& a0,quint16 a1,QIODevice::OpenMode a2)
{
    KLocalSocket::connectToHostImplementation(a0,a1,a2);
}

void sipKLocalSocket::sipProtect_disconnectFromHostImplementation()
{
    KLocalSocket::disconnectFromHostImplementation();
}


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

    {
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KLocalSocket, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 13500 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KLocalSocket, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 13542 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KLocalSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KLocalSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KLocalSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 233 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readData(s, a0) : sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 13803 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KLocalSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 271 "/usr/local/share/py-sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 13869 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        SIP_SSIZE_T a1;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bk", &sipSelf, sipType_KLocalSocket, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QAbstractSocket::SocketState a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QAbstractSocket_SocketState, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketState(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QAbstractSocket::SocketError a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QAbstractSocket_SocketError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        quint16 a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_KLocalSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalPort(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QHostAddress * a0;
        int a0State = 0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        quint16 a0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_KLocalSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerPort(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QHostAddress * a0;
        int a0State = 0;
        sipKLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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;

    {
        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;

    {
        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;

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1tJ1", &sipSelf, sipType_KLocalSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_connectToHostImplementation(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(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;

    {
        sipKLocalSocket *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KLocalSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTcpSocket)->ctd_cast((QTcpSocket *)(KLocalSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKLocalSocket *>(sipCppV);
    else
        delete reinterpret_cast<KLocalSocket *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_KLocalSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{97, 1, 1}};


static PyMethodDef methods_KLocalSocket[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KLocalSocket_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KLocalSocket_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHostImplementation), meth_KLocalSocket_connectToHostImplementation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToPath), meth_KLocalSocket_connectToPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KLocalSocket_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHostImplementation), meth_KLocalSocket_disconnectFromHostImplementation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromPath), meth_KLocalSocket_disconnectFromPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KLocalSocket_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localPath), meth_KLocalSocket_localPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localSocketType), meth_KLocalSocket_localSocketType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_peerPath), meth_KLocalSocket_peerPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readData), meth_KLocalSocket_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KLocalSocket_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KLocalSocket_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KLocalSocket_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KLocalSocket_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalAddress), meth_KLocalSocket_setLocalAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalPort), meth_KLocalSocket_setLocalPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KLocalSocket_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerAddress), meth_KLocalSocket_setPeerAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerName), meth_KLocalSocket_setPeerName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerPort), meth_KLocalSocket_setPeerPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketError), meth_KLocalSocket_setSocketError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketState), meth_KLocalSocket_setSocketState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KLocalSocket_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KLocalSocket_writeData, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KLocalSocket[] = {
    {sipName_AbstractUnixSocket, KLocalSocket::AbstractUnixSocket, 100},
    {sipName_UnixSocket, KLocalSocket::UnixSocket, 100},
    {sipName_UnknownLocalSocketType, KLocalSocket::UnknownLocalSocketType, 100},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KLocalSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KLocalSocket,
        {0}
    },
    {
        sipNameNr_KLocalSocket,
        {0, 0, 1},
        26, methods_KLocalSocket,
        3, enummembers_KLocalSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KLocalSocket,
    0,
    init_KLocalSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KLocalSocket,
    0,
    0,
    0,
    release_KLocalSocket,
    cast_KLocalSocket,
    0,
    0,
    0
},
    &KLocalSocket::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 14491 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14495 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 72 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 14498 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 14501 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;
        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;
        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;
        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;

    {
        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;
        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;
        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;
        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;
        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;
}


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

    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_KLocalizedString(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KLocalizedString,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 23 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalizeddate.sip"
#include <klocalizeddate.h>
#line 14871 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 35 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 14875 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcalendarsystem.sip"
#include <kcalendarsystem.h>
#line 14878 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14881 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 14884 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;
        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;

    {
        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;

    {
        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;
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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);
}


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

    return NULL;
}


/* 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_KLocalizedDate(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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,
    cast_KLocalizedDate,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 16886 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart4.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 16890 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 16908 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 16938 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 16974 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLocale::DateTimeComponents(*a0 ^ a1);
#line 17083 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KLocale::DateTimeComponents(*a0 | a1);
#line 17135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
}


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

    return NULL;
}


/* 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_KLocale_DateTimeComponents(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 17430 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    cast_KLocale_DateTimeComponents,
    convertTo_KLocale_DateTimeComponents,
    0,
    0
},
    0,
    1,
    0
};
