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

#include "sipAPIkdecore.h"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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


extern "C" {static void *array_QList_0100KAboutPerson(SIP_SSIZE_T);}
static void *array_QList_0100KAboutPerson(SIP_SSIZE_T sipNrElem)
{
    return new QList<KAboutPerson>[sipNrElem];
}


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


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



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

#line 64 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_KAboutPerson, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<KAboutPerson> *ql = new QList<KAboutPerson>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        KAboutPerson *t = reinterpret_cast<KAboutPerson *>(sipConvertToType(itm, sipType_KAboutPerson, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_KAboutPerson, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_KAboutPerson, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 37 "/usr/local/share/py-sip/QtCore/qlist.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)
    {
        KAboutPerson *t = new KAboutPerson(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_KAboutPerson, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 140 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0100KAboutPerson = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_7870,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100KAboutPerson,
    array_QList_0100KAboutPerson,
    copy_QList_0100KAboutPerson,
    release_QList_0100KAboutPerson,
    convertTo_QList_0100KAboutPerson,
    convertFrom_QList_0100KAboutPerson
};

#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 171 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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


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


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


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


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



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

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

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

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

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

        return 1;
    }

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

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

            delete qm;
            return 0;
        }

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

        sipReleaseType(t1, sipType_QString, state1);
        sipReleaseType(t2, sipType_QString, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 267 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

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

    if (!d)
        return NULL;

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

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

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

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

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

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

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 326 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QMap_0100QString_0100QString = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6002,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QMap_0100QString_0100QString,
    array_QMap_0100QString_0100QString,
    copy_QMap_0100QString_0100QString,
    release_QMap_0100QString_0100QString,
    convertTo_QMap_0100QString_0100QString,
    convertFrom_QMap_0100QString_0100QString
};

#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 361 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 364 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 367 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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


extern "C" {static void *array_QMap_0100QString_0100KTimeZone(SIP_SSIZE_T);}
static void *array_QMap_0100QString_0100KTimeZone(SIP_SSIZE_T sipNrElem)
{
    return new QMap<QString,KTimeZone>[sipNrElem];
}


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


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



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

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

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

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

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

        return 1;
    }

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

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

            delete qm;
            return 0;
        }

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

        sipReleaseType(t1, sipType_QString, state1);
        sipReleaseType(t2, sipType_KTimeZone, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 456 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

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

    if (!d)
        return NULL;

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

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

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

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

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

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

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 515 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QMap_0100QString_0100KTimeZone = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_4465,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QMap_0100QString_0100KTimeZone,
    array_QMap_0100QString_0100KTimeZone,
    copy_QMap_0100QString_0100KTimeZone,
    release_QMap_0100QString_0100KTimeZone,
    convertTo_QMap_0100QString_0100KTimeZone,
    convertFrom_QMap_0100QString_0100KTimeZone
};

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 546 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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


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


extern "C" {static void *array_KSharedPtr_0100KSycocaEntry(SIP_SSIZE_T);}
static void *array_KSharedPtr_0100KSycocaEntry(SIP_SSIZE_T sipNrElem)
{
    return new KSharedPtr<KSycocaEntry>[sipNrElem];
}


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


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



extern "C" {static int convertTo_KSharedPtr_0100KSycocaEntry(PyObject *, void **, int *, PyObject *);}
static int convertTo_KSharedPtr_0100KSycocaEntry(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KSharedPtr<KSycocaEntry> **sipCppPtr = reinterpret_cast<KSharedPtr<KSycocaEntry> **>(sipCppPtrV);

#line 357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert a Python instance to a Ptr on the heap.
    if (sipIsErr == NULL) {
        return 1;
    }
    
    int iserr = 0;
    KSycocaEntry *cpp = (KSycocaEntry *)sipForceConvertToType(sipPy, sipType_KSycocaEntry, NULL, 0, NULL, &iserr);

    if (iserr)
    {
        *sipIsErr = 1;
        return 0;
    }

    *sipCppPtr = new KSharedPtr<KSycocaEntry> (cpp);

    return 1;
#line 608 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert to a Python instance

    if (!sipCpp)
        return NULL;

    KSharedPtr<KSycocaEntry> *cPtr = new KSharedPtr<KSycocaEntry> (*(KSharedPtr<KSycocaEntry> *)sipCpp);
    KSycocaEntry *cpp = cPtr->data ();
    PyObject *obj = sipConvertFromType(cpp, sipType_KSycocaEntry, sipTransferObj);

    return obj;
#line 628 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_KSharedPtr_0100KSycocaEntry = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3816,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KSharedPtr_0100KSycocaEntry,
    array_KSharedPtr_0100KSycocaEntry,
    copy_KSharedPtr_0100KSycocaEntry,
    release_KSharedPtr_0100KSycocaEntry,
    convertTo_KSharedPtr_0100KSycocaEntry,
    convertFrom_KSharedPtr_0100KSycocaEntry
};

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 659 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 663 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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


extern "C" {static void *array_KSharedPtr_0100KSharedConfig(SIP_SSIZE_T);}
static void *array_KSharedPtr_0100KSharedConfig(SIP_SSIZE_T sipNrElem)
{
    return new KSharedPtr<KSharedConfig>[sipNrElem];
}


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


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



extern "C" {static int convertTo_KSharedPtr_0100KSharedConfig(PyObject *, void **, int *, PyObject *);}
static int convertTo_KSharedPtr_0100KSharedConfig(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KSharedPtr<KSharedConfig> **sipCppPtr = reinterpret_cast<KSharedPtr<KSharedConfig> **>(sipCppPtrV);

#line 357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert a Python instance to a Ptr on the heap.
    if (sipIsErr == NULL) {
        return 1;
    }
    
    int iserr = 0;
    KSharedConfig *cpp = (KSharedConfig *)sipForceConvertToType(sipPy, sipType_KSharedConfig, NULL, 0, NULL, &iserr);

    if (iserr)
    {
        *sipIsErr = 1;
        return 0;
    }

    *sipCppPtr = new KSharedPtr<KSharedConfig> (cpp);

    return 1;
#line 721 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert to a Python instance

    if (!sipCpp)
        return NULL;

    KSharedPtr<KSharedConfig> *cPtr = new KSharedPtr<KSharedConfig> (*(KSharedPtr<KSharedConfig> *)sipCpp);
    KSharedConfig *cpp = cPtr->data ();
    PyObject *obj = sipConvertFromType(cpp, sipType_KSharedConfig, sipTransferObj);

    return obj;
#line 741 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_KSharedPtr_0100KSharedConfig = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3272,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KSharedPtr_0100KSharedConfig,
    array_KSharedPtr_0100KSharedConfig,
    copy_KSharedPtr_0100KSharedConfig,
    release_KSharedPtr_0100KSharedConfig,
    convertTo_KSharedPtr_0100KSharedConfig,
    convertFrom_KSharedPtr_0100KSharedConfig
};

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 772 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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


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


extern "C" {static void *array_KSharedPtr_0100KServiceType(SIP_SSIZE_T);}
static void *array_KSharedPtr_0100KServiceType(SIP_SSIZE_T sipNrElem)
{
    return new KSharedPtr<KServiceType>[sipNrElem];
}


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


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



extern "C" {static int convertTo_KSharedPtr_0100KServiceType(PyObject *, void **, int *, PyObject *);}
static int convertTo_KSharedPtr_0100KServiceType(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KSharedPtr<KServiceType> **sipCppPtr = reinterpret_cast<KSharedPtr<KServiceType> **>(sipCppPtrV);

#line 357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert a Python instance to a Ptr on the heap.
    if (sipIsErr == NULL) {
        return 1;
    }
    
    int iserr = 0;
    KServiceType *cpp = (KServiceType *)sipForceConvertToType(sipPy, sipType_KServiceType, NULL, 0, NULL, &iserr);

    if (iserr)
    {
        *sipIsErr = 1;
        return 0;
    }

    *sipCppPtr = new KSharedPtr<KServiceType> (cpp);

    return 1;
#line 834 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert to a Python instance

    if (!sipCpp)
        return NULL;

    KSharedPtr<KServiceType> *cPtr = new KSharedPtr<KServiceType> (*(KSharedPtr<KServiceType> *)sipCpp);
    KServiceType *cpp = cPtr->data ();
    PyObject *obj = sipConvertFromType(cpp, sipType_KServiceType, sipTransferObj);

    return obj;
#line 854 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_KSharedPtr_0100KServiceType = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3841,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KSharedPtr_0100KServiceType,
    array_KSharedPtr_0100KServiceType,
    copy_KSharedPtr_0100KServiceType,
    release_KSharedPtr_0100KServiceType,
    convertTo_KSharedPtr_0100KServiceType,
    convertFrom_KSharedPtr_0100KServiceType
};

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 885 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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


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


extern "C" {static void *array_KSharedPtr_0100KServiceGroup(SIP_SSIZE_T);}
static void *array_KSharedPtr_0100KServiceGroup(SIP_SSIZE_T sipNrElem)
{
    return new KSharedPtr<KServiceGroup>[sipNrElem];
}


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


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



extern "C" {static int convertTo_KSharedPtr_0100KServiceGroup(PyObject *, void **, int *, PyObject *);}
static int convertTo_KSharedPtr_0100KServiceGroup(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KSharedPtr<KServiceGroup> **sipCppPtr = reinterpret_cast<KSharedPtr<KServiceGroup> **>(sipCppPtrV);

#line 357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert a Python instance to a Ptr on the heap.
    if (sipIsErr == NULL) {
        return 1;
    }
    
    int iserr = 0;
    KServiceGroup *cpp = (KServiceGroup *)sipForceConvertToType(sipPy, sipType_KServiceGroup, NULL, 0, NULL, &iserr);

    if (iserr)
    {
        *sipIsErr = 1;
        return 0;
    }

    *sipCppPtr = new KSharedPtr<KServiceGroup> (cpp);

    return 1;
#line 947 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert to a Python instance

    if (!sipCpp)
        return NULL;

    KSharedPtr<KServiceGroup> *cPtr = new KSharedPtr<KServiceGroup> (*(KSharedPtr<KServiceGroup> *)sipCpp);
    KServiceGroup *cpp = cPtr->data ();
    PyObject *obj = sipConvertFromType(cpp, sipType_KServiceGroup, sipTransferObj);

    return obj;
#line 967 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_KSharedPtr_0100KServiceGroup = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3298,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KSharedPtr_0100KServiceGroup,
    array_KSharedPtr_0100KServiceGroup,
    copy_KSharedPtr_0100KServiceGroup,
    release_KSharedPtr_0100KServiceGroup,
    convertTo_KSharedPtr_0100KServiceGroup,
    convertFrom_KSharedPtr_0100KServiceGroup
};

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 998 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 1002 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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


extern "C" {static void *array_KSharedPtr_0100KService(SIP_SSIZE_T);}
static void *array_KSharedPtr_0100KService(SIP_SSIZE_T sipNrElem)
{
    return new KSharedPtr<KService>[sipNrElem];
}


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


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



extern "C" {static int convertTo_KSharedPtr_0100KService(PyObject *, void **, int *, PyObject *);}
static int convertTo_KSharedPtr_0100KService(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KSharedPtr<KService> **sipCppPtr = reinterpret_cast<KSharedPtr<KService> **>(sipCppPtrV);

#line 357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert a Python instance to a Ptr on the heap.
    if (sipIsErr == NULL) {
        return 1;
    }
    
    int iserr = 0;
    KService *cpp = (KService *)sipForceConvertToType(sipPy, sipType_KService, NULL, 0, NULL, &iserr);

    if (iserr)
    {
        *sipIsErr = 1;
        return 0;
    }

    *sipCppPtr = new KSharedPtr<KService> (cpp);

    return 1;
#line 1060 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert to a Python instance

    if (!sipCpp)
        return NULL;

    KSharedPtr<KService> *cPtr = new KSharedPtr<KService> (*(KSharedPtr<KService> *)sipCpp);
    KService *cpp = cPtr->data ();
    PyObject *obj = sipConvertFromType(cpp, sipType_KService, sipTransferObj);

    return obj;
#line 1080 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_KSharedPtr_0100KService = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6967,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KSharedPtr_0100KService,
    array_KSharedPtr_0100KService,
    copy_KSharedPtr_0100KService,
    release_KSharedPtr_0100KService,
    convertTo_KSharedPtr_0100KService,
    convertFrom_KSharedPtr_0100KService
};

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1111 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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


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


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


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


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



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

#line 64 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_KProtocolInfo_ExtraField, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<KProtocolInfo::ExtraField> *ql = new QList<KProtocolInfo::ExtraField>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        KProtocolInfo::ExtraField *t = reinterpret_cast<KProtocolInfo::ExtraField *>(sipConvertToType(itm, sipType_KProtocolInfo_ExtraField, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_KProtocolInfo_ExtraField, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_KProtocolInfo_ExtraField, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1205 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100KProtocolInfo_ExtraField(void *, PyObject *);}
static PyObject *convertFrom_QList_0100KProtocolInfo_ExtraField(void *sipCppV,PyObject *sipTransferObj)
{
   QList<KProtocolInfo::ExtraField> *sipCpp = reinterpret_cast<QList<KProtocolInfo::ExtraField> *>(sipCppV);

#line 37 "/usr/local/share/py-sip/QtCore/qlist.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)
    {
        KProtocolInfo::ExtraField *t = new KProtocolInfo::ExtraField(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_KProtocolInfo_ExtraField, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1239 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0100KProtocolInfo_ExtraField = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_782,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100KProtocolInfo_ExtraField,
    array_QList_0100KProtocolInfo_ExtraField,
    copy_QList_0100KProtocolInfo_ExtraField,
    release_QList_0100KProtocolInfo_ExtraField,
    convertTo_QList_0100KProtocolInfo_ExtraField,
    convertFrom_QList_0100KProtocolInfo_ExtraField
};

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1270 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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


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


extern "C" {static void *array_QList_0100KPluginInfo(SIP_SSIZE_T);}
static void *array_QList_0100KPluginInfo(SIP_SSIZE_T sipNrElem)
{
    return new QList<KPluginInfo>[sipNrElem];
}


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


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



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

#line 64 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_KPluginInfo, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<KPluginInfo> *ql = new QList<KPluginInfo>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        KPluginInfo *t = reinterpret_cast<KPluginInfo *>(sipConvertToType(itm, sipType_KPluginInfo, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_KPluginInfo, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_KPluginInfo, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1364 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 37 "/usr/local/share/py-sip/QtCore/qlist.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)
    {
        KPluginInfo *t = new KPluginInfo(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_KPluginInfo, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0100KPluginInfo = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_8929,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100KPluginInfo,
    array_QList_0100KPluginInfo,
    copy_QList_0100KPluginInfo,
    release_QList_0100KPluginInfo,
    convertTo_QList_0100KPluginInfo,
    convertFrom_QList_0100KPluginInfo
};

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 1429 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 1433 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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


extern "C" {static void *array_KSharedPtr_0100KMimeType(SIP_SSIZE_T);}
static void *array_KSharedPtr_0100KMimeType(SIP_SSIZE_T sipNrElem)
{
    return new KSharedPtr<KMimeType>[sipNrElem];
}


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


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



extern "C" {static int convertTo_KSharedPtr_0100KMimeType(PyObject *, void **, int *, PyObject *);}
static int convertTo_KSharedPtr_0100KMimeType(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KSharedPtr<KMimeType> **sipCppPtr = reinterpret_cast<KSharedPtr<KMimeType> **>(sipCppPtrV);

#line 357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert a Python instance to a Ptr on the heap.
    if (sipIsErr == NULL) {
        return 1;
    }
    
    int iserr = 0;
    KMimeType *cpp = (KMimeType *)sipForceConvertToType(sipPy, sipType_KMimeType, NULL, 0, NULL, &iserr);

    if (iserr)
    {
        *sipIsErr = 1;
        return 0;
    }

    *sipCppPtr = new KSharedPtr<KMimeType> (cpp);

    return 1;
#line 1491 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert to a Python instance

    if (!sipCpp)
        return NULL;

    KSharedPtr<KMimeType> *cPtr = new KSharedPtr<KMimeType> (*(KSharedPtr<KMimeType> *)sipCpp);
    KMimeType *cpp = cPtr->data ();
    PyObject *obj = sipConvertFromType(cpp, sipType_KMimeType, sipTransferObj);

    return obj;
#line 1511 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_KSharedPtr_0100KMimeType = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6024,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KSharedPtr_0100KMimeType,
    array_KSharedPtr_0100KMimeType,
    copy_KSharedPtr_0100KMimeType,
    release_KSharedPtr_0100KMimeType,
    convertTo_KSharedPtr_0100KMimeType,
    convertFrom_KSharedPtr_0100KMimeType
};

#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 1542 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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


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


extern "C" {static void *array_KSharedPtr_0100KLockFile(SIP_SSIZE_T);}
static void *array_KSharedPtr_0100KLockFile(SIP_SSIZE_T sipNrElem)
{
    return new KSharedPtr<KLockFile>[sipNrElem];
}


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


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



extern "C" {static int convertTo_KSharedPtr_0100KLockFile(PyObject *, void **, int *, PyObject *);}
static int convertTo_KSharedPtr_0100KLockFile(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KSharedPtr<KLockFile> **sipCppPtr = reinterpret_cast<KSharedPtr<KLockFile> **>(sipCppPtrV);

#line 357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert a Python instance to a Ptr on the heap.
    if (sipIsErr == NULL) {
        return 1;
    }
    
    int iserr = 0;
    KLockFile *cpp = (KLockFile *)sipForceConvertToType(sipPy, sipType_KLockFile, NULL, 0, NULL, &iserr);

    if (iserr)
    {
        *sipIsErr = 1;
        return 0;
    }

    *sipCppPtr = new KSharedPtr<KLockFile> (cpp);

    return 1;
#line 1604 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Convert to a Python instance

    if (!sipCpp)
        return NULL;

    KSharedPtr<KLockFile> *cPtr = new KSharedPtr<KLockFile> (*(KSharedPtr<KLockFile> *)sipCpp);
    KLockFile *cpp = cPtr->data ();
    PyObject *obj = sipConvertFromType(cpp, sipType_KLockFile, sipTransferObj);

    return obj;
#line 1624 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_KSharedPtr_0100KLockFile = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6046,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KSharedPtr_0100KLockFile,
    array_KSharedPtr_0100KLockFile,
    copy_KSharedPtr_0100KLockFile,
    release_KSharedPtr_0100KLockFile,
    convertTo_KSharedPtr_0100KLockFile,
    convertFrom_KSharedPtr_0100KLockFile
};

#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1655 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 1659 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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


extern "C" {static void *array_QList_0101KConfigSkeletonItem(SIP_SSIZE_T);}
static void *array_QList_0101KConfigSkeletonItem(SIP_SSIZE_T sipNrElem)
{
    return new QList<KConfigSkeletonItem *>[sipNrElem];
}


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


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



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

#line 150 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_KConfigSkeletonItem, 0));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<KConfigSkeletonItem *> *ql = new QList<KConfigSkeletonItem *>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        KConfigSkeletonItem *t = reinterpret_cast<KConfigSkeletonItem *>(sipConvertToType(itm, sipType_KConfigSkeletonItem, sipTransferObj, 0, 0, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            delete ql;
            return 0;
        }

        ql->append(t);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1744 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 124 "/usr/local/share/py-sip/QtCore/qlist.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)
    {
        KConfigSkeletonItem *t = sipCpp->at(i);
        PyObject *tobj;

        // The explicit (void *) cast allows KConfigSkeletonItem to be const.
        if ((tobj = sipConvertFromType((void *)t, sipType_KConfigSkeletonItem, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1777 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QList_0101KConfigSkeletonItem = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2583,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0101KConfigSkeletonItem,
    array_QList_0101KConfigSkeletonItem,
    copy_QList_0101KConfigSkeletonItem,
    release_QList_0101KConfigSkeletonItem,
    convertTo_QList_0101KConfigSkeletonItem,
    convertFrom_QList_0101KConfigSkeletonItem
};

#line 486 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 1808 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 1815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


extern "C" {static void assign_QHash_0100QString_0101KConfigSkeletonItem(void *, SIP_SSIZE_T, const void *);}
static void assign_QHash_0100QString_0101KConfigSkeletonItem(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHash<QString,KConfigSkeletonItem *> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHash<QString,KConfigSkeletonItem *> *>(sipSrc);
}


extern "C" {static void *array_QHash_0100QString_0101KConfigSkeletonItem(SIP_SSIZE_T);}
static void *array_QHash_0100QString_0101KConfigSkeletonItem(SIP_SSIZE_T sipNrElem)
{
    return new QHash<QString,KConfigSkeletonItem *>[sipNrElem];
}


extern "C" {static void *copy_QHash_0100QString_0101KConfigSkeletonItem(const void *, SIP_SSIZE_T);}
static void *copy_QHash_0100QString_0101KConfigSkeletonItem(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHash<QString,KConfigSkeletonItem *>(reinterpret_cast<const QHash<QString,KConfigSkeletonItem *> *>(sipSrc)[sipSrcIdx]);
}


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



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

#line 534 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

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

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

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

        return 1;
    }

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

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

            delete qm;
            return 0;
        }

        qm->insert(*t1, t2);

        sipReleaseType(t1, sipType_QString, state1);
        sipReleaseType(t2, sipType_KConfigSkeletonItem, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 1907 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


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

#line 490 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

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

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

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

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

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

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

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 1958 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QHash_0100QString_0101KConfigSkeletonItem = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_365,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QHash_0100QString_0101KConfigSkeletonItem,
    array_QHash_0100QString_0101KConfigSkeletonItem,
    copy_QHash_0100QString_0101KConfigSkeletonItem,
    release_QHash_0100QString_0101KConfigSkeletonItem,
    convertTo_QHash_0100QString_0101KConfigSkeletonItem,
    convertFrom_QHash_0100QString_0101KConfigSkeletonItem
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/speller.sip"
#include <sonnet/speller.h>
#line 1989 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1993 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 1996 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1999 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2002 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 2005 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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

    {
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Sonnet_Speller, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLanguage(*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_Speller, sipName_setLanguage, NULL);

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_Speller, &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_Speller, sipName_language, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCorrect(*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_Speller, sipName_isCorrect, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isMisspelled(*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_Speller, sipName_isMisspelled, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->suggest(*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_Speller, sipName_suggest, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        QStringList * a1;
        int a1State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Sonnet_Speller, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Sonnet_Speller, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->storeReplacement(*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_Speller, sipName_storeReplacement, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addToPersonal(*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_Speller, sipName_addToPersonal, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addToSession(*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_Speller, sipName_addToSession, NULL);

    return NULL;
}


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

    {
        KConfig * a0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Sonnet_Speller, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->save(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KConfig * a0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Sonnet_Speller, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->restore(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_Speller, sipName_restore, NULL);

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_Speller, &sipCpp))
        {
            QMap<QString,QString> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap<QString,QString>(sipCpp->availableDictionaries());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Sonnet_Speller, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultLanguage(*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_Speller, sipName_setDefaultLanguage, NULL);

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Sonnet_Speller, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultClient(*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_Speller, sipName_setDefaultClient, NULL);

    return NULL;
}


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

    {
        Sonnet::Speller *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::Speller::Attribute a0;
        bool a1 = 1;
        Sonnet::Speller *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|b", &sipSelf, sipType_Sonnet_Speller, &sipCpp, sipType_Sonnet_Speller_Attribute, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttribute(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Sonnet::Speller::Attribute a0;
        Sonnet::Speller *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Sonnet::Speller *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Sonnet_Speller(SIP_SSIZE_T);}
static void *array_Sonnet_Speller(SIP_SSIZE_T sipNrElem)
{
    return new Sonnet::Speller[sipNrElem];
}


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


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


extern "C" {static void *init_Sonnet_Speller(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Sonnet_Speller(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Sonnet::Speller *sipCpp = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Sonnet::Speller(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const Sonnet::Speller * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Sonnet_Speller, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Sonnet::Speller(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Sonnet_Speller[] = {
    {SIP_MLNAME_CAST(sipName_addToPersonal), meth_Sonnet_Speller_addToPersonal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addToSession), meth_Sonnet_Speller_addToSession, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableBackends), meth_Sonnet_Speller_availableBackends, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableDictionaries), meth_Sonnet_Speller_availableDictionaries, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableLanguageNames), meth_Sonnet_Speller_availableLanguageNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_availableLanguages), meth_Sonnet_Speller_availableLanguages, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checkAndSuggest), meth_Sonnet_Speller_checkAndSuggest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultClient), meth_Sonnet_Speller_defaultClient, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultLanguage), meth_Sonnet_Speller_defaultLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isCorrect), meth_Sonnet_Speller_isCorrect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isMisspelled), meth_Sonnet_Speller_isMisspelled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Sonnet_Speller_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_Sonnet_Speller_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_restore), meth_Sonnet_Speller_restore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_Sonnet_Speller_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttribute), meth_Sonnet_Speller_setAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultClient), meth_Sonnet_Speller_setDefaultClient, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultLanguage), meth_Sonnet_Speller_setDefaultLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLanguage), meth_Sonnet_Speller_setLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_storeReplacement), meth_Sonnet_Speller_storeReplacement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suggest), meth_Sonnet_Speller_suggest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_testAttribute), meth_Sonnet_Speller_testAttribute, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Sonnet_Speller[] = {
    {sipName_CheckUppercase, Sonnet::Speller::CheckUppercase, 282},
    {sipName_SkipRunTogether, Sonnet::Speller::SkipRunTogether, 282},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_Sonnet_Speller = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Sonnet__Speller,
        {0}
    },
    {
        sipNameNr_Speller,
        {279, 255, 0},
        22, methods_Sonnet_Speller,
        2, enummembers_Sonnet_Speller,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Sonnet_Speller,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Sonnet_Speller,
    assign_Sonnet_Speller,
    array_Sonnet_Speller,
    copy_Sonnet_Speller,
    release_Sonnet_Speller,
    cast_Sonnet_Speller,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/backgroundchecker.sip"
#include <sonnet/backgroundchecker.h>
#line 2812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2816 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/speller.sip"
#include <sonnet/speller.h>
#line 2819 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 2822 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2825 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2828 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2831 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2834 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2837 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2840 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2843 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2846 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2855 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2858 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2861 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


class sipSonnet_BackgroundChecker : public Sonnet::BackgroundChecker
{
public:
    sipSonnet_BackgroundChecker(QObject *);
    sipSonnet_BackgroundChecker(const Sonnet::Speller&,QObject *);
    virtual ~sipSonnet_BackgroundChecker();

    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 *);
    QString sipProtectVirt_fetchMoreText(bool);
    void sipProtectVirt_finishedCurrentFeed(bool);
    void sipProtect_slotEngineDone();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void start();
    void stop();
    void continueChecking();
    QString fetchMoreText();
    void finishedCurrentFeed();
    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:
    sipSonnet_BackgroundChecker(const sipSonnet_BackgroundChecker &);
    sipSonnet_BackgroundChecker &operator = (const sipSonnet_BackgroundChecker &);

    char sipPyMethods[12];
};

sipSonnet_BackgroundChecker::sipSonnet_BackgroundChecker(QObject *a0): Sonnet::BackgroundChecker(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSonnet_BackgroundChecker::sipSonnet_BackgroundChecker(const Sonnet::Speller& a0,QObject *a1): Sonnet::BackgroundChecker(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSonnet_BackgroundChecker::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_Sonnet_BackgroundChecker);
}

int sipSonnet_BackgroundChecker::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Sonnet::BackgroundChecker::qt_metacall(_c,_id,_a);

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

    return _id;
}

void *sipSonnet_BackgroundChecker::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast && sip_kdecore_qt_metacast(sipPySelf,sipType_Sonnet_BackgroundChecker,_clname)) ? this : Sonnet::BackgroundChecker::qt_metacast(_clname);
}

void sipSonnet_BackgroundChecker::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Sonnet::BackgroundChecker::start();
        return;
    }

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

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

void sipSonnet_BackgroundChecker::stop()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Sonnet::BackgroundChecker::stop();
        return;
    }

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

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

void sipSonnet_BackgroundChecker::continueChecking()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Sonnet::BackgroundChecker::continueChecking();
        return;
    }

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

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

QString sipSonnet_BackgroundChecker::fetchMoreText()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Sonnet::BackgroundChecker::fetchMoreText();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kdecore_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

void sipSonnet_BackgroundChecker::finishedCurrentFeed()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Sonnet::BackgroundChecker::finishedCurrentFeed();
        return;
    }

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],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 sipSonnet_BackgroundChecker::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],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 sipSonnet_BackgroundChecker::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],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 sipSonnet_BackgroundChecker::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],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 sipSonnet_BackgroundChecker::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],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 sipSonnet_BackgroundChecker::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],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 sipSonnet_BackgroundChecker::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],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 * sipSonnet_BackgroundChecker::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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

QString sipSonnet_BackgroundChecker::sipProtectVirt_fetchMoreText(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Sonnet::BackgroundChecker::fetchMoreText() : fetchMoreText());
}

void sipSonnet_BackgroundChecker::sipProtectVirt_finishedCurrentFeed(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Sonnet::BackgroundChecker::finishedCurrentFeed() : finishedCurrentFeed());
}

void sipSonnet_BackgroundChecker::sipProtect_slotEngineDone()
{
    Sonnet::BackgroundChecker::slotEngineDone();
}


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

    {
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_BackgroundChecker, &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 3237 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Sonnet_BackgroundChecker, &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 3279 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Sonnet_BackgroundChecker, &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_BackgroundChecker, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Sonnet_BackgroundChecker, &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_BackgroundChecker, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Sonnet_BackgroundChecker, &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_BackgroundChecker, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Sonnet_BackgroundChecker, &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_BackgroundChecker, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Sonnet_BackgroundChecker, &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_BackgroundChecker, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setText(*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_BackgroundChecker, sipName_setText, NULL);

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_BackgroundChecker, &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_BackgroundChecker, sipName_text, NULL);

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp))
        {
            Sonnet::Speller *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Sonnet::Speller(sipCpp->speller());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Sonnet::Speller * a0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp, sipType_Sonnet_Speller, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSpeller(*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_BackgroundChecker, sipName_setSpeller, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->checkWord(*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_BackgroundChecker, sipName_checkWord, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->suggest(*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_BackgroundChecker, sipName_suggest, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addWordToPersonal(*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_BackgroundChecker, sipName_addWordToPersonal, NULL);

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Sonnet::BackgroundChecker::start() : sipCpp->start());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Sonnet::BackgroundChecker::stop() : sipCpp->stop());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1J1", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->replace(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->changeLanguage(*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_BackgroundChecker, sipName_changeLanguage, NULL);

    return NULL;
}


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

    {
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Sonnet::BackgroundChecker::continueChecking() : sipCpp->continueChecking());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSonnet_BackgroundChecker *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        sipSonnet_BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_finishedCurrentFeed(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_BackgroundChecker, sipName_finishedCurrentFeed, NULL);

    return NULL;
}


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

    {
        sipSonnet_BackgroundChecker *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KConfig * a0;
        Sonnet::BackgroundChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Sonnet_BackgroundChecker, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->restore(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_BackgroundChecker, sipName_restore, NULL);

    return NULL;
}


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

    if (targetType == sipType_Sonnet_BackgroundChecker)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSonnet_BackgroundChecker *>(sipCppV);
    else
        delete reinterpret_cast<Sonnet::BackgroundChecker *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Sonnet::Speller * a0;
        QObject * a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Sonnet_BackgroundChecker[] = {
    {SIP_MLNAME_CAST(sipName_addWordToPersonal), meth_Sonnet_BackgroundChecker_addWordToPersonal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeLanguage), meth_Sonnet_BackgroundChecker_changeLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checkWord), meth_Sonnet_BackgroundChecker_checkWord, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Sonnet_BackgroundChecker_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Sonnet_BackgroundChecker_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_continueChecking), meth_Sonnet_BackgroundChecker_continueChecking, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentContext), meth_Sonnet_BackgroundChecker_currentContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Sonnet_BackgroundChecker_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Sonnet_BackgroundChecker_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchMoreText), meth_Sonnet_BackgroundChecker_fetchMoreText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_finishedCurrentFeed), meth_Sonnet_BackgroundChecker_finishedCurrentFeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Sonnet_BackgroundChecker_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replace), meth_Sonnet_BackgroundChecker_replace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_restore), meth_Sonnet_BackgroundChecker_restore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Sonnet_BackgroundChecker_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSpeller), meth_Sonnet_BackgroundChecker_setSpeller, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setText), meth_Sonnet_BackgroundChecker_setText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotEngineDone), meth_Sonnet_BackgroundChecker_slotEngineDone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_speller), meth_Sonnet_BackgroundChecker_speller, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Sonnet_BackgroundChecker_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stop), meth_Sonnet_BackgroundChecker_stop, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suggest), meth_Sonnet_BackgroundChecker_suggest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_Sonnet_BackgroundChecker_text, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Sonnet_BackgroundChecker_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Sonnet_BackgroundChecker[] = {
    {"done()", 0, 0},
    {"misspelling(QString,int)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_Sonnet_BackgroundChecker = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Sonnet__BackgroundChecker,
        {0}
    },
    {
        sipNameNr_BackgroundChecker,
        {279, 255, 0},
        24, methods_Sonnet_BackgroundChecker,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Sonnet_BackgroundChecker,
    0,
    init_Sonnet_BackgroundChecker,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Sonnet_BackgroundChecker,
    0,
    0,
    0,
    release_Sonnet_BackgroundChecker,
    cast_Sonnet_BackgroundChecker,
    0,
    0,
    0
},
    &Sonnet::BackgroundChecker::staticMetaObject,
    0,
    pyqt4_signals_Sonnet_BackgroundChecker
};


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


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Sonnet::defaultLanguageName());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Sonnet_detectLanguage(PyObject *, PyObject *);}
static PyObject *meth_Sonnet_detectLanguage(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(Sonnet::detectLanguage(*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_detectLanguage, NULL);

    return NULL;
}


static PyMethodDef methods_Sonnet[] = {
    {SIP_MLNAME_CAST(sipName_defaultLanguageName), meth_Sonnet_defaultLanguageName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_detectLanguage), meth_Sonnet_detectLanguage, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_Sonnet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Sonnet,
        {0}
    },
    {
        sipNameNr_Sonnet,
        {0, 0, 1},
        2, methods_Sonnet,
        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 85 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 4202 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4206 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 4209 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4212 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4215 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4218 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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

    {
        KUserGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUserGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KUserGroup, &sipCpp))
        {
            K_GID sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->gid();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUserGroup *sipCpp;

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

    return NULL;
}


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

    {
        KUserGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KUserGroup, &sipCpp))
        {
            QList<KUser> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KUser>(sipCpp->users());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KUserGroup *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<KUserGroup> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KUserGroup>(KUserGroup::allGroups());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KUserGroup::allGroupNames());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_KUserGroup___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUserGroup___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUserGroup *sipCpp = reinterpret_cast<KUserGroup *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUserGroup));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUserGroup * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUserGroup___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUserGroup___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUserGroup *sipCpp = reinterpret_cast<KUserGroup *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUserGroup));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUserGroup * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

    delete reinterpret_cast<KUserGroup *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

            return sipCpp;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AA", &a0Keep, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUserGroup(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipCpp;
        }
    }

    {
        KUser::UIDMode a0 = KUser::UseEffectiveUID;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|E", sipType_KUser_UIDMode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUserGroup(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        K_GID a0;

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

            return sipCpp;
        }
    }

    {
        const KUserGroup * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KUserGroup[] = {
    {(void *)slot_KUserGroup___ne__, ne_slot},
    {(void *)slot_KUserGroup___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KUserGroup[] = {
    {SIP_MLNAME_CAST(sipName_allGroupNames), meth_KUserGroup_allGroupNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allGroups), meth_KUserGroup_allGroups, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_gid), meth_KUserGroup_gid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KUserGroup_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KUserGroup_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_userNames), meth_KUserGroup_userNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_users), meth_KUserGroup_users, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUserGroup = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KUserGroup,
        {0}
    },
    {
        sipNameNr_KUserGroup,
        {0, 0, 1},
        7, methods_KUserGroup,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KUserGroup,
    init_KUserGroup,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUserGroup,
    assign_KUserGroup,
    array_KUserGroup,
    copy_KUserGroup,
    release_KUserGroup,
    cast_KUserGroup,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 4677 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4681 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4684 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4687 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4690 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4693 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 85 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 4696 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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

    {
        KUser *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KUser, &sipCpp))
        {
            K_UID sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->uid();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KUser, &sipCpp))
        {
            K_GID sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->gid();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUser *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSuperUser();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KUser *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KUser *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KUser *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KUser *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KUser *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KUser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KUser, &sipCpp))
        {
            QList<KUserGroup> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KUserGroup>(sipCpp->groups());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KUser *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KUser::UserProperty a0;
        KUser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KUser, &sipCpp, sipType_KUser_UserProperty, &a0))
        {
            QVariant *sipRes;

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

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<KUser> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KUser>(KUser::allUsers());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KUser::allUserNames());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_KUser___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUser___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUser *sipCpp = reinterpret_cast<KUser *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUser));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUser * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUser___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUser___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUser *sipCpp = reinterpret_cast<KUser *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUser));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUser * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

    delete reinterpret_cast<KUser *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

    {
        KUser::UIDMode a0 = KUser::UseEffectiveUID;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|E", sipType_KUser_UIDMode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUser(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        K_UID a0;

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

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

            return sipCpp;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AA", &a0Keep, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUser(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipCpp;
        }
    }

    {
        const KUser * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KUser[] = {
    {(void *)slot_KUser___ne__, ne_slot},
    {(void *)slot_KUser___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KUser[] = {
    {SIP_MLNAME_CAST(sipName_allUserNames), meth_KUser_allUserNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allUsers), meth_KUser_allUsers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_faceIconPath), meth_KUser_faceIconPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fullName), meth_KUser_fullName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_gid), meth_KUser_gid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_groupNames), meth_KUser_groupNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_groups), meth_KUser_groups, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_homeDir), meth_KUser_homeDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSuperUser), meth_KUser_isSuperUser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KUser_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loginName), meth_KUser_loginName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KUser_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shell), meth_KUser_shell, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uid), meth_KUser_uid, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KUser[] = {
    {sipName_FullName, KUser::FullName, 238},
    {sipName_HomePhone, KUser::HomePhone, 238},
    {sipName_RoomNumber, KUser::RoomNumber, 238},
    {sipName_UseEffectiveUID, KUser::UseEffectiveUID, 237},
    {sipName_UseRealUserID, KUser::UseRealUserID, 237},
    {sipName_WorkPhone, KUser::WorkPhone, 238},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KUser,
        {0}
    },
    {
        sipNameNr_KUser,
        {0, 0, 1},
        14, methods_KUser,
        6, enummembers_KUser,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KUser,
    init_KUser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUser,
    assign_KUser,
    array_KUser,
    copy_KUser,
    release_KUser,
    cast_KUser,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5361 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5365 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


extern "C" {static int slot_KUrl_EqualsOptions___bool__(PyObject *);}
static int slot_KUrl_EqualsOptions___bool__(PyObject *sipSelf)
{
    KUrl::EqualsOptions *sipCpp = reinterpret_cast<KUrl::EqualsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EqualsOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 5383 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KUrl_EqualsOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_EqualsOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::EqualsOptions *sipCpp = reinterpret_cast<KUrl::EqualsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EqualsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::EqualsOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 5413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::EqualsOptions *>(a0),sipType_KUrl_EqualsOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_EqualsOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_EqualsOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::EqualsOptions *sipCpp = reinterpret_cast<KUrl::EqualsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EqualsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::EqualsOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 5449 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::EqualsOptions *>(a0),sipType_KUrl_EqualsOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_EqualsOptions___invert__(PyObject *);}
static PyObject *slot_KUrl_EqualsOptions___invert__(PyObject *sipSelf)
{
    KUrl::EqualsOptions *sipCpp = reinterpret_cast<KUrl::EqualsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EqualsOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KUrl::EqualsOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::EqualsOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KUrl::EqualsOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_EqualsOptions, &a0, &a0State, &a1))
        {
            KUrl::EqualsOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::EqualsOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_EqualsOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::EqualsOptions * a0;
        int a0State = 0;
        KUrl::EqualsOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_EqualsOptions, &a0, &a0State, sipType_KUrl_EqualsOptions, &a1, &a1State))
        {
            KUrl::EqualsOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::EqualsOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_EqualsOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_EqualsOptions,a1State);

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

    {
        KUrl::EqualsOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_EqualsOptions, &a0, &a0State, &a1))
        {
            KUrl::EqualsOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::EqualsOptions(*a0 ^ a1);
#line 5558 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_EqualsOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::EqualsOptions * a0;
        int a0State = 0;
        KUrl::EqualsOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_EqualsOptions, &a0, &a0State, sipType_KUrl_EqualsOptions, &a1, &a1State))
        {
            KUrl::EqualsOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::EqualsOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_EqualsOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_EqualsOptions,a1State);

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

    {
        KUrl::EqualsOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_EqualsOptions, &a0, &a0State, &a1))
        {
            KUrl::EqualsOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::EqualsOptions(*a0 | a1);
#line 5610 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_EqualsOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_EqualsOptions___int__(PyObject *);}
static PyObject *slot_KUrl_EqualsOptions___int__(PyObject *sipSelf)
{
    KUrl::EqualsOptions *sipCpp = reinterpret_cast<KUrl::EqualsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EqualsOptions));

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

    KUrl::EqualsOptions *sipCpp = reinterpret_cast<KUrl::EqualsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EqualsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::EqualsOptions * a0;
        int a0State = 0;

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

    KUrl::EqualsOptions *sipCpp = reinterpret_cast<KUrl::EqualsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EqualsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::EqualsOptions * a0;
        int a0State = 0;

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

    KUrl::EqualsOptions *sipCpp = reinterpret_cast<KUrl::EqualsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EqualsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KUrl::EqualsOptions::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_KUrl_EqualsOptions(void *, const sipTypeDef *);}
static void *cast_KUrl_EqualsOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KUrl_EqualsOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KUrl::EqualsOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KUrl_EqualsOptions(SIP_SSIZE_T);}
static void *array_KUrl_EqualsOptions(SIP_SSIZE_T sipNrElem)
{
    return new KUrl::EqualsOptions[sipNrElem];
}


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


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


extern "C" {static void *init_KUrl_EqualsOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KUrl_EqualsOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KUrl::EqualsOptions *sipCpp = 0;

    {
        const KUrl::EqualsOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_EqualsOption)) ||
            sipCanConvertToType(sipPy, sipType_KUrl_EqualsOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_EqualsOption)))
{
    *sipCppPtr = new KUrl::EqualsOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KUrl::EqualsOptions *>(sipConvertToType(sipPy, sipType_KUrl_EqualsOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 5905 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KUrl_EqualsOptions[] = {
    {(void *)slot_KUrl_EqualsOptions___bool__, bool_slot},
    {(void *)slot_KUrl_EqualsOptions___ne__, ne_slot},
    {(void *)slot_KUrl_EqualsOptions___eq__, eq_slot},
    {(void *)slot_KUrl_EqualsOptions___invert__, invert_slot},
    {(void *)slot_KUrl_EqualsOptions___and__, and_slot},
    {(void *)slot_KUrl_EqualsOptions___xor__, xor_slot},
    {(void *)slot_KUrl_EqualsOptions___or__, or_slot},
    {(void *)slot_KUrl_EqualsOptions___int__, int_slot},
    {(void *)slot_KUrl_EqualsOptions___ixor__, ixor_slot},
    {(void *)slot_KUrl_EqualsOptions___ior__, ior_slot},
    {(void *)slot_KUrl_EqualsOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUrl_EqualsOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KUrl__EqualsOptions,
        {0}
    },
    {
        sipNameNr_EqualsOptions,
        {221, 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_KUrl_EqualsOptions,
    init_KUrl_EqualsOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUrl_EqualsOptions,
    assign_KUrl_EqualsOptions,
    array_KUrl_EqualsOptions,
    copy_KUrl_EqualsOptions,
    release_KUrl_EqualsOptions,
    cast_KUrl_EqualsOptions,
    convertTo_KUrl_EqualsOptions,
    0,
    0
},
    0,
    1,
    0
};

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5978 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5982 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


extern "C" {static int slot_KUrl_DirectoryOptions___bool__(PyObject *);}
static int slot_KUrl_DirectoryOptions___bool__(PyObject *sipSelf)
{
    KUrl::DirectoryOptions *sipCpp = reinterpret_cast<KUrl::DirectoryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_DirectoryOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 6000 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KUrl_DirectoryOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_DirectoryOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::DirectoryOptions *sipCpp = reinterpret_cast<KUrl::DirectoryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_DirectoryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::DirectoryOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 6030 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::DirectoryOptions *>(a0),sipType_KUrl_DirectoryOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_DirectoryOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_DirectoryOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::DirectoryOptions *sipCpp = reinterpret_cast<KUrl::DirectoryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_DirectoryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::DirectoryOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 6066 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::DirectoryOptions *>(a0),sipType_KUrl_DirectoryOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_DirectoryOptions___invert__(PyObject *);}
static PyObject *slot_KUrl_DirectoryOptions___invert__(PyObject *sipSelf)
{
    KUrl::DirectoryOptions *sipCpp = reinterpret_cast<KUrl::DirectoryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_DirectoryOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KUrl::DirectoryOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::DirectoryOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KUrl::DirectoryOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_DirectoryOptions, &a0, &a0State, &a1))
        {
            KUrl::DirectoryOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::DirectoryOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_DirectoryOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::DirectoryOptions * a0;
        int a0State = 0;
        KUrl::DirectoryOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_DirectoryOptions, &a0, &a0State, sipType_KUrl_DirectoryOptions, &a1, &a1State))
        {
            KUrl::DirectoryOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::DirectoryOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_DirectoryOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_DirectoryOptions,a1State);

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

    {
        KUrl::DirectoryOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_DirectoryOptions, &a0, &a0State, &a1))
        {
            KUrl::DirectoryOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::DirectoryOptions(*a0 ^ a1);
#line 6175 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_DirectoryOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::DirectoryOptions * a0;
        int a0State = 0;
        KUrl::DirectoryOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_DirectoryOptions, &a0, &a0State, sipType_KUrl_DirectoryOptions, &a1, &a1State))
        {
            KUrl::DirectoryOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::DirectoryOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_DirectoryOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_DirectoryOptions,a1State);

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

    {
        KUrl::DirectoryOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_DirectoryOptions, &a0, &a0State, &a1))
        {
            KUrl::DirectoryOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::DirectoryOptions(*a0 | a1);
#line 6227 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_DirectoryOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_DirectoryOptions___int__(PyObject *);}
static PyObject *slot_KUrl_DirectoryOptions___int__(PyObject *sipSelf)
{
    KUrl::DirectoryOptions *sipCpp = reinterpret_cast<KUrl::DirectoryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_DirectoryOptions));

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

    KUrl::DirectoryOptions *sipCpp = reinterpret_cast<KUrl::DirectoryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_DirectoryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::DirectoryOptions * a0;
        int a0State = 0;

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

    KUrl::DirectoryOptions *sipCpp = reinterpret_cast<KUrl::DirectoryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_DirectoryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::DirectoryOptions * a0;
        int a0State = 0;

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

    KUrl::DirectoryOptions *sipCpp = reinterpret_cast<KUrl::DirectoryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_DirectoryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KUrl::DirectoryOptions::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_KUrl_DirectoryOptions(void *, const sipTypeDef *);}
static void *cast_KUrl_DirectoryOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KUrl_DirectoryOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KUrl::DirectoryOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KUrl_DirectoryOptions(SIP_SSIZE_T);}
static void *array_KUrl_DirectoryOptions(SIP_SSIZE_T sipNrElem)
{
    return new KUrl::DirectoryOptions[sipNrElem];
}


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


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


extern "C" {static void *init_KUrl_DirectoryOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KUrl_DirectoryOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KUrl::DirectoryOptions *sipCpp = 0;

    {
        const KUrl::DirectoryOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_DirectoryOption)) ||
            sipCanConvertToType(sipPy, sipType_KUrl_DirectoryOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_DirectoryOption)))
{
    *sipCppPtr = new KUrl::DirectoryOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KUrl::DirectoryOptions *>(sipConvertToType(sipPy, sipType_KUrl_DirectoryOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 6522 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KUrl_DirectoryOptions[] = {
    {(void *)slot_KUrl_DirectoryOptions___bool__, bool_slot},
    {(void *)slot_KUrl_DirectoryOptions___ne__, ne_slot},
    {(void *)slot_KUrl_DirectoryOptions___eq__, eq_slot},
    {(void *)slot_KUrl_DirectoryOptions___invert__, invert_slot},
    {(void *)slot_KUrl_DirectoryOptions___and__, and_slot},
    {(void *)slot_KUrl_DirectoryOptions___xor__, xor_slot},
    {(void *)slot_KUrl_DirectoryOptions___or__, or_slot},
    {(void *)slot_KUrl_DirectoryOptions___int__, int_slot},
    {(void *)slot_KUrl_DirectoryOptions___ixor__, ixor_slot},
    {(void *)slot_KUrl_DirectoryOptions___ior__, ior_slot},
    {(void *)slot_KUrl_DirectoryOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUrl_DirectoryOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KUrl__DirectoryOptions,
        {0}
    },
    {
        sipNameNr_DirectoryOptions,
        {221, 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_KUrl_DirectoryOptions,
    init_KUrl_DirectoryOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUrl_DirectoryOptions,
    assign_KUrl_DirectoryOptions,
    array_KUrl_DirectoryOptions,
    copy_KUrl_DirectoryOptions,
    release_KUrl_DirectoryOptions,
    cast_KUrl_DirectoryOptions,
    convertTo_KUrl_DirectoryOptions,
    0,
    0
},
    0,
    1,
    0
};

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 6595 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 6599 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


extern "C" {static int slot_KUrl_QueryItemsOptions___bool__(PyObject *);}
static int slot_KUrl_QueryItemsOptions___bool__(PyObject *sipSelf)
{
    KUrl::QueryItemsOptions *sipCpp = reinterpret_cast<KUrl::QueryItemsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_QueryItemsOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 6617 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KUrl_QueryItemsOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_QueryItemsOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::QueryItemsOptions *sipCpp = reinterpret_cast<KUrl::QueryItemsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_QueryItemsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::QueryItemsOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 6647 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::QueryItemsOptions *>(a0),sipType_KUrl_QueryItemsOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_QueryItemsOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_QueryItemsOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::QueryItemsOptions *sipCpp = reinterpret_cast<KUrl::QueryItemsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_QueryItemsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::QueryItemsOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 6683 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::QueryItemsOptions *>(a0),sipType_KUrl_QueryItemsOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_QueryItemsOptions___invert__(PyObject *);}
static PyObject *slot_KUrl_QueryItemsOptions___invert__(PyObject *sipSelf)
{
    KUrl::QueryItemsOptions *sipCpp = reinterpret_cast<KUrl::QueryItemsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_QueryItemsOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KUrl::QueryItemsOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::QueryItemsOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KUrl::QueryItemsOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_QueryItemsOptions, &a0, &a0State, &a1))
        {
            KUrl::QueryItemsOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::QueryItemsOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_QueryItemsOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::QueryItemsOptions * a0;
        int a0State = 0;
        KUrl::QueryItemsOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_QueryItemsOptions, &a0, &a0State, sipType_KUrl_QueryItemsOptions, &a1, &a1State))
        {
            KUrl::QueryItemsOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::QueryItemsOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_QueryItemsOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_QueryItemsOptions,a1State);

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

    {
        KUrl::QueryItemsOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_QueryItemsOptions, &a0, &a0State, &a1))
        {
            KUrl::QueryItemsOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::QueryItemsOptions(*a0 ^ a1);
#line 6792 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_QueryItemsOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::QueryItemsOptions * a0;
        int a0State = 0;
        KUrl::QueryItemsOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_QueryItemsOptions, &a0, &a0State, sipType_KUrl_QueryItemsOptions, &a1, &a1State))
        {
            KUrl::QueryItemsOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::QueryItemsOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_QueryItemsOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_QueryItemsOptions,a1State);

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

    {
        KUrl::QueryItemsOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_QueryItemsOptions, &a0, &a0State, &a1))
        {
            KUrl::QueryItemsOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::QueryItemsOptions(*a0 | a1);
#line 6844 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_QueryItemsOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_QueryItemsOptions___int__(PyObject *);}
static PyObject *slot_KUrl_QueryItemsOptions___int__(PyObject *sipSelf)
{
    KUrl::QueryItemsOptions *sipCpp = reinterpret_cast<KUrl::QueryItemsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_QueryItemsOptions));

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

    KUrl::QueryItemsOptions *sipCpp = reinterpret_cast<KUrl::QueryItemsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_QueryItemsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::QueryItemsOptions * a0;
        int a0State = 0;

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

    KUrl::QueryItemsOptions *sipCpp = reinterpret_cast<KUrl::QueryItemsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_QueryItemsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::QueryItemsOptions * a0;
        int a0State = 0;

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

    KUrl::QueryItemsOptions *sipCpp = reinterpret_cast<KUrl::QueryItemsOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_QueryItemsOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KUrl::QueryItemsOptions::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_KUrl_QueryItemsOptions(void *, const sipTypeDef *);}
static void *cast_KUrl_QueryItemsOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KUrl_QueryItemsOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KUrl::QueryItemsOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KUrl_QueryItemsOptions(SIP_SSIZE_T);}
static void *array_KUrl_QueryItemsOptions(SIP_SSIZE_T sipNrElem)
{
    return new KUrl::QueryItemsOptions[sipNrElem];
}


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


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


extern "C" {static void *init_KUrl_QueryItemsOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KUrl_QueryItemsOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KUrl::QueryItemsOptions *sipCpp = 0;

    {
        const KUrl::QueryItemsOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_QueryItemsOption)) ||
            sipCanConvertToType(sipPy, sipType_KUrl_QueryItemsOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_QueryItemsOption)))
{
    *sipCppPtr = new KUrl::QueryItemsOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KUrl::QueryItemsOptions *>(sipConvertToType(sipPy, sipType_KUrl_QueryItemsOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7139 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KUrl_QueryItemsOptions[] = {
    {(void *)slot_KUrl_QueryItemsOptions___bool__, bool_slot},
    {(void *)slot_KUrl_QueryItemsOptions___ne__, ne_slot},
    {(void *)slot_KUrl_QueryItemsOptions___eq__, eq_slot},
    {(void *)slot_KUrl_QueryItemsOptions___invert__, invert_slot},
    {(void *)slot_KUrl_QueryItemsOptions___and__, and_slot},
    {(void *)slot_KUrl_QueryItemsOptions___xor__, xor_slot},
    {(void *)slot_KUrl_QueryItemsOptions___or__, or_slot},
    {(void *)slot_KUrl_QueryItemsOptions___int__, int_slot},
    {(void *)slot_KUrl_QueryItemsOptions___ixor__, ixor_slot},
    {(void *)slot_KUrl_QueryItemsOptions___ior__, ior_slot},
    {(void *)slot_KUrl_QueryItemsOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUrl_QueryItemsOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KUrl__QueryItemsOptions,
        {0}
    },
    {
        sipNameNr_QueryItemsOptions,
        {221, 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_KUrl_QueryItemsOptions,
    init_KUrl_QueryItemsOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUrl_QueryItemsOptions,
    assign_KUrl_QueryItemsOptions,
    array_KUrl_QueryItemsOptions,
    copy_KUrl_QueryItemsOptions,
    release_KUrl_QueryItemsOptions,
    cast_KUrl_QueryItemsOptions,
    convertTo_KUrl_QueryItemsOptions,
    0,
    0
},
    0,
    1,
    0
};

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7212 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7216 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


extern "C" {static int slot_KUrl_EncodedPathAndQueryOptions___bool__(PyObject *);}
static int slot_KUrl_EncodedPathAndQueryOptions___bool__(PyObject *sipSelf)
{
    KUrl::EncodedPathAndQueryOptions *sipCpp = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EncodedPathAndQueryOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 7234 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KUrl_EncodedPathAndQueryOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_EncodedPathAndQueryOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::EncodedPathAndQueryOptions *sipCpp = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EncodedPathAndQueryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 7264 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::EncodedPathAndQueryOptions *>(a0),sipType_KUrl_EncodedPathAndQueryOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_EncodedPathAndQueryOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_EncodedPathAndQueryOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::EncodedPathAndQueryOptions *sipCpp = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EncodedPathAndQueryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 7300 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::EncodedPathAndQueryOptions *>(a0),sipType_KUrl_EncodedPathAndQueryOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_EncodedPathAndQueryOptions___invert__(PyObject *);}
static PyObject *slot_KUrl_EncodedPathAndQueryOptions___invert__(PyObject *sipSelf)
{
    KUrl::EncodedPathAndQueryOptions *sipCpp = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EncodedPathAndQueryOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KUrl::EncodedPathAndQueryOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::EncodedPathAndQueryOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_EncodedPathAndQueryOptions, &a0, &a0State, &a1))
        {
            KUrl::EncodedPathAndQueryOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::EncodedPathAndQueryOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_EncodedPathAndQueryOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;
        KUrl::EncodedPathAndQueryOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_EncodedPathAndQueryOptions, &a0, &a0State, sipType_KUrl_EncodedPathAndQueryOptions, &a1, &a1State))
        {
            KUrl::EncodedPathAndQueryOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::EncodedPathAndQueryOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_EncodedPathAndQueryOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_EncodedPathAndQueryOptions,a1State);

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

    {
        KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_EncodedPathAndQueryOptions, &a0, &a0State, &a1))
        {
            KUrl::EncodedPathAndQueryOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::EncodedPathAndQueryOptions(*a0 ^ a1);
#line 7409 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_EncodedPathAndQueryOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;
        KUrl::EncodedPathAndQueryOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_EncodedPathAndQueryOptions, &a0, &a0State, sipType_KUrl_EncodedPathAndQueryOptions, &a1, &a1State))
        {
            KUrl::EncodedPathAndQueryOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::EncodedPathAndQueryOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_EncodedPathAndQueryOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_EncodedPathAndQueryOptions,a1State);

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

    {
        KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_EncodedPathAndQueryOptions, &a0, &a0State, &a1))
        {
            KUrl::EncodedPathAndQueryOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::EncodedPathAndQueryOptions(*a0 | a1);
#line 7461 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_EncodedPathAndQueryOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_EncodedPathAndQueryOptions___int__(PyObject *);}
static PyObject *slot_KUrl_EncodedPathAndQueryOptions___int__(PyObject *sipSelf)
{
    KUrl::EncodedPathAndQueryOptions *sipCpp = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EncodedPathAndQueryOptions));

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

    KUrl::EncodedPathAndQueryOptions *sipCpp = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EncodedPathAndQueryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;

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

    KUrl::EncodedPathAndQueryOptions *sipCpp = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EncodedPathAndQueryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;

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

    KUrl::EncodedPathAndQueryOptions *sipCpp = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_EncodedPathAndQueryOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KUrl::EncodedPathAndQueryOptions::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_KUrl_EncodedPathAndQueryOptions(void *, const sipTypeDef *);}
static void *cast_KUrl_EncodedPathAndQueryOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KUrl_EncodedPathAndQueryOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KUrl_EncodedPathAndQueryOptions(SIP_SSIZE_T);}
static void *array_KUrl_EncodedPathAndQueryOptions(SIP_SSIZE_T sipNrElem)
{
    return new KUrl::EncodedPathAndQueryOptions[sipNrElem];
}


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


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


extern "C" {static void *init_KUrl_EncodedPathAndQueryOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KUrl_EncodedPathAndQueryOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KUrl::EncodedPathAndQueryOptions *sipCpp = 0;

    {
        const KUrl::EncodedPathAndQueryOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_EncodedPathAndQueryOption)) ||
            sipCanConvertToType(sipPy, sipType_KUrl_EncodedPathAndQueryOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_EncodedPathAndQueryOption)))
{
    *sipCppPtr = new KUrl::EncodedPathAndQueryOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KUrl::EncodedPathAndQueryOptions *>(sipConvertToType(sipPy, sipType_KUrl_EncodedPathAndQueryOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7756 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KUrl_EncodedPathAndQueryOptions[] = {
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___bool__, bool_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___ne__, ne_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___eq__, eq_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___invert__, invert_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___and__, and_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___xor__, xor_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___or__, or_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___int__, int_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___ixor__, ixor_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___ior__, ior_slot},
    {(void *)slot_KUrl_EncodedPathAndQueryOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUrl_EncodedPathAndQueryOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KUrl__EncodedPathAndQueryOptions,
        {0}
    },
    {
        sipNameNr_EncodedPathAndQueryOptions,
        {221, 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_KUrl_EncodedPathAndQueryOptions,
    init_KUrl_EncodedPathAndQueryOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUrl_EncodedPathAndQueryOptions,
    assign_KUrl_EncodedPathAndQueryOptions,
    array_KUrl_EncodedPathAndQueryOptions,
    copy_KUrl_EncodedPathAndQueryOptions,
    release_KUrl_EncodedPathAndQueryOptions,
    cast_KUrl_EncodedPathAndQueryOptions,
    convertTo_KUrl_EncodedPathAndQueryOptions,
    0,
    0
},
    0,
    1,
    0
};

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7829 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7833 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


extern "C" {static int slot_KUrl_CleanPathOptions___bool__(PyObject *);}
static int slot_KUrl_CleanPathOptions___bool__(PyObject *sipSelf)
{
    KUrl::CleanPathOptions *sipCpp = reinterpret_cast<KUrl::CleanPathOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_CleanPathOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 7851 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KUrl_CleanPathOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_CleanPathOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::CleanPathOptions *sipCpp = reinterpret_cast<KUrl::CleanPathOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_CleanPathOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::CleanPathOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 7881 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::CleanPathOptions *>(a0),sipType_KUrl_CleanPathOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_CleanPathOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_CleanPathOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::CleanPathOptions *sipCpp = reinterpret_cast<KUrl::CleanPathOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_CleanPathOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::CleanPathOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 7917 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(const_cast<KUrl::CleanPathOptions *>(a0),sipType_KUrl_CleanPathOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_CleanPathOptions___invert__(PyObject *);}
static PyObject *slot_KUrl_CleanPathOptions___invert__(PyObject *sipSelf)
{
    KUrl::CleanPathOptions *sipCpp = reinterpret_cast<KUrl::CleanPathOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_CleanPathOptions));

    if (!sipCpp)
        return 0;


    {
        {
            KUrl::CleanPathOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::CleanPathOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KUrl::CleanPathOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_CleanPathOptions, &a0, &a0State, &a1))
        {
            KUrl::CleanPathOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::CleanPathOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_CleanPathOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::CleanPathOptions * a0;
        int a0State = 0;
        KUrl::CleanPathOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_CleanPathOptions, &a0, &a0State, sipType_KUrl_CleanPathOptions, &a1, &a1State))
        {
            KUrl::CleanPathOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::CleanPathOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_CleanPathOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_CleanPathOptions,a1State);

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

    {
        KUrl::CleanPathOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_CleanPathOptions, &a0, &a0State, &a1))
        {
            KUrl::CleanPathOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::CleanPathOptions(*a0 ^ a1);
#line 8026 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_CleanPathOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KUrl::CleanPathOptions * a0;
        int a0State = 0;
        KUrl::CleanPathOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KUrl_CleanPathOptions, &a0, &a0State, sipType_KUrl_CleanPathOptions, &a1, &a1State))
        {
            KUrl::CleanPathOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::CleanPathOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KUrl_CleanPathOptions,a0State);
            sipReleaseType(a1,sipType_KUrl_CleanPathOptions,a1State);

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

    {
        KUrl::CleanPathOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KUrl_CleanPathOptions, &a0, &a0State, &a1))
        {
            KUrl::CleanPathOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KUrl::CleanPathOptions(*a0 | a1);
#line 8078 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
            sipReleaseType(a0,sipType_KUrl_CleanPathOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_CleanPathOptions___int__(PyObject *);}
static PyObject *slot_KUrl_CleanPathOptions___int__(PyObject *sipSelf)
{
    KUrl::CleanPathOptions *sipCpp = reinterpret_cast<KUrl::CleanPathOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_CleanPathOptions));

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

    KUrl::CleanPathOptions *sipCpp = reinterpret_cast<KUrl::CleanPathOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_CleanPathOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::CleanPathOptions * a0;
        int a0State = 0;

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

    KUrl::CleanPathOptions *sipCpp = reinterpret_cast<KUrl::CleanPathOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_CleanPathOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KUrl::CleanPathOptions * a0;
        int a0State = 0;

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

    KUrl::CleanPathOptions *sipCpp = reinterpret_cast<KUrl::CleanPathOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_CleanPathOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KUrl::CleanPathOptions::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_KUrl_CleanPathOptions(void *, const sipTypeDef *);}
static void *cast_KUrl_CleanPathOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KUrl_CleanPathOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KUrl::CleanPathOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KUrl_CleanPathOptions(SIP_SSIZE_T);}
static void *array_KUrl_CleanPathOptions(SIP_SSIZE_T sipNrElem)
{
    return new KUrl::CleanPathOptions[sipNrElem];
}


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


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


extern "C" {static void *init_KUrl_CleanPathOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KUrl_CleanPathOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KUrl::CleanPathOptions *sipCpp = 0;

    {
        const KUrl::CleanPathOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_CleanPathOption)) ||
            sipCanConvertToType(sipPy, sipType_KUrl_CleanPathOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KUrl_CleanPathOption)))
{
    *sipCppPtr = new KUrl::CleanPathOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KUrl::CleanPathOptions *>(sipConvertToType(sipPy, sipType_KUrl_CleanPathOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 8373 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KUrl_CleanPathOptions[] = {
    {(void *)slot_KUrl_CleanPathOptions___bool__, bool_slot},
    {(void *)slot_KUrl_CleanPathOptions___ne__, ne_slot},
    {(void *)slot_KUrl_CleanPathOptions___eq__, eq_slot},
    {(void *)slot_KUrl_CleanPathOptions___invert__, invert_slot},
    {(void *)slot_KUrl_CleanPathOptions___and__, and_slot},
    {(void *)slot_KUrl_CleanPathOptions___xor__, xor_slot},
    {(void *)slot_KUrl_CleanPathOptions___or__, or_slot},
    {(void *)slot_KUrl_CleanPathOptions___int__, int_slot},
    {(void *)slot_KUrl_CleanPathOptions___ixor__, ixor_slot},
    {(void *)slot_KUrl_CleanPathOptions___ior__, ior_slot},
    {(void *)slot_KUrl_CleanPathOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUrl_CleanPathOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KUrl__CleanPathOptions,
        {0}
    },
    {
        sipNameNr_CleanPathOptions,
        {221, 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_KUrl_CleanPathOptions,
    init_KUrl_CleanPathOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUrl_CleanPathOptions,
    assign_KUrl_CleanPathOptions,
    array_KUrl_CleanPathOptions,
    copy_KUrl_CleanPathOptions,
    release_KUrl_CleanPathOptions,
    cast_KUrl_CleanPathOptions,
    convertTo_KUrl_CleanPathOptions,
    0,
    0
},
    0,
    1,
    0
};

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 8446 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 8450 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8453 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8456 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 8459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 8462 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8465 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8468 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"


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

    {
        KUrl::List *sipCpp;

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

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

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

    {
        KUrl::AdjustPathOption a0;
        KUrl::List *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KUrl_List, &sipCpp, sipType_KUrl_AdjustPathOption, &a0))
        {
            QStringList *sipRes;

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

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

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

    return NULL;
}


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

    {
        QMimeData * a0;
        const KUrl::MetaDataMap& a1def = KUrl::MetaDataMap();
        const KUrl::MetaDataMap * a1 = &a1def;
        int a1State = 0;
        KUrl::MimeDataFlags a2 = KUrl::DefaultMimeDataFlags;
        KUrl::List *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8|J1E", &sipSelf, sipType_KUrl_List, &sipCpp, sipType_QMimeData, &a0, sipType_QMap_0100QString_0100QString,&a1, &a1State, sipType_KUrl_MimeDataFlags, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->populateMimeData(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KUrl::MetaDataMap *>(a1),sipType_QMap_0100QString_0100QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KUrl::List * a0;
        QMimeData * a1;
        const KUrl::MetaDataMap& a2def = KUrl::MetaDataMap();
        const KUrl::MetaDataMap * a2 = &a2def;
        int a2State = 0;
        KUrl::MimeDataFlags a3 = KUrl::DefaultMimeDataFlags;
        KUrl::List *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8|J1E", &sipSelf, sipType_KUrl_List, &sipCpp, sipType_KUrl_List, &a0, sipType_QMimeData, &a1, sipType_QMap_0100QString_0100QString,&a2, &a2State, sipType_KUrl_MimeDataFlags, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->populateMimeData(*a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KUrl::MetaDataMap *>(a2),sipType_QMap_0100QString_0100QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QMimeData * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KUrl::List::canDecode(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KUrl::List::mimeDataTypes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QMimeData * a0;
        KUrl::MetaDataMap * a1 = 0;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8|J0", sipType_QMimeData, &a0, sipType_QMap_0100QString_0100QString,&a1, &a1State))
        {
            KUrl::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(KUrl::List::fromMimeData(a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QMap_0100QString_0100QString,a1State);

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

    {
        const QMimeData * a0;
        KUrl::List::DecodeOptions a1;
        KUrl::MetaDataMap * a2 = 0;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8E|J0", sipType_QMimeData, &a0, sipType_KUrl_List_DecodeOptions, &a1, sipType_QMap_0100QString_0100QString,&a2, &a2State))
        {
            KUrl::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(KUrl::List::fromMimeData(a0,a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(a2,sipType_QMap_0100QString_0100QString,a2State);

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

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

    return NULL;
}


extern "C" {static int slot_KUrl_List___contains__(PyObject *,PyObject *);}
static int slot_KUrl_List___contains__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        KUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KUrl, &a0))
        {
            int sipRes = 0;

#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//returns (bool)
//takes a0 | (KUrl)
        // It looks like you can't assign QBool to int.
        sipRes = bool(sipCpp->contains(*a0));
#line 8690 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            return sipRes;
        }
    }

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

    return -1;
}


extern "C" {static PyObject *slot_KUrl_List___ne__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_List___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::List * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_List___eq__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_List___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::List * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KUrl_List___imul__(PyObject *,int);}
static PyObject *slot_KUrl_List___imul__(PyObject *sipSelf,int a0)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return 0;


    {
        {
#line 210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//returns (KUrl.List)
//takes val | (int)
    KUrl::List orig(*sipCpp);

    sipCpp -> clear();

    for (int i = 0; i < a0; ++i)
        (*sipCpp) += orig;
#line 8791 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KUrl_List___mul__(PyObject *,int);}
static PyObject *slot_KUrl_List___mul__(PyObject *sipSelf,int a0)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return 0;


    {
        {
            KUrl::List *sipRes = 0;

#line 202 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
sipRes = new KUrl::List();

    for (int i = 0; i < a0; ++i)
        (*sipRes) += (*sipCpp);
#line 8820 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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

    return 0;
}


extern "C" {static PyObject *slot_KUrl_List___iadd__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_List___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::List * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KUrl::List::operator+=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,iconcat_slot);

    return NULL;
}


extern "C" {static PyObject *slot_KUrl_List___add__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_List___add__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KUrl::List * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KUrl_List, &a0))
        {
            KUrl::List *sipRes = 0;

#line 190 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//returns (KUrl.List)
//takes listToAdd | (KUrl.List)
    Py_BEGIN_ALLOW_THREADS
//    sipRes = new KUrl::List((const KUrl::List&)((*sipCpp) + *a0));
    sipRes = new KUrl::List (*sipCpp);
    (*sipRes) += (*a0);
    Py_END_ALLOW_THREADS
#line 8886 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

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

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,concat_slot);

    return NULL;
}


extern "C" {static PyObject *slot_KUrl_List___getitem__(PyObject *,PyObject *);}
static PyObject *slot_KUrl_List___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            KUrl *sipRes = 0;
            int sipIsErr = 0;

#line 154 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//returns (KUrl)
//takes index | (int)
    int len;

    len = sipCpp -> count();

    if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0)
        sipIsErr = 1;
    else
        sipRes = new KUrl((*sipCpp)[a0]);
#line 8928 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            if (sipIsErr)
                return 0;

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

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1T", &PySlice_Type, &a0))
        {
            KUrl::List *sipRes = 0;
            int sipIsErr = 0;

#line 168 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//returns (KUrl.List)
//takes range | (a Python slice)
    SIP_SSIZE_T len, start, stop, step, slicelength, i;

    len = sipCpp -> count();

    if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0)
        sipIsErr = 1;
    else
    {
        sipRes = new KUrl::List();

        for (i = 0; i < slicelength; ++i)
        {
            (*sipRes) += (*sipCpp)[start];
            start += step;
        }
    }
#line 8964 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            if (sipIsErr)
                return 0;

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

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

    return 0;
}


extern "C" {static int slot_KUrl_List___delitem__(PyObject *,PyObject *);}
static int slot_KUrl_List___delitem__(PyObject *sipSelf,PyObject *sipArg)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            int sipIsErr = 0;

#line 125 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//takes index | (int)
    int len;

    len = sipCpp -> count();

    if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0)
        sipIsErr = 1;
    else
        sipCpp -> removeAt(a0);
#line 9007 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1T", &PySlice_Type, &a0))
        {
            int sipIsErr = 0;

#line 138 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//takes range | (a Python slice)
    SIP_SSIZE_T len, start, stop, step, slicelength, i;

    len = sipCpp -> count();
    if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0)
        sipIsErr = 1;
    else
        for (i = 0; i < slicelength; ++i)
        {
            sipCpp -> removeAt(start);
            start += step - 1;
        }
#line 9036 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

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

    return -1;
}


extern "C" {static int slot_KUrl_List___setitem__(PyObject *,PyObject *);}
static int slot_KUrl_List___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        int a0;
        const KUrl * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "iJ9", &a0, sipType_KUrl, &a1))
        {
            int sipIsErr = 0;

#line 82 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//takes index | (int) | value | (KUrl)
    int len;

    len = sipCpp -> count();

    if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0)
        sipIsErr = 1;
    else
        (*sipCpp)[a0] = *a1;
#line 9080 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    {
        PyObject * a0;
        const KUrl::List * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "TJ9", &PySlice_Type, &a0, sipType_KUrl_List, &a1))
        {
            int sipIsErr = 0;

#line 95 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//takes range | (a Python slice) | urlList | (KUrl.List)
    SIP_SSIZE_T len, start, stop, step, slicelength, i;

    len = sipCpp -> count();

    if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0)
        sipIsErr = 1;
    else
    {
        int vlen = a1 -> count();
        if (vlen != slicelength)
        {
            sipBadLengthForSlice(vlen,slicelength);
            sipIsErr = 1;
        }
        else
        {
            KUrl::List::ConstIterator it = a1 -> begin();
            for (i = 0; i < slicelength; ++i)
            {
                (*sipCpp)[start] = *it;
                start += step;
                ++it;
            }
        }
    }
#line 9124 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

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

    return -1;
}


extern "C" {static SIP_SSIZE_T slot_KUrl_List___len__(PyObject *);}
static SIP_SSIZE_T slot_KUrl_List___len__(PyObject *sipSelf)
{
    KUrl::List *sipCpp = reinterpret_cast<KUrl::List *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KUrl_List));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes = 0;

#line 74 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
//returns (int)
    Py_BEGIN_ALLOW_THREADS
    sipRes = sipCpp -> count();
    Py_END_ALLOW_THREADS
#line 9158 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart1.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KUrl::List *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KUrl_List(SIP_SSIZE_T);}
static void *array_KUrl_List(SIP_SSIZE_T sipNrElem)
{
    return new KUrl::List[sipNrElem];
}


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


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


extern "C" {static void *init_KUrl_List(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KUrl_List(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KUrl::List *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const KUrl * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUrl::List(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QStringList * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QList<KUrl> * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const KUrl::List * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KUrl::List(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KUrl_List[] = {
    {(void *)slot_KUrl_List___contains__, contains_slot},
    {(void *)slot_KUrl_List___ne__, ne_slot},
    {(void *)slot_KUrl_List___eq__, eq_slot},
    {(void *)slot_KUrl_List___imul__, irepeat_slot},
    {(void *)slot_KUrl_List___mul__, repeat_slot},
    {(void *)slot_KUrl_List___iadd__, iconcat_slot},
    {(void *)slot_KUrl_List___add__, concat_slot},
    {(void *)slot_KUrl_List___getitem__, getitem_slot},
    {(void *)slot_KUrl_List___delitem__, delitem_slot},
    {(void *)slot_KUrl_List___setitem__, setitem_slot},
    {(void *)slot_KUrl_List___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KUrl_List[] = {
    {SIP_MLNAME_CAST(sipName_canDecode), meth_KUrl_List_canDecode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromMimeData), meth_KUrl_List_fromMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeDataTypes), meth_KUrl_List_mimeDataTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_populateMimeData), meth_KUrl_List_populateMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toStringList), meth_KUrl_List_toStringList, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KUrl_List[] = {
    {sipName_PreferKdeUrls, KUrl::List::PreferKdeUrls, 232},
    {sipName_PreferLocalUrls, KUrl::List::PreferLocalUrls, 232},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KUrl_List = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KUrl__List,
        {0}
    },
    {
        sipNameNr_List,
        {221, 255, 0},
        5, methods_KUrl_List,
        2, enummembers_KUrl_List,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KUrl_List,
    init_KUrl_List,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KUrl_List,
    assign_KUrl_List,
    array_KUrl_List,
    copy_KUrl_List,
    release_KUrl_List,
    cast_KUrl_List,
    0,
    0,
    0
},
    0,
    0,
    0
};
