/*
 * Module code.
 *
 * Generated by SIP 4.16.4 on Thu Nov 20 23:29:07 2014
 */

#include "sipAPIkdecore.h"

#line 70 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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


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


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


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



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

#line 101 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksycocaentry.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_KSycocaEntry, SIP_NOT_NONE))
                return 0;

        return 1;
    }

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

            delete ql;
            return 0;
        }

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

        ql->append(*tptr);

        sipReleaseInstance(t, sipClass_KSycocaEntry, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 98 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


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

#line 74 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksycocaentry.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)
    {
        KSycocaEntry::Ptr *t = new KSycocaEntry::Ptr (sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 132 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0100KSycocaEntry_Ptr = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3941,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100KSycocaEntry_Ptr,
    array_QList_0100KSycocaEntry_Ptr,
    copy_QList_0100KSycocaEntry_Ptr,
    release_QList_0100KSycocaEntry_Ptr,
    convertTo_QList_0100KSycocaEntry_Ptr,
    convertFrom_QList_0100KSycocaEntry_Ptr
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksycoca.sip"
#include <ksycoca.h>
#line 163 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 167 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 170 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 173 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 176 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 179 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 182 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 185 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 188 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 191 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 194 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 197 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 200 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 203 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 206 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 209 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


class sipKSycoca : public KSycoca
{
public:
    sipKSycoca(bool);
    sipKSycoca();
    virtual ~sipKSycoca();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipKSycoca::sipKSycoca(bool a0): KSycoca(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSycoca::sipKSycoca(): KSycoca(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKSycoca::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KSycoca);
}

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

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

    return _id;
}

void *sipKSycoca::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KSycoca, _clname)) ? this : KSycoca::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipKSycoca::isBuilding()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KSycoca::isBuilding();

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

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


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::version();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::isAvailable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KSycocaType a1;
        KSycoca *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KSycoca, &sipCpp, &a0))
        {
            QDataStream*sipRes;

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QDataStream,NULL);
            return sipBuildResult(0,"(RF)",sipResObj,a1,sipType_KSycocaType);
        }
    }

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

    return NULL;
}


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

    {
        KSycocaFactoryId a0;
        KSycoca *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KSycoca, &sipCpp, sipType_KSycocaFactoryId, &a0))
        {
            QDataStream*sipRes;

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

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

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KSycoca::DatabaseType a0 = KSycoca::LocalDatabase;

        if (sipParseArgs(&sipParseErr, sipArgs, "|E", sipType_KSycoca_DatabaseType, &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KSycoca::absoluteFilePath(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->timeStamp();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->updateSignature();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KSycoca *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSycoca::isBuilding() : sipCpp->isBuilding());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KSycoca::disableAutoRebuild();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::isChanged(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KSycoca::flagError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSycoca::readError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KSycoca)
        return ptr;

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        bool a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "b", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSycoca(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KSycoca[] = {
    {SIP_MLNAME_CAST(sipName_absoluteFilePath), meth_KSycoca_absoluteFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allResourceDirs), meth_KSycoca_allResourceDirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disableAutoRebuild), meth_KSycoca_disableAutoRebuild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findEntry), meth_KSycoca_findEntry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findFactory), meth_KSycoca_findFactory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flagError), meth_KSycoca_flagError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAvailable), meth_KSycoca_isAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBuilding), meth_KSycoca_isBuilding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isChanged), meth_KSycoca_isChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kfsstnd_prefixes), meth_KSycoca_kfsstnd_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_KSycoca_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readError), meth_KSycoca_readError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KSycoca_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeStamp), meth_KSycoca_timeStamp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateSignature), meth_KSycoca_updateSignature, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_version), meth_KSycoca_version, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSycoca[] = {
    {sipName_GlobalDatabase, static_cast<int>(KSycoca::GlobalDatabase), 192},
    {sipName_LocalDatabase, static_cast<int>(KSycoca::LocalDatabase), 192},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KSycoca[] = {
    {"databaseChanged()", 0, 0, 0},
    {"databaseChanged(QStringList)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSycoca = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSycoca,
        {0}
    },
    {
        sipNameNr_KSycoca,
        {0, 0, 1},
        16, methods_KSycoca,
        2, enummembers_KSycoca,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSycoca,
    0,
    init_type_KSycoca,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSycoca,
    0,
    0,
    0,
    release_KSycoca,
    cast_KSycoca,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KSycoca::staticMetaObject,
    0,
    signals_KSycoca,
};


#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1017 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1020 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 72 "/usr/share/python-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 1023 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1026 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1029 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KStringHandler_preProcessWrap(PyObject *, PyObject *);}
static PyObject *meth_KStringHandler_preProcessWrap(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(KStringHandler::preProcessWrap(*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. */
    sipNoFunction(sipParseErr, sipName_preProcessWrap, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        Qt::CaseSensitivity a2 = Qt::CaseSensitive;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|E", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_Qt_CaseSensitivity, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStringHandler::naturalCompare(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const char* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "s", &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::from8Bit(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const char* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStringHandler::isUtf8(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KStringHandler_obscure(PyObject *, PyObject *);}
static PyObject *meth_KStringHandler_obscure(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(KStringHandler::obscure(*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. */
    sipNoFunction(sipParseErr, sipName_obscure, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KStringHandler_tagUrls(PyObject *, PyObject *);}
static PyObject *meth_KStringHandler_tagUrls(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(KStringHandler::tagUrls(*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. */
    sipNoFunction(sipParseErr, sipName_tagUrls, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|i", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStringHandler::perlSplit(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        const QChar* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        int a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|i", sipType_QChar,&a0, &a0State, sipType_QString,&a1, &a1State, &a2))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStringHandler::perlSplit(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QChar *>(a0),sipType_QChar,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        const QRegExp* a0;
        const QString* a1;
        int a1State = 0;
        int a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1|i", sipType_QRegExp, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStringHandler::perlSplit(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::rsqueeze(*a0,a1));
            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. */
    sipNoFunction(sipParseErr, sipName_rsqueeze, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::csqueeze(*a0,a1));
            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. */
    sipNoFunction(sipParseErr, sipName_csqueeze, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStringHandler::lsqueeze(*a0,a1));
            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. */
    sipNoFunction(sipParseErr, sipName_lsqueeze, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KStringHandler_capwords(PyObject *, PyObject *);}
static PyObject *meth_KStringHandler_capwords(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(KStringHandler::capwords(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const QStringList* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStringHandler::capwords(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

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

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

    return NULL;
}


static PyMethodDef methods_KStringHandler[] = {
    {SIP_MLNAME_CAST(sipName_capwords), meth_KStringHandler_capwords, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_csqueeze), meth_KStringHandler_csqueeze, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_from8Bit), meth_KStringHandler_from8Bit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUtf8), meth_KStringHandler_isUtf8, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lsqueeze), meth_KStringHandler_lsqueeze, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_naturalCompare), meth_KStringHandler_naturalCompare, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_obscure), meth_KStringHandler_obscure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_perlSplit), meth_KStringHandler_perlSplit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preProcessWrap), meth_KStringHandler_preProcessWrap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rsqueeze), meth_KStringHandler_rsqueeze, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagUrls), meth_KStringHandler_tagUrls, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KStringHandler = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KStringHandler,
        {0}
    },
    {
        sipNameNr_KStringHandler,
        {0, 0, 1},
        11, methods_KStringHandler,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 1485 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 1489 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


extern "C" {static int slot_KStandardDirs_SearchOptions___bool__(PyObject *);}
static int slot_KStandardDirs_SearchOptions___bool__(PyObject *sipSelf)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KStandardDirs::SearchOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 1511 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KStandardDirs_SearchOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KStandardDirs_SearchOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KStandardDirs::SearchOptions* a0;
        int a0State = 0;

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

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KStandardDirs::SearchOptions::Int() != a0->operator KStandardDirs::SearchOptions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 1545 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(const_cast<KStandardDirs::SearchOptions *>(a0),sipType_KStandardDirs_SearchOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KStandardDirs_SearchOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KStandardDirs_SearchOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KStandardDirs::SearchOptions* a0;
        int a0State = 0;

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

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KStandardDirs::SearchOptions::Int() == a0->operator KStandardDirs::SearchOptions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 1585 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(const_cast<KStandardDirs::SearchOptions *>(a0),sipType_KStandardDirs_SearchOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KStandardDirs_SearchOptions___invert__(PyObject *);}
static PyObject *slot_KStandardDirs_SearchOptions___invert__(PyObject *sipSelf)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KStandardDirs::SearchOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KStandardDirs::SearchOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KStandardDirs::SearchOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KStandardDirs_SearchOptions, &a0, &a0State, &a1))
        {
            KStandardDirs::SearchOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KStandardDirs::SearchOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KStandardDirs::SearchOptions* a0;
        int a0State = 0;
        KStandardDirs::SearchOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KStandardDirs_SearchOptions, &a0, &a0State, sipType_KStandardDirs_SearchOptions, &a1, &a1State))
        {
            KStandardDirs::SearchOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KStandardDirs::SearchOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,a0State);
            sipReleaseType(a1,sipType_KStandardDirs_SearchOptions,a1State);

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

    {
        KStandardDirs::SearchOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KStandardDirs_SearchOptions, &a0, &a0State, &a1))
        {
            KStandardDirs::SearchOptions*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KStandardDirs::SearchOptions(*a0 ^ a1);
#line 1694 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KStandardDirs::SearchOptions* a0;
        int a0State = 0;
        KStandardDirs::SearchOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KStandardDirs_SearchOptions, &a0, &a0State, sipType_KStandardDirs_SearchOptions, &a1, &a1State))
        {
            KStandardDirs::SearchOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KStandardDirs::SearchOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,a0State);
            sipReleaseType(a1,sipType_KStandardDirs_SearchOptions,a1State);

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

    {
        KStandardDirs::SearchOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KStandardDirs_SearchOptions, &a0, &a0State, &a1))
        {
            KStandardDirs::SearchOptions*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KStandardDirs::SearchOptions(*a0 | a1);
#line 1746 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KStandardDirs_SearchOptions___int__(PyObject *);}
static PyObject *slot_KStandardDirs_SearchOptions___int__(PyObject *sipSelf)
{
    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    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_KStandardDirs_SearchOptions___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KStandardDirs_SearchOptions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KStandardDirs_SearchOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KStandardDirs::SearchOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KStandardDirs_SearchOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KStandardDirs::SearchOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,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_KStandardDirs_SearchOptions___ior__(PyObject *,PyObject *);}
static PyObject *slot_KStandardDirs_SearchOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KStandardDirs_SearchOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KStandardDirs::SearchOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KStandardDirs_SearchOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KStandardDirs::SearchOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KStandardDirs_SearchOptions,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_KStandardDirs_SearchOptions___iand__(PyObject *,PyObject *);}
static PyObject *slot_KStandardDirs_SearchOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KStandardDirs_SearchOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KStandardDirs::SearchOptions *sipCpp = reinterpret_cast<KStandardDirs::SearchOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KStandardDirs_SearchOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KStandardDirs::SearchOptions::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_KStandardDirs_SearchOptions(void *, const sipTypeDef *);}
static void *cast_KStandardDirs_SearchOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KStandardDirs_SearchOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KStandardDirs::SearchOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KStandardDirs_SearchOptions(SIP_SSIZE_T);}
static void *array_KStandardDirs_SearchOptions(SIP_SSIZE_T sipNrElem)
{
    return new KStandardDirs::SearchOptions[sipNrElem];
}


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


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


extern "C" {static void *init_type_KStandardDirs_SearchOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KStandardDirs_SearchOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KStandardDirs::SearchOptions *sipCpp = 0;

    {
        const KStandardDirs::SearchOptions* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KStandardDirs::SearchOptions(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KStandardDirs::SearchOptions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KStandardDirs_SearchOption)) ||
            sipCanConvertToType(sipPy, sipType_KStandardDirs_SearchOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KStandardDirs_SearchOption)))
{
    *sipCppPtr = new KStandardDirs::SearchOptions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KStandardDirs::SearchOptions *>(sipConvertToType(sipPy, sipType_KStandardDirs_SearchOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 2041 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KStandardDirs_SearchOptions[] = {
    {(void *)slot_KStandardDirs_SearchOptions___bool__, bool_slot},
    {(void *)slot_KStandardDirs_SearchOptions___ne__, ne_slot},
    {(void *)slot_KStandardDirs_SearchOptions___eq__, eq_slot},
    {(void *)slot_KStandardDirs_SearchOptions___invert__, invert_slot},
    {(void *)slot_KStandardDirs_SearchOptions___and__, and_slot},
    {(void *)slot_KStandardDirs_SearchOptions___xor__, xor_slot},
    {(void *)slot_KStandardDirs_SearchOptions___or__, or_slot},
    {(void *)slot_KStandardDirs_SearchOptions___int__, int_slot},
    {(void *)slot_KStandardDirs_SearchOptions___ixor__, ixor_slot},
    {(void *)slot_KStandardDirs_SearchOptions___ior__, ior_slot},
    {(void *)slot_KStandardDirs_SearchOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KStandardDirs_SearchOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KStandardDirs__SearchOptions,
        {0}
    },
    {
        sipNameNr_SearchOptions,
        {187, 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_KStandardDirs_SearchOptions,
    init_type_KStandardDirs_SearchOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KStandardDirs_SearchOptions,
    assign_KStandardDirs_SearchOptions,
    array_KStandardDirs_SearchOptions,
    copy_KStandardDirs_SearchOptions,
    release_KStandardDirs_SearchOptions,
    cast_KStandardDirs_SearchOptions,
    convertTo_KStandardDirs_SearchOptions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 2117 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2121 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 2124 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 2130 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 2133 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KStandardDirs, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addPrefix(*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_KStandardDirs, sipName_addPrefix, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KStandardDirs, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addXdgConfigPrefix(*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_KStandardDirs, sipName_addXdgConfigPrefix, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KStandardDirs, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addXdgDataPrefix(*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_KStandardDirs, sipName_addXdgDataPrefix, NULL);

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        bool a2 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1|b", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceType(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const char* a0;
        const char* a1;
        const QString* a2;
        int a2State = 0;
        bool a3 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BssJ1|b", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, &a1, sipType_QString,&a2, &a2State, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceType(a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const char* a0;
        const char* a1;
        const char* a2;
        bool a3 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bsss|b", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, &a1, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceType(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_KStandardDirs, sipName_addResourceType, NULL);

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        bool a2 = 1;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1|b", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceDir(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            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_KStandardDirs, sipName_addResourceDir, NULL);

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        const KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->findResource(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_KStandardDirs, sipName_findResource, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs|J1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRestrictedResource(a0,*a1);
            Py_END_ALLOW_THREADS
            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_KStandardDirs, sipName_isRestrictedResource, NULL);

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        KStandardDirs::SearchOptions a2def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions* a2 = &a2def;
        int a2State = 0;
        const KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1|J1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State, sipType_KStandardDirs_SearchOptions, &a2, &a2State))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->calcResourceHash(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        const KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->findDirs(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        const KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->findResourceDir(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_KStandardDirs, sipName_findResourceDir, NULL);

    return NULL;
}


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

    {
        const char* a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        KStandardDirs::SearchOptions a2def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions* a2 = &a2def;
        int a2State = 0;
        const KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs|J1J1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State, sipType_KStandardDirs_SearchOptions, &a2, &a2State))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->findAllResources(a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);

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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        KStandardDirs::SearchOptions* a2;
        int a2State = 0;
        QStringList* a3;
        int a3State = 0;
        const KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1J1J1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State, sipType_KStandardDirs_SearchOptions, &a2, &a2State, sipType_QStringList,&a3, &a3State))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->findAllResources(a0,*a1,*a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);
            sipReleaseType(a3,sipType_QStringList,a3State);

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

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KStandardDirs::systemPaths(*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_KStandardDirs, sipName_systemPaths, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        KStandardDirs::SearchOptions a2def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_KStandardDirs_SearchOptions, &a2, &a2State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::findExe(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);

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

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

    return NULL;
}


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

    {
        QStringList* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        KStandardDirs::SearchOptions a3def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions* a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1J1", sipType_QStringList,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_KStandardDirs_SearchOptions, &a3, &a3State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStandardDirs::findAllExe(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QStringList,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(a3,sipType_KStandardDirs_SearchOptions,a3State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KConfig* a0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KStandardDirs, &sipCpp, sipType_KConfig, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const char* a0;
        const KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0))
        {
            QStringList*sipRes;

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

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

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

    return NULL;
}


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

    {
        const KStandardDirs *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const char* a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        bool a2 = 1;
        const KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs|J1b", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->saveLocation(a0,*a1,a2));
            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_KStandardDirs, sipName_saveLocation, NULL);

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->relativeLocation(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_KStandardDirs, sipName_relativeLocation, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStandardDirs::makeDir(*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_KStandardDirs, sipName_makeDir, NULL);

    return NULL;
}


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

    {
        const char* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "s", &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::kde_default(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KStandardDirs *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KStandardDirs *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KStandardDirs *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KStandardDirs *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KStandardDirs *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KStandardDirs *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const char* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "s", &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::installPath(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_exists(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_exists(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 = KStandardDirs::exists(*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_KStandardDirs, sipName_exists, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_realPath(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_realPath(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(KStandardDirs::realPath(*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_KStandardDirs, sipName_realPath, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KStandardDirs_realFilePath(PyObject *, PyObject *);}
static PyObject *meth_KStandardDirs_realFilePath(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(KStandardDirs::realFilePath(*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_KStandardDirs, sipName_realFilePath, NULL);

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        const KComponentData& a2def = KGlobal::mainComponent();
        const KComponentData* a2 = &a2def;

        if (sipParseArgs(&sipParseErr, sipArgs, "sJ1|J9", &a0, sipType_QString,&a1, &a1State, sipType_KComponentData, &a2))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::locate(a0,*a1,*a2));
            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_KStandardDirs, sipName_locate, NULL);

    return NULL;
}


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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        const KComponentData& a2def = KGlobal::mainComponent();
        const KComponentData* a2 = &a2def;

        if (sipParseArgs(&sipParseErr, sipArgs, "sJ1|J9", &a0, sipType_QString,&a1, &a1State, sipType_KComponentData, &a2))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::locateLocal(a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        const char* a0;
        const QString* a1;
        int a1State = 0;
        bool a2;
        const KComponentData& a3def = KGlobal::mainComponent();
        const KComponentData* a3 = &a3def;

        if (sipParseArgs(&sipParseErr, sipArgs, "sJ1b|J9", &a0, sipType_QString,&a1, &a1State, &a2, sipType_KComponentData, &a3))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KStandardDirs::locateLocal(a0,*a1,a2,*a3));
            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_KStandardDirs, sipName_locateLocal, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KStandardDirs::checkAccess(*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_KStandardDirs, sipName_checkAccess, NULL);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KStandardDirs *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KStandardDirs[] = {
    {SIP_MLNAME_CAST(sipName_addCustomized), meth_KStandardDirs_addCustomized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addPrefix), meth_KStandardDirs_addPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addResourceDir), meth_KStandardDirs_addResourceDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addResourceType), meth_KStandardDirs_addResourceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addXdgConfigPrefix), meth_KStandardDirs_addXdgConfigPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addXdgDataPrefix), meth_KStandardDirs_addXdgDataPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allTypes), meth_KStandardDirs_allTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calcResourceHash), meth_KStandardDirs_calcResourceHash, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checkAccess), meth_KStandardDirs_checkAccess, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exists), meth_KStandardDirs_exists, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findAllExe), meth_KStandardDirs_findAllExe, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findAllResources), meth_KStandardDirs_findAllResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findDirs), meth_KStandardDirs_findDirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findExe), meth_KStandardDirs_findExe, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findResource), meth_KStandardDirs_findResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findResourceDir), meth_KStandardDirs_findResourceDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_installPath), meth_KStandardDirs_installPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRestrictedResource), meth_KStandardDirs_isRestrictedResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kde_default), meth_KStandardDirs_kde_default, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kfsstnd_prefixes), meth_KStandardDirs_kfsstnd_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kfsstnd_xdg_conf_prefixes), meth_KStandardDirs_kfsstnd_xdg_conf_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kfsstnd_xdg_data_prefixes), meth_KStandardDirs_kfsstnd_xdg_data_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localkdedir), meth_KStandardDirs_localkdedir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localxdgconfdir), meth_KStandardDirs_localxdgconfdir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localxdgdatadir), meth_KStandardDirs_localxdgdatadir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locate), meth_KStandardDirs_locate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locateLocal), meth_KStandardDirs_locateLocal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_makeDir), meth_KStandardDirs_makeDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_realFilePath), meth_KStandardDirs_realFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_realPath), meth_KStandardDirs_realPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_relativeLocation), meth_KStandardDirs_relativeLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceDirs), meth_KStandardDirs_resourceDirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveLocation), meth_KStandardDirs_saveLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_systemPaths), meth_KStandardDirs_systemPaths, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KStandardDirs[] = {
    {sipName_IgnoreExecBit, static_cast<int>(KStandardDirs::IgnoreExecBit), 188},
    {sipName_NoDuplicates, static_cast<int>(KStandardDirs::NoDuplicates), 188},
    {sipName_NoSearchOptions, static_cast<int>(KStandardDirs::NoSearchOptions), 188},
    {sipName_Recursive, static_cast<int>(KStandardDirs::Recursive), 188},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KStandardDirs = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KStandardDirs,
        {0}
    },
    {
        sipNameNr_KStandardDirs,
        {0, 0, 1},
        34, methods_KStandardDirs,
        4, enummembers_KStandardDirs,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KStandardDirs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KStandardDirs,
    0,
    0,
    0,
    release_KStandardDirs,
    cast_KStandardDirs,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 31 "/usr/share/python-sip/PyQt4/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 3404 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3407 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3410 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 107 "/usr/share/python-sip/PyQt4/QtCore/qurl.sip"
#include <qurl.h>
#line 3413 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtNetwork/qtcpserver.sip"
#include <qtcpserver.h>
#line 3416 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 3419 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 3422 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 3425 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KSocketFactory_proxyForDatagram(PyObject *, PyObject *);}
static PyObject *meth_KSocketFactory_proxyForDatagram(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))
        {
            QNetworkProxy*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(KSocketFactory::proxyForDatagram(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(KSocketFactory::proxyForListening(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KSocketFactory_proxyForConnection(PyObject *, PyObject *);}
static PyObject *meth_KSocketFactory_proxyForConnection(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))
        {
            QNetworkProxy*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(KSocketFactory::proxyForConnection(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QObject* a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J:", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QObject, &a2))
        {
            QUdpSocket*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::datagramSocket(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QHostAddress& a1def = QHostAddress::Any;
        const QHostAddress* a1 = &a1def;
        int a1State = 0;
        quint16 a2 = 0;
        QObject* a3 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1tJ:", sipType_QString,&a0, &a0State, sipType_QHostAddress, &a1, &a1State, &a2, sipType_QObject, &a3))
        {
            QTcpServer*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::listen(*a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QHostAddress *>(a1),sipType_QHostAddress,a1State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        quint16 a2;
        int a3 = 30000;
        QObject* a4 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1t|iJ:", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2, &a3, sipType_QObject, &a4))
        {
            QTcpSocket*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::synchronousConnectToHost(*a0,*a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        const QUrl* a0;
        int a1 = 30000;
        QObject* a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|iJ:", sipType_QUrl, &a0, &a1, sipType_QObject, &a2))
        {
            QTcpSocket*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::synchronousConnectToHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS

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

    {
        QTcpSocket* a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        quint16 a3;
        int a4 = 30000;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J1J1t|i", sipType_QTcpSocket, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4))
        {
            Py_BEGIN_ALLOW_THREADS
            KSocketFactory::synchronousConnectToHost(a0,*a1,*a2,a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QTcpSocket* a0;
        const QUrl* a1;
        int a2 = 30000;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J9|i", sipType_QTcpSocket, &a0, sipType_QUrl, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            KSocketFactory::synchronousConnectToHost(a0,*a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        quint16 a2;
        QObject* a3 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1t|J:", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2, sipType_QObject, &a3))
        {
            QTcpSocket*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::connectToHost(*a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J:", sipType_QUrl, &a0, sipType_QObject, &a1))
        {
            QTcpSocket*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSocketFactory::connectToHost(*a0,a1);
            Py_END_ALLOW_THREADS

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

    {
        QTcpSocket* a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        quint16 a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J1J1t", sipType_QTcpSocket, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            KSocketFactory::connectToHost(a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QTcpSocket* a0;
        const QUrl* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J9", sipType_QTcpSocket, &a0, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            KSocketFactory::connectToHost(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


static PyMethodDef methods_KSocketFactory[] = {
    {SIP_MLNAME_CAST(sipName_connectToHost), meth_KSocketFactory_connectToHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_datagramSocket), meth_KSocketFactory_datagramSocket, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listen), meth_KSocketFactory_listen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxyForConnection), meth_KSocketFactory_proxyForConnection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxyForDatagram), meth_KSocketFactory_proxyForDatagram, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_proxyForListening), meth_KSocketFactory_proxyForListening, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronousConnectToHost), meth_KSocketFactory_synchronousConnectToHost, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSocketFactory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KSocketFactory,
        {0}
    },
    {
        sipNameNr_KSocketFactory,
        {0, 0, 1},
        7, methods_KSocketFactory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};




extern "C" {static int slot_KShell_Options___bool__(PyObject *);}
static int slot_KShell_Options___bool__(PyObject *sipSelf)
{
    KShell::Options *sipCpp = reinterpret_cast<KShell::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KShell_Options));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KShell::Options::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 3851 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KShell_Options___ne__(PyObject *,PyObject *);}
static PyObject *slot_KShell_Options___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KShell::Options *sipCpp = reinterpret_cast<KShell::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KShell_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KShell::Options* a0;
        int a0State = 0;

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

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KShell::Options::Int() != a0->operator KShell::Options::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 3885 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(const_cast<KShell::Options *>(a0),sipType_KShell_Options,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KShell_Options___eq__(PyObject *,PyObject *);}
static PyObject *slot_KShell_Options___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KShell::Options *sipCpp = reinterpret_cast<KShell::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KShell_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KShell::Options* a0;
        int a0State = 0;

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

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KShell::Options::Int() == a0->operator KShell::Options::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 3925 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(const_cast<KShell::Options *>(a0),sipType_KShell_Options,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KShell_Options___invert__(PyObject *);}
static PyObject *slot_KShell_Options___invert__(PyObject *sipSelf)
{
    KShell::Options *sipCpp = reinterpret_cast<KShell::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KShell_Options));

    if (!sipCpp)
        return 0;


    {
        {
            KShell::Options*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KShell::Options(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KShell::Options* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KShell_Options, &a0, &a0State, &a1))
        {
            KShell::Options*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KShell::Options((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KShell_Options,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KShell::Options* a0;
        int a0State = 0;
        KShell::Options* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KShell_Options, &a0, &a0State, sipType_KShell_Options, &a1, &a1State))
        {
            KShell::Options*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KShell::Options((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KShell_Options,a0State);
            sipReleaseType(a1,sipType_KShell_Options,a1State);

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

    {
        KShell::Options* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KShell_Options, &a0, &a0State, &a1))
        {
            KShell::Options*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KShell::Options(*a0 ^ a1);
#line 4034 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(a0,sipType_KShell_Options,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KShell::Options* a0;
        int a0State = 0;
        KShell::Options* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KShell_Options, &a0, &a0State, sipType_KShell_Options, &a1, &a1State))
        {
            KShell::Options*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KShell::Options((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KShell_Options,a0State);
            sipReleaseType(a1,sipType_KShell_Options,a1State);

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

    {
        KShell::Options* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KShell_Options, &a0, &a0State, &a1))
        {
            KShell::Options*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KShell::Options(*a0 | a1);
#line 4086 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(a0,sipType_KShell_Options,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KShell_Options___int__(PyObject *);}
static PyObject *slot_KShell_Options___int__(PyObject *sipSelf)
{
    KShell::Options *sipCpp = reinterpret_cast<KShell::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KShell_Options));

    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_KShell_Options___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KShell_Options___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KShell_Options)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KShell::Options *sipCpp = reinterpret_cast<KShell::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KShell_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KShell::Options* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KShell_Options, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KShell::Options::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KShell_Options,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_KShell_Options___ior__(PyObject *,PyObject *);}
static PyObject *slot_KShell_Options___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KShell_Options)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KShell::Options *sipCpp = reinterpret_cast<KShell::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KShell_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KShell::Options* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KShell_Options, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KShell::Options::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KShell_Options,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_KShell_Options___iand__(PyObject *,PyObject *);}
static PyObject *slot_KShell_Options___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KShell_Options)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KShell::Options *sipCpp = reinterpret_cast<KShell::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KShell_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KShell::Options::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_KShell_Options(void *, const sipTypeDef *);}
static void *cast_KShell_Options(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KShell_Options)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KShell::Options *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KShell_Options(SIP_SSIZE_T);}
static void *array_KShell_Options(SIP_SSIZE_T sipNrElem)
{
    return new KShell::Options[sipNrElem];
}


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


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


extern "C" {static void *init_type_KShell_Options(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KShell_Options(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KShell::Options *sipCpp = 0;

    {
        const KShell::Options* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KShell::Options(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KShell::Options is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KShell_Option)) ||
            sipCanConvertToType(sipPy, sipType_KShell_Options, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KShell_Option)))
{
    *sipCppPtr = new KShell::Options(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KShell::Options *>(sipConvertToType(sipPy, sipType_KShell_Options, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 4381 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KShell_Options[] = {
    {(void *)slot_KShell_Options___bool__, bool_slot},
    {(void *)slot_KShell_Options___ne__, ne_slot},
    {(void *)slot_KShell_Options___eq__, eq_slot},
    {(void *)slot_KShell_Options___invert__, invert_slot},
    {(void *)slot_KShell_Options___and__, and_slot},
    {(void *)slot_KShell_Options___xor__, xor_slot},
    {(void *)slot_KShell_Options___or__, or_slot},
    {(void *)slot_KShell_Options___int__, int_slot},
    {(void *)slot_KShell_Options___ixor__, ixor_slot},
    {(void *)slot_KShell_Options___ior__, ior_slot},
    {(void *)slot_KShell_Options___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KShell_Options = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KShell__Options,
        {0}
    },
    {
        sipNameNr_Options,
        {175, 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_KShell_Options,
    init_type_KShell_Options,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KShell_Options,
    assign_KShell_Options,
    array_KShell_Options,
    copy_KShell_Options,
    release_KShell_Options,
    cast_KShell_Options,
    convertTo_KShell_Options,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};


#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4458 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4461 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KShell_tildeExpand(PyObject *, PyObject *);}
static PyObject *meth_KShell_tildeExpand(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(KShell::tildeExpand(*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. */
    sipNoFunction(sipParseErr, sipName_tildeExpand, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KShell_quoteArg(PyObject *, PyObject *);}
static PyObject *meth_KShell_quoteArg(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(KShell::quoteArg(*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. */
    sipNoFunction(sipParseErr, sipName_quoteArg, NULL);

    return NULL;
}


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

    {
        const QStringList* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KShell::joinArgs(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        KShell::Options a1def = KShell::NoOptions;
        KShell::Options* a1 = &a1def;
        int a1State = 0;
        KShell::Errors a2;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KShell::splitArgs(*a0,*a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KShell_Options,a1State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
            return sipBuildResult(0,"(RF)",sipResObj,a2,sipType_KShell_Errors);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_KShell[] = {
    {SIP_MLNAME_CAST(sipName_joinArgs), meth_KShell_joinArgs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_quoteArg), meth_KShell_quoteArg, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_splitArgs), meth_KShell_splitArgs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tildeExpand), meth_KShell_tildeExpand, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KShell[] = {
    {sipName_AbortOnMeta, static_cast<int>(KShell::AbortOnMeta), 177},
    {sipName_BadQuoting, static_cast<int>(KShell::BadQuoting), 176},
    {sipName_FoundMeta, static_cast<int>(KShell::FoundMeta), 176},
    {sipName_NoError, static_cast<int>(KShell::NoError), 176},
    {sipName_NoOptions, static_cast<int>(KShell::NoOptions), 177},
    {sipName_TildeExpand, static_cast<int>(KShell::TildeExpand), 177},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KShell = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KShell,
        {0}
    },
    {
        sipNameNr_KShell,
        {0, 0, 1},
        4, methods_KShell,
        6, enummembers_KShell,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 58 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 4658 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"



extern "C" {static void assign_KSharedConfigPtr(void *, SIP_SSIZE_T, const void *);}
static void assign_KSharedConfigPtr(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KSharedConfigPtr *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KSharedConfigPtr *>(sipSrc);
}


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


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


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



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

#line 73 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
    if (sipIsErr == NULL)
        return 1;

    int state;
    KSharedConfig* ksc = (KSharedConfig *)sipConvertToInstance(sipPy, sipClass_KSharedConfig, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr);
    *sipCppPtr = new KSharedConfigPtr (ksc);
    ksc->ref.deref();
    return sipGetState(sipTransferObj);
#line 4708 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


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

#line 62 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
    if (!sipCpp)
        return NULL;

    KSharedConfigPtr kcpp = *sipCpp;
    KSharedConfig *ksc    = kcpp.data ();
    ksc->ref.ref();
    PyObject *pyKsc       = sipConvertFromInstance(ksc, sipClass_KSharedConfig, sipTransferObj);
    return pyKsc;
#line 4726 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_KSharedConfigPtr = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_KSharedConfigPtr,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KSharedConfigPtr,
    array_KSharedConfigPtr,
    copy_KSharedConfigPtr,
    release_KSharedConfigPtr,
    convertTo_KSharedConfigPtr,
    convertFrom_KSharedConfigPtr
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 4757 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 4761 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4764 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 4767 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 4770 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4773 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 4776 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 32 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 4779 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 4782 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4785 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4788 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 4791 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 4794 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        KConfig::OpenFlags a1def = KConfig::FullConfig;
        KConfig::OpenFlags* a1 = &a1def;
        int a1State = 0;
        const char* a2 = "config";

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1J1s", sipType_QString,&a0, &a0State, sipType_KConfig_OpenFlags, &a1, &a1State, &a2))
        {
            KSharedConfig::Ptr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfig::Ptr(KSharedConfig::openConfig(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KConfig_OpenFlags,a1State);

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

    {
        const KComponentData* a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        KConfig::OpenFlags a2def = KConfig::FullConfig;
        KConfig::OpenFlags* a2 = &a2def;
        int a2State = 0;
        const char* a3 = "config";

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J1J1s", sipType_KComponentData, &a0, sipType_QString,&a1, &a1State, sipType_KConfig_OpenFlags, &a2, &a2State, &a3))
        {
            KSharedConfig::Ptr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfig::Ptr(KSharedConfig::openConfig(*a0,*a1,*a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KConfig_OpenFlags,a2State);

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

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

    return NULL;
}


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

    if (targetType == sipType_KSharedConfig)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KConfig)->ctd_cast((KConfig *)(KSharedConfig *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<KSharedConfig *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_KSharedConfig[] = {
    {SIP_MLNAME_CAST(sipName_openConfig), meth_KSharedConfig_openConfig, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSharedConfig = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSharedConfig,
        {0}
    },
    {
        sipNameNr_KSharedConfig,
        {0, 0, 1},
        1, methods_KSharedConfig,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSharedConfig,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSharedConfig,
    0,
    0,
    0,
    release_KSharedConfig,
    cast_KSharedConfig,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetypetrader.sip"
#include <kservicetypetrader.h>
#line 4958 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 114 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 4962 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 4965 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 4968 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4971 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(sipCpp->query(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(sipCpp->defaultOffers(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(sipCpp->preferredService(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KServiceTypeTrader::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QList_0100KService_Ptr,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            KServiceTypeTrader::applyConstraints(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QList_0100KService_Ptr,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_KServiceTypeTrader, sipName_applyConstraints, NULL);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KServiceTypeTrader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


pyqt4ClassTypeDef sipTypeDef_kdecore_KServiceTypeTrader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KServiceTypeTrader,
        {0}
    },
    {
        sipNameNr_KServiceTypeTrader,
        {0, 0, 1},
        5, methods_KServiceTypeTrader,
        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_KServiceTypeTrader,
    0,
    0,
    0,
    release_KServiceTypeTrader,
    cast_KServiceTypeTrader,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5226 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 114 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 5229 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5232 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 5235 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KServiceTypeProfile_hasProfile(PyObject *, PyObject *);}
static PyObject *meth_KServiceTypeProfile_hasProfile(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 = KServiceTypeProfile::hasProfile(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KServiceTypeProfile::configurationMode();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KServiceTypeProfile::deleteServiceTypeProfile(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QList_0100KService_Ptr,&a1, &a1State, sipType_QList_0100KService_Ptr,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            KServiceTypeProfile::writeServiceTypeProfile(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<KService::List *>(a1),sipType_QList_0100KService_Ptr,a1State);
            sipReleaseType(const_cast<KService::List *>(a2),sipType_QList_0100KService_Ptr,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_kdecore_KServiceTypeProfile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KServiceTypeProfile,
        {0}
    },
    {
        sipNameNr_KServiceTypeProfile,
        {0, 0, 1},
        5, methods_KServiceTypeProfile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 144 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 5443 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5447 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5450 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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


extern "C" {static void *array_QMap_0100QString_0100QVariant_Type(SIP_SSIZE_T);}
static void *array_QMap_0100QString_0100QVariant_Type(SIP_SSIZE_T sipNrElem)
{
    return new QMap<QString,QVariant::Type>[sipNrElem];
}


extern "C" {static void *copy_QMap_0100QString_0100QVariant_Type(const void *, SIP_SSIZE_T);}
static void *copy_QMap_0100QString_0100QVariant_Type(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMap<QString,QVariant::Type>(reinterpret_cast<const QMap<QString,QVariant::Type> *>(sipSrc)[sipSrcIdx]);
}


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



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

#line 194 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

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

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

#if PY_MAJOR_VERSION >= 3
            if (!PyLong_Check (t2obj)) {
                return 0;
            }
#else
            if (!PyInt_Check (t2obj)) {
                return 0;
            }
#endif
        } 

        return 1;
    }

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

        QString *t1 = reinterpret_cast<QString *>(sipConvertToType(t1obj, sipType_QString, sipTransferObj, SIP_NOT_NONE, &state1, sipIsErr));
#if PY_MAJOR_VERSION >= 3
        QVariant::Type t2 = (QVariant::Type)PyLong_AsLong (t2obj);
#else
        QVariant::Type t2 = (QVariant::Type)PyInt_AS_LONG (t2obj);
#endif

        if (*sipIsErr)
        {
            sipReleaseType(t1, sipType_QString, state1);

            delete qm;
            return 0;
        }

        qm->insert(*t1, t2);

        sipReleaseType(t1, sipType_QString, state1);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 5548 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


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

#line 148 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

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

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

        PyObject *t1obj = sipConvertFromNewType(t1, sipType_QString, sipTransferObj);
#if PY_MAJOR_VERSION >= 3
        PyObject *t2obj = PyLong_FromLong ((long) t2);
#else
        PyObject *t2obj = PyInt_FromLong ((long) t2);
#endif

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

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

            if (t2obj)
                Py_DECREF(t2obj);

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 5601 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QMap_0100QString_0100QVariant_Type = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2177,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QMap_0100QString_0100QVariant_Type,
    array_QMap_0100QString_0100QVariant_Type,
    copy_QMap_0100QString_0100QVariant_Type,
    release_QMap_0100QString_0100QVariant_Type,
    convertTo_QMap_0100QString_0100QVariant_Type,
    convertFrom_QMap_0100QString_0100QVariant_Type
};

#line 68 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 5632 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5636 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 5639 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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


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


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


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



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

#line 99 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetype.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 (!sipCanConvertToType(PyList_GET_ITEM(sipPy, i), sipType_KServiceType, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<KServiceType::Ptr> *ql = new QList<KServiceType::Ptr>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        KServiceType *t = reinterpret_cast<KServiceType *>(sipConvertToType(PyList_GET_ITEM(sipPy, i), sipType_KServiceType, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_KServiceType, state);

            delete ql;
            return 0;
        }

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

        ql->append(*tptr);

        sipReleaseType(t, sipType_KServiceType, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 5718 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


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

#line 72 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetype.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)
    {
        KServiceType::Ptr *t = new KServiceType::Ptr (sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 5752 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0100KServiceType_Ptr = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_4016,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100KServiceType_Ptr,
    array_QList_0100KServiceType_Ptr,
    copy_QList_0100KServiceType_Ptr,
    release_QList_0100KServiceType_Ptr,
    convertTo_QList_0100KServiceType_Ptr,
    convertFrom_QList_0100KServiceType_Ptr
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 5783 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 5787 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KServiceGroup::EntriesOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 5809 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KServiceGroup::EntriesOptions::Int() != a0->operator KServiceGroup::EntriesOptions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 5843 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(const_cast<KServiceGroup::EntriesOptions *>(a0),sipType_KServiceGroup_EntriesOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KServiceGroup::EntriesOptions::Int() == a0->operator KServiceGroup::EntriesOptions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 5883 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(const_cast<KServiceGroup::EntriesOptions *>(a0),sipType_KServiceGroup_EntriesOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


    {
        {
            KServiceGroup::EntriesOptions*sipRes;

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

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

    return 0;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::EntriesOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::EntriesOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);
            sipReleaseType(a1,sipType_KServiceGroup_EntriesOptions,a1State);

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

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

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

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KServiceGroup::EntriesOptions(*a0 ^ a1);
#line 5992 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::EntriesOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);
            sipReleaseType(a1,sipType_KServiceGroup_EntriesOptions,a1State);

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

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

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

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KServiceGroup::EntriesOptions(*a0 | a1);
#line 6044 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(a0,sipType_KServiceGroup_EntriesOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KServiceGroup::EntriesOptions::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_KServiceGroup_EntriesOptions(void *, const sipTypeDef *);}
static void *cast_KServiceGroup_EntriesOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KServiceGroup_EntriesOptions)
        return ptr;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KServiceGroup_EntriesOptions(SIP_SSIZE_T);}
static void *array_KServiceGroup_EntriesOptions(SIP_SSIZE_T sipNrElem)
{
    return new KServiceGroup::EntriesOptions[sipNrElem];
}


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


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


extern "C" {static void *init_type_KServiceGroup_EntriesOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KServiceGroup_EntriesOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KServiceGroup::EntriesOptions *sipCpp = 0;

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

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

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceGroup::EntriesOptions(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

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

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

    return sipGetState(sipTransferObj);
}

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

return 0;
#line 6339 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


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


pyqt4ClassTypeDef sipTypeDef_kdecore_KServiceGroup_EntriesOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KServiceGroup__EntriesOptions,
        {0}
    },
    {
        sipNameNr_EntriesOptions,
        {159, 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_KServiceGroup_EntriesOptions,
    init_type_KServiceGroup_EntriesOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KServiceGroup_EntriesOptions,
    assign_KServiceGroup_EntriesOptions,
    array_KServiceGroup_EntriesOptions,
    copy_KServiceGroup_EntriesOptions,
    release_KServiceGroup_EntriesOptions,
    cast_KServiceGroup_EntriesOptions,
    convertTo_KServiceGroup_EntriesOptions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 6415 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6419 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 6422 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6425 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 6428 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6431 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 114 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 6434 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6437 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 6440 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 6443 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 70 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 6446 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6449 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6452 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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

    {
        const KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->childCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->noDisplay();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->showEmptyMenu();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KServiceGroup *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->showInlineHeader();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KServiceGroup *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->inlineAlias();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KServiceGroup *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->allowInline();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KServiceGroup *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->inlineValue();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KServiceGroup *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KServiceGroup, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLayoutInfo(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

    {
        bool a0;
        bool a1;
        KServiceGroup *sipCpp;

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

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

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

    {
        bool a0 = 0;
        KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::Ptr(KServiceGroup::baseGroup(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::Ptr(KServiceGroup::group(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KServiceGroup::Ptr(KServiceGroup::childGroup(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KServiceGroup, &sipCpp, sipType_KSharedPtr_0100KSycocaEntry,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addEntry(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KSycocaEntry::Ptr *>(a0),sipType_KSharedPtr_0100KSycocaEntry,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KServiceGroup)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<KServiceGroup *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceGroup(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceGroup(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    {
        QDataStream* a0;
        int a1;
        bool a2;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


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

static sipEnumMemberDef enummembers_KServiceGroup[] = {
    {sipName_AllowSeparators, static_cast<int>(KServiceGroup::AllowSeparators), 160},
    {sipName_ExcludeNoDisplay, static_cast<int>(KServiceGroup::ExcludeNoDisplay), 160},
    {sipName_NoOptions, static_cast<int>(KServiceGroup::NoOptions), 160},
    {sipName_SortByGenericName, static_cast<int>(KServiceGroup::SortByGenericName), 160},
    {sipName_SortEntries, static_cast<int>(KServiceGroup::SortEntries), 160},
};


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

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 7454 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7458 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7461 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KServiceAction, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KServiceAction *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceAction *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceAction *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceAction *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceAction *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KServiceAction *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->noDisplay();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KServiceAction *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSeparator();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KServiceAction *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        bool a4 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1J1|b", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KServiceAction(*a0,*a1,*a2,*a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    {
        const KServiceAction* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


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

#line 114 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 7861 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7865 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 7868 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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


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


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


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



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

#line 145 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.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 (!sipCanConvertToType(PyList_GET_ITEM(sipPy, i), sipType_KService, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<KService::Ptr> *ql = new QList<KService::Ptr>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        KService *t = reinterpret_cast<KService *>(sipConvertToType(PyList_GET_ITEM(sipPy, i), sipType_KService, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_KService, state);

            delete ql;
            return 0;
        }

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

        ql->append(*tptr);

        sipReleaseType(t, sipType_KService, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 7947 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


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

#line 118 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.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)
    {
        KService::Ptr *t = new KService::Ptr (sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 7981 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0100KService_Ptr = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_7199,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100KService_Ptr,
    array_QList_0100KService_Ptr,
    copy_QList_0100KService_Ptr,
    release_QList_0100KService_Ptr,
    convertTo_QList_0100KService_Ptr,
    convertFrom_QList_0100KService_Ptr
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 8012 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8016 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kdesktopfile.sip"
#include <kdesktopfile.h>
#line 8019 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 8022 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8025 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 114 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 8028 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 8031 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8034 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8037 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 8040 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 8043 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


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

    {
        const KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isApplication();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KService, &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_KService, sipName_icon, NULL);

    return NULL;
}


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

    {
        const KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->terminal();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->substituteUid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KService, &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_KService, sipName_desktopEntryPath, NULL);

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KService, &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_KService, sipName_storageId, NULL);

    return NULL;
}


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

    {
        const KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KService, &sipCpp))
        {
            KService::DBusStartupType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dbusStartupType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KService_DBusStartupType);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KService, &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_KService, sipName_comment, NULL);

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasServiceType(*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_KService, sipName_hasServiceType, NULL);

    return NULL;
}


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

    {
        const KServiceType* a0;
        const KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KService, &sipCpp, sipType_KServiceType, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasMimeType(*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_KService, sipName_hasMimeType, NULL);

    return NULL;
}


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

    {
        const KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->allowAsDefault();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KService, &sipCpp))
        {
            QList<KServiceAction>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KServiceAction>(sipCpp->actions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->allowMultipleFiles();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->initialPreference();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->noDisplay();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        QVariant::Type a1;
        const KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_KService, &sipCpp, sipType_QString,&a0, &a0State, sipType_QVariant_Type, &a1))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->property(*a0,a1));
            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_KService, sipName_property, NULL);

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KService, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMenuId(*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_KService, sipName_setMenuId, NULL);

    return NULL;
}


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

    {
        bool a0;
        KService *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KService, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTerminal(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_KService, sipName_setTerminal, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KService, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTerminalOptions(*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_KService, sipName_setTerminalOptions, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByName(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByDesktopPath(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByDesktopName(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByMenuId(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::Ptr(KService::serviceByStorageId(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KService::List(KService::allServices());
            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_KService, sipName_allServices, NULL);

    return NULL;
}


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

    {
        bool a0;
        const QString* a1;
        int a1State = 0;
        QString* a2 = 0;
        int a2State = 0;
        const QStringList* a3 = 0;
        int a3State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "bJ1|J0J0", &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QStringList,&a3, &a3State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KService::newServicePath(a0,*a1,a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

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

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->showInKDE();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KService *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_KService)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<KService *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const KDesktopFile* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KDesktopFile, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KService(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 KService(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KService[] = {
    {SIP_MLNAME_CAST(sipName_actions), meth_KService_actions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allServices), meth_KService_allServices, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allowAsDefault), meth_KService_allowAsDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allowMultipleFiles), meth_KService_allowMultipleFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_categories), meth_KService_categories, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_KService_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dbusStartupType), meth_KService_dbusStartupType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_desktopEntryName), meth_KService_desktopEntryName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_desktopEntryPath), meth_KService_desktopEntryPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_docPath), meth_KService_docPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_KService_exec_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericName), meth_KService_genericName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasMimeType), meth_KService_hasMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasServiceType), meth_KService_hasServiceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KService_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initialPreference), meth_KService_initialPreference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isApplication), meth_KService_isApplication, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keywords), meth_KService_keywords, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_library), meth_KService_library, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locateLocal), meth_KService_locateLocal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_menuId), meth_KService_menuId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypes), meth_KService_mimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_newServicePath), meth_KService_newServicePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_noDisplay), meth_KService_noDisplay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentApp), meth_KService_parentApp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_path), meth_KService_path, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginKeyword), meth_KService_pluginKeyword, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KService_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByDesktopName), meth_KService_serviceByDesktopName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByDesktopPath), meth_KService_serviceByDesktopPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByMenuId), meth_KService_serviceByMenuId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByName), meth_KService_serviceByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceByStorageId), meth_KService_serviceByStorageId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceTypes), meth_KService_serviceTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMenuId), meth_KService_setMenuId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTerminal), meth_KService_setTerminal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTerminalOptions), meth_KService_setTerminalOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showInKDE), meth_KService_showInKDE, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_storageId), meth_KService_storageId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_substituteUid), meth_KService_substituteUid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_terminal), meth_KService_terminal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_terminalOptions), meth_KService_terminalOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KService_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_untranslatedGenericName), meth_KService_untranslatedGenericName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_username), meth_KService_username, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KService[] = {
    {sipName_DBusMulti, static_cast<int>(KService::DBusMulti), 157},
    {sipName_DBusNone, static_cast<int>(KService::DBusNone), 157},
    {sipName_DBusUnique, static_cast<int>(KService::DBusUnique), 157},
    {sipName_DBusWait, static_cast<int>(KService::DBusWait), 157},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KService = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KService,
        {0}
    },
    {
        sipNameNr_KService,
        {0, 0, 1},
        45, methods_KService,
        4, enummembers_KService,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KService,
    0,
    init_type_KService,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KService,
    0,
    0,
    0,
    release_KService,
    cast_KService,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksavefile.sip"
#include <ksavefile.h>
#line 9533 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9537 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 9540 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 9543 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 84 "/usr/share/python-sip/PyQt4/QtCore/qfile.sip"
#include <qfile.h>
#line 9546 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtCore/qabstractfileengine.sip"
#include <qabstractfileengine.h>
#line 9549 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 84 "/usr/share/python-sip/PyQt4/QtCore/qfile.sip"
#include <qfile.h>
#line 9552 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9555 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9558 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9561 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9564 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 9567 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9570 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9573 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9576 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9579 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 9582 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9585 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9588 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


class sipKSaveFile : public KSaveFile
{
public:
    sipKSaveFile();
    sipKSaveFile(const QString&,const KComponentData&);
    virtual ~sipKSaveFile();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[24];
};

sipKSaveFile::sipKSaveFile(): KSaveFile(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSaveFile::sipKSaveFile(const QString& a0,const KComponentData& a1): KSaveFile(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKSaveFile::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KSaveFile);
}

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

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

    return _id;
}

void *sipKSaveFile::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KSaveFile, _clname)) ? this : KSaveFile::qt_metacast(_clname);
}

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KSaveFile::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKSaveFile::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KSaveFile::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKSaveFile::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KSaveFile::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKSaveFile::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KSaveFile::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKSaveFile::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KSaveFile::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKSaveFile::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KSaveFile::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKSaveFile::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return KSaveFile::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKSaveFile::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return KSaveFile::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKSaveFile::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return KSaveFile::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKSaveFile::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return KSaveFile::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKSaveFile::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return KSaveFile::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKSaveFile::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return KSaveFile::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKSaveFile::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KSaveFile::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKSaveFile::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return KSaveFile::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKSaveFile::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return KSaveFile::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QAbstractFileEngine* sipKSaveFile::fileEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_fileEngine);

    if (!sipMeth)
        return KSaveFile::fileEngine();

    typedef QAbstractFileEngine* (*sipVH_QtCore_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKSaveFile::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return KSaveFile::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKSaveFile::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return KSaveFile::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKSaveFile::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return KSaveFile::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKSaveFile::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return KSaveFile::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKSaveFile::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        KSaveFile::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKSaveFile::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return KSaveFile::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKSaveFile::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KSaveFile::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KSaveFile_setFileName(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_setFileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KSaveFile, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFileName(*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_KSaveFile, sipName_setFileName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_fileName(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_fileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSaveFile, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->fileName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSaveFile, sipName_fileName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_error(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSaveFile, &sipCpp))
        {
            QFile::FileError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QFile_FileError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSaveFile, sipName_error, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_errorString(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSaveFile, &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_KSaveFile, sipName_errorString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_open(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIODevice::OpenMode a0def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a0 = &a0def;
        int a0State = 0;
        KSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KSaveFile, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KSaveFile::open(*a0) : sipCpp->open(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSaveFile, sipName_open, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_abort(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSaveFile, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSaveFile, sipName_abort, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_finalize(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_finalize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSaveFile, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->finalize();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSaveFile, sipName_finalize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_backupFile(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_backupFile(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSaveFile::backupFile(*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_KSaveFile, sipName_backupFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_simpleBackupFile(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_simpleBackupFile(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        const QString& a2def = QLatin1String("~");
        const QString* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSaveFile::simpleBackupFile(*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 PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSaveFile, sipName_simpleBackupFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_numberedBackupFile(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_numberedBackupFile(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        const QString& a2def = QString::fromLatin1("~");
        const QString* a2 = &a2def;
        int a2State = 0;
        uint a3 = 10;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1J1u", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSaveFile::numberedBackupFile(*a0,*a1,*a2,a3);
            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 PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSaveFile, sipName_numberedBackupFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSaveFile_rcsBackupFile(PyObject *, PyObject *);}
static PyObject *meth_KSaveFile_rcsBackupFile(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KSaveFile::rcsBackupFile(*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 PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSaveFile, sipName_rcsBackupFile, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KSaveFile(void *, const sipTypeDef *);}
static void *cast_KSaveFile(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KSaveFile)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QFile)->ctd_cast((QFile *)(KSaveFile *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSaveFile(void *, int);}
static void release_KSaveFile(void *sipCppV,int)
{
    KSaveFile *sipCpp = reinterpret_cast<KSaveFile *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KSaveFile(sipSimpleWrapper *);}
static void dealloc_KSaveFile(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKSaveFile *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KSaveFile(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KSaveFile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSaveFile(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKSaveFile *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKSaveFile();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        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 sipKSaveFile(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSaveFile[] = {{65, 0, 1}};


static PyMethodDef methods_KSaveFile[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_KSaveFile_abort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backupFile), meth_KSaveFile_backupFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_KSaveFile_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_KSaveFile_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_KSaveFile_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_finalize), meth_KSaveFile_finalize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_numberedBackupFile), meth_KSaveFile_numberedBackupFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KSaveFile_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rcsBackupFile), meth_KSaveFile_rcsBackupFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_KSaveFile_setFileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_simpleBackupFile), meth_KSaveFile_simpleBackupFile, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSaveFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSaveFile,
        {0}
    },
    {
        sipNameNr_KSaveFile,
        {0, 0, 1},
        11, methods_KSaveFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSaveFile,
    0,
    init_type_KSaveFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSaveFile,
    0,
    0,
    0,
    release_KSaveFile,
    cast_KSaveFile,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KSaveFile::staticMetaObject,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/krandomsequence.sip"
#include <krandomsequence.h>
#line 10557 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"



extern "C" {static PyObject *meth_KRandomSequence_setSeed(PyObject *, PyObject *);}
static PyObject *meth_KRandomSequence_setSeed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        long a0 = 0;
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|l", &sipSelf, sipType_KRandomSequence, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSeed(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_KRandomSequence, sipName_setSeed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRandomSequence_getDouble(PyObject *, PyObject *);}
static PyObject *meth_KRandomSequence_getDouble(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRandomSequence, &sipCpp))
        {
            double sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getDouble();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRandomSequence, sipName_getDouble, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRandomSequence_getLong(PyObject *, PyObject *);}
static PyObject *meth_KRandomSequence_getLong(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_KRandomSequence, &sipCpp, &a0))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getLong(a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRandomSequence, sipName_getLong, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRandomSequence_getBool(PyObject *, PyObject *);}
static PyObject *meth_KRandomSequence_getBool(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KRandomSequence, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KRandomSequence, sipName_getBool, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRandomSequence_modulate(PyObject *, PyObject *);}
static PyObject *meth_KRandomSequence_modulate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        KRandomSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KRandomSequence, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->modulate(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_KRandomSequence, sipName_modulate, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KRandomSequence(void *, const sipTypeDef *);}
static void *cast_KRandomSequence(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KRandomSequence)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KRandomSequence(void *, int);}
static void release_KRandomSequence(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KRandomSequence *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KRandomSequence(void *, SIP_SSIZE_T, const void *);}
static void assign_KRandomSequence(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KRandomSequence *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KRandomSequence *>(sipSrc);
}


extern "C" {static void *array_KRandomSequence(SIP_SSIZE_T);}
static void *array_KRandomSequence(SIP_SSIZE_T sipNrElem)
{
    return new KRandomSequence[sipNrElem];
}


extern "C" {static void *copy_KRandomSequence(const void *, SIP_SSIZE_T);}
static void *copy_KRandomSequence(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KRandomSequence(reinterpret_cast<const KRandomSequence *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KRandomSequence(sipSimpleWrapper *);}
static void dealloc_KRandomSequence(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KRandomSequence(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KRandomSequence(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KRandomSequence(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KRandomSequence *sipCpp = 0;

    {
        long a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|l", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KRandomSequence(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KRandomSequence* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KRandomSequence, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KRandomSequence(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KRandomSequence[] = {
    {SIP_MLNAME_CAST(sipName_getBool), meth_KRandomSequence_getBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getDouble), meth_KRandomSequence_getDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getLong), meth_KRandomSequence_getLong, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modulate), meth_KRandomSequence_modulate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSeed), meth_KRandomSequence_setSeed, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KRandomSequence = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KRandomSequence,
        {0}
    },
    {
        sipNameNr_KRandomSequence,
        {0, 0, 1},
        5, methods_KRandomSequence,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KRandomSequence,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KRandomSequence,
    assign_KRandomSequence,
    array_KRandomSequence,
    copy_KRandomSequence,
    release_KRandomSequence,
    cast_KRandomSequence,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10851 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


extern "C" {static PyObject *meth_KRandom_randomString(PyObject *, PyObject *);}
static PyObject *meth_KRandom_randomString(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KRandom::randomString(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_randomString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KRandom_random(PyObject *, PyObject *);}
static PyObject *meth_KRandom_random(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KRandom::random();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_random, NULL);

    return NULL;
}


static PyMethodDef methods_KRandom[] = {
    {SIP_MLNAME_CAST(sipName_random), meth_KRandom_random, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_randomString), meth_KRandom_randomString, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KRandom = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KRandom,
        {0}
    },
    {
        sipNameNr_KRandom,
        {0, 0, 1},
        2, methods_KRandom,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kptyprocess.sip"
#include <kptyprocess.h>
#line 10967 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kptyprocess.sip"
#include <kptyprocess.h>
#line 10971 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


extern "C" {static int slot_KPtyProcess_PtyChannels___bool__(PyObject *);}
static int slot_KPtyProcess_PtyChannels___bool__(PyObject *sipSelf)
{
    KPtyProcess::PtyChannels *sipCpp = reinterpret_cast<KPtyProcess::PtyChannels *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPtyProcess_PtyChannels));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KPtyProcess::PtyChannels::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 10993 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KPtyProcess_PtyChannels___ne__(PyObject *,PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KPtyProcess::PtyChannels *sipCpp = reinterpret_cast<KPtyProcess::PtyChannels *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPtyProcess_PtyChannels));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KPtyProcess::PtyChannels* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KPtyProcess_PtyChannels, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KPtyProcess::PtyChannels::Int() != a0->operator KPtyProcess::PtyChannels::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 11027 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(const_cast<KPtyProcess::PtyChannels *>(a0),sipType_KPtyProcess_PtyChannels,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KPtyProcess_PtyChannels,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KPtyProcess_PtyChannels___eq__(PyObject *,PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KPtyProcess::PtyChannels *sipCpp = reinterpret_cast<KPtyProcess::PtyChannels *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPtyProcess_PtyChannels));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KPtyProcess::PtyChannels* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KPtyProcess_PtyChannels, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KPtyProcess::PtyChannels::Int() == a0->operator KPtyProcess::PtyChannels::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 11067 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(const_cast<KPtyProcess::PtyChannels *>(a0),sipType_KPtyProcess_PtyChannels,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KPtyProcess_PtyChannels,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KPtyProcess_PtyChannels___invert__(PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___invert__(PyObject *sipSelf)
{
    KPtyProcess::PtyChannels *sipCpp = reinterpret_cast<KPtyProcess::PtyChannels *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPtyProcess_PtyChannels));

    if (!sipCpp)
        return 0;


    {
        {
            KPtyProcess::PtyChannels*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPtyProcess::PtyChannels(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KPtyProcess_PtyChannels,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KPtyProcess_PtyChannels___and__(PyObject *,PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KPtyProcess::PtyChannels* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KPtyProcess_PtyChannels, &a0, &a0State, &a1))
        {
            KPtyProcess::PtyChannels*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPtyProcess::PtyChannels((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KPtyProcess_PtyChannels,a0State);

            return sipConvertFromNewType(sipRes,sipType_KPtyProcess_PtyChannels,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KPtyProcess_PtyChannels___xor__(PyObject *,PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KPtyProcess::PtyChannels* a0;
        int a0State = 0;
        KPtyProcess::PtyChannels* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KPtyProcess_PtyChannels, &a0, &a0State, sipType_KPtyProcess_PtyChannels, &a1, &a1State))
        {
            KPtyProcess::PtyChannels*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPtyProcess::PtyChannels((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KPtyProcess_PtyChannels,a0State);
            sipReleaseType(a1,sipType_KPtyProcess_PtyChannels,a1State);

            return sipConvertFromNewType(sipRes,sipType_KPtyProcess_PtyChannels,NULL);
        }
    }

    {
        KPtyProcess::PtyChannels* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KPtyProcess_PtyChannels, &a0, &a0State, &a1))
        {
            KPtyProcess::PtyChannels*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KPtyProcess::PtyChannels(*a0 ^ a1);
#line 11176 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(a0,sipType_KPtyProcess_PtyChannels,a0State);

            return sipConvertFromNewType(sipRes,sipType_KPtyProcess_PtyChannels,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KPtyProcess_PtyChannels___or__(PyObject *,PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KPtyProcess::PtyChannels* a0;
        int a0State = 0;
        KPtyProcess::PtyChannels* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KPtyProcess_PtyChannels, &a0, &a0State, sipType_KPtyProcess_PtyChannels, &a1, &a1State))
        {
            KPtyProcess::PtyChannels*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPtyProcess::PtyChannels((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KPtyProcess_PtyChannels,a0State);
            sipReleaseType(a1,sipType_KPtyProcess_PtyChannels,a1State);

            return sipConvertFromNewType(sipRes,sipType_KPtyProcess_PtyChannels,NULL);
        }
    }

    {
        KPtyProcess::PtyChannels* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KPtyProcess_PtyChannels, &a0, &a0State, &a1))
        {
            KPtyProcess::PtyChannels*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KPtyProcess::PtyChannels(*a0 | a1);
#line 11228 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
            sipReleaseType(a0,sipType_KPtyProcess_PtyChannels,a0State);

            return sipConvertFromNewType(sipRes,sipType_KPtyProcess_PtyChannels,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KPtyProcess_PtyChannels___int__(PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___int__(PyObject *sipSelf)
{
    KPtyProcess::PtyChannels *sipCpp = reinterpret_cast<KPtyProcess::PtyChannels *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPtyProcess_PtyChannels));

    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_KPtyProcess_PtyChannels___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KPtyProcess_PtyChannels)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KPtyProcess::PtyChannels *sipCpp = reinterpret_cast<KPtyProcess::PtyChannels *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPtyProcess_PtyChannels));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KPtyProcess::PtyChannels* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KPtyProcess_PtyChannels, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KPtyProcess::PtyChannels::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KPtyProcess_PtyChannels,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_KPtyProcess_PtyChannels___ior__(PyObject *,PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KPtyProcess_PtyChannels)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KPtyProcess::PtyChannels *sipCpp = reinterpret_cast<KPtyProcess::PtyChannels *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPtyProcess_PtyChannels));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KPtyProcess::PtyChannels* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KPtyProcess_PtyChannels, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KPtyProcess::PtyChannels::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KPtyProcess_PtyChannels,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_KPtyProcess_PtyChannels___iand__(PyObject *,PyObject *);}
static PyObject *slot_KPtyProcess_PtyChannels___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KPtyProcess_PtyChannels)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KPtyProcess::PtyChannels *sipCpp = reinterpret_cast<KPtyProcess::PtyChannels *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KPtyProcess_PtyChannels));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KPtyProcess::PtyChannels::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_KPtyProcess_PtyChannels(void *, const sipTypeDef *);}
static void *cast_KPtyProcess_PtyChannels(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KPtyProcess_PtyChannels)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KPtyProcess_PtyChannels(void *, int);}
static void release_KPtyProcess_PtyChannels(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KPtyProcess::PtyChannels *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KPtyProcess_PtyChannels(void *, SIP_SSIZE_T, const void *);}
static void assign_KPtyProcess_PtyChannels(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KPtyProcess::PtyChannels *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KPtyProcess::PtyChannels *>(sipSrc);
}


extern "C" {static void *array_KPtyProcess_PtyChannels(SIP_SSIZE_T);}
static void *array_KPtyProcess_PtyChannels(SIP_SSIZE_T sipNrElem)
{
    return new KPtyProcess::PtyChannels[sipNrElem];
}


extern "C" {static void *copy_KPtyProcess_PtyChannels(const void *, SIP_SSIZE_T);}
static void *copy_KPtyProcess_PtyChannels(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KPtyProcess::PtyChannels(reinterpret_cast<const KPtyProcess::PtyChannels *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KPtyProcess_PtyChannels(sipSimpleWrapper *);}
static void dealloc_KPtyProcess_PtyChannels(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KPtyProcess_PtyChannels(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KPtyProcess_PtyChannels(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KPtyProcess_PtyChannels(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KPtyProcess::PtyChannels *sipCpp = 0;

    {
        const KPtyProcess::PtyChannels* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KPtyProcess_PtyChannels, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPtyProcess::PtyChannels(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KPtyProcess::PtyChannels *>(a0),sipType_KPtyProcess_PtyChannels,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPtyProcess::PtyChannels(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KPtyProcess::PtyChannels();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KPtyProcess_PtyChannels(PyObject *, void **, int *, PyObject *);}
static int convertTo_KPtyProcess_PtyChannels(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KPtyProcess::PtyChannels **sipCppPtr = reinterpret_cast<KPtyProcess::PtyChannels **>(sipCppPtrV);

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KPtyProcess::PtyChannels is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KPtyProcess_PtyChannelFlag)) ||
            sipCanConvertToType(sipPy, sipType_KPtyProcess_PtyChannels, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KPtyProcess_PtyChannelFlag)))
{
    *sipCppPtr = new KPtyProcess::PtyChannels(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KPtyProcess::PtyChannels *>(sipConvertToType(sipPy, sipType_KPtyProcess_PtyChannels, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 11523 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KPtyProcess_PtyChannels[] = {
    {(void *)slot_KPtyProcess_PtyChannels___bool__, bool_slot},
    {(void *)slot_KPtyProcess_PtyChannels___ne__, ne_slot},
    {(void *)slot_KPtyProcess_PtyChannels___eq__, eq_slot},
    {(void *)slot_KPtyProcess_PtyChannels___invert__, invert_slot},
    {(void *)slot_KPtyProcess_PtyChannels___and__, and_slot},
    {(void *)slot_KPtyProcess_PtyChannels___xor__, xor_slot},
    {(void *)slot_KPtyProcess_PtyChannels___or__, or_slot},
    {(void *)slot_KPtyProcess_PtyChannels___int__, int_slot},
    {(void *)slot_KPtyProcess_PtyChannels___ixor__, ixor_slot},
    {(void *)slot_KPtyProcess_PtyChannels___ior__, ior_slot},
    {(void *)slot_KPtyProcess_PtyChannels___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KPtyProcess_PtyChannels = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KPtyProcess__PtyChannels,
        {0}
    },
    {
        sipNameNr_PtyChannels,
        {150, 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_KPtyProcess_PtyChannels,
    init_type_KPtyProcess_PtyChannels,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPtyProcess_PtyChannels,
    assign_KPtyProcess_PtyChannels,
    array_KPtyProcess_PtyChannels,
    copy_KPtyProcess_PtyChannels,
    release_KPtyProcess_PtyChannels,
    cast_KPtyProcess_PtyChannels,
    convertTo_KPtyProcess_PtyChannels,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kptyprocess.sip"
#include <kptyprocess.h>
#line 11599 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11603 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kptydevice.sip"
#include <kptydevice.h>
#line 11606 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kptyprocess.sip"
#include <kptyprocess.h>
#line 11609 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11612 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11615 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kprocess.sip"
#include <kprocess.h>
#line 11618 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 11621 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 215 "/usr/share/python-sip/PyQt4/QtCore/qprocess.sip"
#include <qprocess.h>
#line 11624 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 38 "/usr/share/python-sip/PyQt4/QtCore/qprocess.sip"
#include <qprocess.h>
#line 11627 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11630 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11633 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11636 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11639 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11642 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11645 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11648 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11651 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11654 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11657 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11660 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


class sipKPtyProcess : public KPtyProcess
{
public:
    sipKPtyProcess(QObject*);
    virtual ~sipKPtyProcess();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    qint64 readLineData(char*,qint64);
    bool reset();
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readData(char*,qint64);
    bool atEnd() const;
    void close();
    bool canReadLine() const;
    bool isSequential() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    void setupChildProcess();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKPtyProcess(const sipKPtyProcess &);
    sipKPtyProcess &operator = (const sipKPtyProcess &);

    char sipPyMethods[24];
};

sipKPtyProcess::sipKPtyProcess(QObject*a0): KPtyProcess(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPtyProcess::~sipKPtyProcess()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKPtyProcess::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KPtyProcess);
}

int sipKPtyProcess::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KPtyProcess::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KPtyProcess,_c,_id,_a);

    return _id;
}

void *sipKPtyProcess::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KPtyProcess, _clname)) ? this : KPtyProcess::qt_metacast(_clname);
}

void sipKPtyProcess::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KPtyProcess::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyProcess::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KPtyProcess::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyProcess::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KPtyProcess::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyProcess::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KPtyProcess::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyProcess::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KPtyProcess::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKPtyProcess::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KPtyProcess::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKPtyProcess::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KPtyProcess::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKPtyProcess::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return KPtyProcess::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKPtyProcess::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return KPtyProcess::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyProcess::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return KPtyProcess::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKPtyProcess::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return KPtyProcess::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKPtyProcess::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return KPtyProcess::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyProcess::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KPtyProcess::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKPtyProcess::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KPtyProcess::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKPtyProcess::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return KPtyProcess::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKPtyProcess::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return KPtyProcess::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKPtyProcess::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        KPtyProcess::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyProcess::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return KPtyProcess::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyProcess::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return KPtyProcess::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKPtyProcess::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return KPtyProcess::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKPtyProcess::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return KPtyProcess::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyProcess::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return KPtyProcess::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKPtyProcess::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return KPtyProcess::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyProcess::setupChildProcess()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_setupChildProcess);

    if (!sipMeth)
    {
        KPtyProcess::setupChildProcess();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KPtyProcess_setPtyChannels(PyObject *, PyObject *);}
static PyObject *meth_KPtyProcess_setPtyChannels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KPtyProcess::PtyChannels* a0;
        int a0State = 0;
        KPtyProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KPtyProcess, &sipCpp, sipType_KPtyProcess_PtyChannels, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPtyChannels(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KPtyProcess_PtyChannels,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyProcess, sipName_setPtyChannels, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyProcess_ptyChannels(PyObject *, PyObject *);}
static PyObject *meth_KPtyProcess_ptyChannels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KPtyProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyProcess, &sipCpp))
        {
            KPtyProcess::PtyChannels*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KPtyProcess::PtyChannels(sipCpp->ptyChannels());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KPtyProcess_PtyChannels,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyProcess, sipName_ptyChannels, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyProcess_setUseUtmp(PyObject *, PyObject *);}
static PyObject *meth_KPtyProcess_setUseUtmp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KPtyProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KPtyProcess, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUseUtmp(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_KPtyProcess, sipName_setUseUtmp, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyProcess_isUseUtmp(PyObject *, PyObject *);}
static PyObject *meth_KPtyProcess_isUseUtmp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KPtyProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyProcess, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUseUtmp();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyProcess, sipName_isUseUtmp, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyProcess_pty(PyObject *, PyObject *);}
static PyObject *meth_KPtyProcess_pty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KPtyProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyProcess, &sipCpp))
        {
            KPtyDevice*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pty();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KPtyDevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyProcess, sipName_pty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyProcess_setupChildProcess(PyObject *, PyObject *);}
static PyObject *meth_KPtyProcess_setupChildProcess(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KPtyProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KPtyProcess, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KPtyProcess::setupChildProcess() : sipCpp->setupChildProcess());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyProcess, sipName_setupChildProcess, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KPtyProcess(void *, const sipTypeDef *);}
static void *cast_KPtyProcess(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KPtyProcess)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KProcess)->ctd_cast((KProcess *)(KPtyProcess *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KPtyProcess(void *, int);}
static void release_KPtyProcess(void *sipCppV,int)
{
    KPtyProcess *sipCpp = reinterpret_cast<KPtyProcess *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KPtyProcess(sipSimpleWrapper *);}
static void dealloc_KPtyProcess(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKPtyProcess *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KPtyProcess(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KPtyProcess(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KPtyProcess(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKPtyProcess *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPtyProcess(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KPtyProcess[] = {{141, 255, 1}};


static PyMethodDef methods_KPtyProcess[] = {
    {SIP_MLNAME_CAST(sipName_isUseUtmp), meth_KPtyProcess_isUseUtmp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pty), meth_KPtyProcess_pty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ptyChannels), meth_KPtyProcess_ptyChannels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPtyChannels), meth_KPtyProcess_setPtyChannels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUseUtmp), meth_KPtyProcess_setUseUtmp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setupChildProcess), meth_KPtyProcess_setupChildProcess, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KPtyProcess[] = {
    {sipName_AllChannels, static_cast<int>(KPtyProcess::AllChannels), 151},
    {sipName_AllOutputChannels, static_cast<int>(KPtyProcess::AllOutputChannels), 151},
    {sipName_NoChannels, static_cast<int>(KPtyProcess::NoChannels), 151},
    {sipName_StderrChannel, static_cast<int>(KPtyProcess::StderrChannel), 151},
    {sipName_StdinChannel, static_cast<int>(KPtyProcess::StdinChannel), 151},
    {sipName_StdoutChannel, static_cast<int>(KPtyProcess::StdoutChannel), 151},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KPtyProcess = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KPtyProcess,
        {0}
    },
    {
        sipNameNr_KPtyProcess,
        {0, 0, 1},
        6, methods_KPtyProcess,
        6, enummembers_KPtyProcess,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KPtyProcess,
    0,
    init_type_KPtyProcess,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPtyProcess,
    0,
    0,
    0,
    release_KPtyProcess,
    cast_KPtyProcess,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KPtyProcess::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kptydevice.sip"
#include <kptydevice.h>
#line 12437 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"

#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 12441 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 12444 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12447 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12450 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12453 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12456 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12459 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12462 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12465 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12468 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12471 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 12474 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12477 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12480 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart3.cpp"


class sipKPtyDevice : public KPtyDevice
{
public:
    sipKPtyDevice(QObject*);
    virtual ~sipKPtyDevice();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;
    bool reset();
    bool atEnd() const;
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool isSequential() const;
    void close();
    bool open(QIODevice::OpenMode);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKPtyDevice(const sipKPtyDevice &);
    sipKPtyDevice &operator = (const sipKPtyDevice &);

    char sipPyMethods[23];
};

sipKPtyDevice::sipKPtyDevice(QObject*a0): KPtyDevice(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKPtyDevice::~sipKPtyDevice()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKPtyDevice::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KPtyDevice);
}

int sipKPtyDevice::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KPtyDevice::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KPtyDevice,_c,_id,_a);

    return _id;
}

void *sipKPtyDevice::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KPtyDevice, _clname)) ? this : KPtyDevice::qt_metacast(_clname);
}

void sipKPtyDevice::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KPtyDevice::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyDevice::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KPtyDevice::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyDevice::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KPtyDevice::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyDevice::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KPtyDevice::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKPtyDevice::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KPtyDevice::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKPtyDevice::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KPtyDevice::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKPtyDevice::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KPtyDevice::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKPtyDevice::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_KPtyDevice,sipName_writeData);

    if (!sipMeth)
        return 0;

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKPtyDevice::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return KPtyDevice::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKPtyDevice::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_KPtyDevice,sipName_readData);

    if (!sipMeth)
        return 0;

    typedef PY_LONG_LONG (*sipVH_QtCore_31)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_31)(sipModuleAPI_kdecore_QtCore->em_virthandlers[31]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKPtyDevice::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return KPtyDevice::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKPtyDevice::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return KPtyDevice::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKPtyDevice::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return KPtyDevice::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKPtyDevice::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return KPtyDevice::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKPtyDevice::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return KPtyDevice::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyDevice::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return KPtyDevice::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyDevice::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return KPtyDevice::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyDevice::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return KPtyDevice::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKPtyDevice::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return KPtyDevice::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKPtyDevice::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return KPtyDevice::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyDevice::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return KPtyDevice::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKPtyDevice::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        KPtyDevice::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKPtyDevice::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KPtyDevice::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KPtyDevice_open(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KPtyDevice, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPtyDevice::open(*a0) : sipCpp->open(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_open, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyDevice_close(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyDevice, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KPtyDevice::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_close, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyDevice_isSequential(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_isSequential(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyDevice, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPtyDevice::isSequential() : sipCpp->isSequential());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_isSequential, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyDevice_canReadLine(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_canReadLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyDevice, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPtyDevice::canReadLine() : sipCpp->canReadLine());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_canReadLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyDevice_atEnd(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_atEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyDevice, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPtyDevice::atEnd() : sipCpp->atEnd());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_atEnd, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyDevice_bytesAvailable(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_bytesAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyDevice, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPtyDevice::bytesAvailable() : sipCpp->bytesAvailable());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_bytesAvailable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyDevice_bytesToWrite(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_bytesToWrite(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyDevice, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPtyDevice::bytesToWrite() : sipCpp->bytesToWrite());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_bytesToWrite, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyDevice_waitForBytesWritten(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_waitForBytesWritten(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = -1;
        KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KPtyDevice, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPtyDevice::waitForBytesWritten(a0) : sipCpp->waitForBytesWritten(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_waitForBytesWritten, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KPtyDevice_waitForReadyRead(PyObject *, PyObject *);}
static PyObject *meth_KPtyDevice_waitForReadyRead(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = -1;
        KPtyDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|i", &sipSelf, sipType_KPtyDevice, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KPtyDevice::waitForReadyRead(a0) : sipCpp->waitForReadyRead(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KPtyDevice, sipName_waitForReadyRead, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KPtyDevice(void *, const sipTypeDef *);}
static void *cast_KPtyDevice(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KPtyDevice)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QIODevice)->ctd_cast((QIODevice *)(KPtyDevice *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_KPty)->ctd_cast((KPty *)(KPtyDevice *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KPtyDevice(void *, int);}
static void release_KPtyDevice(void *sipCppV,int)
{
    KPtyDevice *sipCpp = reinterpret_cast<KPtyDevice *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KPtyDevice(sipSimpleWrapper *);}
static void dealloc_KPtyDevice(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKPtyDevice *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KPtyDevice(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KPtyDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KPtyDevice(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKPtyDevice *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKPtyDevice(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KPtyDevice[] = {{81, 0, 0}, {148, 255, 1}};


static PyMethodDef methods_KPtyDevice[] = {
    {SIP_MLNAME_CAST(sipName_atEnd), meth_KPtyDevice_atEnd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_KPtyDevice_bytesAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bytesToWrite), meth_KPtyDevice_bytesToWrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canReadLine), meth_KPtyDevice_canReadLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KPtyDevice_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSequential), meth_KPtyDevice_isSequential, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KPtyDevice_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForBytesWritten), meth_KPtyDevice_waitForBytesWritten, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForReadyRead), meth_KPtyDevice_waitForReadyRead, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KPtyDevice[] = {
    {"readEof()", 0, 0, 0},
    {"readyRead()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KPtyDevice = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KPtyDevice,
        {0}
    },
    {
        sipNameNr_KPtyDevice,
        {0, 0, 1},
        9, methods_KPtyDevice,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KPtyDevice,
    0,
    init_type_KPtyDevice,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KPtyDevice,
    0,
    0,
    0,
    release_KPtyDevice,
    cast_KPtyDevice,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KPtyDevice::staticMetaObject,
    0,
    signals_KPtyDevice,
};
