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

#include "sipAPIkdecore.h"

#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksycoca.sip"
#include <ksycoca.h>
#line 163 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 167 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 170 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 173 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 176 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 179 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 182 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 185 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 191 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 197 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 200 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 203 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 206 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 209 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKSycoca *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKSycoca *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKSycoca *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKSycoca *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKSycoca *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKSycoca *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKSycoca *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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;
        PyObject *a0Keep;

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

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

            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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKSycoca *>(sipCppV);
    else
        delete reinterpret_cast<KSycoca *>(sipCppV);

    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_KSycoca(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{134, 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_childEvent), meth_KSycoca_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KSycoca_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KSycoca_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disableAutoRebuild), meth_KSycoca_disableAutoRebuild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KSycoca_disconnectNotify, 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_receivers), meth_KSycoca_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KSycoca_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KSycoca_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeStamp), meth_KSycoca_timeStamp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KSycoca_timerEvent, 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, KSycoca::GlobalDatabase, 192},
    {sipName_LocalDatabase, KSycoca::LocalDatabase, 192},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KSycoca[] = {
    {"databaseChanged()", 0, 0},
    {"databaseChanged(QStringList)", 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},
        23, methods_KSycoca,
        2, enummembers_KSycoca,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSycoca,
    0,
    init_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
},
    &KSycoca::staticMetaObject,
    0,
    pyqt4_signals_KSycoca
};


#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1289 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1292 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 72 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 1295 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1298 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1301 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        PyObject *a0Keep;

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

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

            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;
        PyObject *a0Keep;

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

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

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

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 1758 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 1762 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1780 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1810 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1846 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KStandardDirs::SearchOptions(*a0 ^ a1);
#line 1955 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KStandardDirs::SearchOptions(*a0 | a1);
#line 2007 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_KStandardDirs_SearchOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 2302 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    1,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 2375 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2379 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 2382 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2385 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 2388 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 2391 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        bool a2 = 1;
        KStandardDirs *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;
        const char * a1;
        PyObject *a1Keep;
        const char * a2;
        PyObject *a2Keep;
        bool a3 = 1;
        KStandardDirs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceType(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            Py_DECREF(a2Keep);

            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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        bool a2 = 1;
        KStandardDirs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addResourceDir(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->findResource(a0,*a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KStandardDirs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRestrictedResource(a0,*a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs::SearchOptions a2def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions * a2 = &a2def;
        int a2State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ1|J1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0Keep, &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
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->findDirs(a0,*a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->findResourceDir(a0,*a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KStandardDirs::SearchOptions a2def = KStandardDirs::NoSearchOptions;
        KStandardDirs::SearchOptions * a2 = &a2def;
        int a2State = 0;
        KStandardDirs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA|J1J1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0Keep, &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
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(a2,sipType_KStandardDirs_SearchOptions,a2State);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ1J1J1", &sipSelf, sipType_KStandardDirs, &sipCpp, &a0Keep, &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
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        KStandardDirs *sipCpp;

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

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

            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;

    {
        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;
        PyObject *a0Keep;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        bool a2 = 1;
        KStandardDirs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->saveLocation(a0,*a1,a2));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        KStandardDirs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->relativeLocation(a0,*a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;

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

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

            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;

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

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

    {
        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;
        PyObject *a0Keep;

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

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

            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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        const KComponentData& a2def = KGlobal::mainComponent();
        const KComponentData * a2 = &a2def;

        if (sipParseArgs(&sipParseErr, sipArgs, "AAJ1|J9", &a0Keep, &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
            Py_DECREF(a0Keep);
            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;
        PyObject *a0Keep;
        const QString * a1;
        int a1State = 0;
        const KComponentData& a2def = KGlobal::mainComponent();
        const KComponentData * a2 = &a2def;

        if (sipParseArgs(&sipParseErr, sipArgs, "AAJ1|J9", &a0Keep, &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
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "AAJ1b|J9", &a0Keep, &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
            Py_DECREF(a0Keep);
            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_KStandardDirs(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KStandardDirs::IgnoreExecBit, 188},
    {sipName_NoDuplicates, KStandardDirs::NoDuplicates, 188},
    {sipName_NoSearchOptions, KStandardDirs::NoSearchOptions, 188},
    {sipName_Recursive, 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_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
};


#line 31 "/usr/local/share/py-sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 3703 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3706 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3709 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3712 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtNetwork/qtcpserver.sip"
#include <qtcpserver.h>
#line 3715 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 3718 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 3721 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 3724 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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
};




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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 4143 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 4173 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 4209 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KShell::Options(*a0 ^ a1);
#line 4318 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KShell::Options(*a0 | a1);
#line 4370 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_KShell_Options(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 4665 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    1,
    0
};


#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4739 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4742 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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, KShell::AbortOnMeta, 177},
    {sipName_BadQuoting, KShell::BadQuoting, 176},
    {sipName_FoundMeta, KShell::FoundMeta, 176},
    {sipName_NoError, KShell::NoError, 176},
    {sipName_NoOptions, KShell::NoOptions, 177},
    {sipName_TildeExpand, 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
};

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 4936 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 4986 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 5004 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 5035 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 5039 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5042 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 5045 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5048 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5051 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 5054 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 5057 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 5060 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5063 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5066 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 5069 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 5072 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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";
        PyObject *a2Keep = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1J1AA", sipType_QString,&a0, &a0State, sipType_KConfig_OpenFlags, &a1, &a1State, &a2Keep, &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);
            Py_XDECREF(a2Keep);

            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";
        PyObject *a3Keep = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J1J1AA", sipType_KComponentData, &a0, sipType_QString,&a1, &a1State, sipType_KConfig_OpenFlags, &a2, &a2State, &a3Keep, &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);
            Py_XDECREF(a3Keep);

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

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetypetrader.sip"
#include <kservicetypetrader.h>
#line 5237 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

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


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

#line 144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <qmap.h>
#line 5716 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5720 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5723 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 5821 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 5874 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 5905 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5909 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 5912 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 5991 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 6025 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 6056 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 6060 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 6078 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 6108 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 6144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KServiceGroup::EntriesOptions(*a0 ^ a1);
#line 6253 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KServiceGroup::EntriesOptions(*a0 | a1);
#line 6305 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_KServiceGroup_EntriesOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KServiceGroup::EntriesOptions is expected.

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

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

    return sipGetState(sipTransferObj);
}

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

return 0;
#line 6600 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    1,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 6673 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6677 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 6680 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6683 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 6686 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6689 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 6692 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6695 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 6698 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 6701 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 6704 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6707 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6710 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"


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

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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KServiceGroup, &sipCpp, sipType_KSharedPtr_0100KSycocaEntry,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_KServiceGroup(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KServiceGroup(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKServiceGroup *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 sipKServiceGroup(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

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

            sipCpp->sipPySelf = sipSelf;

            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 sipKServiceGroup(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            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, KServiceGroup::AllowSeparators, 160},
    {sipName_ExcludeNoDisplay, KServiceGroup::ExcludeNoDisplay, 160},
    {sipName_NoOptions, KServiceGroup::NoOptions, 160},
    {sipName_SortByGenericName, KServiceGroup::SortByGenericName, 160},
    {sipName_SortEntries, 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_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
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 7766 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7770 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7773 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

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

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

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

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

    {
        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_KServiceAction(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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
};

#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 8170 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 8174 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 8177 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 8256 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 117 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 8290 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0100KService_Ptr = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_7177,
        {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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 8321 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8325 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kdesktopfile.sip"
#include <kdesktopfile.h>
#line 8328 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 8331 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8334 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 8337 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 8340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8343 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8346 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 8349 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 8352 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


/* 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_KService(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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, KService::DBusMulti, 157},
    {sipName_DBusNone, KService::DBusNone, 157},
    {sipName_DBusUnique, KService::DBusUnique, 157},
    {sipName_DBusWait, KService::DBusWait, 157},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KService = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KService,
        {0}
    },
    {
        sipNameNr_KService,
        {0, 0, 1},
        44, methods_KService,
        4, enummembers_KService,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KService,
    0,
    init_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
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksavefile.sip"
#include <ksavefile.h>
#line 9811 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 9818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 9821 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qfile.sip"
#include <qfile.h>
#line 9824 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qabstractfileengine.sip"
#include <qabstractfileengine.h>
#line 9827 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qfile.sip"
#include <qfile.h>
#line 9830 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9833 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9836 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9839 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9842 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 9845 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9848 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9851 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9854 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9857 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 9860 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9863 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9866 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_readData(bool,char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtectVirt_writeData(bool,const char *,PY_LONG_LONG);

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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QAbstractFileEngine * sipKSaveFile::fileEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QFile::fileEngine();

    typedef QAbstractFileEngine * (*sipVH_QtCore_16)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKSaveFile *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKSaveFile *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKSaveFile *sipCpp;

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

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

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKSaveFile *sipCpp;

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

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

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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;

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

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

    {
        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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKSaveFile *>(sipCppV);
    else
        delete reinterpret_cast<KSaveFile *>(sipCppV);

    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_KSaveFile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_childEvent), meth_KSaveFile_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KSaveFile_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KSaveFile_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KSaveFile_disconnectNotify, 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_readData), meth_KSaveFile_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KSaveFile_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KSaveFile_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KSaveFile_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KSaveFile_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_KSaveFile_setFileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KSaveFile_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_simpleBackupFile), meth_KSaveFile_simpleBackupFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KSaveFile_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KSaveFile_writeData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KSaveFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KSaveFile,
        {0}
    },
    {
        sipNameNr_KSaveFile,
        {0, 0, 1},
        23, methods_KSaveFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSaveFile,
    0,
    init_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
},
    &KSaveFile::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/krandomsequence.sip"
#include <krandomsequence.h>
#line 11360 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_KRandomSequence(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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
};


#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11651 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kptyprocess.sip"
#include <kptyprocess.h>
#line 11764 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kptyprocess.sip"
#include <kptyprocess.h>
#line 11768 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 11786 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 11816 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 11852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KPtyProcess::PtyChannels(*a0 ^ a1);
#line 11961 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KPtyProcess::PtyChannels(*a0 | a1);
#line 12013 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_KPtyProcess_PtyChannels(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 12308 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kptyprocess.sip"
#include <kptyprocess.h>
#line 12381 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12385 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kptydevice.sip"
#include <kptydevice.h>
#line 12388 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kptyprocess.sip"
#include <kptyprocess.h>
#line 12391 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12394 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 12397 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kprocess.sip"
#include <kprocess.h>
#line 12400 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 12403 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 209 "/usr/local/share/py-sip/QtCore/qprocess.sip"
#include <qprocess.h>
#line 12406 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qprocess.sip"
#include <qprocess.h>
#line 12409 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12412 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12415 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12418 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12421 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12424 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12427 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12430 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12433 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12436 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12439 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12442 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    void sipProtect_setProcessState(QProcess::ProcessState);
    qint64 sipProtectVirt_readData(bool,char *,qint64);
    qint64 sipProtectVirt_writeData(bool,const char *,PY_LONG_LONG);
    void sipProtectVirt_setupChildProcess(bool);

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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipKPtyProcess::sipProtectVirt_setupChildProcess(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KPtyProcess::setupChildProcess() : setupChildProcess());
}


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

    {
        sipKPtyProcess *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKPtyProcess *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKPtyProcess *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKPtyProcess *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKPtyProcess *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPtyProcess *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPtyProcess *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKPtyProcess *sipCpp;

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

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

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QProcess::ProcessState a0;
        sipKPtyProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KPtyProcess, &sipCpp, sipType_QProcess_ProcessState, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessState(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKPtyProcess *sipCpp;

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

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

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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;

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

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

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

    {
        sipKPtyProcess *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KPtyProcess, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setupChildProcess(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKPtyProcess *>(sipCppV);
    else
        delete reinterpret_cast<KPtyProcess *>(sipCppV);

    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_KPtyProcess(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_childEvent), meth_KPtyProcess_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KPtyProcess_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KPtyProcess_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KPtyProcess_disconnectNotify, METH_VARARGS, NULL},
    {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_readData), meth_KPtyProcess_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KPtyProcess_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KPtyProcess_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KPtyProcess_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KPtyProcess_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KPtyProcess_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessState), meth_KPtyProcess_setProcessState, 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},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KPtyProcess_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KPtyProcess_writeData, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KPtyProcess[] = {
    {sipName_AllChannels, KPtyProcess::AllChannels, 151},
    {sipName_AllOutputChannels, KPtyProcess::AllOutputChannels, 151},
    {sipName_NoChannels, KPtyProcess::NoChannels, 151},
    {sipName_StderrChannel, KPtyProcess::StderrChannel, 151},
    {sipName_StdinChannel, KPtyProcess::StdinChannel, 151},
    {sipName_StdoutChannel, KPtyProcess::StdoutChannel, 151},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KPtyProcess = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KPtyProcess,
        {0}
    },
    {
        sipNameNr_KPtyProcess,
        {0, 0, 1},
        19, methods_KPtyProcess,
        6, enummembers_KPtyProcess,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KPtyProcess,
    0,
    init_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
},
    &KPtyProcess::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kptydevice.sip"
#include <kptydevice.h>
#line 13784 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 13788 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 13791 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13794 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13797 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13800 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13803 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13806 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13809 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 13821 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13824 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13827 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    qint64 sipProtect_readData(char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtect_writeData(const char *,PY_LONG_LONG);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);

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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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,PyObject *,int);

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,sipName_KPtyDevice,sipName_readData);

    if (!sipMeth)
        return 0;

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,sipName_KPtyDevice,sipName_writeData);

    if (!sipMeth)
        return 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

qint64 sipKPtyDevice::sipProtect_readData(char *a0,qint64 a1)
{
    return readData(a0,a1);
}

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

qint64 sipKPtyDevice::sipProtect_writeData(const char *a0,PY_LONG_LONG a1)
{
    return writeData(a0,a1);
}

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

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


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

    {
        sipKPtyDevice *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKPtyDevice *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKPtyDevice *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKPtyDevice *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKPtyDevice *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPtyDevice *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKPtyDevice *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKPtyDevice *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KPtyDevice, sipName_readData);
                return NULL;
            }

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

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKPtyDevice *sipCpp;

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

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

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

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

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KPtyDevice, sipName_writeData);
                return NULL;
            }

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

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

    {
        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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKPtyDevice *>(sipCppV);
    else
        delete reinterpret_cast<KPtyDevice *>(sipCppV);

    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_KPtyDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{79, 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_childEvent), meth_KPtyDevice_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KPtyDevice_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KPtyDevice_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KPtyDevice_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KPtyDevice_disconnectNotify, 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_readData), meth_KPtyDevice_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KPtyDevice_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KPtyDevice_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KPtyDevice_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KPtyDevice_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KPtyDevice_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KPtyDevice_timerEvent, 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},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KPtyDevice_writeData, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KPtyDevice[] = {
    {"readEof()", 0, 0},
    {"readyRead()", 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},
        21, methods_KPtyDevice,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KPtyDevice,
    0,
    init_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
},
    &KPtyDevice::staticMetaObject,
    0,
    pyqt4_signals_KPtyDevice
};
