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

#include "sipAPIkdecore.h"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcompositejob.sip"
#include <kcompositejob.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 67 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_doKill(bool);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doResume(bool);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);
    bool sipProtectVirt_addSubjob(bool,KJob *);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotResult(bool,KJob *);
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);

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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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

    extern bool sipVH_kdecore_53(sip_gilstate_t,PyObject *,KJob *);

    return sipVH_kdecore_53(sipGILState,sipMeth,a0);
}

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

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

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

    extern bool sipVH_kdecore_53(sip_gilstate_t,PyObject *,KJob *);

    return sipVH_kdecore_53(sipGILState,sipMeth,a0);
}

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

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

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

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

    sipVH_kdecore_27(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

    if (!sipMeth)
        return;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipKCompositeJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doKill() : doKill());
}

bool sipKCompositeJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipKCompositeJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipKCompositeJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipKCompositeJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipKCompositeJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipKCompositeJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipKCompositeJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipKCompositeJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipKCompositeJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipKCompositeJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipKCompositeJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

bool sipKCompositeJob::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? KCompositeJob::addSubjob(a0) : addSubjob(a0));
}

bool sipKCompositeJob::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? KCompositeJob::removeSubjob(a0) : removeSubjob(a0));
}

bool sipKCompositeJob::sipProtect_hasSubjobs()
{
    return KCompositeJob::hasSubjobs();
}

const QList<KJob *>& sipKCompositeJob::sipProtect_subjobs() const
{
    return KCompositeJob::subjobs();
}

void sipKCompositeJob::sipProtect_clearSubjobs()
{
    KCompositeJob::clearSubjobs();
}

void sipKCompositeJob::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? KCompositeJob::slotResult(a0) : slotResult(a0));
}

void sipKCompositeJob::sipProtectVirt_slotInfoMessage(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KCompositeJob::slotInfoMessage(a0,a1,a2) : slotInfoMessage(a0,a1,a2));
}


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

    {
        sipKCompositeJob *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKCompositeJob *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKCompositeJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKCompositeJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKCompositeJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKCompositeJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKCompositeJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKCompositeJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKCompositeJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKCompositeJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_setCapabilities, NULL);

    return NULL;
}


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

    {
        int a0;
        sipKCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KCompositeJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_setError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_setErrorText, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_setProcessedAmount, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_setTotalAmount, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipKCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_KCompositeJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_setPercent, NULL);

    return NULL;
}


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

    {
        sipKCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCompositeJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_emitResult, NULL);

    return NULL;
}


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

    {
        qulonglong a0;
        qulonglong a1;
        sipKCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_KCompositeJob, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_emitPercent, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipKCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_KCompositeJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_KCompositeJob, sipName_emitSpeed, NULL);

    return NULL;
}


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

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

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

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

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

    {
        sipKCompositeJob *sipCpp;

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

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

    {
        sipKCompositeJob *sipCpp;

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

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

    {
        sipKCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KCompositeJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotResult(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_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;
        sipKCompositeJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KCompositeJob, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotInfoMessage(sipSelfWasArg,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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCompositeJob *>(sipCppV);
    else
        delete reinterpret_cast<KCompositeJob *>(sipCppV);

    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_KCompositeJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_childEvent), meth_KCompositeJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_KCompositeJob_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KCompositeJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KCompositeJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KCompositeJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_KCompositeJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_KCompositeJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_KCompositeJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_KCompositeJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_KCompositeJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_KCompositeJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_KCompositeJob_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KCompositeJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_KCompositeJob_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KCompositeJob_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_KCompositeJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_KCompositeJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_KCompositeJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_KCompositeJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_KCompositeJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_KCompositeJob_setTotalAmount, 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},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KCompositeJob_timerEvent, 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},
        26, methods_KCompositeJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCompositeJob,
    0,
    init_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
},
    &KCompositeJob::staticMetaObject,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 1476 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1480 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1483 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 1486 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1489 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 1492 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 1495 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1498 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1501 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1504 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1507 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1510 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1513 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1516 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1519 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1522 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1525 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1528 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_doKill(bool);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doResume(bool);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);

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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

    if (!sipMeth)
        return;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipKJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doKill() : doKill());
}

bool sipKJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipKJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipKJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipKJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipKJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipKJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipKJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipKJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipKJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipKJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipKJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}


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

    {
        sipKJob *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKJob *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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;

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

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

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

    {
        sipKJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            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));

    {
        sipKJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            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));

    {
        sipKJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            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;
        sipKJob *sipCpp;

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

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

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

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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_KJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_KJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKJob *sipCpp;

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

    {
        sipKJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_KJob, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKJob *sipCpp;

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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKJob *>(sipCppV);
    else
        delete reinterpret_cast<KJob *>(sipCppV);

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


static PyMethodDef methods_KJob[] = {
    {SIP_MLNAME_CAST(sipName_capabilities), meth_KJob_capabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KJob_disconnectNotify, 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_receivers), meth_KJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resume), meth_KJob_resume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KJob_sender, 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_timerEvent), meth_KJob_timerEvent, 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, KJob::Bytes, 93},
    {sipName_Directories, KJob::Directories, 93},
    {sipName_EmitResult, KJob::EmitResult, 92},
    {sipName_Files, KJob::Files, 93},
    {sipName_Killable, KJob::Killable, 91},
    {sipName_KilledJobError, KJob::KilledJobError, -1},
    {sipName_NoCapabilities, KJob::NoCapabilities, 91},
    {sipName_NoError, KJob::NoError, -1},
    {sipName_Quietly, KJob::Quietly, 92},
    {sipName_Suspendable, KJob::Suspendable, 91},
    {sipName_UserDefinedError, KJob::UserDefinedError, -1},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KJob[] = {
    {"warning(KJob *,QString,QString)", 0, 0},
    {"warning(KJob *,QString)", 0, 0},
    {"infoMessage(KJob *,QString,QString)", 0, 0},
    {"infoMessage(KJob *,QString)", 0, 0},
    {"description(KJob *,QString,QPair<QString,QString>,QPair<QString,QString>)", 0, 0},
    {"description(KJob *,QString,QPair<QString,QString>)", 0, 0},
    {"description(KJob *,QString)", 0, 0},
    {"result(KJob *)", 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},
        36, methods_KJob,
        11, enummembers_KJob,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KJob,
    0,
    init_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
},
    &KJob::staticMetaObject,
    0,
    pyqt4_signals_KJob
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 3129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 3136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3139 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 3142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 3145 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 3148 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"


class sipKComponentData : public KComponentData
{
public:
    sipKComponentData();
    sipKComponentData(const KComponentData&);
    sipKComponentData(const QByteArray&,const QByteArray&,KComponentData::MainComponentRegistration);
    sipKComponentData(const KAboutData&,KComponentData::MainComponentRegistration);
    sipKComponentData(const KAboutData *,KComponentData::MainComponentRegistration);
    ~sipKComponentData();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_setConfigName(const QString&);

public:
    sipSimpleWrapper *sipPySelf;

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

sipKComponentData::sipKComponentData(): KComponentData(), sipPySelf(0)
{
}

sipKComponentData::sipKComponentData(const KComponentData& a0): KComponentData(a0), sipPySelf(0)
{
}

sipKComponentData::sipKComponentData(const QByteArray& a0,const QByteArray& a1,KComponentData::MainComponentRegistration a2): KComponentData(a0,a1,a2), sipPySelf(0)
{
}

sipKComponentData::sipKComponentData(const KAboutData& a0,KComponentData::MainComponentRegistration a1): KComponentData(a0,a1), sipPySelf(0)
{
}

sipKComponentData::sipKComponentData(const KAboutData *a0,KComponentData::MainComponentRegistration a1): KComponentData(a0,a1), sipPySelf(0)
{
}

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

void sipKComponentData::sipProtect_setConfigName(const QString& a0)
{
    KComponentData::setConfigName(a0);
}


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

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

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

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

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

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

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

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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKComponentData *>(sipCppV);
    else
        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 (sipIsDerived(sipSelf))
        reinterpret_cast<sipKComponentData *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KComponentData * a0;

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

            sipCpp->sipPySelf = sipSelf;

            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 sipKComponentData(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            sipCpp->sipPySelf = sipSelf;

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

            sipCpp->sipPySelf = sipSelf;

            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 sipKComponentData(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            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, KComponentData::RegisterAsMainComponent, 31},
    {sipName_SkipMainComponentRegistration, 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_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
};

#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 3723 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 3730 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 3748 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 3778 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 3814 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KCmdLineArgs::StdCmdLineArgs(*a0 ^ a1);
#line 3923 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KCmdLineArgs::StdCmdLineArgs(*a0 | a1);
#line 3975 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_KCmdLineArgs_StdCmdLineArgs(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 4270 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    1,
    0
};

#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 4346 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 4352 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 4355 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4358 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4361 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 4364 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 4367 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 4370 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4373 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 4379 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"


class sipKCmdLineArgs : public KCmdLineArgs
{
public:
    sipKCmdLineArgs(const KCmdLineOptions&,const KLocalizedString&,const QByteArray&);
    ~sipKCmdLineArgs();

public:
    sipSimpleWrapper *sipPySelf;

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

sipKCmdLineArgs::sipKCmdLineArgs(const KCmdLineOptions& a0,const KLocalizedString& a1,const QByteArray& a2): KCmdLineArgs(a0,a1,a2), sipPySelf(0)
{
}

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


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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 4446 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 4483 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        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;
        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;
        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;

    {
        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;
        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;
        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 *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCmdLineArgs *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_KCmdLineArgs(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KCmdLineArgs(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKCmdLineArgs *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 sipKCmdLineArgs(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a2),sipType_QByteArray,a2State);

            sipCpp->sipPySelf = sipSelf;

            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, KCmdLineArgs::CmdLineArgKDE, 27},
    {sipName_CmdLineArgNone, KCmdLineArgs::CmdLineArgNone, 27},
    {sipName_CmdLineArgQt, KCmdLineArgs::CmdLineArgQt, 27},
    {sipName_CmdLineArgsMask, KCmdLineArgs::CmdLineArgsMask, 27},
    {sipName_Reserved, 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_KCmdLineArgs,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCmdLineArgs,
    0,
    0,
    0,
    release_KCmdLineArgs,
    cast_KCmdLineArgs,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.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 5324 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5328 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 5331 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_KCmdLineOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_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
};

#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcharsets.sip"
#include <kcharsets.h>
#line 5530 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5534 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5537 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 56 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5540 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5543 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 72 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 5546 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 5549 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"


class sipKCharsets : public KCharsets
{
public:
    sipKCharsets();
    ~sipKCharsets();

public:
    sipSimpleWrapper *sipPySelf;

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

sipKCharsets::sipKCharsets(): KCharsets(), sipPySelf(0)
{
}

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


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

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

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

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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKCharsets *>(sipCppV);
    else
        delete reinterpret_cast<KCharsets *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

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


#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcharsets.sip"
#include <kcharsets.h>
#line 6057 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 6060 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kstandarddirs.sip"
#include <kstandarddirs.h>
#line 6063 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 6066 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 6069 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6072 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6075 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6078 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        PyObject *a0Keep;

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

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

            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, KGlobal::DoCopyCatalogs, 88},
    {sipName_DontCopyCatalogs, 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
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcalendarsystem.sip"
#include <kcalendarsystem.h>
#line 6639 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 6643 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6646 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 6649 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 6652 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6655 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6658 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6661 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"


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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_julianDayToDate(int,int&,int&,int&) const;
    bool sipProtect_dateToJulianDay(int,int,int,int&) const;
    const KLocale * sipProtect_locale() const;
    void sipProtect_setMaxMonthsInYear(int);
    void sipProtect_setMaxDaysInWeek(int);
    void sipProtect_setHasYear0(bool);

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

QString sipKCalendarSystem::calendarType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QString();

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

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

QDate sipKCalendarSystem::epoch() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern QDate sipVH_kdecore_72(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_72(sipGILState,sipMeth);
}

QDate sipKCalendarSystem::earliestValidDate() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern QDate sipVH_kdecore_72(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_72(sipGILState,sipMeth);
}

QDate sipKCalendarSystem::latestValidDate() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern QDate sipVH_kdecore_72(sip_gilstate_t,PyObject *);

    return sipVH_kdecore_72(sipGILState,sipMeth);
}

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

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

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_71(sip_gilstate_t,PyObject *,int,int,int);

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

bool sipKCalendarSystem::isValid(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::isValid(a0);

    extern bool sipVH_kdecore_66(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_66(sipGILState,sipMeth,a0);
}

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[6]),sipPySelf,NULL,sipName_setDate);

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

    extern bool sipVH_kdecore_70(sip_gilstate_t,PyObject *,QDate&,int,int,int);

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

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

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

    extern bool sipVH_kdecore_70(sip_gilstate_t,PyObject *,QDate&,int,int,int);

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

int sipKCalendarSystem::year(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::year(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

int sipKCalendarSystem::month(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::month(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

int sipKCalendarSystem::day(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::day(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

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

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

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

    extern QDate sipVH_kdecore_69(sip_gilstate_t,PyObject *,const QDate&,int);

    return sipVH_kdecore_69(sipGILState,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[12]),sipPySelf,NULL,sipName_addMonths);

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

    extern QDate sipVH_kdecore_69(sip_gilstate_t,PyObject *,const QDate&,int);

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

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

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

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

    extern QDate sipVH_kdecore_69(sip_gilstate_t,PyObject *,const QDate&,int);

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

int sipKCalendarSystem::monthsInYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::monthsInYear(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

int sipKCalendarSystem::weeksInYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::weeksInYear(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return KCalendarSystem::weeksInYear(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t,PyObject *,int);

    return ((sipVH_QtGui_28)(sipModuleAPI_kdecore_QtGui->em_virthandlers[28]))(sipGILState,sipMeth,a0);
}

int sipKCalendarSystem::daysInYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::daysInYear(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

int sipKCalendarSystem::daysInMonth(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::daysInMonth(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

int sipKCalendarSystem::daysInWeek(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::daysInWeek(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

int sipKCalendarSystem::dayOfYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::dayOfYear(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

int sipKCalendarSystem::dayOfWeek(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::dayOfWeek(a0);

    extern int sipVH_kdecore_68(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_68(sipGILState,sipMeth,a0);
}

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

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

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

    extern int sipVH_kdecore_67(sip_gilstate_t,PyObject *,const QDate&,int *);

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

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

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

bool sipKCalendarSystem::isLeapYear(const QDate& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCalendarSystem::isLeapYear(a0);

    extern bool sipVH_kdecore_66(sip_gilstate_t,PyObject *,const QDate&);

    return sipVH_kdecore_66(sipGILState,sipMeth,a0);
}

QString sipKCalendarSystem::monthName(int a0,int a1,KCalendarSystem::MonthNameFormat a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QString();

    extern QString sipVH_kdecore_65(sip_gilstate_t,PyObject *,int,int,KCalendarSystem::MonthNameFormat);

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

QString sipKCalendarSystem::monthName(const QDate& a0,KCalendarSystem::MonthNameFormat a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern QString sipVH_kdecore_64(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::MonthNameFormat);

    return sipVH_kdecore_64(sipGILState,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[27]),sipPySelf,sipName_KCalendarSystem,sipName_weekDayName);

    if (!sipMeth)
        return QString();

    extern QString sipVH_kdecore_63(sip_gilstate_t,PyObject *,int,KCalendarSystem::WeekDayNameFormat);

    return sipVH_kdecore_63(sipGILState,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[28]),sipPySelf,NULL,sipName_weekDayName);

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

    extern QString sipVH_kdecore_62(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::WeekDayNameFormat);

    return sipVH_kdecore_62(sipGILState,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[29]),sipPySelf,NULL,sipName_yearString);

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

    extern QString sipVH_kdecore_61(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::StringFormat);

    return sipVH_kdecore_61(sipGILState,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[30]),sipPySelf,NULL,sipName_monthString);

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

    extern QString sipVH_kdecore_61(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::StringFormat);

    return sipVH_kdecore_61(sipGILState,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[31]),sipPySelf,NULL,sipName_dayString);

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

    extern QString sipVH_kdecore_61(sip_gilstate_t,PyObject *,const QDate&,KCalendarSystem::StringFormat);

    return sipVH_kdecore_61(sipGILState,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[32]),sipPySelf,NULL,sipName_yearStringToInteger);

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

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

    return sipVH_kdecore_60(sipGILState,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[33]),sipPySelf,NULL,sipName_monthStringToInteger);

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

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

    return sipVH_kdecore_60(sipGILState,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[34]),sipPySelf,NULL,sipName_dayStringToInteger);

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

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

    return sipVH_kdecore_60(sipGILState,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[35]),sipPySelf,NULL,sipName_formatDate);

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

    extern QString sipVH_kdecore_59(sip_gilstate_t,PyObject *,const QDate&,KLocale::DateFormat);

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

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

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

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

    extern QDate sipVH_kdecore_58(sip_gilstate_t,PyObject *,const QString&,bool *);

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

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[37]),sipPySelf,NULL,sipName_readDate);

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

    extern QDate sipVH_kdecore_57(sip_gilstate_t,PyObject *,const QString&,const QString&,bool *);

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

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[38]),sipPySelf,NULL,sipName_readDate);

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return 0;

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

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

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

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

    if (!sipMeth)
        return 0;

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

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

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

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

    if (!sipMeth)
        return 0;

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

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

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

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

    if (!sipMeth)
        return 0;

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

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

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

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

    if (!sipMeth)
        return 0;

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

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

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[45]),sipPySelf,sipName_KCalendarSystem,sipName_julianDayToDate);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_55(sip_gilstate_t,PyObject *,int,int&,int&,int&);

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

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[46]),sipPySelf,sipName_KCalendarSystem,sipName_dateToJulianDay);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kdecore_54(sip_gilstate_t,PyObject *,int,int,int,int&);

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

bool sipKCalendarSystem::sipProtect_julianDayToDate(int a0,int& a1,int& a2,int& a3) const
{
    return julianDayToDate(a0,a1,a2,a3);
}

bool sipKCalendarSystem::sipProtect_dateToJulianDay(int a0,int a1,int a2,int& a3) const
{
    return dateToJulianDay(a0,a1,a2,a3);
}

const KLocale * sipKCalendarSystem::sipProtect_locale() const
{
    return KCalendarSystem::locale();
}

void sipKCalendarSystem::sipProtect_setMaxMonthsInYear(int a0)
{
    KCalendarSystem::setMaxMonthsInYear(a0);
}

void sipKCalendarSystem::sipProtect_setMaxDaysInWeek(int a0)
{
    KCalendarSystem::setMaxDaysInWeek(a0);
}

void sipKCalendarSystem::sipProtect_setHasYear0(bool a0)
{
    KCalendarSystem::setHasYear0(a0);
}


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

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

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

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

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

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

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

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

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

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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_julianDayToDate);
                return NULL;
            }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Biii", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0, &a1, &a2))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KCalendarSystem, sipName_dateToJulianDay);
                return NULL;
            }

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

    {
        sipKCalendarSystem *sipCpp;

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKCalendarSystem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KCalendarSystem, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKCalendarSystem *sipCpp;

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

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

    {
        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;
        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;
        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;
        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_KCalendarSystem(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KCalendarSystem::LongDayName, 22},
    {sipName_LongFormat, KCalendarSystem::LongFormat, 21},
    {sipName_LongName, KCalendarSystem::LongName, 20},
    {sipName_LongNamePossessive, KCalendarSystem::LongNamePossessive, 20},
    {sipName_NarrowDayName, KCalendarSystem::NarrowDayName, 22},
    {sipName_NarrowName, KCalendarSystem::NarrowName, 20},
    {sipName_ShortDayName, KCalendarSystem::ShortDayName, 22},
    {sipName_ShortFormat, KCalendarSystem::ShortFormat, 21},
    {sipName_ShortName, KCalendarSystem::ShortName, 20},
    {sipName_ShortNamePossessive, 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_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
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 10684 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 10688 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 10706 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 10736 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 10772 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KAutostart::Conditions(*a0 ^ a1);
#line 10881 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KAutostart::Conditions(*a0 | a1);
#line 10933 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_KAutostart_Conditions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 336 "/usr/local/share/py-sip/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(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 11228 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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_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,
    1,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 11301 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11305 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 11308 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11311 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kautostart.sip"
#include <kautostart.h>
#line 11314 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11317 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11326 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11329 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11332 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11335 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11338 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 11341 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11347 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKAutostart *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKAutostart *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKAutostart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKAutostart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKAutostart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAutostart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAutostart *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAutostart *>(sipCppV);
    else
        delete reinterpret_cast<KAutostart *>(sipCppV);

    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_KAutostart(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{134, 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_childEvent), meth_KAutostart_childEvent, 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_connectNotify), meth_KAutostart_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KAutostart_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KAutostart_disconnectNotify, 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_receivers), meth_KAutostart_receivers, 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_sender), meth_KAutostart_sender, 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_timerEvent), meth_KAutostart_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_visibleName), meth_KAutostart_visibleName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAutostart[] = {
    {sipName_Applications, KAutostart::Applications, 18},
    {sipName_BaseDesktop, KAutostart::BaseDesktop, 18},
    {sipName_CheckAll, KAutostart::CheckAll, 16},
    {sipName_CheckCommand, KAutostart::CheckCommand, 16},
    {sipName_CheckCondition, KAutostart::CheckCondition, 16},
    {sipName_DesktopServices, KAutostart::DesktopServices, 18},
    {sipName_NoConditions, KAutostart::NoConditions, 16},
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAutostart = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutostart,
        {0}
    },
    {
        sipNameNr_KAutostart,
        {0, 0, 1},
        28, methods_KAutostart,
        7, enummembers_KAutostart,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAutostart,
    0,
    init_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
},
    &KAutostart::staticMetaObject,
    0,
    0
};

#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 12570 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 12574 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12577 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12580 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12583 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 12586 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qfile.sip"
#include <qfile.h>
#line 12589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qabstractfileengine.sip"
#include <qabstractfileengine.h>
#line 12592 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qfile.sip"
#include <qfile.h>
#line 12595 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12598 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12601 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12604 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12607 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12610 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12613 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12616 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12619 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12622 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12625 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12628 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_readData(bool,char *,qint64);
    qint64 sipProtectVirt_readLineData(bool,char *,qint64);
    qint64 sipProtectVirt_writeData(bool,const char *,PY_LONG_LONG);

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

public:
    sipSimpleWrapper *sipPySelf;

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

void sipKAutoSaveFile::releaseLock()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KAutoSaveFile::releaseLock();
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKAutoSaveFile *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKAutoSaveFile *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAutoSaveFile *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKAutoSaveFile *sipCpp;

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

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

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKAutoSaveFile *sipCpp;

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

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

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAutoSaveFile *>(sipCppV);
    else
        delete reinterpret_cast<KAutoSaveFile *>(sipCppV);

    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_KAutoSaveFile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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_childEvent), meth_KAutoSaveFile_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KAutoSaveFile_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KAutoSaveFile_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KAutoSaveFile_disconnectNotify, 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_readData), meth_KAutoSaveFile_readData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), meth_KAutoSaveFile_readLineData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KAutoSaveFile_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_releaseLock), meth_KAutoSaveFile_releaseLock, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KAutoSaveFile_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_KAutoSaveFile_setErrorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setManagedFile), meth_KAutoSaveFile_setManagedFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), meth_KAutoSaveFile_setOpenMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_staleFiles), meth_KAutoSaveFile_staleFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KAutoSaveFile_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KAutoSaveFile_writeData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kdecore_KAutoSaveFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutoSaveFile,
        {0}
    },
    {
        sipNameNr_KAutoSaveFile,
        {0, 0, 1},
        18, methods_KAutoSaveFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAutoSaveFile,
    0,
    init_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
},
    &KAutoSaveFile::staticMetaObject,
    0,
    0
};


#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13969 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 13972 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 13975 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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
};


#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14218 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14221 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14227 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14230 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 14233 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        PyObject *a2Keep;
        QObject * a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "iAAJ8", &a0, &a2Keep, &a2, sipType_QObject, &a3))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KAuth::HelperSupport::helperMain(a0,&a1,a2,a3);
            Py_END_ALLOW_THREADS
            Py_DECREF(a2Keep);

            return sipBuildResult(0,"(iAA)",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
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kauthactionwatcher.sip"
#include <kauthactionwatcher.h>
#line 14394 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14407 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14410 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kauthactionreply.sip"
#include <kauthactionreply.h>
#line 14413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14416 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14419 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14422 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 14425 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14428 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14431 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14434 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14437 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 14440 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14443 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14446 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

    delete reinterpret_cast<KAuth::ActionWatcher *>(sipCppV);

    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[] = {{134, 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 PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KAuth_ActionWatcher[] = {
    {"statusChanged(int)", 0, 0},
    {"progressStep(int)", 0, 0},
    {"progressStep(QVariantMap)", 0, 0},
    {"actionPerformed(KAuth::ActionReply)", 0, 0},
    {"actionStarted()", 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
},
    &KAuth::ActionWatcher::staticMetaObject,
    0,
    pyqt4_signals_KAuth_ActionWatcher
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kauthactionreply.sip"
#include <kauthactionreply.h>
#line 14616 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14620 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14623 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14626 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14629 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14632 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14635 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

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

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

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

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

    {
        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_KAuth_ActionReply(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KAuth::ActionReply::AuthorizationDenied, 9},
    {sipName_DBusError, KAuth::ActionReply::DBusError, 9},
    {sipName_HelperBusy, KAuth::ActionReply::HelperBusy, 9},
    {sipName_HelperError, KAuth::ActionReply::HelperError, 10},
    {sipName_InvalidAction, KAuth::ActionReply::InvalidAction, 9},
    {sipName_KAuthError, KAuth::ActionReply::KAuthError, 10},
    {sipName_NoError, KAuth::ActionReply::NoError, 9},
    {sipName_NoResponder, KAuth::ActionReply::NoResponder, 9},
    {sipName_NoSuchAction, KAuth::ActionReply::NoSuchAction, 9},
    {sipName_Success, KAuth::ActionReply::Success, 10},
    {sipName_UserCancelled, KAuth::ActionReply::UserCancelled, 9},
};


extern "C" {static PyObject *varget_KAuth_ActionReply_AuthorizationDeniedReply(void *, PyObject *);}
static PyObject *varget_KAuth_ActionReply_AuthorizationDeniedReply(void *, 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 *);}
static PyObject *varget_KAuth_ActionReply_DBusErrorReply(void *, 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 *);}
static PyObject *varget_KAuth_ActionReply_HelperBusyReply(void *, 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 *);}
static PyObject *varget_KAuth_ActionReply_HelperErrorReply(void *, 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 *);}
static PyObject *varget_KAuth_ActionReply_InvalidActionReply(void *, 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 *);}
static PyObject *varget_KAuth_ActionReply_NoResponderReply(void *, 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 *);}
static PyObject *varget_KAuth_ActionReply_NoSuchActionReply(void *, 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 *);}
static PyObject *varget_KAuth_ActionReply_SuccessReply(void *, 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 *);}
static PyObject *varget_KAuth_ActionReply_UserCancelledReply(void *, 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_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
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kauthaction.sip"
#include <kauthaction.h>
#line 15379 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15383 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 15386 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 15389 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kauthactionreply.sip"
#include <kauthactionreply.h>
#line 15392 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 15395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 15398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 15404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kauthactionwatcher.sip"
#include <kauthactionwatcher.h>
#line 15407 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

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

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

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

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

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

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

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

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

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

    {
        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_KAuth_Action(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KAuth::Action::AuthRequired, 7},
    {sipName_Authorized, KAuth::Action::Authorized, 7},
    {sipName_Denied, KAuth::Action::Denied, 7},
    {sipName_Error, KAuth::Action::Error, 7},
    {sipName_Invalid, KAuth::Action::Invalid, 7},
    {sipName_UserCancelled, 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_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
};




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


#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 16420 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16423 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 16426 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 16655 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16659 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 16662 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16665 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16668 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16671 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 16674 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 16677 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

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

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

    {
        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 PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* 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;

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

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

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

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

    {
        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 PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* 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;

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

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

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

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

    {
        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 PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* 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;

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

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

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

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

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

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

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

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

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

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

    {
        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_KAboutData(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, KAboutData::FullName, 2},
    {sipName_License_Artistic, KAboutData::License_Artistic, 1},
    {sipName_License_BSD, KAboutData::License_BSD, 1},
    {sipName_License_Custom, KAboutData::License_Custom, 1},
    {sipName_License_File, KAboutData::License_File, 1},
    {sipName_License_GPL, KAboutData::License_GPL, 1},
    {sipName_License_GPL_V2, KAboutData::License_GPL_V2, 1},
    {sipName_License_GPL_V3, KAboutData::License_GPL_V3, 1},
    {sipName_License_LGPL, KAboutData::License_LGPL, 1},
    {sipName_License_LGPL_V2, KAboutData::License_LGPL_V2, 1},
    {sipName_License_LGPL_V3, KAboutData::License_LGPL_V3, 1},
    {sipName_License_QPL, KAboutData::License_QPL, 1},
    {sipName_License_QPL_V1_0, KAboutData::License_QPL_V1_0, 1},
    {sipName_License_Unknown, KAboutData::License_Unknown, 1},
    {sipName_ShortName, 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_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
};

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

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 18472 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 18475 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 18478 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;

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

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

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

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

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

#line 957 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qvector.h>
#line 18778 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"



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


extern "C" {static void *array_QVector_1800(SIP_SSIZE_T);}
static void *array_QVector_1800(SIP_SSIZE_T sipNrElem)
{
    return new QVector<int>[sipNrElem];
}


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


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



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

#line 985 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;

        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) {
            PyObject *tobj = PyList_GET_ITEM(sipPy, i);
#if PY_MAJOR_VERSION >= 3
            if (!PyNumber_Check(tobj))
#else
            if (!PyInt_Check(tobj))
#endif
                return 0;
        }
        return 1;
    }

    QVector<int> *qv = new QVector<int>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        PyObject *tobj = PyList_GET_ITEM(sipPy, i);
 #if PY_MAJOR_VERSION >= 3
        int t = PyLong_AsLong (tobj);
#else
        int t = PyInt_AS_LONG (tobj);
#endif

        if (*sipIsErr)
        {
            delete qv;
            return 0;
        }

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


extern "C" {static PyObject *convertFrom_QVector_1800(void *, PyObject *);}
static PyObject *convertFrom_QVector_1800(void *sipCppV,PyObject *)
{
   QVector<int> *sipCpp = reinterpret_cast<QVector<int> *>(sipCppV);

#line 961 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        int t = (sipCpp->at(i));

#if PY_MAJOR_VERSION >= 3        
        PyObject *tobj = PyLong_FromLong(t);
#else
        PyObject *tobj = PyInt_FromLong(t);
#endif

        PyList_SET_ITEM(l, i, tobj);
    }

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


sipMappedTypeDef sipTypeDef_kdecore_QVector_1800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_20220,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_1800,
    array_QVector_1800,
    copy_QVector_1800,
    release_QVector_1800,
    convertTo_QVector_1800,
    convertFrom_QVector_1800
};

#line 729 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 18923 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

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

        while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
        {
#if 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 19024 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QHash<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 19076 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/sipkdecorepart7.cpp"
}


sipMappedTypeDef sipTypeDef_kdecore_QHash_1800_1800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_16748,
        {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
};
