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

#include "sipAPIkdecore.h"

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcompositejob.sip"
#include <kcompositejob.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 31 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 37 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 40 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 49 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 58 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 61 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 64 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 67 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 70 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


class sipKCompositeJob : public KCompositeJob
{
public:
    sipKCompositeJob(QObject*);
    virtual ~sipKCompositeJob();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QString errorString() const;
    bool doResume();
    bool doSuspend();
    bool doKill();
    void start();
    void slotInfoMessage(KJob*,const QString&,const QString&);
    void slotResult(KJob*);
    bool removeSubjob(KJob*);
    bool addSubjob(KJob*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[16];
};

sipKCompositeJob::sipKCompositeJob(QObject*a0): KCompositeJob(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKCompositeJob::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KCompositeJob);
}

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

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

    return _id;
}

void *sipKCompositeJob::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KCompositeJob, _clname)) ? this : KCompositeJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QString sipKCompositeJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCompositeJob::errorString();

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

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

bool sipKCompositeJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCompositeJob::doResume();

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

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

bool sipKCompositeJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCompositeJob::doSuspend();

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

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

bool sipKCompositeJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCompositeJob::doKill();

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_KCompositeJob,sipName_start);

    if (!sipMeth)
        return;

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

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

void sipKCompositeJob::slotInfoMessage(KJob*a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KCompositeJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    extern void sipVH_kdecore_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*,const QString&,const QString&);

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

void sipKCompositeJob::slotResult(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KCompositeJob::slotResult(a0);
        return;
    }

    extern void sipVH_kdecore_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    sipVH_kdecore_27(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKCompositeJob::removeSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCompositeJob::removeSubjob(a0);

    extern bool sipVH_kdecore_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return sipVH_kdecore_51(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKCompositeJob::addSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCompositeJob::addSubjob(a0);

    extern bool sipVH_kdecore_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return sipVH_kdecore_51(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        KJob* a0;
        KCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCompositeJob::addSubjob(a0) : sipCpp->addSubjob(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob* a0;
        KCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCompositeJob::removeSubjob(a0) : sipCpp->removeSubjob(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KCompositeJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasSubjobs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KCompositeJob, &sipCpp))
        {
            QList<KJob*>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KJob*>(sipCpp->subjobs());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KCompositeJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearSubjobs();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob* a0;
        KCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCompositeJob::slotResult(a0) : sipCpp->slotResult(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_KCompositeJob, sipName_slotResult, NULL);

    return NULL;
}


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

    {
        KJob* a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        KCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J1J1", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KCompositeJob::slotInfoMessage(a0,*a1,*a2) : sipCpp->slotInfoMessage(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_KCompositeJob, sipName_slotInfoMessage, NULL);

    return NULL;
}


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

    if (targetType == sipType_KCompositeJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KJob)->ctd_cast((KJob *)(KCompositeJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KCompositeJob[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_KCompositeJob_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_KCompositeJob_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_KCompositeJob_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_KCompositeJob_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_KCompositeJob_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_KCompositeJob_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_KCompositeJob_subjobs, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCompositeJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KCompositeJob,
        {0}
    },
    {
        sipNameNr_KCompositeJob,
        {0, 0, 1},
        7, methods_KCompositeJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCompositeJob,
    0,
    init_type_KCompositeJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCompositeJob,
    0,
    0,
    0,
    release_KCompositeJob,
    cast_KCompositeJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KCompositeJob::staticMetaObject,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 747 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 751 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 754 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 757 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 760 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 763 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 766 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 769 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 772 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 775 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 778 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 781 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 784 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 787 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 790 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 793 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 796 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 799 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


class sipKJob : public KJob
{
public:
    sipKJob(QObject*);
    virtual ~sipKJob();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[12];
};

sipKJob::sipKJob(QObject*a0): KJob(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKJob::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KJob);
}

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

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

    return _id;
}

void *sipKJob::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KJob, _clname)) ? this : KJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QString sipKJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KJob::errorString();

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

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

bool sipKJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KJob::doResume();

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

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

bool sipKJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KJob::doSuspend();

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

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

bool sipKJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KJob::doKill();

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_KJob,sipName_start);

    if (!sipMeth)
        return;

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

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


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

    {
        KJobUiDelegate* a0;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KJob, &sipCpp, sipType_KJobUiDelegate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUiDelegate(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_KJob, sipName_setUiDelegate, NULL);

    return NULL;
}


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

    {
        const KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->uiDelegate();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KJob, &sipCpp))
        {
            KJob::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KJob::Capabilities(sipCpp->capabilities());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSuspended();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KJob, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KJob, sipName_start);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->start();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob::KillVerbosity a0 = KJob::Quietly;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|E", &sipSelf, sipType_KJob, &sipCpp, sipType_KJob_KillVerbosity, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->suspend();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->resume();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KJob::doKill() : sipCpp->doKill());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KJob::doSuspend() : sipCpp->doSuspend());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KJob::doResume() : sipCpp->doResume());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob::Capabilities* a0;
        int a0State = 0;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KJob, &sipCpp, sipType_KJob_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCapabilities(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exec();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KJob *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KJob::errorString() : sipCpp->errorString()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KJob::Unit a0;
        const KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KJob, &sipCpp, sipType_KJob_Unit, &a0))
        {
            qulonglong sipRes;

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

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob::Unit a0;
        const KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KJob, &sipCpp, sipType_KJob_Unit, &a0))
        {
            qulonglong sipRes;

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

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KJob, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->percent();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoDelete(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_KJob, sipName_setAutoDelete, NULL);

    return NULL;
}


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

    {
        const KJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAutoDelete();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pi", &sipSelf, sipType_KJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setError(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_KJob, sipName_setError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setErrorText(*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_KJob, sipName_setErrorText, NULL);

    return NULL;
}


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

    {
        KJob::Unit a0;
        qulonglong a1;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pEo", &sipSelf, sipType_KJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProcessedAmount(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_KJob, sipName_setProcessedAmount, NULL);

    return NULL;
}


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

    {
        KJob::Unit a0;
        qulonglong a1;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pEo", &sipSelf, sipType_KJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTotalAmount(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_KJob, sipName_setTotalAmount, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pm", &sipSelf, sipType_KJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPercent(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_KJob, sipName_setPercent, NULL);

    return NULL;
}


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

    {
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->emitResult();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qulonglong a0;
        qulonglong a1;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "poo", &sipSelf, sipType_KJob, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->emitPercent(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_KJob, sipName_emitPercent, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        KJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pm", &sipSelf, sipType_KJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->emitSpeed(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_KJob, sipName_emitSpeed, NULL);

    return NULL;
}


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

    if (targetType == sipType_KJob)
        return ptr;

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KJob[] = {
    {SIP_MLNAME_CAST(sipName_capabilities), meth_KJob_capabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_KJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_KJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_KJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_KJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_KJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_KJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_KJob_error, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_KJob_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorText), meth_KJob_errorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_KJob_exec_, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAutoDelete), meth_KJob_isAutoDelete, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSuspended), meth_KJob_isSuspended, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_kill), meth_KJob_kill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_percent), meth_KJob_percent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_processedAmount), meth_KJob_processedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resume), meth_KJob_resume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoDelete), meth_KJob_setAutoDelete, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_KJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_KJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_KJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_KJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_KJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_KJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUiDelegate), meth_KJob_setUiDelegate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_KJob_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suspend), meth_KJob_suspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_totalAmount), meth_KJob_totalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uiDelegate), meth_KJob_uiDelegate, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KJob[] = {
    {sipName_Bytes, static_cast<int>(KJob::Bytes), 93},
    {sipName_Directories, static_cast<int>(KJob::Directories), 93},
    {sipName_EmitResult, static_cast<int>(KJob::EmitResult), 92},
    {sipName_Files, static_cast<int>(KJob::Files), 93},
    {sipName_Killable, static_cast<int>(KJob::Killable), 91},
    {sipName_KilledJobError, static_cast<int>(KJob::KilledJobError), -1},
    {sipName_NoCapabilities, static_cast<int>(KJob::NoCapabilities), 91},
    {sipName_NoError, static_cast<int>(KJob::NoError), -1},
    {sipName_Quietly, static_cast<int>(KJob::Quietly), 92},
    {sipName_Suspendable, static_cast<int>(KJob::Suspendable), 91},
    {sipName_UserDefinedError, static_cast<int>(KJob::UserDefinedError), -1},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KJob[] = {
    {"warning(KJob*,QString,QString)", 0, 0, 0},
    {"warning(KJob*,QString)", 0, 0, 0},
    {"infoMessage(KJob*,QString,QString)", 0, 0, 0},
    {"infoMessage(KJob*,QString)", 0, 0, 0},
    {"description(KJob*,QString,QPair<QString,QString>,QPair<QString,QString>)", 0, 0, 0},
    {"description(KJob*,QString,QPair<QString,QString>)", 0, 0, 0},
    {"description(KJob*,QString)", 0, 0, 0},
    {"result(KJob*)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KJob,
        {0}
    },
    {
        sipNameNr_KJob,
        {0, 0, 1},
        29, methods_KJob,
        11, enummembers_KJob,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KJob,
    0,
    init_type_KJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KJob,
    0,
    0,
    0,
    release_KJob,
    cast_KJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KJob::staticMetaObject,
    0,
    signals_KJob,
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 2058 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2062 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 56 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 2065 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2068 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 2071 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 2074 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 2077 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


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

    {
        const KComponentData *sipCpp;

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

    return NULL;
}


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

    {
        const KComponentData *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dirs();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KComponentData *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfig::Ptr(sipCpp->config());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KComponentData *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->aboutData();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KAboutData *>(sipRes),sipType_KAboutData,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const KComponentData *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KComponentData *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KComponentData, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setConfigName(*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_KComponentData, sipName_setConfigName, NULL);

    return NULL;
}


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

    {
        const KAboutData* a0;
        KComponentData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KComponentData, &sipCpp, sipType_KAboutData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAboutData(*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_KComponentData, sipName_setAboutData, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_KComponentData___ne__(PyObject *,PyObject *);}
static PyObject *slot_KComponentData___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KComponentData *sipCpp = reinterpret_cast<KComponentData *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KComponentData));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KComponentData* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KComponentData::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_KComponentData,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KComponentData___eq__(PyObject *,PyObject *);}
static PyObject *slot_KComponentData___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KComponentData *sipCpp = reinterpret_cast<KComponentData *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KComponentData));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KComponentData* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KComponentData::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_KComponentData,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<KComponentData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const KComponentData* a0;

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

            return sipCpp;
        }
    }

    {
        const QByteArray* a0;
        int a0State = 0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;
        KComponentData::MainComponentRegistration a2 = KComponentData::RegisterAsMainComponent;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J1E", sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State, sipType_KComponentData_MainComponentRegistration, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KComponentData(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipCpp;
        }
    }

    {
        const KAboutData* a0;
        KComponentData::MainComponentRegistration a1 = KComponentData::RegisterAsMainComponent;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|E", sipType_KAboutData, &a0, sipType_KComponentData_MainComponentRegistration, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KComponentData(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KAboutData* a0;
        KComponentData::MainComponentRegistration a1 = KComponentData::RegisterAsMainComponent;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|E", sipType_KAboutData, &a0, sipType_KComponentData_MainComponentRegistration, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KComponentData(a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KComponentData[] = {
    {SIP_MLNAME_CAST(sipName_aboutData), meth_KComponentData_aboutData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_catalogName), meth_KComponentData_catalogName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_componentName), meth_KComponentData_componentName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_KComponentData_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dirs), meth_KComponentData_dirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KComponentData_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAboutData), meth_KComponentData_setAboutData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setConfigName), meth_KComponentData_setConfigName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KComponentData[] = {
    {sipName_RegisterAsMainComponent, static_cast<int>(KComponentData::RegisterAsMainComponent), 31},
    {sipName_SkipMainComponentRegistration, static_cast<int>(KComponentData::SkipMainComponentRegistration), 31},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KComponentData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KComponentData,
        {0}
    },
    {
        sipNameNr_KComponentData,
        {0, 0, 1},
        8, methods_KComponentData,
        2, enummembers_KComponentData,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KComponentData,
    init_type_KComponentData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KComponentData,
    assign_KComponentData,
    array_KComponentData,
    copy_KComponentData,
    release_KComponentData,
    cast_KComponentData,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 45 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
#include <qapplication.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 2584 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 45 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
#include <qapplication.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 2591 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static int slot_KCmdLineArgs_StdCmdLineArgs___bool__(PyObject *);}
static int slot_KCmdLineArgs_StdCmdLineArgs___bool__(PyObject *sipSelf)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___ne__(PyObject *,PyObject *);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___eq__(PyObject *,PyObject *);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___invert__(PyObject *);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___invert__(PyObject *sipSelf)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;


    {
        {
            KCmdLineArgs::StdCmdLineArgs*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCmdLineArgs::StdCmdLineArgs(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KCmdLineArgs_StdCmdLineArgs, &a0, &a0State, &a1))
        {
            KCmdLineArgs::StdCmdLineArgs*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCmdLineArgs::StdCmdLineArgs((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;
        KCmdLineArgs::StdCmdLineArgs* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KCmdLineArgs_StdCmdLineArgs, &a0, &a0State, sipType_KCmdLineArgs_StdCmdLineArgs, &a1, &a1State))
        {
            KCmdLineArgs::StdCmdLineArgs*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCmdLineArgs::StdCmdLineArgs((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);
            sipReleaseType(a1,sipType_KCmdLineArgs_StdCmdLineArgs,a1State);

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

    {
        KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KCmdLineArgs_StdCmdLineArgs, &a0, &a0State, &a1))
        {
            KCmdLineArgs::StdCmdLineArgs*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KCmdLineArgs::StdCmdLineArgs(*a0 ^ a1);
#line 2796 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;
        KCmdLineArgs::StdCmdLineArgs* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KCmdLineArgs_StdCmdLineArgs, &a0, &a0State, sipType_KCmdLineArgs_StdCmdLineArgs, &a1, &a1State))
        {
            KCmdLineArgs::StdCmdLineArgs*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KCmdLineArgs::StdCmdLineArgs((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);
            sipReleaseType(a1,sipType_KCmdLineArgs_StdCmdLineArgs,a1State);

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

    {
        KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KCmdLineArgs_StdCmdLineArgs, &a0, &a0State, &a1))
        {
            KCmdLineArgs::StdCmdLineArgs*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KCmdLineArgs::StdCmdLineArgs(*a0 | a1);
#line 2848 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___int__(PyObject *);}
static PyObject *slot_KCmdLineArgs_StdCmdLineArgs___int__(PyObject *sipSelf)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

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

    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;

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

    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;

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

    KCmdLineArgs::StdCmdLineArgs *sipCpp = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KCmdLineArgs_StdCmdLineArgs));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KCmdLineArgs::StdCmdLineArgs::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_KCmdLineArgs_StdCmdLineArgs(void *, const sipTypeDef *);}
static void *cast_KCmdLineArgs_StdCmdLineArgs(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KCmdLineArgs_StdCmdLineArgs)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KCmdLineArgs_StdCmdLineArgs(SIP_SSIZE_T);}
static void *array_KCmdLineArgs_StdCmdLineArgs(SIP_SSIZE_T sipNrElem)
{
    return new KCmdLineArgs::StdCmdLineArgs[sipNrElem];
}


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


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


extern "C" {static void *init_type_KCmdLineArgs_StdCmdLineArgs(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KCmdLineArgs_StdCmdLineArgs(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KCmdLineArgs::StdCmdLineArgs *sipCpp = 0;

    {
        const KCmdLineArgs::StdCmdLineArgs* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KCmdLineArgs_StdCmdLineArg)) ||
            sipCanConvertToType(sipPy, sipType_KCmdLineArgs_StdCmdLineArgs, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KCmdLineArgs_StdCmdLineArg)))
{
    *sipCppPtr = new KCmdLineArgs::StdCmdLineArgs(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KCmdLineArgs::StdCmdLineArgs *>(sipConvertToType(sipPy, sipType_KCmdLineArgs_StdCmdLineArgs, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

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


/* Define this type's Python slots. */
static sipPySlotDef slots_KCmdLineArgs_StdCmdLineArgs[] = {
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___bool__, bool_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___ne__, ne_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___eq__, eq_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___invert__, invert_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___and__, and_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___xor__, xor_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___or__, or_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___int__, int_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___ixor__, ixor_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___ior__, ior_slot},
    {(void *)slot_KCmdLineArgs_StdCmdLineArgs___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCmdLineArgs_StdCmdLineArgs = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCmdLineArgs__StdCmdLineArgs,
        {0}
    },
    {
        sipNameNr_StdCmdLineArgs,
        {26, 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_KCmdLineArgs_StdCmdLineArgs,
    init_type_KCmdLineArgs_StdCmdLineArgs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCmdLineArgs_StdCmdLineArgs,
    assign_KCmdLineArgs_StdCmdLineArgs,
    array_KCmdLineArgs_StdCmdLineArgs,
    copy_KCmdLineArgs_StdCmdLineArgs,
    release_KCmdLineArgs_StdCmdLineArgs,
    cast_KCmdLineArgs_StdCmdLineArgs,
    convertTo_KCmdLineArgs_StdCmdLineArgs,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 45 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
#include <qapplication.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 3222 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 3228 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 3231 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3234 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3237 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 56 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 3240 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 3243 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3246 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3249 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 45 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
#include <qapplication.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 3255 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


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

    {
        PyObject * a0;
        const QByteArray* a1;
        int a1State = 0;
        const QByteArray* a2;
        int a2State = 0;
        const KLocalizedString* a3;
        const QByteArray* a4;
        int a4State = 0;
        const KLocalizedString& a5def = KLocalizedString();
        const KLocalizedString* a5 = &a5def;
        int a6 = 3;

        if (sipParseArgs(&sipParseErr, sipArgs, "TJ1J1J9J1|J9i", &PyList_Type, &a0, sipType_QByteArray, &a1, &a1State, sipType_QByteArray, &a2, &a2State, sipType_KLocalizedString, &a3, sipType_QByteArray, &a4, &a4State, sipType_KLocalizedString, &a5, &a6))
        {
#line 68 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcmdlineargs.sip"
KCmdLineArgs::StdCmdLineArgs cmdLineArgs = (KCmdLineArgs::StdCmdLineArgs) a6;
    int argc, nargc;
    char **argv;
      
    // Convert the list.

    if ((argv = pyArgvToC(a0, &argc)) == NULL)
        return NULL;

    // Create it now the arguments are right.
    nargc = argc;

    Py_BEGIN_ALLOW_THREADS
    KCmdLineArgs::init (nargc, argv, *a1, *a2, *a3, *a4, *a5, cmdLineArgs);
    Py_END_ALLOW_THREADS

    // Now modify the original list.

    updatePyArgv (a0, argc, argv);
#line 3298 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        PyObject * a0;
        const KAboutData* a1;
        int a2 = 3;

        if (sipParseArgs(&sipParseErr, sipArgs, "TJ8|i", &PyList_Type, &a0, sipType_KAboutData, &a1, &a2))
        {
#line 91 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcmdlineargs.sip"
KCmdLineArgs::StdCmdLineArgs cmdLineArgs = (KCmdLineArgs::StdCmdLineArgs) a2;
    int argc, nargc;
    char **argv;
       
    // Convert the list.

    if ((argv = pyArgvToC(a0, &argc)) == NULL)
        return NULL;

    // Create it now the arguments are right.
    nargc = argc;

    Py_BEGIN_ALLOW_THREADS
    KCmdLineArgs::init (nargc, argv, a1, cmdLineArgs);
    Py_END_ALLOW_THREADS

    // Now modify the original list.

    updatePyArgv (a0, argc, argv);
#line 3335 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KAboutData* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_KAboutData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::init(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_KCmdLineArgs, sipName_init, NULL);

    return NULL;
}


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

    {
        KCmdLineArgs::StdCmdLineArgs a0def = KCmdLineArgs::StdCmdLineArgs(KCmdLineArgs::CmdLineArgQt|KCmdLineArgs::CmdLineArgKDE);
        KCmdLineArgs::StdCmdLineArgs* a0 = &a0def;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1", sipType_KCmdLineArgs_StdCmdLineArgs, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::addStdCmdLineOptions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KCmdLineArgs_StdCmdLineArgs,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KCmdLineOptions* a0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString* a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray* a2 = &a2def;
        int a2State = 0;
        const QByteArray& a3def = QByteArray();
        const QByteArray* a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J9J1J1", sipType_KCmdLineOptions, &a0, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State, sipType_QByteArray, &a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::addCmdLineOptions(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCmdLineArgs::parsedArgs(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCmdLineArgs::cwd());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCmdLineArgs::appName());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1", sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::usage(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::usageError(*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_KCmdLineArgs, sipName_usageError, NULL);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::enable_i18n();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const KCmdLineArgs *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCmdLineArgs, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->getOption(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const KCmdLineArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->getOptionList(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const KCmdLineArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSet(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KCmdLineArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->count();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const KCmdLineArgs *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        const KCmdLineArgs *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->url(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(KCmdLineArgs::makeURL(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::setCwd(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KCmdLineArgs *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::reset();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDataStream* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QDataStream, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::loadAppArgs(*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_KCmdLineArgs, sipName_loadAppArgs, NULL);

    return NULL;
}


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

    {
        QDataStream* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QDataStream, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::saveAppArgs(*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_KCmdLineArgs, sipName_saveAppArgs, NULL);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KCmdLineArgs::addTempFileOption();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCmdLineArgs::isTempFileSet();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCmdLineArgs::aboutData();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KAboutData *>(sipRes),sipType_KAboutData,NULL);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KCmdLineArgs::allArguments());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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


    Py_END_ALLOW_THREADS
}


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

    {
        const KCmdLineOptions* a0;
        const KLocalizedString* a1;
        const QByteArray* a2;
        int a2State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9J1", sipType_KCmdLineOptions, &a0, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KCmdLineArgs(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KCmdLineArgs[] = {
    {SIP_MLNAME_CAST(sipName_aboutData), meth_KCmdLineArgs_aboutData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCmdLineOptions), meth_KCmdLineArgs_addCmdLineOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStdCmdLineOptions), meth_KCmdLineArgs_addStdCmdLineOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTempFileOption), meth_KCmdLineArgs_addTempFileOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allArguments), meth_KCmdLineArgs_allArguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_appName), meth_KCmdLineArgs_appName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_arg), meth_KCmdLineArgs_arg, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KCmdLineArgs_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_count), meth_KCmdLineArgs_count, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cwd), meth_KCmdLineArgs_cwd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enable_i18n), meth_KCmdLineArgs_enable_i18n, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getOption), meth_KCmdLineArgs_getOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getOptionList), meth_KCmdLineArgs_getOptionList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_init), meth_KCmdLineArgs_init, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSet), meth_KCmdLineArgs_isSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTempFileSet), meth_KCmdLineArgs_isTempFileSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadAppArgs), meth_KCmdLineArgs_loadAppArgs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_makeURL), meth_KCmdLineArgs_makeURL, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parsedArgs), meth_KCmdLineArgs_parsedArgs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_KCmdLineArgs_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveAppArgs), meth_KCmdLineArgs_saveAppArgs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCwd), meth_KCmdLineArgs_setCwd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_KCmdLineArgs_url, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usage), meth_KCmdLineArgs_usage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usageError), meth_KCmdLineArgs_usageError, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KCmdLineArgs[] = {
    {sipName_CmdLineArgKDE, static_cast<int>(KCmdLineArgs::CmdLineArgKDE), 27},
    {sipName_CmdLineArgNone, static_cast<int>(KCmdLineArgs::CmdLineArgNone), 27},
    {sipName_CmdLineArgQt, static_cast<int>(KCmdLineArgs::CmdLineArgQt), 27},
    {sipName_CmdLineArgsMask, static_cast<int>(KCmdLineArgs::CmdLineArgsMask), 27},
    {sipName_Reserved, static_cast<int>(KCmdLineArgs::Reserved), 27},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCmdLineArgs = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCmdLineArgs,
        {0}
    },
    {
        sipNameNr_KCmdLineArgs,
        {0, 0, 1},
        25, methods_KCmdLineArgs,
        5, enummembers_KCmdLineArgs,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KCmdLineArgs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_KCmdLineArgs,
    cast_KCmdLineArgs,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcmdlineargs.sip"
#include <kcmdlineargs.h>
extern char **pyArgvToC(PyObject *argvlist,int *argcp);
extern void updatePyArgv(PyObject *argvlist,int argc,char **argv);
#line 4162 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4166 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 4169 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString* a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray* a2 = &a2def;
        int a2State = 0;
        KCmdLineOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J9J1", &sipSelf, sipType_KCmdLineOptions, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State))
        {
            KCmdLineOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->add(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);

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

    {
        const KCmdLineOptions* a0;
        KCmdLineOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KCmdLineOptions, &sipCpp, sipType_KCmdLineOptions, &a0))
        {
            KCmdLineOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->add(*a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KCmdLineOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const KCmdLineOptions* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KCmdLineOptions[] = {
    {SIP_MLNAME_CAST(sipName_add), meth_KCmdLineOptions_add, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCmdLineOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCmdLineOptions,
        {0}
    },
    {
        sipNameNr_KCmdLineOptions,
        {0, 0, 1},
        1, methods_KCmdLineOptions,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KCmdLineOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCmdLineOptions,
    assign_KCmdLineOptions,
    array_KCmdLineOptions,
    copy_KCmdLineOptions,
    release_KCmdLineOptions,
    cast_KCmdLineOptions,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 36 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcharsets.sip"
#include <kcharsets.h>
#line 4371 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4375 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4378 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 56 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4381 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4384 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 72 "/usr/share/python-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 4387 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 4390 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->codecForName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        bool a1;
        const KCharsets *sipCpp;

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

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QTextCodec,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar(KCharsets::fromEntity(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar(KCharsets::fromEntity(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QChar,NULL);
            return sipBuildResult(0,"(Ri)",sipResObj,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QChar* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCharsets::toEntity(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QChar *>(a0),sipType_QChar,a0State);

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        const KCharsets *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KCharsets *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KCharsets *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QStringList>(sipCpp->encodingsByScript());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KCharsets *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KCharsets[] = {
    {SIP_MLNAME_CAST(sipName_availableEncodingNames), meth_KCharsets_availableEncodingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_codecForName), meth_KCharsets_codecForName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_codecForName2), meth_KCharsets_codecForName2, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_descriptionForEncoding), meth_KCharsets_descriptionForEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_descriptiveEncodingNames), meth_KCharsets_descriptiveEncodingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingForName), meth_KCharsets_encodingForName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodingsByScript), meth_KCharsets_encodingsByScript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromEntity), meth_KCharsets_fromEntity, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromEntity2), meth_KCharsets_fromEntity2, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageForEncoding), meth_KCharsets_languageForEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resolveEntities), meth_KCharsets_resolveEntities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toEntity), meth_KCharsets_toEntity, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCharsets = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KCharsets,
        {0}
    },
    {
        sipNameNr_KCharsets,
        {0, 0, 1},
        12, methods_KCharsets,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KCharsets,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCharsets,
    0,
    0,
    0,
    release_KCharsets,
    cast_KCharsets,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 36 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcharsets.sip"
#include <kcharsets.h>
#line 4869 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 4872 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 4875 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 58 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 4878 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 4881 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4884 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4887 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4890 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


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

    {
        const QString* a0;
        int a0State = 0;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QObject* a0;
        const QMetaObject* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J9", sipType_QObject, &a0, sipType_QMetaObject, &a1))
        {
            QObject*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::findDirectChild_helper(a0,*a1);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KLocale* a0;
        KGlobal::CopyCatalogs a1 = KGlobal::DoCopyCatalogs;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8|E", sipType_KLocale, &a0, sipType_KGlobal_CopyCatalogs, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::setLocale(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KGlobal::caption());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KComponentData* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::setActiveComponent(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(KGlobal::activeComponent());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        bool a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "b", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::setAllowQuit(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::deref();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            KGlobal::ref();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const char* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KGlobal::staticQString(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,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(KGlobal::staticQString(*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_staticQString, NULL);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::umask();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::hasLocale();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::locale();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfigPtr(KGlobal::config());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::dirs();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::hasMainComponent();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(KGlobal::mainComponent());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = KGlobal::charsets();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


static PyMethodDef methods_KGlobal[] = {
    {SIP_MLNAME_CAST(sipName_activeComponent), meth_KGlobal_activeComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_caption), meth_KGlobal_caption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_charsets), meth_KGlobal_charsets, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_KGlobal_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deref), meth_KGlobal_deref, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dirs), meth_KGlobal_dirs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findDirectChild_helper), meth_KGlobal_findDirectChild_helper, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasLocale), meth_KGlobal_hasLocale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasMainComponent), meth_KGlobal_hasMainComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertCatalog), meth_KGlobal_insertCatalog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locale), meth_KGlobal_locale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mainComponent), meth_KGlobal_mainComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ref), meth_KGlobal_ref, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActiveComponent), meth_KGlobal_setActiveComponent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllowQuit), meth_KGlobal_setAllowQuit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocale), meth_KGlobal_setLocale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_staticQString), meth_KGlobal_staticQString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_umask), meth_KGlobal_umask, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KGlobal[] = {
    {sipName_DoCopyCatalogs, static_cast<int>(KGlobal::DoCopyCatalogs), 88},
    {sipName_DontCopyCatalogs, static_cast<int>(KGlobal::DontCopyCatalogs), 88},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KGlobal = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KGlobal,
        {0}
    },
    {
        sipNameNr_KGlobal,
        {0, 0, 1},
        18, methods_KGlobal,
        2, enummembers_KGlobal,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kcalendarsystem.sip"
#include <kcalendarsystem.h>
#line 5452 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 5456 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5459 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 5462 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5465 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5468 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5471 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5474 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


class sipKCalendarSystem : public KCalendarSystem
{
public:
    sipKCalendarSystem(const KLocale*);
    sipKCalendarSystem(const KSharedConfig::Ptr,const KLocale*);
    virtual ~sipKCalendarSystem();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool dateToJulianDay(int,int,int,int&) const;
    bool julianDayToDate(int,int&,int&,int&) const;
    bool isProleptic() const;
    bool isSolar() const;
    bool isLunisolar() const;
    bool isLunar() const;
    int weekDayOfPray() const;
    int weekStartDay() const;
    QDate readDate(const QString&,KLocale::ReadDateFlags,bool*) const;
    QDate readDate(const QString&,const QString&,bool*) const;
    QDate readDate(const QString&,bool*) const;
    QString formatDate(const QDate&,KLocale::DateFormat) const;
    int dayStringToInteger(const QString&,int&) const;
    int monthStringToInteger(const QString&,int&) const;
    int yearStringToInteger(const QString&,int&) const;
    QString dayString(const QDate&,KCalendarSystem::StringFormat) const;
    QString monthString(const QDate&,KCalendarSystem::StringFormat) const;
    QString yearString(const QDate&,KCalendarSystem::StringFormat) const;
    QString weekDayName(const QDate&,KCalendarSystem::WeekDayNameFormat) const;
    QString weekDayName(int,KCalendarSystem::WeekDayNameFormat) const;
    QString monthName(const QDate&,KCalendarSystem::MonthNameFormat) const;
    QString monthName(int,int,KCalendarSystem::MonthNameFormat) const;
    bool isLeapYear(const QDate&) const;
    bool isLeapYear(int) const;
    int weekNumber(const QDate&,int*) const;
    int dayOfWeek(const QDate&) const;
    int dayOfYear(const QDate&) const;
    int daysInWeek(const QDate&) const;
    int daysInMonth(const QDate&) const;
    int daysInYear(const QDate&) const;
    int weeksInYear(int) const;
    int weeksInYear(const QDate&) const;
    int monthsInYear(const QDate&) const;
    QDate addDays(const QDate&,int) const;
    QDate addMonths(const QDate&,int) const;
    QDate addYears(const QDate&,int) const;
    int day(const QDate&) const;
    int month(const QDate&) const;
    int year(const QDate&) const;
    bool setYMD(QDate&,int,int,int) const;
    bool setDate(QDate&,int,int,int) const;
    bool isValid(const QDate&) const;
    bool isValid(int,int,int) const;
    QDate latestValidDate() const;
    QDate earliestValidDate() const;
    QDate epoch() const;
    QString calendarType() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[47];
};

sipKCalendarSystem::sipKCalendarSystem(const KLocale*a0): KCalendarSystem(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKCalendarSystem::sipKCalendarSystem(const KSharedConfig::Ptr a0,const KLocale*a1): KCalendarSystem(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKCalendarSystem::dateToJulianDay(int a0,int a1,int a2,int& a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int&);

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

bool sipKCalendarSystem::julianDayToDate(int a0,int& a1,int& a2,int& a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_53(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int&,int&,int&);

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

bool sipKCalendarSystem::isProleptic() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

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

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

bool sipKCalendarSystem::isSolar() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

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

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

bool sipKCalendarSystem::isLunisolar() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

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

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

bool sipKCalendarSystem::isLunar() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

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

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

int sipKCalendarSystem::weekDayOfPray() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

int sipKCalendarSystem::weekStartDay() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::weekStartDay();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

QDate sipKCalendarSystem::readDate(const QString& a0,KLocale::ReadDateFlags a1,bool*a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::readDate(a0,a1,a2);

    extern QDate sipVH_kdecore_54(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,KLocale::ReadDateFlags,bool*);

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

QDate sipKCalendarSystem::readDate(const QString& a0,const QString& a1,bool*a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::readDate(a0,a1,a2);

    extern QDate sipVH_kdecore_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,bool*);

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

QDate sipKCalendarSystem::readDate(const QString& a0,bool*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::readDate(a0,a1);

    extern QDate sipVH_kdecore_56(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,bool*);

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

QString sipKCalendarSystem::formatDate(const QDate& a0,KLocale::DateFormat a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::formatDate(a0,a1);

    extern QString sipVH_kdecore_57(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,KLocale::DateFormat);

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

int sipKCalendarSystem::dayStringToInteger(const QString& a0,int& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::dayStringToInteger(a0,a1);

    extern int sipVH_kdecore_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int&);

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

int sipKCalendarSystem::monthStringToInteger(const QString& a0,int& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::monthStringToInteger(a0,a1);

    extern int sipVH_kdecore_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int&);

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

int sipKCalendarSystem::yearStringToInteger(const QString& a0,int& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::yearStringToInteger(a0,a1);

    extern int sipVH_kdecore_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int&);

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

QString sipKCalendarSystem::dayString(const QDate& a0,KCalendarSystem::StringFormat a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::dayString(a0,a1);

    extern QString sipVH_kdecore_59(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,KCalendarSystem::StringFormat);

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

QString sipKCalendarSystem::monthString(const QDate& a0,KCalendarSystem::StringFormat a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::monthString(a0,a1);

    extern QString sipVH_kdecore_59(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,KCalendarSystem::StringFormat);

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

QString sipKCalendarSystem::yearString(const QDate& a0,KCalendarSystem::StringFormat a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::yearString(a0,a1);

    extern QString sipVH_kdecore_59(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,KCalendarSystem::StringFormat);

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

QString sipKCalendarSystem::weekDayName(const QDate& a0,KCalendarSystem::WeekDayNameFormat a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::weekDayName(a0,a1);

    extern QString sipVH_kdecore_60(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,KCalendarSystem::WeekDayNameFormat);

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

QString sipKCalendarSystem::weekDayName(int a0,KCalendarSystem::WeekDayNameFormat a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QString();

    extern QString sipVH_kdecore_61(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,KCalendarSystem::WeekDayNameFormat);

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

QString sipKCalendarSystem::monthName(const QDate& a0,KCalendarSystem::MonthNameFormat a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::monthName(a0,a1);

    extern QString sipVH_kdecore_62(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,KCalendarSystem::MonthNameFormat);

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

QString sipKCalendarSystem::monthName(int a0,int a1,KCalendarSystem::MonthNameFormat a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QString();

    extern QString sipVH_kdecore_63(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,KCalendarSystem::MonthNameFormat);

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

bool sipKCalendarSystem::isLeapYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::isLeapYear(a0);

    extern bool sipVH_kdecore_64(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_64(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKCalendarSystem::isLeapYear(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,sipName_KCalendarSystem,sipName_isLeapYear);

    if (!sipMeth)
        return 0;

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

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

int sipKCalendarSystem::weekNumber(const QDate& a0,int*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::weekNumber(a0,a1);

    extern int sipVH_kdecore_65(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,int*);

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

int sipKCalendarSystem::dayOfWeek(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::dayOfWeek(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::dayOfYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::dayOfYear(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::daysInWeek(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::daysInWeek(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::daysInMonth(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::daysInMonth(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::daysInYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::daysInYear(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::weeksInYear(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::weeksInYear(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_kdecore_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::weeksInYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::weeksInYear(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::monthsInYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::monthsInYear(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QDate sipKCalendarSystem::addDays(const QDate& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::addDays(a0,a1);

    extern QDate sipVH_kdecore_67(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,int);

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

QDate sipKCalendarSystem::addMonths(const QDate& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::addMonths(a0,a1);

    extern QDate sipVH_kdecore_67(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,int);

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

QDate sipKCalendarSystem::addYears(const QDate& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::addYears(a0,a1);

    extern QDate sipVH_kdecore_67(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&,int);

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

int sipKCalendarSystem::day(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::day(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::month(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::month(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKCalendarSystem::year(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::year(a0);

    extern int sipVH_kdecore_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKCalendarSystem::setYMD(QDate& a0,int a1,int a2,int a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::setYMD(a0,a1,a2,a3);

    extern bool sipVH_kdecore_68(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDate&,int,int,int);

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

bool sipKCalendarSystem::setDate(QDate& a0,int a1,int a2,int a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::setDate(a0,a1,a2,a3);

    extern bool sipVH_kdecore_68(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDate&,int,int,int);

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

bool sipKCalendarSystem::isValid(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::isValid(a0);

    extern bool sipVH_kdecore_64(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDate&);

    return sipVH_kdecore_64(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKCalendarSystem::isValid(int a0,int a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[42]),sipPySelf,sipName_KCalendarSystem,sipName_isValid);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_69(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);

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

QDate sipKCalendarSystem::latestValidDate() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::latestValidDate();

    extern QDate sipVH_kdecore_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_70(sipGILState, 0, sipPySelf, sipMeth);
}

QDate sipKCalendarSystem::earliestValidDate() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::earliestValidDate();

    extern QDate sipVH_kdecore_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_70(sipGILState, 0, sipPySelf, sipMeth);
}

QDate sipKCalendarSystem::epoch() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::epoch();

    extern QDate sipVH_kdecore_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_kdecore_70(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipKCalendarSystem::calendarType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[46]),sipPySelf,sipName_KCalendarSystem,sipName_calendarType);

    if (!sipMeth)
        return QString();

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

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


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

    {
        const QString& a0def = QLatin1String("gregorian");
        const QString* a0 = &a0def;
        int a0State = 0;
        const KLocale* a1 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1J8", sipType_QString,&a0, &a0State, sipType_KLocale, &a1))
        {
            KCalendarSystem*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCalendarSystem::create(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const QString* a0;
        int a0State = 0;
        KSharedConfig::Ptr* a1;
        int a1State = 0;
        const KLocale* a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J8", sipType_QString,&a0, &a0State, sipType_KSharedPtr_0100KSharedConfig,&a1, &a1State, sipType_KLocale, &a2))
        {
            KCalendarSystem*sipRes;

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

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

    {
        KLocale::CalendarSystem a0;
        const KLocale* a1 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E|J8", sipType_KLocale_CalendarSystem, &a0, sipType_KLocale, &a1))
        {
            KCalendarSystem*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCalendarSystem::create(a0,a1);
            Py_END_ALLOW_THREADS

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

    {
        KLocale::CalendarSystem a0;
        KSharedConfig::Ptr* a1;
        int a1State = 0;
        const KLocale* a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "EJ1|J8", sipType_KLocale_CalendarSystem, &a0, sipType_KSharedPtr_0100KSharedConfig,&a1, &a1State, sipType_KLocale, &a2))
        {
            KCalendarSystem*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCalendarSystem::create(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_KSharedPtr_0100KSharedConfig,a1State);

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KCalendarSystem::calendarSystems());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    {
        KLocale::CalendarSystem a0;
        const KLocale* a1 = KGlobal::locale();

        if (sipParseArgs(&sipParseErr, sipArgs, "E|J8", sipType_KLocale_CalendarSystem, &a0, sipType_KLocale, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCalendarSystem::calendarLabel(a0,a1));
            Py_END_ALLOW_THREADS

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

    {
        const KCalendarSystem *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_calendarType);
                return NULL;
            }

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

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

    {
        KLocale::CalendarSystem a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KCalendarSystem::calendarType(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::epoch() : sipCpp->epoch()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::earliestValidDate() : sipCpp->earliestValidDate()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::latestValidDate() : sipCpp->latestValidDate()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        int a2;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biii", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, &a1, &a2))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isValid);
                return NULL;
            }

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::isValid(*a0) : sipCpp->isValid(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        const KCalendarSystem *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iii", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QString,&a0, &a0State, &a1, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid(*a0,a1,a2,a3);
            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_KCalendarSystem, sipName_isValid, NULL);

    return NULL;
}


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

    {
        QDate* a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iii", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, &a1, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::setDate(*a0,a1,a2,a3) : sipCpp->setDate(*a0,a1,a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QDate* a0;
        int a0State = 0;
        int a1;
        int a2;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1ii", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setDate(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QDate* a0;
        int a0State = 0;
        QString* a1;
        int a1State = 0;
        int a2;
        int a3;
        int a4;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1iii", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_QString,&a1, &a1State, &a2, &a3, &a4))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setDate(*a0,*a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDate,a0State);
            sipReleaseType(a1,sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QDate* a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iii", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, &a1, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::setYMD(*a0,a1,a2,a3) : sipCpp->setYMD(*a0,a1,a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::year(*a0) : sipCpp->year(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::month(*a0) : sipCpp->month(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::day(*a0) : sipCpp->day(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        int a1;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, &a1))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::addYears(*a0,a1) : sipCpp->addYears(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        int a1;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, &a1))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::addMonths(*a0,a1) : sipCpp->addMonths(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        int a1;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, &a1))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::addDays(*a0,a1) : sipCpp->addDays(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::monthsInYear(*a0) : sipCpp->monthsInYear(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        int a0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::weeksInYear(*a0) : sipCpp->weeksInYear(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        int a0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::weeksInYear(a0) : sipCpp->weeksInYear(a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        int a0;
        KLocale::WeekNumberSystem a1;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiE", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, sipType_KLocale_WeekNumberSystem, &a1))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::daysInYear(*a0) : sipCpp->daysInYear(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        int a0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::daysInMonth(*a0) : sipCpp->daysInMonth(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        const KCalendarSystem *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::daysInWeek(*a0) : sipCpp->daysInWeek(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::dayOfYear(*a0) : sipCpp->dayOfYear(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::dayOfWeek(*a0) : sipCpp->dayOfWeek(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        int a1 = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::weekNumber(*a0,&a1) : sipCpp->weekNumber(*a0,&a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipBuildResult(0,"(ii)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const KCalendarSystem *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isLeapYear);
                return NULL;
            }

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::isLeapYear(*a0) : sipCpp->isLeapYear(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        KCalendarSystem::MonthNameFormat a2 = KCalendarSystem::LongName;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, &a1, sipType_KCalendarSystem_MonthNameFormat, &a2))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_monthName);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->monthName(a0,a1,a2));
            Py_END_ALLOW_THREADS

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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::MonthNameFormat a1 = KCalendarSystem::LongName;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_MonthNameFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::monthName(*a0,a1) : sipCpp->monthName(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        int a0;
        KCalendarSystem::WeekDayNameFormat a1 = KCalendarSystem::LongDayName;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, sipType_KCalendarSystem_WeekDayNameFormat, &a1))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_weekDayName);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->weekDayName(a0,a1));
            Py_END_ALLOW_THREADS

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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::WeekDayNameFormat a1 = KCalendarSystem::LongDayName;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_WeekDayNameFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::weekDayName(*a0,a1) : sipCpp->weekDayName(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::yearString(*a0,a1) : sipCpp->yearString(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::monthString(*a0,a1) : sipCpp->monthString(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::dayString(*a0,a1) : sipCpp->dayString(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::yearStringToInteger(*a0,a1) : sipCpp->yearStringToInteger(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipBuildResult(0,"(ii)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::monthStringToInteger(*a0,a1) : sipCpp->monthStringToInteger(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipBuildResult(0,"(ii)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::dayStringToInteger(*a0,a1) : sipCpp->dayStringToInteger(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipBuildResult(0,"(ii)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KLocale::DateFormat a1 = KLocale::LongDate;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KLocale_DateFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->KCalendarSystem::formatDate(*a0,a1) : sipCpp->formatDate(*a0,a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

    {
        const QDate* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        KLocale::DateTimeFormatStandard a2 = KLocale::KdeFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_QString,&a1, &a1State, sipType_KLocale_DateTimeFormatStandard, &a2))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatDate(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        const QDate* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        KLocale::DigitSet a2;
        KLocale::DateTimeFormatStandard a3 = KLocale::KdeFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1E|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_QString,&a1, &a1State, sipType_KLocale_DigitSet, &a2, sipType_KLocale_DateTimeFormatStandard, &a3))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatDate(*a0,*a1,a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        const QDate* a0;
        int a0State = 0;
        KLocale::DateTimeComponent a1;
        KLocale::DateTimeComponentFormat a2 = KLocale::DefaultComponentFormat;
        KLocale::WeekNumberSystem a3 = KLocale::DefaultWeekNumber;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E|EE", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KLocale_DateTimeComponent, &a1, sipType_KLocale_DateTimeComponentFormat, &a2, sipType_KLocale_WeekNumberSystem, &a3))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->formatDate(*a0,a1,a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        bool a1;
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::readDate(*a0,&a1) : sipCpp->readDate(*a0,&a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDate,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::readDate(*a0,*a1,&a2) : sipCpp->readDate(*a0,*a1,&a2)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDate,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        KLocale::ReadDateFlags a1;
        bool a2;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QString,&a0, &a0State, sipType_KLocale_ReadDateFlags, &a1))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate((sipSelfWasArg ? sipCpp->KCalendarSystem::readDate(*a0,a1,&a2) : sipCpp->readDate(*a0,a1,&a2)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDate,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        bool a2;
        KLocale::DateTimeFormatStandard a3;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_KLocale_DateTimeFormatStandard, &a3))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->readDate(*a0,*a1,&a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QDate,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KCalendarSystem::weekStartDay() : sipCpp->weekStartDay());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_weekDayOfPray);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->weekDayOfPray();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isLunar);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLunar();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isLunisolar);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLunisolar();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isSolar);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSolar();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_isProleptic);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isProleptic();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const KCalendarSystem *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_julianDayToDate);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->julianDayToDate(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(biii)",sipRes,a1,a2,a3);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "piii", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, &a1, &a2))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_dateToJulianDay);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dateToJulianDay(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(bi)",sipRes,a3);
        }
    }

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KCalendarSystem, &sipCpp))
        {
            const KLocale*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->locale();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KLocale *>(sipRes),sipType_KLocale,NULL);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaxMonthsInYear(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_KCalendarSystem, sipName_setMaxMonthsInYear, NULL);

    return NULL;
}


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

    {
        int a0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaxDaysInWeek(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_KCalendarSystem, sipName_setMaxDaysInWeek, NULL);

    return NULL;
}


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

    {
        bool a0;
        KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHasYear0(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_KCalendarSystem, sipName_setHasYear0, NULL);

    return NULL;
}


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

    {
        int a0;
        int a1;
        int a2;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biii", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, &a1, &a2))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QDate* a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1iii", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, &a1, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setDateIsoWeek(*a0,a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDate,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->dayOfYearString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->dayOfWeekString(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->weekNumberString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->monthsInYearString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->weeksInYearString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->daysInYearString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::LongFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->daysInMonthString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->daysInWeekString(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        int a1;
        int a2;
        int a3;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->getDate(*a0,&a1,&a2,&a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipBuildResult(0,"(iii)",a1,a2,a3);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::ShortFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->eraName(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::ShortFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->eraYear(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->yearInEra(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const QDate* a1;
        int a1State = 0;
        int a2;
        int a3;
        int a4;
        int a5;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_QDate, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->dateDifference(*a0,*a1,&a2,&a3,&a4,&a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
            sipReleaseType(const_cast<QDate *>(a1),sipType_QDate,a1State);

            return sipBuildResult(0,"(iiii)",a2,a3,a4,a5);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const QDate* a1;
        int a1State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_QDate, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->yearsDifference(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
            sipReleaseType(const_cast<QDate *>(a1),sipType_QDate,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const QDate* a1;
        int a1State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_QDate, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->monthsDifference(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
            sipReleaseType(const_cast<QDate *>(a1),sipType_QDate,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        const QDate* a1;
        int a1State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_QDate, &a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->daysDifference(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
            sipReleaseType(const_cast<QDate *>(a1),sipType_QDate,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QDate* a0;
        int a0State = 0;
        KCalendarSystem::StringFormat a1 = KCalendarSystem::ShortFormat;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KCalendarSystem_StringFormat, &a1))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->yearInEraString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KLocale::CalendarSystem>(KCalendarSystem::calendarSystemsList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCalendarSystem, &sipCpp))
        {
            KLocale::CalendarSystem sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->calendarSystem();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KLocale_CalendarSystem);
        }
    }

    {
        const QString* a0;
        int a0State = 0;

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

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

            return sipConvertFromEnum(sipRes,sipType_KLocale_CalendarSystem);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->firstDayOfYear(a0));
            Py_END_ALLOW_THREADS

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

    {
        const QDate& a0def = QDate::currentDate();
        const QDate* a0 = &a0def;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->firstDayOfYear(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        int a0;
        const KCalendarSystem *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->lastDayOfYear(a0));
            Py_END_ALLOW_THREADS

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

    {
        const QDate& a0def = QDate::currentDate();
        const QDate* a0 = &a0def;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->lastDayOfYear(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, &a1))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->firstDayOfMonth(a0,a1));
            Py_END_ALLOW_THREADS

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

    {
        const QDate& a0def = QDate::currentDate();
        const QDate* a0 = &a0def;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->firstDayOfMonth(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCalendarSystem, sipName_firstDayOfMonth, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCalendarSystem_lastDayOfMonth(PyObject *, PyObject *);}
static PyObject *meth_KCalendarSystem_lastDayOfMonth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, &a1))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->lastDayOfMonth(a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDate,NULL);
        }
    }

    {
        const QDate& a0def = QDate::currentDate();
        const QDate* a0 = &a0def;
        int a0State = 0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            QDate*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->lastDayOfMonth(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipConvertFromNewType(sipRes,sipType_QDate,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCalendarSystem, sipName_lastDayOfMonth, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCalendarSystem_shortYearWindowStartYear(PyObject *, PyObject *);}
static PyObject *meth_KCalendarSystem_shortYearWindowStartYear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCalendarSystem, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->shortYearWindowStartYear();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCalendarSystem, sipName_shortYearWindowStartYear, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCalendarSystem_applyShortYearWindow(PyObject *, PyObject *);}
static PyObject *meth_KCalendarSystem_applyShortYearWindow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->applyShortYearWindow(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCalendarSystem, sipName_applyShortYearWindow, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCalendarSystem_calendarSystemForCalendarType(PyObject *, PyObject *);}
static PyObject *meth_KCalendarSystem_calendarSystemForCalendarType(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KLocale::CalendarSystem sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KCalendarSystem::calendarSystemForCalendarType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(sipRes,sipType_KLocale_CalendarSystem);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCalendarSystem, sipName_calendarSystemForCalendarType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KCalendarSystem_week(PyObject *, PyObject *);}
static PyObject *meth_KCalendarSystem_week(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDate* a0;
        int a0State = 0;
        int a1;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->week(*a0,&a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipBuildResult(0,"(ii)",sipRes,a1);
        }
    }

    {
        const QDate* a0;
        int a0State = 0;
        KLocale::WeekNumberSystem a1;
        int a2;
        const KCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_KCalendarSystem, &sipCpp, sipType_QDate, &a0, &a0State, sipType_KLocale_WeekNumberSystem, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->week(*a0,a1,&a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipBuildResult(0,"(ii)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KCalendarSystem, sipName_week, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KCalendarSystem(void *, const sipTypeDef *);}
static void *cast_KCalendarSystem(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KCalendarSystem)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KCalendarSystem(void *, int);}
static void release_KCalendarSystem(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCalendarSystem *>(sipCppV);
    else
        delete reinterpret_cast<KCalendarSystem *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KCalendarSystem(sipSimpleWrapper *);}
static void dealloc_KCalendarSystem(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKCalendarSystem *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KCalendarSystem(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KCalendarSystem(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KCalendarSystem(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKCalendarSystem *sipCpp = 0;

    {
        const KLocale* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J8", sipType_KLocale, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCalendarSystem(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KSharedConfig::Ptr* a0;
        int a0State = 0;
        const KLocale* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J8", sipType_KSharedPtr_0100KSharedConfig,&a0, &a0State, sipType_KLocale, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKCalendarSystem(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KSharedConfig::Ptr *>(a0),sipType_KSharedPtr_0100KSharedConfig,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KCalendarSystem[] = {
    {SIP_MLNAME_CAST(sipName_addDays), meth_KCalendarSystem_addDays, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMonths), meth_KCalendarSystem_addMonths, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addYears), meth_KCalendarSystem_addYears, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_applyShortYearWindow), meth_KCalendarSystem_applyShortYearWindow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarLabel), meth_KCalendarSystem_calendarLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarSystem), meth_KCalendarSystem_calendarSystem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarSystemForCalendarType), meth_KCalendarSystem_calendarSystemForCalendarType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarSystems), meth_KCalendarSystem_calendarSystems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarSystemsList), meth_KCalendarSystem_calendarSystemsList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_calendarType), meth_KCalendarSystem_calendarType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KCalendarSystem_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateDifference), meth_KCalendarSystem_dateDifference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dateToJulianDay), meth_KCalendarSystem_dateToJulianDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_day), meth_KCalendarSystem_day, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayOfWeek), meth_KCalendarSystem_dayOfWeek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayOfWeekString), meth_KCalendarSystem_dayOfWeekString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayOfYear), meth_KCalendarSystem_dayOfYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayOfYearString), meth_KCalendarSystem_dayOfYearString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayString), meth_KCalendarSystem_dayString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dayStringToInteger), meth_KCalendarSystem_dayStringToInteger, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysDifference), meth_KCalendarSystem_daysDifference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInMonth), meth_KCalendarSystem_daysInMonth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInMonthString), meth_KCalendarSystem_daysInMonthString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInWeek), meth_KCalendarSystem_daysInWeek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInWeekString), meth_KCalendarSystem_daysInWeekString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInYear), meth_KCalendarSystem_daysInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_daysInYearString), meth_KCalendarSystem_daysInYearString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_earliestValidDate), meth_KCalendarSystem_earliestValidDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_epoch), meth_KCalendarSystem_epoch, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eraName), meth_KCalendarSystem_eraName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eraYear), meth_KCalendarSystem_eraYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstDayOfMonth), meth_KCalendarSystem_firstDayOfMonth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstDayOfYear), meth_KCalendarSystem_firstDayOfYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_formatDate), meth_KCalendarSystem_formatDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getDate), meth_KCalendarSystem_getDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLeapYear), meth_KCalendarSystem_isLeapYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLunar), meth_KCalendarSystem_isLunar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLunisolar), meth_KCalendarSystem_isLunisolar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isProleptic), meth_KCalendarSystem_isProleptic, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSolar), meth_KCalendarSystem_isSolar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KCalendarSystem_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValidIsoWeekDate), meth_KCalendarSystem_isValidIsoWeekDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_julianDayToDate), meth_KCalendarSystem_julianDayToDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastDayOfMonth), meth_KCalendarSystem_lastDayOfMonth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastDayOfYear), meth_KCalendarSystem_lastDayOfYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_latestValidDate), meth_KCalendarSystem_latestValidDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locale), meth_KCalendarSystem_locale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_month), meth_KCalendarSystem_month, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthName), meth_KCalendarSystem_monthName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthString), meth_KCalendarSystem_monthString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthStringToInteger), meth_KCalendarSystem_monthStringToInteger, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthsDifference), meth_KCalendarSystem_monthsDifference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthsInYear), meth_KCalendarSystem_monthsInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_monthsInYearString), meth_KCalendarSystem_monthsInYearString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readDate), meth_KCalendarSystem_readDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDate), meth_KCalendarSystem_setDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDateIsoWeek), meth_KCalendarSystem_setDateIsoWeek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHasYear0), meth_KCalendarSystem_setHasYear0, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxDaysInWeek), meth_KCalendarSystem_setMaxDaysInWeek, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxMonthsInYear), meth_KCalendarSystem_setMaxMonthsInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setYMD), meth_KCalendarSystem_setYMD, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shortYearWindowStartYear), meth_KCalendarSystem_shortYearWindowStartYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_week), meth_KCalendarSystem_week, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekDayName), meth_KCalendarSystem_weekDayName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekDayOfPray), meth_KCalendarSystem_weekDayOfPray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekNumber), meth_KCalendarSystem_weekNumber, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekNumberString), meth_KCalendarSystem_weekNumberString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weekStartDay), meth_KCalendarSystem_weekStartDay, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weeksInYear), meth_KCalendarSystem_weeksInYear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_weeksInYearString), meth_KCalendarSystem_weeksInYearString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_year), meth_KCalendarSystem_year, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearInEra), meth_KCalendarSystem_yearInEra, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearInEraString), meth_KCalendarSystem_yearInEraString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearString), meth_KCalendarSystem_yearString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearStringToInteger), meth_KCalendarSystem_yearStringToInteger, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_yearsDifference), meth_KCalendarSystem_yearsDifference, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KCalendarSystem[] = {
    {sipName_LongDayName, static_cast<int>(KCalendarSystem::LongDayName), 22},
    {sipName_LongFormat, static_cast<int>(KCalendarSystem::LongFormat), 21},
    {sipName_LongName, static_cast<int>(KCalendarSystem::LongName), 20},
    {sipName_LongNamePossessive, static_cast<int>(KCalendarSystem::LongNamePossessive), 20},
    {sipName_NarrowDayName, static_cast<int>(KCalendarSystem::NarrowDayName), 22},
    {sipName_NarrowName, static_cast<int>(KCalendarSystem::NarrowName), 20},
    {sipName_ShortDayName, static_cast<int>(KCalendarSystem::ShortDayName), 22},
    {sipName_ShortFormat, static_cast<int>(KCalendarSystem::ShortFormat), 21},
    {sipName_ShortName, static_cast<int>(KCalendarSystem::ShortName), 20},
    {sipName_ShortNamePossessive, static_cast<int>(KCalendarSystem::ShortNamePossessive), 20},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KCalendarSystem = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KCalendarSystem,
        {0}
    },
    {
        sipNameNr_KCalendarSystem,
        {0, 0, 1},
        76, methods_KCalendarSystem,
        10, enummembers_KCalendarSystem,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KCalendarSystem,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCalendarSystem,
    0,
    0,
    0,
    release_KCalendarSystem,
    cast_KCalendarSystem,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 9459 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 9463 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static int slot_KAutostart_Conditions___bool__(PyObject *);}
static int slot_KAutostart_Conditions___bool__(PyObject *sipSelf)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KAutostart::Conditions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 9485 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KAutostart_Conditions___ne__(PyObject *,PyObject *);}
static PyObject *slot_KAutostart_Conditions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KAutostart::Conditions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KAutostart_Conditions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KAutostart::Conditions::Int() != a0->operator KAutostart::Conditions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 9519 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
            sipReleaseType(const_cast<KAutostart::Conditions *>(a0),sipType_KAutostart_Conditions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,ne_slot,sipType_KAutostart_Conditions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___eq__(PyObject *,PyObject *);}
static PyObject *slot_KAutostart_Conditions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KAutostart::Conditions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KAutostart_Conditions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KAutostart::Conditions::Int() == a0->operator KAutostart::Conditions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 9559 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
            sipReleaseType(const_cast<KAutostart::Conditions *>(a0),sipType_KAutostart_Conditions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,eq_slot,sipType_KAutostart_Conditions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___invert__(PyObject *);}
static PyObject *slot_KAutostart_Conditions___invert__(PyObject *sipSelf)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;


    {
        {
            KAutostart::Conditions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAutostart::Conditions(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KAutostart_Conditions___and__(PyObject *,PyObject *);}
static PyObject *slot_KAutostart_Conditions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KAutostart::Conditions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KAutostart_Conditions, &a0, &a0State, &a1))
        {
            KAutostart::Conditions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAutostart::Conditions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___xor__(PyObject *,PyObject *);}
static PyObject *slot_KAutostart_Conditions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KAutostart::Conditions* a0;
        int a0State = 0;
        KAutostart::Conditions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KAutostart_Conditions, &a0, &a0State, sipType_KAutostart_Conditions, &a1, &a1State))
        {
            KAutostart::Conditions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAutostart::Conditions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);
            sipReleaseType(a1,sipType_KAutostart_Conditions,a1State);

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    {
        KAutostart::Conditions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KAutostart_Conditions, &a0, &a0State, &a1))
        {
            KAutostart::Conditions*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KAutostart::Conditions(*a0 ^ a1);
#line 9668 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___or__(PyObject *,PyObject *);}
static PyObject *slot_KAutostart_Conditions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KAutostart::Conditions* a0;
        int a0State = 0;
        KAutostart::Conditions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KAutostart_Conditions, &a0, &a0State, sipType_KAutostart_Conditions, &a1, &a1State))
        {
            KAutostart::Conditions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAutostart::Conditions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);
            sipReleaseType(a1,sipType_KAutostart_Conditions,a1State);

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    {
        KAutostart::Conditions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KAutostart_Conditions, &a0, &a0State, &a1))
        {
            KAutostart::Conditions*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new KAutostart::Conditions(*a0 | a1);
#line 9720 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
            sipReleaseType(a0,sipType_KAutostart_Conditions,a0State);

            return sipConvertFromNewType(sipRes,sipType_KAutostart_Conditions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kdecore,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KAutostart_Conditions___int__(PyObject *);}
static PyObject *slot_KAutostart_Conditions___int__(PyObject *sipSelf)
{
    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    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_KAutostart_Conditions___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KAutostart_Conditions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KAutostart_Conditions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KAutostart::Conditions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KAutostart_Conditions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KAutostart::Conditions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KAutostart_Conditions,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_KAutostart_Conditions___ior__(PyObject *,PyObject *);}
static PyObject *slot_KAutostart_Conditions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KAutostart_Conditions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KAutostart::Conditions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KAutostart_Conditions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KAutostart::Conditions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KAutostart_Conditions,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_KAutostart_Conditions___iand__(PyObject *,PyObject *);}
static PyObject *slot_KAutostart_Conditions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KAutostart_Conditions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KAutostart::Conditions *sipCpp = reinterpret_cast<KAutostart::Conditions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAutostart_Conditions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KAutostart::Conditions::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_KAutostart_Conditions(void *, const sipTypeDef *);}
static void *cast_KAutostart_Conditions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KAutostart_Conditions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAutostart_Conditions(void *, int);}
static void release_KAutostart_Conditions(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KAutostart::Conditions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KAutostart_Conditions(void *, SIP_SSIZE_T, const void *);}
static void assign_KAutostart_Conditions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KAutostart::Conditions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KAutostart::Conditions *>(sipSrc);
}


extern "C" {static void *array_KAutostart_Conditions(SIP_SSIZE_T);}
static void *array_KAutostart_Conditions(SIP_SSIZE_T sipNrElem)
{
    return new KAutostart::Conditions[sipNrElem];
}


extern "C" {static void *copy_KAutostart_Conditions(const void *, SIP_SSIZE_T);}
static void *copy_KAutostart_Conditions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KAutostart::Conditions(reinterpret_cast<const KAutostart::Conditions *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KAutostart_Conditions(sipSimpleWrapper *);}
static void dealloc_KAutostart_Conditions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAutostart_Conditions(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KAutostart_Conditions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAutostart_Conditions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KAutostart::Conditions *sipCpp = 0;

    {
        const KAutostart::Conditions* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KAutostart_Conditions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutostart::Conditions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KAutostart::Conditions *>(a0),sipType_KAutostart_Conditions,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutostart::Conditions(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutostart::Conditions();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KAutostart_Conditions(PyObject *, void **, int *, PyObject *);}
static int convertTo_KAutostart_Conditions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KAutostart::Conditions **sipCppPtr = reinterpret_cast<KAutostart::Conditions **>(sipCppPtrV);

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KAutostart::Conditions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KAutostart_Condition)) ||
            sipCanConvertToType(sipPy, sipType_KAutostart_Conditions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KAutostart_Condition)))
{
    *sipCppPtr = new KAutostart::Conditions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KAutostart::Conditions *>(sipConvertToType(sipPy, sipType_KAutostart_Conditions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 10015 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KAutostart_Conditions[] = {
    {(void *)slot_KAutostart_Conditions___bool__, bool_slot},
    {(void *)slot_KAutostart_Conditions___ne__, ne_slot},
    {(void *)slot_KAutostart_Conditions___eq__, eq_slot},
    {(void *)slot_KAutostart_Conditions___invert__, invert_slot},
    {(void *)slot_KAutostart_Conditions___and__, and_slot},
    {(void *)slot_KAutostart_Conditions___xor__, xor_slot},
    {(void *)slot_KAutostart_Conditions___or__, or_slot},
    {(void *)slot_KAutostart_Conditions___int__, int_slot},
    {(void *)slot_KAutostart_Conditions___ixor__, ixor_slot},
    {(void *)slot_KAutostart_Conditions___ior__, ior_slot},
    {(void *)slot_KAutostart_Conditions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAutostart_Conditions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAutostart__Conditions,
        {0}
    },
    {
        sipNameNr_Conditions,
        {15, 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_KAutostart_Conditions,
    init_type_KAutostart_Conditions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAutostart_Conditions,
    assign_KAutostart_Conditions,
    array_KAutostart_Conditions,
    copy_KAutostart_Conditions,
    release_KAutostart_Conditions,
    cast_KAutostart_Conditions,
    convertTo_KAutostart_Conditions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 10091 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10095 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 10098 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10101 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 10104 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10107 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10110 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10113 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10116 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10119 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10122 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10125 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10128 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 10131 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10134 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10137 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


class sipKAutostart : public KAutostart
{
public:
    sipKAutostart(const QString&,QObject*);
    virtual ~sipKAutostart();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKAutostart(const sipKAutostart &);
    sipKAutostart &operator = (const sipKAutostart &);

    char sipPyMethods[7];
};

sipKAutostart::sipKAutostart(const QString& a0,QObject*a1): KAutostart(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAutostart::~sipKAutostart()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKAutostart::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KAutostart);
}

int sipKAutostart::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KAutostart::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KAutostart,_c,_id,_a);

    return _id;
}

void *sipKAutostart::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KAutostart, _clname)) ? this : KAutostart::qt_metacast(_clname);
}

void sipKAutostart::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KAutostart::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutostart::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KAutostart::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutostart::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KAutostart::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutostart::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KAutostart::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutostart::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KAutostart::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAutostart::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KAutostart::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKAutostart::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KAutostart::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KAutostart_setAutostarts(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setAutostarts(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KAutostart, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutostarts(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_KAutostart, sipName_setAutostarts, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_autostarts(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_autostarts(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        KAutostart::Conditions a1def = KAutostart::NoConditions;
        KAutostart::Conditions* a1 = &a1def;
        int a1State = 0;
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1J1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State, sipType_KAutostart_Conditions, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autostarts(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KAutostart_Conditions,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_autostarts, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_command(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_command(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutostart, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->command());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_command, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setCommand(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setCommand(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCommand(*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_KAutostart, sipName_setCommand, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_visibleName(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_visibleName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutostart, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->visibleName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_visibleName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setVisibleName(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setVisibleName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVisibleName(*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_KAutostart, sipName_setVisibleName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_isServiceRegistered(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_isServiceRegistered(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAutostart::isServiceRegistered(*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_KAutostart, sipName_isServiceRegistered, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_commandToCheck(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_commandToCheck(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutostart, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->commandToCheck());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_commandToCheck, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setCommandToCheck(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setCommandToCheck(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCommandToCheck(*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_KAutostart, sipName_setCommandToCheck, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_startPhase(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_startPhase(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutostart, &sipCpp))
        {
            KAutostart::StartPhase sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->startPhase();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAutostart_StartPhase);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_startPhase, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setStartPhase(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setStartPhase(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KAutostart::StartPhase a0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KAutostart, &sipCpp, sipType_KAutostart_StartPhase, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStartPhase(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_KAutostart, sipName_setStartPhase, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_allowedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_allowedEnvironments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutostart, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->allowedEnvironments());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_allowedEnvironments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setAllowedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setAllowedEnvironments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAllowedEnvironments(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_setAllowedEnvironments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_addToAllowedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_addToAllowedEnvironments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addToAllowedEnvironments(*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_KAutostart, sipName_addToAllowedEnvironments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_removeFromAllowedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_removeFromAllowedEnvironments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeFromAllowedEnvironments(*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_KAutostart, sipName_removeFromAllowedEnvironments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_excludedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_excludedEnvironments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutostart, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->excludedEnvironments());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_excludedEnvironments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_setExcludedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_setExcludedEnvironments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExcludedEnvironments(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_setExcludedEnvironments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_addToExcludedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_addToExcludedEnvironments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addToExcludedEnvironments(*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_KAutostart, sipName_addToExcludedEnvironments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_removeFromExcludedEnvironments(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_removeFromExcludedEnvironments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeFromExcludedEnvironments(*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_KAutostart, sipName_removeFromExcludedEnvironments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_startAfter(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_startAfter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutostart, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->startAfter());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutostart, sipName_startAfter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutostart_checkAllowedEnvironment(PyObject *, PyObject *);}
static PyObject *meth_KAutostart_checkAllowedEnvironment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const KAutostart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutostart, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->checkAllowedEnvironment(*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_KAutostart, sipName_checkAllowedEnvironment, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAutostart(void *, const sipTypeDef *);}
static void *cast_KAutostart(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KAutostart)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KAutostart *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAutostart(void *, int);}
static void release_KAutostart(void *sipCppV,int)
{
    KAutostart *sipCpp = reinterpret_cast<KAutostart *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAutostart(sipSimpleWrapper *);}
static void dealloc_KAutostart(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKAutostart *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KAutostart(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KAutostart(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAutostart(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKAutostart *sipCpp = 0;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1JH", sipType_QString,&a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAutostart(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KAutostart[] = {{141, 0, 1}};


static PyMethodDef methods_KAutostart[] = {
    {SIP_MLNAME_CAST(sipName_addToAllowedEnvironments), meth_KAutostart_addToAllowedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addToExcludedEnvironments), meth_KAutostart_addToExcludedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allowedEnvironments), meth_KAutostart_allowedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_autostarts), meth_KAutostart_autostarts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_checkAllowedEnvironment), meth_KAutostart_checkAllowedEnvironment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_command), meth_KAutostart_command, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commandToCheck), meth_KAutostart_commandToCheck, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_excludedEnvironments), meth_KAutostart_excludedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isServiceRegistered), meth_KAutostart_isServiceRegistered, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeFromAllowedEnvironments), meth_KAutostart_removeFromAllowedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeFromExcludedEnvironments), meth_KAutostart_removeFromExcludedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllowedEnvironments), meth_KAutostart_setAllowedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutostarts), meth_KAutostart_setAutostarts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCommand), meth_KAutostart_setCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCommandToCheck), meth_KAutostart_setCommandToCheck, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setExcludedEnvironments), meth_KAutostart_setExcludedEnvironments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStartPhase), meth_KAutostart_setStartPhase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVisibleName), meth_KAutostart_setVisibleName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startAfter), meth_KAutostart_startAfter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startPhase), meth_KAutostart_startPhase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_visibleName), meth_KAutostart_visibleName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAutostart[] = {
    {sipName_Applications, static_cast<int>(KAutostart::Applications), 18},
    {sipName_BaseDesktop, static_cast<int>(KAutostart::BaseDesktop), 18},
    {sipName_CheckAll, static_cast<int>(KAutostart::CheckAll), 16},
    {sipName_CheckCommand, static_cast<int>(KAutostart::CheckCommand), 16},
    {sipName_CheckCondition, static_cast<int>(KAutostart::CheckCondition), 16},
    {sipName_DesktopServices, static_cast<int>(KAutostart::DesktopServices), 18},
    {sipName_NoConditions, static_cast<int>(KAutostart::NoConditions), 16},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAutostart = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutostart,
        {0}
    },
    {
        sipNameNr_KAutostart,
        {0, 0, 1},
        21, methods_KAutostart,
        7, enummembers_KAutostart,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAutostart,
    0,
    init_type_KAutostart,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAutostart,
    0,
    0,
    0,
    release_KAutostart,
    cast_KAutostart,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KAutostart::staticMetaObject,
    0,
    0
};

#line 60 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 11090 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 11094 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11097 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11100 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11103 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 11106 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 84 "/usr/share/python-sip/PyQt4/QtCore/qfile.sip"
#include <qfile.h>
#line 11109 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtCore/qabstractfileengine.sip"
#include <qabstractfileengine.h>
#line 11112 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 84 "/usr/share/python-sip/PyQt4/QtCore/qfile.sip"
#include <qfile.h>
#line 11115 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11118 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11121 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11124 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11130 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11133 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11136 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11139 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11142 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11145 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11148 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


class sipKAutoSaveFile : public KAutoSaveFile
{
public:
    sipKAutoSaveFile(const KUrl&,QObject*);
    sipKAutoSaveFile(QObject*);
    virtual ~sipKAutoSaveFile();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;
    bool reset();
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    QAbstractFileEngine* fileEngine() const;
    bool atEnd() const;
    bool seek(qint64);
    qint64 pos() const;
    qint64 size() const;
    void close();
    bool isSequential() const;
    bool open(QIODevice::OpenMode);
    void releaseLock();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKAutoSaveFile(const sipKAutoSaveFile &);
    sipKAutoSaveFile &operator = (const sipKAutoSaveFile &);

    char sipPyMethods[25];
};

sipKAutoSaveFile::sipKAutoSaveFile(const KUrl& a0,QObject*a1): KAutoSaveFile(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAutoSaveFile::sipKAutoSaveFile(QObject*a0): KAutoSaveFile(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAutoSaveFile::~sipKAutoSaveFile()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKAutoSaveFile::metaObject() const
{
    return sip_kdecore_qt_metaobject(sipPySelf,sipType_KAutoSaveFile);
}

int sipKAutoSaveFile::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KAutoSaveFile::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kdecore_qt_metacall(sipPySelf,sipType_KAutoSaveFile,_c,_id,_a);

    return _id;
}

void *sipKAutoSaveFile::qt_metacast(const char *_clname)
{
    return (sip_kdecore_qt_metacast(sipPySelf, sipType_KAutoSaveFile, _clname)) ? this : KAutoSaveFile::qt_metacast(_clname);
}

void sipKAutoSaveFile::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KAutoSaveFile::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutoSaveFile::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KAutoSaveFile::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kdecore_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutoSaveFile::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KAutoSaveFile::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kdecore_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutoSaveFile::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KAutoSaveFile::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kdecore_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutoSaveFile::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KAutoSaveFile::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kdecore_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAutoSaveFile::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KAutoSaveFile::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kdecore_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKAutoSaveFile::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KAutoSaveFile::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kdecore_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAutoSaveFile::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return KAutoSaveFile::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAutoSaveFile::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return KAutoSaveFile::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_kdecore_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKAutoSaveFile::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return KAutoSaveFile::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKAutoSaveFile::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return KAutoSaveFile::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKAutoSaveFile::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return KAutoSaveFile::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKAutoSaveFile::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return KAutoSaveFile::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKAutoSaveFile::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KAutoSaveFile::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_kdecore_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKAutoSaveFile::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return KAutoSaveFile::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipKAutoSaveFile::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return KAutoSaveFile::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_kdecore_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QAbstractFileEngine* sipKAutoSaveFile::fileEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_fileEngine);

    if (!sipMeth)
        return KAutoSaveFile::fileEngine();

    typedef QAbstractFileEngine* (*sipVH_QtCore_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_16)(sipModuleAPI_kdecore_QtCore->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKAutoSaveFile::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return KAutoSaveFile::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKAutoSaveFile::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return KAutoSaveFile::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kdecore_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipKAutoSaveFile::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return KAutoSaveFile::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipKAutoSaveFile::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return KAutoSaveFile::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_kdecore_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKAutoSaveFile::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        KAutoSaveFile::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKAutoSaveFile::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return KAutoSaveFile::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kdecore_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKAutoSaveFile::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return KAutoSaveFile::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kdecore_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKAutoSaveFile::releaseLock()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_releaseLock);

    if (!sipMeth)
    {
        KAutoSaveFile::releaseLock();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kdecore_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KAutoSaveFile_managedFile(PyObject *, PyObject *);}
static PyObject *meth_KAutoSaveFile_managedFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutoSaveFile, &sipCpp))
        {
            KUrl*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->managedFile());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutoSaveFile, sipName_managedFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutoSaveFile_setManagedFile(PyObject *, PyObject *);}
static PyObject *meth_KAutoSaveFile_setManagedFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl* a0;
        KAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAutoSaveFile, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setManagedFile(*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_KAutoSaveFile, sipName_setManagedFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutoSaveFile_releaseLock(PyObject *, PyObject *);}
static PyObject *meth_KAutoSaveFile_releaseLock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAutoSaveFile, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KAutoSaveFile::releaseLock() : sipCpp->releaseLock());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutoSaveFile, sipName_releaseLock, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutoSaveFile_open(PyObject *, PyObject *);}
static PyObject *meth_KAutoSaveFile_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        KAutoSaveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAutoSaveFile, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KAutoSaveFile::open(*a0) : sipCpp->open(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutoSaveFile, sipName_open, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutoSaveFile_staleFiles(PyObject *, PyObject *);}
static PyObject *meth_KAutoSaveFile_staleFiles(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl* a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J1", sipType_KUrl, &a0, sipType_QString,&a1, &a1State))
        {
            QList<KAutoSaveFile*>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAutoSaveFile*>(KAutoSaveFile::staleFiles(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QList_0101KAutoSaveFile,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutoSaveFile, sipName_staleFiles, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAutoSaveFile_allStaleFiles(PyObject *, PyObject *);}
static PyObject *meth_KAutoSaveFile_allStaleFiles(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1", sipType_QString,&a0, &a0State))
        {
            QList<KAutoSaveFile*>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAutoSaveFile*>(KAutoSaveFile::allStaleFiles(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QList_0101KAutoSaveFile,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAutoSaveFile, sipName_allStaleFiles, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAutoSaveFile(void *, const sipTypeDef *);}
static void *cast_KAutoSaveFile(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KAutoSaveFile)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QFile)->ctd_cast((QFile *)(KAutoSaveFile *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAutoSaveFile(void *, int);}
static void release_KAutoSaveFile(void *sipCppV,int)
{
    KAutoSaveFile *sipCpp = reinterpret_cast<KAutoSaveFile *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAutoSaveFile(sipSimpleWrapper *);}
static void dealloc_KAutoSaveFile(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKAutoSaveFile *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KAutoSaveFile(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KAutoSaveFile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAutoSaveFile(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKAutoSaveFile *sipCpp = 0;

    {
        const KUrl* a0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|JH", sipType_KUrl, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAutoSaveFile(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAutoSaveFile(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KAutoSaveFile[] = {{65, 0, 1}};


static PyMethodDef methods_KAutoSaveFile[] = {
    {SIP_MLNAME_CAST(sipName_allStaleFiles), meth_KAutoSaveFile_allStaleFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_managedFile), meth_KAutoSaveFile_managedFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KAutoSaveFile_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_releaseLock), meth_KAutoSaveFile_releaseLock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setManagedFile), meth_KAutoSaveFile_setManagedFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_staleFiles), meth_KAutoSaveFile_staleFiles, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAutoSaveFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutoSaveFile,
        {0}
    },
    {
        sipNameNr_KAutoSaveFile,
        {0, 0, 1},
        6, methods_KAutoSaveFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAutoSaveFile,
    0,
    init_type_KAutoSaveFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAutoSaveFile,
    0,
    0,
    0,
    release_KAutoSaveFile,
    cast_KAutoSaveFile,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KAutoSaveFile::staticMetaObject,
    0,
    0
};


#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11964 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 11967 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11970 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static PyObject *meth_KAuthorized_authorizeControlModules(PyObject *, PyObject *);}
static PyObject *meth_KAuthorized_authorizeControlModules(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QStringList,&a0, &a0State))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KAuthorized::authorizeControlModules(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_authorizeControlModules, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_authorizeControlModule(PyObject *, PyObject *);}
static PyObject *meth_KAuthorized_authorizeControlModule(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuthorized::authorizeControlModule(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_authorizeControlModule, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_allowUrlAction(PyObject *, PyObject *);}
static PyObject *meth_KAuthorized_allowUrlAction(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const KUrl* a1;
        const KUrl* a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9J9", sipType_QString,&a0, &a0State, sipType_KUrl, &a1, sipType_KUrl, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            KAuthorized::allowUrlAction(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_allowUrlAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_authorizeUrlAction(PyObject *, PyObject *);}
static PyObject *meth_KAuthorized_authorizeUrlAction(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const KUrl* a1;
        const KUrl* a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9J9", sipType_QString,&a0, &a0State, sipType_KUrl, &a1, sipType_KUrl, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuthorized::authorizeUrlAction(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_authorizeUrlAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_authorizeKAction(PyObject *, PyObject *);}
static PyObject *meth_KAuthorized_authorizeKAction(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuthorized::authorizeKAction(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_authorizeKAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuthorized_authorize(PyObject *, PyObject *);}
static PyObject *meth_KAuthorized_authorize(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuthorized::authorize(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_authorize, NULL);

    return NULL;
}


static PyMethodDef methods_KAuthorized[] = {
    {SIP_MLNAME_CAST(sipName_allowUrlAction), meth_KAuthorized_allowUrlAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorize), meth_KAuthorized_authorize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorizeControlModule), meth_KAuthorized_authorizeControlModule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorizeControlModules), meth_KAuthorized_authorizeControlModules, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorizeKAction), meth_KAuthorized_authorizeKAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorizeUrlAction), meth_KAuthorized_authorizeUrlAction, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAuthorized = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KAuthorized,
        {0}
    },
    {
        sipNameNr_KAuthorized,
        {0, 0, 1},
        6, methods_KAuthorized,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 33 "/usr/share/python-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 12216 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12219 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12222 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12225 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12228 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 12231 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static PyObject *meth_KAuth_HelperSupport_helperMain(PyObject *, PyObject *);}
static PyObject *meth_KAuth_HelperSupport_helperMain(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        char* a1;
        const char* a2;
        QObject* a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "isJ8", &a0, &a2, sipType_QObject, &a3))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuth::HelperSupport::helperMain(a0,&a1,a2,a3);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(is)",sipRes,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_helperMain, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_HelperSupport_isStopped(PyObject *, PyObject *);}
static PyObject *meth_KAuth_HelperSupport_isStopped(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuth::HelperSupport::isStopped();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_isStopped, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_HelperSupport_progressStep(PyObject *, PyObject *);}
static PyObject *meth_KAuth_HelperSupport_progressStep(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KAuth::HelperSupport::progressStep(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVariantMap* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QMap_0100QString_0100QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KAuth::HelperSupport::progressStep(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariantMap *>(a0),sipType_QMap_0100QString_0100QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_progressStep, NULL);

    return NULL;
}


static PyMethodDef methods_KAuth_HelperSupport[] = {
    {SIP_MLNAME_CAST(sipName_helperMain), meth_KAuth_HelperSupport_helperMain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isStopped), meth_KAuth_HelperSupport_isStopped, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_progressStep), meth_KAuth_HelperSupport_progressStep, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAuth_HelperSupport = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KAuth__HelperSupport,
        {0}
    },
    {
        sipNameNr_HelperSupport,
        {5, 255, 0},
        3, methods_KAuth_HelperSupport,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kauthactionwatcher.sip"
#include <kauthactionwatcher.h>
#line 12393 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12397 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 12400 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12403 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12406 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12409 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kauthactionreply.sip"
#include <kauthactionreply.h>
#line 12412 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12415 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12418 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12421 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 12424 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12427 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12430 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12433 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12436 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 12439 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12442 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12445 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static PyObject *meth_KAuth_ActionWatcher_watcher(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionWatcher_watcher(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KAuth::ActionWatcher*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuth::ActionWatcher::watcher(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KAuth_ActionWatcher,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionWatcher, sipName_watcher, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionWatcher_action(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionWatcher_action(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_ActionWatcher, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->action());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionWatcher, sipName_action, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAuth_ActionWatcher(void *, const sipTypeDef *);}
static void *cast_KAuth_ActionWatcher(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KAuth_ActionWatcher)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KAuth::ActionWatcher *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAuth_ActionWatcher(void *, int);}
static void release_KAuth_ActionWatcher(void *sipCppV,int)
{
    KAuth::ActionWatcher *sipCpp = reinterpret_cast<KAuth::ActionWatcher *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAuth_ActionWatcher(sipSimpleWrapper *);}
static void dealloc_KAuth_ActionWatcher(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAuth_ActionWatcher(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KAuth_ActionWatcher[] = {{141, 0, 1}};


static PyMethodDef methods_KAuth_ActionWatcher[] = {
    {SIP_MLNAME_CAST(sipName_action), meth_KAuth_ActionWatcher_action, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_watcher), meth_KAuth_ActionWatcher_watcher, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KAuth_ActionWatcher[] = {
    {"statusChanged(int)", 0, 0, 0},
    {"progressStep(int)", 0, 0, 0},
    {"progressStep(QVariantMap)", 0, 0, 0},
    {"actionPerformed(KAuth::ActionReply)", 0, 0, 0},
    {"actionStarted()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAuth_ActionWatcher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAuth__ActionWatcher,
        {0}
    },
    {
        sipNameNr_ActionWatcher,
        {5, 255, 0},
        2, methods_KAuth_ActionWatcher,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAuth_ActionWatcher,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAuth_ActionWatcher,
    0,
    0,
    0,
    release_KAuth_ActionWatcher,
    cast_KAuth_ActionWatcher,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KAuth::ActionWatcher::staticMetaObject,
    0,
    signals_KAuth_ActionWatcher,
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kauthactionreply.sip"
#include <kauthactionreply.h>
#line 12623 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12627 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12630 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12633 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 12636 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12639 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12642 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


class sipKAuth_ActionReply : public KAuth::ActionReply
{
public:
    sipKAuth_ActionReply();
    sipKAuth_ActionReply(KAuth::ActionReply::Type);
    sipKAuth_ActionReply(const KAuth::ActionReply&);
    ~sipKAuth_ActionReply();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKAuth_ActionReply(const sipKAuth_ActionReply &);
    sipKAuth_ActionReply &operator = (const sipKAuth_ActionReply &);
};

sipKAuth_ActionReply::sipKAuth_ActionReply(): KAuth::ActionReply(), sipPySelf(0)
{
}

sipKAuth_ActionReply::sipKAuth_ActionReply(KAuth::ActionReply::Type a0): KAuth::ActionReply(a0), sipPySelf(0)
{
}

sipKAuth_ActionReply::sipKAuth_ActionReply(const KAuth::ActionReply& a0): KAuth::ActionReply(a0), sipPySelf(0)
{
}

sipKAuth_ActionReply::~sipKAuth_ActionReply()
{
    sipCommonDtor(sipPySelf);
}


extern "C" {static PyObject *meth_KAuth_ActionReply_setData(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_setData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVariantMap* a0;
        int a0State = 0;
        KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAuth_ActionReply, &sipCpp, sipType_QMap_0100QString_0100QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariantMap *>(a0),sipType_QMap_0100QString_0100QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_setData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_data(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_ActionReply, &sipCpp))
        {
            QVariantMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantMap(sipCpp->data());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QMap_0100QString_0100QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_data, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_addData(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_addData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QVariant* a1;
        int a1State = 0;
        KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KAuth_ActionReply, &sipCpp, sipType_QString,&a0, &a0State, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addData(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_addData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_type(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_ActionReply, &sipCpp))
        {
            KAuth::ActionReply::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAuth_ActionReply_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_succeeded(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_succeeded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_ActionReply, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->succeeded();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_succeeded, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_failed(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_failed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_ActionReply, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->failed();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_failed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_errorCode(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_errorCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_ActionReply, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->errorCode();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_errorCode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_setErrorCode(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_setErrorCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KAuth_ActionReply, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setErrorCode(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_ActionReply, sipName_setErrorCode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_errorDescription(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_errorDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_ActionReply, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorDescription());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_errorDescription, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_setErrorDescription(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_setErrorDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAuth_ActionReply, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setErrorDescription(*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_ActionReply, sipName_setErrorDescription, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_serialized(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_serialized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_ActionReply, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->serialized());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_serialized, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_ActionReply_deserialize(PyObject *, PyObject *);}
static PyObject *meth_KAuth_ActionReply_deserialize(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QByteArray, &a0, &a0State))
        {
            KAuth::ActionReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAuth::ActionReply(KAuth::ActionReply::deserialize(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_KAuth_ActionReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ActionReply, sipName_deserialize, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_KAuth_ActionReply___ne__(PyObject *,PyObject *);}
static PyObject *slot_KAuth_ActionReply___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KAuth::ActionReply *sipCpp = reinterpret_cast<KAuth::ActionReply *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAuth_ActionReply));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KAuth_ActionReply, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KAuth::ActionReply::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_KAuth_ActionReply,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KAuth_ActionReply___eq__(PyObject *,PyObject *);}
static PyObject *slot_KAuth_ActionReply___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KAuth::ActionReply *sipCpp = reinterpret_cast<KAuth::ActionReply *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAuth_ActionReply));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KAuth::ActionReply* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KAuth_ActionReply, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KAuth::ActionReply::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_KAuth_ActionReply,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAuth_ActionReply(void *, const sipTypeDef *);}
static void *cast_KAuth_ActionReply(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KAuth_ActionReply)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAuth_ActionReply(void *, int);}
static void release_KAuth_ActionReply(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAuth_ActionReply *>(sipCppV);
    else
        delete reinterpret_cast<KAuth::ActionReply *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KAuth_ActionReply(void *, SIP_SSIZE_T, const void *);}
static void assign_KAuth_ActionReply(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KAuth::ActionReply *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KAuth::ActionReply *>(sipSrc);
}


extern "C" {static void *array_KAuth_ActionReply(SIP_SSIZE_T);}
static void *array_KAuth_ActionReply(SIP_SSIZE_T sipNrElem)
{
    return new KAuth::ActionReply[sipNrElem];
}


extern "C" {static void *copy_KAuth_ActionReply(const void *, SIP_SSIZE_T);}
static void *copy_KAuth_ActionReply(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KAuth::ActionReply(reinterpret_cast<const KAuth::ActionReply *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KAuth_ActionReply(sipSimpleWrapper *);}
static void dealloc_KAuth_ActionReply(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKAuth_ActionReply *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KAuth_ActionReply(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KAuth_ActionReply(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAuth_ActionReply(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKAuth_ActionReply *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAuth_ActionReply();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        KAuth::ActionReply::Type a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_KAuth_ActionReply_Type, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAuth_ActionReply(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KAuth::ActionReply* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KAuth_ActionReply, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAuth_ActionReply(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KAuth_ActionReply[] = {
    {(void *)slot_KAuth_ActionReply___ne__, ne_slot},
    {(void *)slot_KAuth_ActionReply___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KAuth_ActionReply[] = {
    {SIP_MLNAME_CAST(sipName_addData), meth_KAuth_ActionReply_addData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_KAuth_ActionReply_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deserialize), meth_KAuth_ActionReply_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorCode), meth_KAuth_ActionReply_errorCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorDescription), meth_KAuth_ActionReply_errorDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_failed), meth_KAuth_ActionReply_failed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_KAuth_ActionReply_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_KAuth_ActionReply_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorCode), meth_KAuth_ActionReply_setErrorCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorDescription), meth_KAuth_ActionReply_setErrorDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_succeeded), meth_KAuth_ActionReply_succeeded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_KAuth_ActionReply_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAuth_ActionReply[] = {
    {sipName_AuthorizationDenied, static_cast<int>(KAuth::ActionReply::AuthorizationDenied), 9},
    {sipName_DBusError, static_cast<int>(KAuth::ActionReply::DBusError), 9},
    {sipName_HelperBusy, static_cast<int>(KAuth::ActionReply::HelperBusy), 9},
    {sipName_HelperError, static_cast<int>(KAuth::ActionReply::HelperError), 10},
    {sipName_InvalidAction, static_cast<int>(KAuth::ActionReply::InvalidAction), 9},
    {sipName_KAuthError, static_cast<int>(KAuth::ActionReply::KAuthError), 10},
    {sipName_NoError, static_cast<int>(KAuth::ActionReply::NoError), 9},
    {sipName_NoResponder, static_cast<int>(KAuth::ActionReply::NoResponder), 9},
    {sipName_NoSuchAction, static_cast<int>(KAuth::ActionReply::NoSuchAction), 9},
    {sipName_Success, static_cast<int>(KAuth::ActionReply::Success), 10},
    {sipName_UserCancelled, static_cast<int>(KAuth::ActionReply::UserCancelled), 9},
};


extern "C" {static PyObject *varget_KAuth_ActionReply_AuthorizationDeniedReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_AuthorizationDeniedReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::AuthorizationDeniedReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}


extern "C" {static PyObject *varget_KAuth_ActionReply_DBusErrorReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_DBusErrorReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::DBusErrorReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}


extern "C" {static PyObject *varget_KAuth_ActionReply_HelperBusyReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_HelperBusyReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::HelperBusyReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}


extern "C" {static PyObject *varget_KAuth_ActionReply_HelperErrorReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_HelperErrorReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::HelperErrorReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}


extern "C" {static PyObject *varget_KAuth_ActionReply_InvalidActionReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_InvalidActionReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::InvalidActionReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}


extern "C" {static PyObject *varget_KAuth_ActionReply_NoResponderReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_NoResponderReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::NoResponderReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}


extern "C" {static PyObject *varget_KAuth_ActionReply_NoSuchActionReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_NoSuchActionReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::NoSuchActionReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}


extern "C" {static PyObject *varget_KAuth_ActionReply_SuccessReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_SuccessReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::SuccessReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}


extern "C" {static PyObject *varget_KAuth_ActionReply_UserCancelledReply(void *, PyObject *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_UserCancelledReply(void *, PyObject *, PyObject *)
{
    const KAuth::ActionReply*sipVal;
    sipVal = new KAuth::ActionReply(KAuth::ActionReply::UserCancelledReply);

    return sipConvertFromNewType(const_cast<KAuth::ActionReply *>(sipVal), sipType_KAuth_ActionReply, NULL);
}

sipVariableDef variables_KAuth_ActionReply[] = {
    {ClassVariable, sipName_AuthorizationDeniedReply, (PyMethodDef *)varget_KAuth_ActionReply_AuthorizationDeniedReply, NULL, NULL, NULL},
    {ClassVariable, sipName_DBusErrorReply, (PyMethodDef *)varget_KAuth_ActionReply_DBusErrorReply, NULL, NULL, NULL},
    {ClassVariable, sipName_HelperBusyReply, (PyMethodDef *)varget_KAuth_ActionReply_HelperBusyReply, NULL, NULL, NULL},
    {ClassVariable, sipName_HelperErrorReply, (PyMethodDef *)varget_KAuth_ActionReply_HelperErrorReply, NULL, NULL, NULL},
    {ClassVariable, sipName_InvalidActionReply, (PyMethodDef *)varget_KAuth_ActionReply_InvalidActionReply, NULL, NULL, NULL},
    {ClassVariable, sipName_NoResponderReply, (PyMethodDef *)varget_KAuth_ActionReply_NoResponderReply, NULL, NULL, NULL},
    {ClassVariable, sipName_NoSuchActionReply, (PyMethodDef *)varget_KAuth_ActionReply_NoSuchActionReply, NULL, NULL, NULL},
    {ClassVariable, sipName_SuccessReply, (PyMethodDef *)varget_KAuth_ActionReply_SuccessReply, NULL, NULL, NULL},
    {ClassVariable, sipName_UserCancelledReply, (PyMethodDef *)varget_KAuth_ActionReply_UserCancelledReply, NULL, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAuth_ActionReply = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAuth__ActionReply,
        {0}
    },
    {
        sipNameNr_ActionReply,
        {5, 255, 0},
        12, methods_KAuth_ActionReply,
        11, enummembers_KAuth_ActionReply,
        9, variables_KAuth_ActionReply,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KAuth_ActionReply,
    init_type_KAuth_ActionReply,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAuth_ActionReply,
    assign_KAuth_ActionReply,
    array_KAuth_ActionReply,
    copy_KAuth_ActionReply,
    release_KAuth_ActionReply,
    cast_KAuth_ActionReply,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kauthaction.sip"
#include <kauthaction.h>
#line 13389 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 13393 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 13396 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13399 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kauthactionreply.sip"
#include <kauthactionreply.h>
#line 13402 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13405 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 13408 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 13411 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13414 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kauthactionwatcher.sip"
#include <kauthactionwatcher.h>
#line 13417 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static PyObject *meth_KAuth_Action_name(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &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_Action, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_setName(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_setName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAuth_Action, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setName(*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_Action, sipName_setName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_setDetails(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_setDetails(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAuth_Action, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDetails(*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_Action, sipName_setDetails, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_details(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_details(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->details());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_details, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_isValid(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &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_Action, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_helperID(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_helperID(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->helperID());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_helperID, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_setHelperID(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_setHelperID(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAuth_Action, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHelperID(*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_Action, sipName_setHelperID, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_watcher(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_watcher(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            KAuth::ActionWatcher*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->watcher();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAuth_ActionWatcher,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_watcher, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_setArguments(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_setArguments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVariantMap* a0;
        int a0State = 0;
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAuth_Action, &sipCpp, sipType_QMap_0100QString_0100QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setArguments(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariantMap *>(a0),sipType_QMap_0100QString_0100QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_setArguments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_arguments(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_arguments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            QVariantMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantMap(sipCpp->arguments());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QMap_0100QString_0100QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_arguments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_addArgument(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_addArgument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QVariant* a1;
        int a1State = 0;
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KAuth_Action, &sipCpp, sipType_QString,&a0, &a0State, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addArgument(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_addArgument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_authorize(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_authorize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            KAuth::Action::AuthStatus sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->authorize();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAuth_Action_AuthStatus);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_authorize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_status(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_status(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            KAuth::Action::AuthStatus sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->status();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAuth_Action_AuthStatus);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_status, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_execute(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_execute(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            KAuth::ActionReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAuth::ActionReply(sipCpp->execute());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KAuth_ActionReply,NULL);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAuth_Action, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KAuth::ActionReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAuth::ActionReply(sipCpp->execute(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_KAuth_ActionReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_execute, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_setExecutesAsync(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_setExecutesAsync(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KAuth_Action, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExecutesAsync(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_Action, sipName_setExecutesAsync, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_executesAsync(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_executesAsync(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->executesAsync();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_executesAsync, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_executeActions(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_executeActions(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<KAuth::Action>* a0;
        int a0State = 0;
        QList<KAuth::Action>* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J0J1", sipType_QList_0100KAuth_Action,&a0, &a0State, sipType_QList_0100KAuth_Action,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuth::Action::executeActions(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KAuth::Action> *>(a0),sipType_QList_0100KAuth_Action,a0State);
            sipReleaseType(a1,sipType_QList_0100KAuth_Action,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QList<KAuth::Action>* a0;
        int a0State = 0;
        QList<KAuth::Action>* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        QWidget* a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J0J1J8", sipType_QList_0100KAuth_Action,&a0, &a0State, sipType_QList_0100KAuth_Action,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QWidget, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuth::Action::executeActions(*a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<KAuth::Action> *>(a0),sipType_QList_0100KAuth_Action,a0State);
            sipReleaseType(a1,sipType_QList_0100KAuth_Action,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_executeActions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_stop(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_stop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->stop();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAuth_Action, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->stop(*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_Action, sipName_stop, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_hasHelper(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_hasHelper(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasHelper();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_hasHelper, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_earlyAuthorize(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_earlyAuthorize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            KAuth::Action::AuthStatus sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->earlyAuthorize();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAuth_Action_AuthStatus);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_earlyAuthorize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_setParentWidget(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_setParentWidget(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWidget* a0;
        KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAuth_Action, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setParentWidget(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_Action, sipName_setParentWidget, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAuth_Action_parentWidget(PyObject *, PyObject *);}
static PyObject *meth_KAuth_Action_parentWidget(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAuth_Action, &sipCpp))
        {
            QWidget*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parentWidget();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QWidget,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Action, sipName_parentWidget, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_KAuth_Action___ne__(PyObject *,PyObject *);}
static PyObject *slot_KAuth_Action___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KAuth::Action *sipCpp = reinterpret_cast<KAuth::Action *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAuth_Action));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KAuth_Action, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KAuth::Action::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_KAuth_Action,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KAuth_Action___eq__(PyObject *,PyObject *);}
static PyObject *slot_KAuth_Action___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KAuth::Action *sipCpp = reinterpret_cast<KAuth::Action *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KAuth_Action));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KAuth::Action* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KAuth_Action, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KAuth::Action::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_KAuth_Action,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAuth_Action(void *, const sipTypeDef *);}
static void *cast_KAuth_Action(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KAuth_Action)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAuth_Action(void *, int);}
static void release_KAuth_Action(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KAuth::Action *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KAuth_Action(void *, SIP_SSIZE_T, const void *);}
static void assign_KAuth_Action(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KAuth::Action *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KAuth::Action *>(sipSrc);
}


extern "C" {static void *array_KAuth_Action(SIP_SSIZE_T);}
static void *array_KAuth_Action(SIP_SSIZE_T sipNrElem)
{
    return new KAuth::Action[sipNrElem];
}


extern "C" {static void *copy_KAuth_Action(const void *, SIP_SSIZE_T);}
static void *copy_KAuth_Action(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KAuth::Action(reinterpret_cast<const KAuth::Action *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KAuth_Action(sipSimpleWrapper *);}
static void dealloc_KAuth_Action(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAuth_Action(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KAuth_Action(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAuth_Action(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KAuth::Action *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAuth::Action();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KAuth::Action* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KAuth_Action, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAuth::Action(*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 KAuth::Action(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAuth::Action(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KAuth_Action[] = {
    {(void *)slot_KAuth_Action___ne__, ne_slot},
    {(void *)slot_KAuth_Action___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KAuth_Action[] = {
    {SIP_MLNAME_CAST(sipName_addArgument), meth_KAuth_Action_addArgument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_arguments), meth_KAuth_Action_arguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authorize), meth_KAuth_Action_authorize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_details), meth_KAuth_Action_details, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_earlyAuthorize), meth_KAuth_Action_earlyAuthorize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_execute), meth_KAuth_Action_execute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeActions), meth_KAuth_Action_executeActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executesAsync), meth_KAuth_Action_executesAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasHelper), meth_KAuth_Action_hasHelper, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_helperID), meth_KAuth_Action_helperID, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KAuth_Action_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KAuth_Action_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentWidget), meth_KAuth_Action_parentWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setArguments), meth_KAuth_Action_setArguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDetails), meth_KAuth_Action_setDetails, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setExecutesAsync), meth_KAuth_Action_setExecutesAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHelperID), meth_KAuth_Action_setHelperID, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setName), meth_KAuth_Action_setName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setParentWidget), meth_KAuth_Action_setParentWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_KAuth_Action_status, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stop), meth_KAuth_Action_stop, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_watcher), meth_KAuth_Action_watcher, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAuth_Action[] = {
    {sipName_AuthRequired, static_cast<int>(KAuth::Action::AuthRequired), 7},
    {sipName_Authorized, static_cast<int>(KAuth::Action::Authorized), 7},
    {sipName_Denied, static_cast<int>(KAuth::Action::Denied), 7},
    {sipName_Error, static_cast<int>(KAuth::Action::Error), 7},
    {sipName_Invalid, static_cast<int>(KAuth::Action::Invalid), 7},
    {sipName_UserCancelled, static_cast<int>(KAuth::Action::UserCancelled), 7},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAuth_Action = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAuth__Action,
        {0}
    },
    {
        sipNameNr_Action,
        {5, 255, 0},
        22, methods_KAuth_Action,
        6, enummembers_KAuth_Action,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KAuth_Action,
    init_type_KAuth_Action,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAuth_Action,
    assign_KAuth_Action,
    array_KAuth_Action,
    copy_KAuth_Action,
    release_KAuth_Action,
    cast_KAuth_Action,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};




pyqt4ClassTypeDef sipTypeDef_kdecore_KAuth = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KAuth,
        {0}
    },
    {
        sipNameNr_KAuth,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 56 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 14436 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 14439 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 14442 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static PyObject *meth_KAboutLicense_text(PyObject *, PyObject *);}
static PyObject *meth_KAboutLicense_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutLicense *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutLicense, &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_KAboutLicense, sipName_text, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutLicense_name(PyObject *, PyObject *);}
static PyObject *meth_KAboutLicense_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KAboutData::NameFormat a0;
        const KAboutLicense *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KAboutLicense, &sipCpp, sipType_KAboutData_NameFormat, &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutLicense, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutLicense_key(PyObject *, PyObject *);}
static PyObject *meth_KAboutLicense_key(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutLicense *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutLicense, &sipCpp))
        {
            KAboutData::LicenseKey sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->key();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAboutData_LicenseKey);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutLicense, sipName_key, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutLicense_byKeyword(PyObject *, PyObject *);}
static PyObject *meth_KAboutLicense_byKeyword(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            KAboutLicense*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KAboutLicense(KAboutLicense::byKeyword(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_KAboutLicense,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutLicense, sipName_byKeyword, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAboutLicense(void *, const sipTypeDef *);}
static void *cast_KAboutLicense(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KAboutLicense)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAboutLicense(void *, int);}
static void release_KAboutLicense(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KAboutLicense *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAboutLicense(sipSimpleWrapper *);}
static void dealloc_KAboutLicense(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAboutLicense(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KAboutLicense(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAboutLicense(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KAboutLicense *sipCpp = 0;

    {
        const KAboutLicense* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KAboutLicense, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutLicense(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KAboutLicense[] = {
    {SIP_MLNAME_CAST(sipName_byKeyword), meth_KAboutLicense_byKeyword, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_key), meth_KAboutLicense_key, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KAboutLicense_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_KAboutLicense_text, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAboutLicense = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAboutLicense,
        {0}
    },
    {
        sipNameNr_KAboutLicense,
        {0, 0, 1},
        4, methods_KAboutLicense,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KAboutLicense,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAboutLicense,
    0,
    0,
    0,
    release_KAboutLicense,
    cast_KAboutLicense,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 56 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 14674 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14678 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 14681 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 14684 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14687 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14690 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 14693 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14696 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static PyObject *meth_KAboutData_addAuthor(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addAuthor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString* a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray* a2 = &a2def;
        int a2State = 0;
        const QByteArray& a3def = QByteArray();
        const QByteArray* a3 = &a3def;
        int a3State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|J9J1J1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State, sipType_QByteArray, &a3, &a3State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addAuthor(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    {
        const KLocalizedString* a0;
        const KLocalizedString* a1;
        const QByteArray* a2;
        int a2State = 0;
        const QByteArray* a3;
        int a3State = 0;
        const QByteArray* a4;
        int a4State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J1J1J1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State, sipType_QByteArray, &a3, &a3State, sipType_QByteArray, &a4, &a4State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addAuthor(*a0,*a1,*a2,*a3,*a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_addAuthor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_addCredit(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addCredit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString* a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray* a2 = &a2def;
        int a2State = 0;
        const QByteArray& a3def = QByteArray();
        const QByteArray* a3 = &a3def;
        int a3State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|J9J1J1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State, sipType_QByteArray, &a3, &a3State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addCredit(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    {
        const KLocalizedString* a0;
        const KLocalizedString* a1;
        const QByteArray* a2;
        int a2State = 0;
        const QByteArray* a3;
        int a3State = 0;
        const QByteArray* a4;
        int a4State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J1J1J1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State, sipType_QByteArray, &a3, &a3State, sipType_QByteArray, &a4, &a4State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addCredit(*a0,*a1,*a2,*a3,*a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_addCredit, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setTranslator(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setTranslator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        const KLocalizedString* a1;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0, sipType_KLocalizedString, &a1))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setTranslator(*a0,*a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setTranslator, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setLicenseText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setLicenseText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setLicenseText(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setLicenseText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_addLicenseText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addLicenseText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addLicenseText(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_addLicenseText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setLicenseTextFile(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setLicenseTextFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setLicenseTextFile(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setLicenseTextFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_addLicenseTextFile(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addLicenseTextFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addLicenseTextFile(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_addLicenseTextFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setAppName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setAppName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setAppName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setAppName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setProgramName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setProgramName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setProgramName(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setProgramName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setProgramIconName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setProgramIconName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setProgramIconName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setProgramIconName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setProgramLogo(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setProgramLogo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVariant* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setProgramLogo(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setProgramLogo, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setVersion(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setVersion(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setVersion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setShortDescription(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setShortDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setShortDescription(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setShortDescription, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setCatalogName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setCatalogName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setCatalogName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setCatalogName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setLicense(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setLicense(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KAboutData::LicenseKey a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KAboutData_LicenseKey, &a0))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setLicense(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setLicense, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_addLicense(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_addLicense(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KAboutData::LicenseKey a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KAboutData_LicenseKey, &a0))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->addLicense(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_addLicense, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setCopyrightStatement(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setCopyrightStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setCopyrightStatement(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setCopyrightStatement, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setOtherText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setOtherText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setOtherText(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setOtherText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setHomepage(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setHomepage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setHomepage(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setHomepage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setBugAddress(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setBugAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setBugAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setBugAddress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setOrganizationDomain(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setOrganizationDomain(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setOrganizationDomain(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setOrganizationDomain, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setProductName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setProductName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setProductName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setProductName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_appName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_appName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->appName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_appName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_productName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_productName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->productName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_productName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_programName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_programName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->programName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_programName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_organizationDomain(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_organizationDomain(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->organizationDomain());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_organizationDomain, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_internalProgramName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_internalProgramName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            const char*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->internalProgramName();
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return SIPBytes_FromString(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_internalProgramName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_translateInternalProgramName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_translateInternalProgramName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->translateInternalProgramName();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_translateInternalProgramName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_programIconName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_programIconName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->programIconName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_programIconName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_programLogo(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_programLogo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->programLogo());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_programLogo, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_version(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_version(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->version());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_version, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_internalVersion(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_internalVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            const char*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->internalVersion();
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return SIPBytes_FromString(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_internalVersion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_shortDescription(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_shortDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->shortDescription());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_shortDescription, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_catalogName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_catalogName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->catalogName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_catalogName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_homepage(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_homepage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->homepage());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_homepage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_bugAddress(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_bugAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->bugAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_bugAddress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_internalBugAddress(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_internalBugAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            const char*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->internalBugAddress();
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return SIPBytes_FromString(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_internalBugAddress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_authors(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_authors(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QList<KAboutPerson>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAboutPerson>(sipCpp->authors());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KAboutPerson,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_authors, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_credits(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_credits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QList<KAboutPerson>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAboutPerson>(sipCpp->credits());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KAboutPerson,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_credits, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_translators(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_translators(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QList<KAboutPerson>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAboutPerson>(sipCpp->translators());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KAboutPerson,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_translators, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_aboutTranslationTeam(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_aboutTranslationTeam(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KAboutData::aboutTranslationTeam());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_aboutTranslationTeam, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_otherText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_otherText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->otherText());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_otherText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_license(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_license(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->license());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_license, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_licenseName(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_licenseName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KAboutData::NameFormat a0;
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KAboutData_NameFormat, &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->licenseName(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_licenseName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_licenses(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_licenses(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QList<KAboutLicense>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAboutLicense>(sipCpp->licenses());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100KAboutLicense,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_licenses, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_copyrightStatement(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_copyrightStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->copyrightStatement());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_copyrightStatement, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_customAuthorPlainText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_customAuthorPlainText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->customAuthorPlainText());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_customAuthorPlainText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_customAuthorRichText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_customAuthorRichText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->customAuthorRichText());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_customAuthorRichText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_customAuthorTextEnabled(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_customAuthorTextEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->customAuthorTextEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_customAuthorTextEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setCustomAuthorText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setCustomAuthorText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KLocalizedString* a0;
        const KLocalizedString* a1;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KAboutData, &sipCpp, sipType_KLocalizedString, &a0, sipType_KLocalizedString, &a1))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setCustomAuthorText(*a0,*a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setCustomAuthorText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_unsetCustomAuthorText(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_unsetCustomAuthorText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->unsetCustomAuthorText();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_unsetCustomAuthorText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_setOcsProvider(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_setOcsProvider(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAboutData, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            KAboutData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->setOcsProvider(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromType(sipRes,sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_setOcsProvider, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutData_ocsProviderUrl(PyObject *, PyObject *);}
static PyObject *meth_KAboutData_ocsProviderUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutData, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->ocsProviderUrl());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutData, sipName_ocsProviderUrl, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAboutData(void *, const sipTypeDef *);}
static void *cast_KAboutData(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KAboutData)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAboutData(void *, int);}
static void release_KAboutData(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KAboutData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAboutData(sipSimpleWrapper *);}
static void dealloc_KAboutData(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAboutData(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KAboutData(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAboutData(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KAboutData *sipCpp = 0;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        const KLocalizedString* a2;
        const QByteArray* a3;
        int a3State = 0;
        const KLocalizedString& a4def = KLocalizedString();
        const KLocalizedString* a4 = &a4def;
        KAboutData::LicenseKey a5 = KAboutData::License_Unknown;
        const KLocalizedString& a6def = KLocalizedString();
        const KLocalizedString* a6 = &a6def;
        const KLocalizedString& a7def = KLocalizedString();
        const KLocalizedString* a7 = &a7def;
        const QByteArray& a8def = QByteArray();
        const QByteArray* a8 = &a8def;
        int a8State = 0;
        const QByteArray& a9def = "submit@bugs.kde.org";
        const QByteArray* a9 = &a9def;
        int a9State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J9J1|J9EJ9J9J1J1", sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State, sipType_KLocalizedString, &a2, sipType_QByteArray, &a3, &a3State, sipType_KLocalizedString, &a4, sipType_KAboutData_LicenseKey, &a5, sipType_KLocalizedString, &a6, sipType_KLocalizedString, &a7, sipType_QByteArray, &a8, &a8State, sipType_QByteArray, &a9, &a9State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutData(*a0,*a1,*a2,*a3,*a4,a5,*a6,*a7,*a8,*a9);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);
            sipReleaseType(const_cast<QByteArray *>(a8),sipType_QByteArray,a8State);
            sipReleaseType(const_cast<QByteArray *>(a9),sipType_QByteArray,a9State);

            return sipCpp;
        }
    }

    {
        const KAboutData* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KAboutData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutData(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KAboutData[] = {
    {SIP_MLNAME_CAST(sipName_aboutTranslationTeam), meth_KAboutData_aboutTranslationTeam, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addAuthor), meth_KAboutData_addAuthor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addCredit), meth_KAboutData_addCredit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addLicense), meth_KAboutData_addLicense, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addLicenseText), meth_KAboutData_addLicenseText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addLicenseTextFile), meth_KAboutData_addLicenseTextFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_appName), meth_KAboutData_appName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_authors), meth_KAboutData_authors, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bugAddress), meth_KAboutData_bugAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_catalogName), meth_KAboutData_catalogName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copyrightStatement), meth_KAboutData_copyrightStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_credits), meth_KAboutData_credits, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customAuthorPlainText), meth_KAboutData_customAuthorPlainText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customAuthorRichText), meth_KAboutData_customAuthorRichText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customAuthorTextEnabled), meth_KAboutData_customAuthorTextEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_homepage), meth_KAboutData_homepage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalBugAddress), meth_KAboutData_internalBugAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalProgramName), meth_KAboutData_internalProgramName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalVersion), meth_KAboutData_internalVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_license), meth_KAboutData_license, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_licenseName), meth_KAboutData_licenseName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_licenses), meth_KAboutData_licenses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ocsProviderUrl), meth_KAboutData_ocsProviderUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_organizationDomain), meth_KAboutData_organizationDomain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_otherText), meth_KAboutData_otherText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_productName), meth_KAboutData_productName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_programIconName), meth_KAboutData_programIconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_programLogo), meth_KAboutData_programLogo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_programName), meth_KAboutData_programName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAppName), meth_KAboutData_setAppName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBugAddress), meth_KAboutData_setBugAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCatalogName), meth_KAboutData_setCatalogName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCopyrightStatement), meth_KAboutData_setCopyrightStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCustomAuthorText), meth_KAboutData_setCustomAuthorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHomepage), meth_KAboutData_setHomepage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLicense), meth_KAboutData_setLicense, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLicenseText), meth_KAboutData_setLicenseText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLicenseTextFile), meth_KAboutData_setLicenseTextFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOcsProvider), meth_KAboutData_setOcsProvider, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOrganizationDomain), meth_KAboutData_setOrganizationDomain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOtherText), meth_KAboutData_setOtherText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProductName), meth_KAboutData_setProductName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgramIconName), meth_KAboutData_setProgramIconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgramLogo), meth_KAboutData_setProgramLogo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgramName), meth_KAboutData_setProgramName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShortDescription), meth_KAboutData_setShortDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTranslator), meth_KAboutData_setTranslator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVersion), meth_KAboutData_setVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shortDescription), meth_KAboutData_shortDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_translateInternalProgramName), meth_KAboutData_translateInternalProgramName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_translators), meth_KAboutData_translators, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unsetCustomAuthorText), meth_KAboutData_unsetCustomAuthorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_version), meth_KAboutData_version, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAboutData[] = {
    {sipName_FullName, static_cast<int>(KAboutData::FullName), 2},
    {sipName_License_Artistic, static_cast<int>(KAboutData::License_Artistic), 1},
    {sipName_License_BSD, static_cast<int>(KAboutData::License_BSD), 1},
    {sipName_License_Custom, static_cast<int>(KAboutData::License_Custom), 1},
    {sipName_License_File, static_cast<int>(KAboutData::License_File), 1},
    {sipName_License_GPL, static_cast<int>(KAboutData::License_GPL), 1},
    {sipName_License_GPL_V2, static_cast<int>(KAboutData::License_GPL_V2), 1},
    {sipName_License_GPL_V3, static_cast<int>(KAboutData::License_GPL_V3), 1},
    {sipName_License_LGPL, static_cast<int>(KAboutData::License_LGPL), 1},
    {sipName_License_LGPL_V2, static_cast<int>(KAboutData::License_LGPL_V2), 1},
    {sipName_License_LGPL_V3, static_cast<int>(KAboutData::License_LGPL_V3), 1},
    {sipName_License_QPL, static_cast<int>(KAboutData::License_QPL), 1},
    {sipName_License_QPL_V1_0, static_cast<int>(KAboutData::License_QPL_V1_0), 1},
    {sipName_License_Unknown, static_cast<int>(KAboutData::License_Unknown), 1},
    {sipName_ShortName, static_cast<int>(KAboutData::ShortName), 2},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAboutData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAboutData,
        {0}
    },
    {
        sipNameNr_KAboutData,
        {0, 0, 1},
        53, methods_KAboutData,
        15, enummembers_KAboutData,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KAboutData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAboutData,
    0,
    0,
    0,
    release_KAboutData,
    cast_KAboutData,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 16490 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"

#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 16494 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16497 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16500 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"


extern "C" {static PyObject *meth_KAboutPerson_name(PyObject *, PyObject *);}
static PyObject *meth_KAboutPerson_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutPerson *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutPerson, &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_KAboutPerson, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutPerson_task(PyObject *, PyObject *);}
static PyObject *meth_KAboutPerson_task(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutPerson *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutPerson, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->task());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutPerson, sipName_task, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutPerson_emailAddress(PyObject *, PyObject *);}
static PyObject *meth_KAboutPerson_emailAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutPerson *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutPerson, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->emailAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutPerson, sipName_emailAddress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutPerson_webAddress(PyObject *, PyObject *);}
static PyObject *meth_KAboutPerson_webAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutPerson *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutPerson, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->webAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutPerson, sipName_webAddress, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KAboutPerson_ocsUsername(PyObject *, PyObject *);}
static PyObject *meth_KAboutPerson_ocsUsername(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KAboutPerson *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAboutPerson, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->ocsUsername());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KAboutPerson, sipName_ocsUsername, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KAboutPerson(void *, const sipTypeDef *);}
static void *cast_KAboutPerson(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KAboutPerson)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KAboutPerson(void *, int);}
static void release_KAboutPerson(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KAboutPerson *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KAboutPerson(sipSimpleWrapper *);}
static void dealloc_KAboutPerson(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KAboutPerson(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KAboutPerson(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KAboutPerson(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KAboutPerson *sipCpp = 0;

    {
        const KLocalizedString* a0;
        const KLocalizedString& a1def = KLocalizedString();
        const KLocalizedString* a1 = &a1def;
        const QByteArray& a2def = QByteArray();
        const QByteArray* a2 = &a2def;
        int a2State = 0;
        const QByteArray& a3def = QByteArray();
        const QByteArray* a3 = &a3def;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|J9J1J1", sipType_KLocalizedString, &a0, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State, sipType_QByteArray, &a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutPerson(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            return sipCpp;
        }
    }

    {
        const KAboutPerson* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KAboutPerson, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutPerson(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KLocalizedString* a0;
        const KLocalizedString* a1;
        const QByteArray* a2;
        int a2State = 0;
        const QByteArray* a3;
        int a3State = 0;
        const QByteArray* a4;
        int a4State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9J1J1J1", sipType_KLocalizedString, &a0, sipType_KLocalizedString, &a1, sipType_QByteArray, &a2, &a2State, sipType_QByteArray, &a3, &a3State, sipType_QByteArray, &a4, &a4State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAboutPerson(*a0,*a1,*a2,*a3,*a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KAboutPerson[] = {
    {SIP_MLNAME_CAST(sipName_emailAddress), meth_KAboutPerson_emailAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KAboutPerson_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ocsUsername), meth_KAboutPerson_ocsUsername, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_task), meth_KAboutPerson_task, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_webAddress), meth_KAboutPerson_webAddress, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAboutPerson = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KAboutPerson,
        {0}
    },
    {
        sipNameNr_KAboutPerson,
        {0, 0, 1},
        5, methods_KAboutPerson,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KAboutPerson,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAboutPerson,
    0,
    0,
    0,
    release_KAboutPerson,
    cast_KAboutPerson,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 729 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 16803 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"



extern "C" {static void assign_QHash_1800_1800(void *, SIP_SSIZE_T, const void *);}
static void assign_QHash_1800_1800(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHash<int,int> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHash<int,int> *>(sipSrc);
}


extern "C" {static void *array_QHash_1800_1800(SIP_SSIZE_T);}
static void *array_QHash_1800_1800(SIP_SSIZE_T sipNrElem)
{
    return new QHash<int,int>[sipNrElem];
}


extern "C" {static void *copy_QHash_1800_1800(const void *, SIP_SSIZE_T);}
static void *copy_QHash_1800_1800(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHash<int,int>(reinterpret_cast<const QHash<int,int> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QHash_1800_1800(void *, int);}
static void release_QHash_1800_1800(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QHash<int,int> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QHash_1800_1800(PyObject *, void **, int *, PyObject *);}
static int convertTo_QHash_1800_1800(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QHash<int,int> **sipCppPtr = reinterpret_cast<QHash<int,int> **>(sipCppPtrV);

#line 778 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.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 PY_MAJOR_VERSION >= 3
            if (!PyNumber_Check (t1obj))
#else
            if (!PyInt_Check (t1obj))
#endif
                return 0;

#if PY_MAJOR_VERSION >= 3
            if (!PyNumber_Check (t2obj))
#else
            if (!PyInt_Check (t2obj))
#endif
                return 0;
        } 

        return 1;
    }

    QHash<int, int> *qm = new QHash<int, int>;
 
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        int state2;

#if PY_MAJOR_VERSION >= 3
        int t1 = PyLong_AsLong (t1obj);
#else
        int t1 = PyInt_AS_LONG (t1obj);
#endif

#if PY_MAJOR_VERSION >= 3
        int t2 = PyLong_AsLong (t2obj);
#else
        int t2 = PyInt_AS_LONG (t2obj);
#endif
 
        if (*sipIsErr)
        {
            delete qm;
            return 0;
        }

        qm->insert(t1, t2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 16904 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
}


extern "C" {static PyObject *convertFrom_QHash_1800_1800(void *, PyObject *);}
static PyObject *convertFrom_QHash_1800_1800(void *sipCppV, PyObject *)
{
   QHash<int,int> *sipCpp = reinterpret_cast<QHash<int,int> *>(sipCppV);

#line 733 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QHash<int, int>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        int t1 = i.key();
        int t2 = i.value();

#if PY_MAJOR_VERSION >= 3
        PyObject *t1obj = PyLong_FromLong ((long)t1);
        PyObject *t2obj = PyLong_FromLong ((long)t2);
#else
        PyObject *t1obj = PyInt_FromLong ((long)t1);
        PyObject *t2obj = PyInt_FromLong ((long)t2);
#endif

        if (PyDict_SetItem(d, t1obj, t2obj) < 0)
        {
            Py_DECREF(d);

            if (t1obj)
                Py_DECREF(t1obj);

            if (t2obj)
                Py_DECREF(t2obj);

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 16956 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/kdecore/sipkdecorepart7.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QHash_1800_1800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_16758,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QHash_1800_1800,
    array_QHash_1800_1800,
    copy_QHash_1800_1800,
    release_QHash_1800_1800,
    convertTo_QHash_1800_1800,
    convertFrom_QHash_1800_1800
};




/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KShared(void *, const sipTypeDef *);}
static void *cast_KShared(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KShared)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KShared(void *, int);}
static void release_KShared(void *,int)
{
}


pyqt4ClassTypeDef sipTypeDef_kdecore_KShared = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KShared,
        {0}
    },
    {
        sipNameNr_KShared,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_KShared,
    cast_KShared,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
