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

#include "sipAPIakonadi.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/transactionsequence.sip"
#include <akonadi/transactionsequence.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.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/akonadi/sipakonadipart1.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/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/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/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 67 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 73 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_TransactionSequence : public Akonadi::TransactionSequence
{
public:
    sipAkonadi_TransactionSequence(QObject *);
    virtual ~sipAkonadi_TransactionSequence();

    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_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 sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);
    void sipProtectVirt_doHandleResponse(bool,const QByteArray&,const QByteArray&);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtectVirt_doKill(bool);
    void sipProtect_emitWriteFinished();
    bool sipProtectVirt_addSubjob(bool,KJob *);
    void sipProtectVirt_doStart(bool);
    void sipProtectVirt_slotResult(bool,KJob *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QString errorString() const;
    void doStart();
    void doHandleResponse(const QByteArray&,const QByteArray&);
    bool addSubjob(KJob *);
    bool removeSubjob(KJob *);
    bool doKill();
    void slotResult(KJob *);
    void slotInfoMessage(KJob *,const QString&,const QString&);
    void start();
    bool doSuspend();
    bool doResume();
    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:
    sipAkonadi_TransactionSequence(const sipAkonadi_TransactionSequence &);
    sipAkonadi_TransactionSequence &operator = (const sipAkonadi_TransactionSequence &);

    char sipPyMethods[18];
};

sipAkonadi_TransactionSequence::sipAkonadi_TransactionSequence(QObject *a0): Akonadi::TransactionSequence(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_TransactionSequence::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_TransactionSequence);
}

int sipAkonadi_TransactionSequence::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::TransactionSequence::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_TransactionSequence,_c,_id,_a);

    return _id;
}

void *sipAkonadi_TransactionSequence::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_TransactionSequence,_clname)) ? this : Akonadi::TransactionSequence::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
        return Akonadi::Job::errorString();

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

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

void sipAkonadi_TransactionSequence::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::TransactionSequence::doStart();
        return;
    }

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

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

void sipAkonadi_TransactionSequence::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Job::doHandleResponse(a0,a1);
        return;
    }

    extern void sipVH_akonadi_6(sip_gilstate_t,PyObject *,const QByteArray&,const QByteArray&);

    sipVH_akonadi_6(sipGILState,sipMeth,a0,a1);
}

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

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

    if (!sipMeth)
        return Akonadi::TransactionSequence::addSubjob(a0);

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

    return ((sipVH_kdecore_53)(sipModuleAPI_akonadi_kdecore->em_virthandlers[53]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Akonadi::Job::removeSubjob(a0);

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

    return ((sipVH_kdecore_53)(sipModuleAPI_akonadi_kdecore->em_virthandlers[53]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Akonadi::Job::doKill();

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

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

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

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

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

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

    ((sipVH_kdecore_27)(sipModuleAPI_akonadi_kdecore->em_virthandlers[27]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    ((sipVH_kdecore_23)(sipModuleAPI_akonadi_kdecore->em_virthandlers[23]))(sipGILState,sipMeth,a0,a1,a2);
}

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

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

    if (!sipMeth)
    {
        Akonadi::Job::start();
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipAkonadi_TransactionSequence::sipProtectVirt_doHandleResponse(bool sipSelfWasArg,const QByteArray& a0,const QByteArray& a1)
{
    (sipSelfWasArg ? Akonadi::Job::doHandleResponse(a0,a1) : doHandleResponse(a0,a1));
}

bool sipAkonadi_TransactionSequence::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::removeSubjob(a0) : removeSubjob(a0));
}

bool sipAkonadi_TransactionSequence::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Akonadi::Job::doKill() : doKill());
}

void sipAkonadi_TransactionSequence::sipProtect_emitWriteFinished()
{
    Akonadi::Job::emitWriteFinished();
}

bool sipAkonadi_TransactionSequence::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::TransactionSequence::addSubjob(a0) : addSubjob(a0));
}

void sipAkonadi_TransactionSequence::sipProtectVirt_doStart(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Akonadi::TransactionSequence::doStart() : doStart());
}

void sipAkonadi_TransactionSequence::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? Akonadi::TransactionSequence::slotResult(a0) : slotResult(a0));
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_TransactionSequence, &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 656 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_TransactionSequence, &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 698 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipAkonadi_TransactionSequence *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipAkonadi_TransactionSequence *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipAkonadi_TransactionSequence *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_TransactionSequence *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_TransactionSequence *sipCpp;

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

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_doSuspend, NULL);

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_doResume, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_setCapabilities, NULL);

    return NULL;
}


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

    {
        int a0;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_setError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_setErrorText, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_setProcessedAmount, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_setTotalAmount, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_setPercent, NULL);

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_emitResult, NULL);

    return NULL;
}


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

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_emitPercent, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_emitSpeed, NULL);

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_hasSubjobs, NULL);

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_subjobs, NULL);

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_clearSubjobs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_TransactionSequence_slotInfoMessage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_TransactionSequence_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;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_slotInfoMessage, NULL);

    return NULL;
}


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

    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Akonadi_TransactionSequence, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doHandleResponse(sipSelfWasArg,*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_removeSubjob, NULL);

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_doKill, NULL);

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::TransactionSequence *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_addSubjob, NULL);

    return NULL;
}


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

    {
        sipAkonadi_TransactionSequence *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_TransactionSequence, &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_TransactionSequence, sipName_slotResult, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        Akonadi::TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_TransactionSequence, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIgnoreJobFailure(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_TransactionSequence, sipName_setIgnoreJobFailure, NULL);

    return NULL;
}


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

    {
        bool a0;
        Akonadi::TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_TransactionSequence, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutomaticCommittingEnabled(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_TransactionSequence, sipName_setAutomaticCommittingEnabled, NULL);

    return NULL;
}


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

    {
        Akonadi::TransactionSequence *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_TransactionSequence)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Job)->ctd_cast((Akonadi::Job *)(Akonadi::TransactionSequence *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_TransactionSequence *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::TransactionSequence *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_TransactionSequence[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_TransactionSequence_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_TransactionSequence_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_Akonadi_TransactionSequence_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commit), meth_Akonadi_TransactionSequence_commit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_TransactionSequence_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_TransactionSequence_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_TransactionSequence_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_TransactionSequence_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_TransactionSequence_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_TransactionSequence_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_TransactionSequence_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_TransactionSequence_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_TransactionSequence_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_TransactionSequence_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_TransactionSequence_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitWriteFinished), meth_Akonadi_TransactionSequence_emitWriteFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_Akonadi_TransactionSequence_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_TransactionSequence_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_Akonadi_TransactionSequence_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rollback), meth_Akonadi_TransactionSequence_rollback, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_TransactionSequence_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutomaticCommittingEnabled), meth_Akonadi_TransactionSequence_setAutomaticCommittingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_TransactionSequence_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_TransactionSequence_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_TransactionSequence_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIgnoreJobFailure), meth_Akonadi_TransactionSequence_setIgnoreJobFailure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_TransactionSequence_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_TransactionSequence_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_TransactionSequence_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_Akonadi_TransactionSequence_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_TransactionSequence_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_Akonadi_TransactionSequence_subjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_TransactionSequence_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_TransactionSequence = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__TransactionSequence,
        {0}
    },
    {
        sipNameNr_TransactionSequence,
        {0, 255, 0},
        33, methods_Akonadi_TransactionSequence,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_TransactionSequence,
    0,
    init_Akonadi_TransactionSequence,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_TransactionSequence,
    0,
    0,
    0,
    release_Akonadi_TransactionSequence,
    cast_Akonadi_TransactionSequence,
    0,
    0,
    0
},
    &Akonadi::TransactionSequence::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/session.sip"
#include <akonadi/session.h>
#line 1737 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1741 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1744 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1747 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1750 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1753 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1756 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1759 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1762 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1765 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1768 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1771 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1774 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1777 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_Session : public Akonadi::Session
{
public:
    sipAkonadi_Session(const QByteArray&,QObject *);
    virtual ~sipAkonadi_Session();

    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:
    sipAkonadi_Session(const sipAkonadi_Session &);
    sipAkonadi_Session &operator = (const sipAkonadi_Session &);

    char sipPyMethods[7];
};

sipAkonadi_Session::sipAkonadi_Session(const QByteArray& a0,QObject *a1): Akonadi::Session(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_Session::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_Session);
}

int sipAkonadi_Session::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::Session::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_Session,_c,_id,_a);

    return _id;
}

void *sipAkonadi_Session::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_Session,_clname)) ? this : Akonadi::Session::qt_metacast(_clname);
}

bool sipAkonadi_Session::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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_Session::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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipAkonadi_Session::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_akonadi_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_Session::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_akonadi_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_Session::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_akonadi_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_Session::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_Session::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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


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

    {
        sipAkonadi_Session *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_Session, &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 2037 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_Session *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_Session, &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 2079 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipAkonadi_Session *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipAkonadi_Session *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipAkonadi_Session *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_Session *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_Session *sipCpp;

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

    return NULL;
}


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

    {
        Akonadi::Session *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->sessionId());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Akonadi::Session *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::Session::defaultSession();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::Session *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_Session, &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_Session, sipName_clear, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_Session)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_Session *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::Session *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1JH", sipType_QByteArray, &a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_Session(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_Session[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_Session_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_Akonadi_Session_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_Session_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_Session_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultSession), meth_Akonadi_Session_defaultSession, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_Session_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_Session_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_Session_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionId), meth_Akonadi_Session_sessionId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_Session_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Akonadi_Session[] = {
    {"reconnected()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_Session = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Session,
        {0}
    },
    {
        sipNameNr_Session,
        {0, 255, 0},
        10, methods_Akonadi_Session,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_Session,
    0,
    init_Akonadi_Session,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Session,
    0,
    0,
    0,
    release_Akonadi_Session,
    cast_Akonadi_Session,
    0,
    0,
    0
},
    &Akonadi::Session::staticMetaObject,
    0,
    pyqt4_signals_Akonadi_Session
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/servermanager.sip"
#include <akonadi/servermanager.h>
#line 2459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2463 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2466 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2469 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2472 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2475 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2478 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2481 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2484 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2487 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2490 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2493 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2496 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2499 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2502 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::ServerManager::start();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::ServerManager::stop();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QWidget * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:", sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            Akonadi::ServerManager::showSelfTestDialog(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_ServerManager, sipName_showSelfTestDialog, NULL);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::ServerManager::isRunning();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Akonadi::ServerManager *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::ServerManager::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Akonadi::ServerManager::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::ServerManager::state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Akonadi_ServerManager_State);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_ServerManager)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<Akonadi::ServerManager *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Akonadi_ServerManager[] = {
    {SIP_MLNAME_CAST(sipName_isRunning), meth_Akonadi_ServerManager_isRunning, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_Akonadi_ServerManager_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showSelfTestDialog), meth_Akonadi_ServerManager_showSelfTestDialog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_ServerManager_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_state), meth_Akonadi_ServerManager_state, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stop), meth_Akonadi_ServerManager_stop, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_ServerManager[] = {
    {sipName_Broken, Akonadi::ServerManager::Broken, 128},
    {sipName_NotRunning, Akonadi::ServerManager::NotRunning, 128},
    {sipName_Running, Akonadi::ServerManager::Running, 128},
    {sipName_Starting, Akonadi::ServerManager::Starting, 128},
    {sipName_Stopping, Akonadi::ServerManager::Stopping, 128},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Akonadi_ServerManager[] = {
    {"stateChanged(Akonadi::ServerManager::State)", 0, 0},
    {"stopped()", 0, 0},
    {"started()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ServerManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ServerManager,
        {0}
    },
    {
        sipNameNr_ServerManager,
        {0, 255, 0},
        6, methods_Akonadi_ServerManager,
        5, enummembers_Akonadi_ServerManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_ServerManager,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_ServerManager,
    0,
    0,
    0,
    release_Akonadi_ServerManager,
    cast_Akonadi_ServerManager,
    0,
    0,
    0
},
    &Akonadi::ServerManager::staticMetaObject,
    0,
    pyqt4_signals_Akonadi_ServerManager
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/searchcreatejob.sip"
#include <akonadi/searchcreatejob.h>
#line 2777 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2781 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2784 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2787 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 2790 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2793 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 2796 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2799 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 2802 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2805 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2808 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 2811 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2814 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2817 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2820 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2823 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2826 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2829 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2832 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2835 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2838 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2841 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_SearchCreateJob : public Akonadi::SearchCreateJob
{
public:
    sipAkonadi_SearchCreateJob(const QString&,const QString&,QObject *);
    virtual ~sipAkonadi_SearchCreateJob();

    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_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 sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);
    bool sipProtectVirt_addSubjob(bool,KJob *);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtectVirt_doKill(bool);
    void sipProtect_emitWriteFinished();
    void sipProtectVirt_slotResult(bool,KJob *);
    void sipProtectVirt_doStart(bool);
    void sipProtectVirt_doHandleResponse(bool,const QByteArray&,const QByteArray&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QString errorString() const;
    void doStart();
    void doHandleResponse(const QByteArray&,const QByteArray&);
    bool addSubjob(KJob *);
    bool removeSubjob(KJob *);
    bool doKill();
    void slotResult(KJob *);
    void slotInfoMessage(KJob *,const QString&,const QString&);
    void start();
    bool doSuspend();
    bool doResume();
    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:
    sipAkonadi_SearchCreateJob(const sipAkonadi_SearchCreateJob &);
    sipAkonadi_SearchCreateJob &operator = (const sipAkonadi_SearchCreateJob &);

    char sipPyMethods[18];
};

sipAkonadi_SearchCreateJob::sipAkonadi_SearchCreateJob(const QString& a0,const QString& a1,QObject *a2): Akonadi::SearchCreateJob(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_SearchCreateJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_SearchCreateJob);
}

int sipAkonadi_SearchCreateJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::SearchCreateJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_SearchCreateJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_SearchCreateJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_SearchCreateJob,_clname)) ? this : Akonadi::SearchCreateJob::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
        return Akonadi::Job::errorString();

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

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

void sipAkonadi_SearchCreateJob::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::SearchCreateJob::doStart();
        return;
    }

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

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

void sipAkonadi_SearchCreateJob::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::SearchCreateJob::doHandleResponse(a0,a1);
        return;
    }

    extern void sipVH_akonadi_6(sip_gilstate_t,PyObject *,const QByteArray&,const QByteArray&);

    sipVH_akonadi_6(sipGILState,sipMeth,a0,a1);
}

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

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

    if (!sipMeth)
        return Akonadi::Job::addSubjob(a0);

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

    return ((sipVH_kdecore_53)(sipModuleAPI_akonadi_kdecore->em_virthandlers[53]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Akonadi::Job::removeSubjob(a0);

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

    return ((sipVH_kdecore_53)(sipModuleAPI_akonadi_kdecore->em_virthandlers[53]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Akonadi::Job::doKill();

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

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

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

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

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

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

    ((sipVH_kdecore_27)(sipModuleAPI_akonadi_kdecore->em_virthandlers[27]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    ((sipVH_kdecore_23)(sipModuleAPI_akonadi_kdecore->em_virthandlers[23]))(sipGILState,sipMeth,a0,a1,a2);
}

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

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

    if (!sipMeth)
    {
        Akonadi::Job::start();
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipAkonadi_SearchCreateJob::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::addSubjob(a0) : addSubjob(a0));
}

bool sipAkonadi_SearchCreateJob::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::removeSubjob(a0) : removeSubjob(a0));
}

bool sipAkonadi_SearchCreateJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Akonadi::Job::doKill() : doKill());
}

void sipAkonadi_SearchCreateJob::sipProtect_emitWriteFinished()
{
    Akonadi::Job::emitWriteFinished();
}

void sipAkonadi_SearchCreateJob::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? Akonadi::Job::slotResult(a0) : slotResult(a0));
}

void sipAkonadi_SearchCreateJob::sipProtectVirt_doStart(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Akonadi::SearchCreateJob::doStart() : doStart());
}

void sipAkonadi_SearchCreateJob::sipProtectVirt_doHandleResponse(bool sipSelfWasArg,const QByteArray& a0,const QByteArray& a1)
{
    (sipSelfWasArg ? Akonadi::SearchCreateJob::doHandleResponse(a0,a1) : doHandleResponse(a0,a1));
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &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 3424 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_SearchCreateJob, &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 3466 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

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

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_doSuspend, NULL);

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_doResume, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_setCapabilities, NULL);

    return NULL;
}


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

    {
        int a0;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_setError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_setErrorText, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_setProcessedAmount, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_setTotalAmount, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_setPercent, NULL);

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_emitResult, NULL);

    return NULL;
}


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

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_emitPercent, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_emitSpeed, NULL);

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_hasSubjobs, NULL);

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_subjobs, NULL);

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_clearSubjobs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_SearchCreateJob_slotInfoMessage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_SearchCreateJob_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;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_slotInfoMessage, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_addSubjob, NULL);

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_removeSubjob, NULL);

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_doKill, NULL);

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_SearchCreateJob, &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_SearchCreateJob, sipName_slotResult, NULL);

    return NULL;
}


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

    {
        sipAkonadi_SearchCreateJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SearchCreateJob, &sipCpp))
        {
            Akonadi::Collection *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->createdCollection());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        sipAkonadi_SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Akonadi_SearchCreateJob, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doHandleResponse(sipSelfWasArg,*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Akonadi::SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_SearchCreateJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueryLanguage(*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_SearchCreateJob, sipName_setQueryLanguage, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_SearchCreateJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Job)->ctd_cast((Akonadi::Job *)(Akonadi::SearchCreateJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_SearchCreateJob *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::SearchCreateJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1|JH", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_SearchCreateJob(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_SearchCreateJob[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_SearchCreateJob_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_SearchCreateJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_Akonadi_SearchCreateJob_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_SearchCreateJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createdCollection), meth_Akonadi_SearchCreateJob_createdCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_SearchCreateJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_SearchCreateJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_SearchCreateJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_SearchCreateJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_SearchCreateJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_SearchCreateJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_SearchCreateJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_SearchCreateJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_SearchCreateJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_SearchCreateJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitWriteFinished), meth_Akonadi_SearchCreateJob_emitWriteFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_Akonadi_SearchCreateJob_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_SearchCreateJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_Akonadi_SearchCreateJob_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_SearchCreateJob_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_SearchCreateJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_SearchCreateJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_SearchCreateJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_SearchCreateJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_SearchCreateJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQueryLanguage), meth_Akonadi_SearchCreateJob_setQueryLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_SearchCreateJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_Akonadi_SearchCreateJob_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_SearchCreateJob_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_Akonadi_SearchCreateJob_subjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_SearchCreateJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_SearchCreateJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__SearchCreateJob,
        {0}
    },
    {
        sipNameNr_SearchCreateJob,
        {0, 255, 0},
        31, methods_Akonadi_SearchCreateJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_SearchCreateJob,
    0,
    init_Akonadi_SearchCreateJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_SearchCreateJob,
    0,
    0,
    0,
    release_Akonadi_SearchCreateJob,
    cast_Akonadi_SearchCreateJob,
    0,
    0,
    0
},
    &Akonadi::SearchCreateJob::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/resourcesynchronizationjob.sip"
#include <akonadi/resourcesynchronizationjob.h>
#line 4459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 4463 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4466 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 4469 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4472 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 4475 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4478 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 4481 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 4484 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4487 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4490 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4493 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4496 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4499 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4502 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4505 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4508 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4511 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4514 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4517 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_ResourceSynchronizationJob : public Akonadi::ResourceSynchronizationJob
{
public:
    sipAkonadi_ResourceSynchronizationJob(const Akonadi::AgentInstance&,QObject *);
    virtual ~sipAkonadi_ResourceSynchronizationJob();

    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:
    sipAkonadi_ResourceSynchronizationJob(const sipAkonadi_ResourceSynchronizationJob &);
    sipAkonadi_ResourceSynchronizationJob &operator = (const sipAkonadi_ResourceSynchronizationJob &);

    char sipPyMethods[12];
};

sipAkonadi_ResourceSynchronizationJob::sipAkonadi_ResourceSynchronizationJob(const Akonadi::AgentInstance& a0,QObject *a1): Akonadi::ResourceSynchronizationJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_ResourceSynchronizationJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_ResourceSynchronizationJob);
}

int sipAkonadi_ResourceSynchronizationJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::ResourceSynchronizationJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_ResourceSynchronizationJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_ResourceSynchronizationJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_ResourceSynchronizationJob,_clname)) ? this : Akonadi::ResourceSynchronizationJob::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::ResourceSynchronizationJob::start();
        return;
    }

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

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

bool sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

QString sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

bool sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_ResourceSynchronizationJob::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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 4932 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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 4974 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_doKill, NULL);

    return NULL;
}


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

    {
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_doSuspend, NULL);

    return NULL;
}


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

    {
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_doResume, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_setCapabilities, NULL);

    return NULL;
}


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

    {
        int a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_setError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_setErrorText, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_setProcessedAmount, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_setTotalAmount, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_setPercent, NULL);

    return NULL;
}


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

    {
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_emitResult, NULL);

    return NULL;
}


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

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_emitPercent, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipAkonadi_ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &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_ResourceSynchronizationJob, sipName_emitSpeed, NULL);

    return NULL;
}


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

    {
        Akonadi::ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &sipCpp))
        {
            Akonadi::AgentInstance *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::AgentInstance(sipCpp->resource());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::ResourceSynchronizationJob::start() : sipCpp->start());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_ResourceSynchronizationJob)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_ResourceSynchronizationJob *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::ResourceSynchronizationJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const Akonadi::AgentInstance * a0;
        QObject * a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_ResourceSynchronizationJob[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_ResourceSynchronizationJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_ResourceSynchronizationJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_ResourceSynchronizationJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_ResourceSynchronizationJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_ResourceSynchronizationJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_ResourceSynchronizationJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_ResourceSynchronizationJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_ResourceSynchronizationJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_ResourceSynchronizationJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_ResourceSynchronizationJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_ResourceSynchronizationJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resource), meth_Akonadi_ResourceSynchronizationJob_resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_ResourceSynchronizationJob_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_ResourceSynchronizationJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_ResourceSynchronizationJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_ResourceSynchronizationJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_ResourceSynchronizationJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_ResourceSynchronizationJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_ResourceSynchronizationJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_ResourceSynchronizationJob_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_ResourceSynchronizationJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ResourceSynchronizationJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ResourceSynchronizationJob,
        {0}
    },
    {
        sipNameNr_ResourceSynchronizationJob,
        {0, 255, 0},
        21, methods_Akonadi_ResourceSynchronizationJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_ResourceSynchronizationJob,
    0,
    init_Akonadi_ResourceSynchronizationJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_ResourceSynchronizationJob,
    0,
    0,
    0,
    release_Akonadi_ResourceSynchronizationJob,
    cast_Akonadi_ResourceSynchronizationJob,
    0,
    0,
    0
},
    &Akonadi::ResourceSynchronizationJob::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/resourcesettings.sip"
#include <akonadi/resourcesettings.h>
#line 5664 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5668 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kconfigskeleton.sip"
#include <kconfigskeleton.h>
#line 5671 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5674 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 5677 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kconfigskeleton.sip"
#include <kconfigskeleton.h>
#line 5680 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 5683 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5686 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5689 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5692 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 5695 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 5698 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5701 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 628 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5704 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5707 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5710 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5713 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5716 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5719 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 5722 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5725 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 5728 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5731 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 5734 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5737 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5740 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5743 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5746 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5749 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5752 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5755 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5758 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5761 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5764 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5767 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5770 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5773 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5776 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5779 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5782 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5785 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5788 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5791 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5794 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5797 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Akonadi::ResourceSettings *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::ResourceSettings::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_ResourceSettings)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_ResourceBaseSettings)->ctd_cast((Akonadi::ResourceBaseSettings *)(Akonadi::ResourceSettings *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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


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


static PyMethodDef methods_Akonadi_ResourceSettings[] = {
    {SIP_MLNAME_CAST(sipName_self), meth_Akonadi_ResourceSettings_self, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ResourceSettings = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ResourceSettings,
        {0}
    },
    {
        sipNameNr_ResourceSettings,
        {0, 255, 0},
        1, methods_Akonadi_ResourceSettings,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_ResourceSettings,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_Akonadi_ResourceSettings,
    cast_Akonadi_ResourceSettings,
    0,
    0,
    0
},
    &Akonadi::ResourceSettings::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/resourcebasesettings.sip"
#include <akonadi/resourcebasesettings.h>
#line 5909 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5913 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kconfigskeleton.sip"
#include <kconfigskeleton.h>
#line 5916 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5919 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 5922 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kconfigskeleton.sip"
#include <kconfigskeleton.h>
#line 5925 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 5928 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5931 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5934 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5937 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 5940 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 5943 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5946 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 628 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5949 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5952 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5955 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5958 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5961 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5964 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 5967 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5970 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 5973 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5976 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 5979 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5982 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5985 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5988 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5991 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5994 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5997 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6000 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6003 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6006 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6009 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6012 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6015 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6018 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6021 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6024 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6027 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6030 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6033 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6036 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6039 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6042 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_ResourceBaseSettings : public Akonadi::ResourceBaseSettings
{
public:
    sipAkonadi_ResourceBaseSettings();
    virtual ~sipAkonadi_ResourceBaseSettings();

    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_usrUseDefaults(bool,bool);
    void sipProtectVirt_usrSetDefaults(bool);
    void sipProtectVirt_usrReadConfig(bool);
    void sipProtectVirt_usrWriteConfig(bool);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setDefaults();
    void readConfig();
    void writeConfig();
    bool useDefaults(bool);
    bool usrUseDefaults(bool);
    void usrSetDefaults();
    void usrReadConfig();
    void usrWriteConfig();
    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:
    sipAkonadi_ResourceBaseSettings(const sipAkonadi_ResourceBaseSettings &);
    sipAkonadi_ResourceBaseSettings &operator = (const sipAkonadi_ResourceBaseSettings &);

    char sipPyMethods[15];
};

sipAkonadi_ResourceBaseSettings::sipAkonadi_ResourceBaseSettings(): Akonadi::ResourceBaseSettings(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_ResourceBaseSettings::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_ResourceBaseSettings);
}

int sipAkonadi_ResourceBaseSettings::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::ResourceBaseSettings::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_ResourceBaseSettings,_c,_id,_a);

    return _id;
}

void *sipAkonadi_ResourceBaseSettings::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_ResourceBaseSettings,_clname)) ? this : Akonadi::ResourceBaseSettings::qt_metacast(_clname);
}

void sipAkonadi_ResourceBaseSettings::setDefaults()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KCoreConfigSkeleton::setDefaults();
        return;
    }

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

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

void sipAkonadi_ResourceBaseSettings::readConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KCoreConfigSkeleton::readConfig();
        return;
    }

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

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

void sipAkonadi_ResourceBaseSettings::writeConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KCoreConfigSkeleton::writeConfig();
        return;
    }

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

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

bool sipAkonadi_ResourceBaseSettings::useDefaults(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCoreConfigSkeleton::useDefaults(a0);

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

    return ((sipVH_QtGui_11)(sipModuleAPI_akonadi_QtGui->em_virthandlers[11]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_ResourceBaseSettings::usrUseDefaults(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KCoreConfigSkeleton::usrUseDefaults(a0);

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

    return ((sipVH_QtGui_11)(sipModuleAPI_akonadi_QtGui->em_virthandlers[11]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_ResourceBaseSettings::usrSetDefaults()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KCoreConfigSkeleton::usrSetDefaults();
        return;
    }

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

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

void sipAkonadi_ResourceBaseSettings::usrReadConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KCoreConfigSkeleton::usrReadConfig();
        return;
    }

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

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

void sipAkonadi_ResourceBaseSettings::usrWriteConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KCoreConfigSkeleton::usrWriteConfig();
        return;
    }

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

bool sipAkonadi_ResourceBaseSettings::sipProtectVirt_usrUseDefaults(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? KCoreConfigSkeleton::usrUseDefaults(a0) : usrUseDefaults(a0));
}

void sipAkonadi_ResourceBaseSettings::sipProtectVirt_usrSetDefaults(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KCoreConfigSkeleton::usrSetDefaults() : usrSetDefaults());
}

void sipAkonadi_ResourceBaseSettings::sipProtectVirt_usrReadConfig(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KCoreConfigSkeleton::usrReadConfig() : usrReadConfig());
}

void sipAkonadi_ResourceBaseSettings::sipProtectVirt_usrWriteConfig(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KCoreConfigSkeleton::usrWriteConfig() : usrWriteConfig());
}


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

    {
        sipAkonadi_ResourceBaseSettings *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceBaseSettings, &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 6472 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceBaseSettings *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_ResourceBaseSettings, &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 6514 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_usrUseDefaults(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBaseSettings *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Akonadi::ResourceBaseSettings *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::ResourceBaseSettings::self();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            Akonadi::ResourceBaseSettings::setMinimumCheckInterval(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_ResourceBaseSettings, sipName_setMinimumCheckInterval, NULL);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::ResourceBaseSettings::minimumCheckInterval();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::ResourceBaseSettings *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceBaseSettings, &sipCpp))
        {
            KCoreConfigSkeleton::ItemInt *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->minimumCheckIntervalItem();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_ResourceBaseSettings)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KConfigSkeleton)->ctd_cast((KConfigSkeleton *)(Akonadi::ResourceBaseSettings *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_ResourceBaseSettings *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::ResourceBaseSettings *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_ResourceBaseSettings[] = {{66, 7, 1}};


static PyMethodDef methods_Akonadi_ResourceBaseSettings[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_ResourceBaseSettings_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_ResourceBaseSettings_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_ResourceBaseSettings_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_ResourceBaseSettings_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_minimumCheckInterval), meth_Akonadi_ResourceBaseSettings_minimumCheckInterval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_minimumCheckIntervalItem), meth_Akonadi_ResourceBaseSettings_minimumCheckIntervalItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_ResourceBaseSettings_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_Akonadi_ResourceBaseSettings_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_ResourceBaseSettings_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMinimumCheckInterval), meth_Akonadi_ResourceBaseSettings_setMinimumCheckInterval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_ResourceBaseSettings_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usrReadConfig), meth_Akonadi_ResourceBaseSettings_usrReadConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usrSetDefaults), meth_Akonadi_ResourceBaseSettings_usrSetDefaults, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usrUseDefaults), meth_Akonadi_ResourceBaseSettings_usrUseDefaults, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usrWriteConfig), meth_Akonadi_ResourceBaseSettings_usrWriteConfig, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ResourceBaseSettings = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ResourceBaseSettings,
        {0}
    },
    {
        sipNameNr_ResourceBaseSettings,
        {0, 255, 0},
        15, methods_Akonadi_ResourceBaseSettings,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_ResourceBaseSettings,
    0,
    init_Akonadi_ResourceBaseSettings,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_ResourceBaseSettings,
    0,
    0,
    0,
    release_Akonadi_ResourceBaseSettings,
    cast_Akonadi_ResourceBaseSettings,
    0,
    0,
    0
},
    &Akonadi::ResourceBaseSettings::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/resourcebase.sip"
#include <akonadi/resourcebase.h>
#line 7021 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7025 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 7028 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/itemsync.sip"
#include <akonadi/itemsync.h>
#line 7031 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 7034 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 7037 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7040 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 7043 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7046 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7049 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 513 "/usr/local/share/py-sip/QtCore/qset.sip"
#include <qset.h>
#line 7052 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7055 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 7058 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 7061 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7064 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7067 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 7070 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/changerecorder.sip"
#include <akonadi/changerecorder.h>
#line 7073 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 7078 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7081 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7084 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7087 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7090 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7093 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7096 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 7099 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7105 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_ResourceBase : public Akonadi::ResourceBase
{
public:
    sipAkonadi_ResourceBase(const QString&);
    virtual ~sipAkonadi_ResourceBase();

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

    /* Expose this protected enum. */
    enum sipSchedulePriority {
        Prepend = Akonadi::ResourceBase::Prepend,
        AfterChangeReplay = Akonadi::ResourceBase::AfterChangeReplay,
        Append = Akonadi::ResourceBase::Append
    };

    /*
     * 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 sipProtectVirt_aboutToQuit(bool);
    Akonadi::ChangeRecorder * sipProtect_changeRecorder() const;
    void sipProtect_changeProcessed();
    bool sipProtect_isOnline() const;
    void sipProtect_setNeedsNetwork(bool);
    void sipProtect_setOnline(bool);
    KSharedConfigPtr sipProtect_config();
    void sipProtect_retrieveCollections();
    void sipProtect_retrieveItems(const Akonadi::Collection&);
    bool sipProtect_retrieveItem(const Akonadi::Item&,const QSet<QByteArray>&);
    void sipProtect_itemRetrieved(const Akonadi::Item&);
    void sipProtect_changeCommitted(const Akonadi::Item&);
    void sipProtect_changeCommitted(const Akonadi::Collection&);
    void sipProtect_collectionsRetrieved(const Akonadi::Collection::List&);
    void sipProtect_collectionsRetrievedIncremental(const Akonadi::Collection::List&,const Akonadi::Collection::List&);
    void sipProtect_setCollectionStreamingEnabled(bool);
    void sipProtect_collectionsRetrievalDone();
    void sipProtect_itemsRetrieved(const Akonadi::Item::List&);
    void sipProtect_setTotalItems(int);
    void sipProtect_setItemStreamingEnabled(bool);
    void sipProtect_itemsRetrievedIncremental(const Akonadi::Item::List&,const Akonadi::Item::List&);
    void sipProtect_itemsRetrievalDone();
    void sipProtect_clearCache();
    Akonadi::Collection sipProtect_currentCollection() const;
    Akonadi::Item sipProtect_currentItem() const;
    void sipProtect_synchronize();
    void sipProtect_synchronizeCollection(qint64);
    void sipProtect_synchronizeCollection(qint64,bool);
    void sipProtect_synchronizeCollectionTree();
    void sipProtect_cancelTask();
    void sipProtect_cancelTask(const QString&);
    void sipProtect_deferTask();
    void sipProtectVirt_doSetOnline(bool,bool);
    void sipProtect_setHierarchicalRemoteIdentifiersEnabled(bool);
    void sipProtect_scheduleCustomTask(QObject *,const char *,const QVariant&,int);
    void sipProtect_taskDone();
    void sipProtect_retrieveCollectionAttributes(const Akonadi::Collection&);
    void sipProtect_abortActivity();
    void sipProtect_collectionAttributesRetrieved(const Akonadi::Collection&);
    void sipProtect_setItemTransactionMode(Akonadi::ItemSync::TransactionMode);
    void sipProtect_setItemSynchronizationFetchScope(const Akonadi::ItemFetchScope&);
    void sipProtect_synchronizeCollectionAttributes(qint64);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void retrieveCollections();
    void retrieveItems(const Akonadi::Collection&);
    bool retrieveItem(const Akonadi::Item&,const QSet<QByteArray>&);
    int status() const;
    QString statusMessage() const;
    int progress() const;
    QString progressMessage() const;
    void configure(WId);
    void cleanup();
    void aboutToQuit();
    void doSetOnline(bool);
    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:
    sipAkonadi_ResourceBase(const sipAkonadi_ResourceBase &);
    sipAkonadi_ResourceBase &operator = (const sipAkonadi_ResourceBase &);

    char sipPyMethods[18];
};

sipAkonadi_ResourceBase::sipAkonadi_ResourceBase(const QString& a0): Akonadi::ResourceBase(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_ResourceBase::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_ResourceBase);
}

int sipAkonadi_ResourceBase::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::ResourceBase::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_ResourceBase,_c,_id,_a);

    return _id;
}

void *sipAkonadi_ResourceBase::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_ResourceBase,_clname)) ? this : Akonadi::ResourceBase::qt_metacast(_clname);
}

void sipAkonadi_ResourceBase::retrieveCollections()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_ResourceBase,sipName_retrieveCollections);

    if (!sipMeth)
        return;

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

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

void sipAkonadi_ResourceBase::retrieveItems(const Akonadi::Collection& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_ResourceBase,sipName_retrieveItems);

    if (!sipMeth)
        return;

    extern void sipVH_akonadi_2(sip_gilstate_t,PyObject *,const Akonadi::Collection&);

    sipVH_akonadi_2(sipGILState,sipMeth,a0);
}

bool sipAkonadi_ResourceBase::retrieveItem(const Akonadi::Item& a0,const QSet<QByteArray>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_ResourceBase,sipName_retrieveItem);

    if (!sipMeth)
        return 0;

    extern bool sipVH_akonadi_1(sip_gilstate_t,PyObject *,const Akonadi::Item&,const QSet<QByteArray>&);

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

int sipAkonadi_ResourceBase::status() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentBase::status();

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

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

QString sipAkonadi_ResourceBase::statusMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentBase::statusMessage();

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

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

int sipAkonadi_ResourceBase::progress() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentBase::progress();

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

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

QString sipAkonadi_ResourceBase::progressMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentBase::progressMessage();

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

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

void sipAkonadi_ResourceBase::configure(WId a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::configure(a0);
        return;
    }

    typedef void (*sipVH_kdeui_6)(sip_gilstate_t,PyObject *,unsigned long);

    ((sipVH_kdeui_6)(sipModuleAPI_akonadi_kdeui->em_virthandlers[6]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_ResourceBase::cleanup()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::cleanup();
        return;
    }

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

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

void sipAkonadi_ResourceBase::aboutToQuit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::aboutToQuit();
        return;
    }

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

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

void sipAkonadi_ResourceBase::doSetOnline(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::ResourceBase::doSetOnline(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_akonadi_QtNetwork->em_virthandlers[1]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

void sipAkonadi_ResourceBase::sipProtectVirt_aboutToQuit(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Akonadi::AgentBase::aboutToQuit() : aboutToQuit());
}

Akonadi::ChangeRecorder * sipAkonadi_ResourceBase::sipProtect_changeRecorder() const
{
    return Akonadi::AgentBase::changeRecorder();
}

void sipAkonadi_ResourceBase::sipProtect_changeProcessed()
{
    Akonadi::AgentBase::changeProcessed();
}

bool sipAkonadi_ResourceBase::sipProtect_isOnline() const
{
    return Akonadi::AgentBase::isOnline();
}

void sipAkonadi_ResourceBase::sipProtect_setNeedsNetwork(bool a0)
{
    Akonadi::AgentBase::setNeedsNetwork(a0);
}

void sipAkonadi_ResourceBase::sipProtect_setOnline(bool a0)
{
    Akonadi::AgentBase::setOnline(a0);
}

KSharedConfigPtr sipAkonadi_ResourceBase::sipProtect_config()
{
    return Akonadi::AgentBase::config();
}

void sipAkonadi_ResourceBase::sipProtect_retrieveCollections()
{
    retrieveCollections();
}

void sipAkonadi_ResourceBase::sipProtect_retrieveItems(const Akonadi::Collection& a0)
{
    retrieveItems(a0);
}

bool sipAkonadi_ResourceBase::sipProtect_retrieveItem(const Akonadi::Item& a0,const QSet<QByteArray>& a1)
{
    return retrieveItem(a0,a1);
}

void sipAkonadi_ResourceBase::sipProtect_itemRetrieved(const Akonadi::Item& a0)
{
    Akonadi::ResourceBase::itemRetrieved(a0);
}

void sipAkonadi_ResourceBase::sipProtect_changeCommitted(const Akonadi::Item& a0)
{
    Akonadi::ResourceBase::changeCommitted(a0);
}

void sipAkonadi_ResourceBase::sipProtect_changeCommitted(const Akonadi::Collection& a0)
{
    Akonadi::ResourceBase::changeCommitted(a0);
}

void sipAkonadi_ResourceBase::sipProtect_collectionsRetrieved(const Akonadi::Collection::List& a0)
{
    Akonadi::ResourceBase::collectionsRetrieved(a0);
}

void sipAkonadi_ResourceBase::sipProtect_collectionsRetrievedIncremental(const Akonadi::Collection::List& a0,const Akonadi::Collection::List& a1)
{
    Akonadi::ResourceBase::collectionsRetrievedIncremental(a0,a1);
}

void sipAkonadi_ResourceBase::sipProtect_setCollectionStreamingEnabled(bool a0)
{
    Akonadi::ResourceBase::setCollectionStreamingEnabled(a0);
}

void sipAkonadi_ResourceBase::sipProtect_collectionsRetrievalDone()
{
    Akonadi::ResourceBase::collectionsRetrievalDone();
}

void sipAkonadi_ResourceBase::sipProtect_itemsRetrieved(const Akonadi::Item::List& a0)
{
    Akonadi::ResourceBase::itemsRetrieved(a0);
}

void sipAkonadi_ResourceBase::sipProtect_setTotalItems(int a0)
{
    Akonadi::ResourceBase::setTotalItems(a0);
}

void sipAkonadi_ResourceBase::sipProtect_setItemStreamingEnabled(bool a0)
{
    Akonadi::ResourceBase::setItemStreamingEnabled(a0);
}

void sipAkonadi_ResourceBase::sipProtect_itemsRetrievedIncremental(const Akonadi::Item::List& a0,const Akonadi::Item::List& a1)
{
    Akonadi::ResourceBase::itemsRetrievedIncremental(a0,a1);
}

void sipAkonadi_ResourceBase::sipProtect_itemsRetrievalDone()
{
    Akonadi::ResourceBase::itemsRetrievalDone();
}

void sipAkonadi_ResourceBase::sipProtect_clearCache()
{
    Akonadi::ResourceBase::clearCache();
}

Akonadi::Collection sipAkonadi_ResourceBase::sipProtect_currentCollection() const
{
    return Akonadi::ResourceBase::currentCollection();
}

Akonadi::Item sipAkonadi_ResourceBase::sipProtect_currentItem() const
{
    return Akonadi::ResourceBase::currentItem();
}

void sipAkonadi_ResourceBase::sipProtect_synchronize()
{
    Akonadi::ResourceBase::synchronize();
}

void sipAkonadi_ResourceBase::sipProtect_synchronizeCollection(qint64 a0)
{
    Akonadi::ResourceBase::synchronizeCollection(a0);
}

void sipAkonadi_ResourceBase::sipProtect_synchronizeCollection(qint64 a0,bool a1)
{
    Akonadi::ResourceBase::synchronizeCollection(a0,a1);
}

void sipAkonadi_ResourceBase::sipProtect_synchronizeCollectionTree()
{
    Akonadi::ResourceBase::synchronizeCollectionTree();
}

void sipAkonadi_ResourceBase::sipProtect_cancelTask()
{
    Akonadi::ResourceBase::cancelTask();
}

void sipAkonadi_ResourceBase::sipProtect_cancelTask(const QString& a0)
{
    Akonadi::ResourceBase::cancelTask(a0);
}

void sipAkonadi_ResourceBase::sipProtect_deferTask()
{
    Akonadi::ResourceBase::deferTask();
}

void sipAkonadi_ResourceBase::sipProtectVirt_doSetOnline(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? Akonadi::ResourceBase::doSetOnline(a0) : doSetOnline(a0));
}

void sipAkonadi_ResourceBase::sipProtect_setHierarchicalRemoteIdentifiersEnabled(bool a0)
{
    Akonadi::ResourceBase::setHierarchicalRemoteIdentifiersEnabled(a0);
}

void sipAkonadi_ResourceBase::sipProtect_scheduleCustomTask(QObject *a0,const char *a1,const QVariant& a2,int a3)
{
    Akonadi::ResourceBase::scheduleCustomTask(a0,a1,a2,(Akonadi::ResourceBase::SchedulePriority)a3);
}

void sipAkonadi_ResourceBase::sipProtect_taskDone()
{
    Akonadi::ResourceBase::taskDone();
}

void sipAkonadi_ResourceBase::sipProtect_retrieveCollectionAttributes(const Akonadi::Collection& a0)
{
    Akonadi::ResourceBase::retrieveCollectionAttributes(a0);
}

void sipAkonadi_ResourceBase::sipProtect_abortActivity()
{
    Akonadi::ResourceBase::abortActivity();
}

void sipAkonadi_ResourceBase::sipProtect_collectionAttributesRetrieved(const Akonadi::Collection& a0)
{
    Akonadi::ResourceBase::collectionAttributesRetrieved(a0);
}

void sipAkonadi_ResourceBase::sipProtect_setItemTransactionMode(Akonadi::ItemSync::TransactionMode a0)
{
    Akonadi::ResourceBase::setItemTransactionMode(a0);
}

void sipAkonadi_ResourceBase::sipProtect_setItemSynchronizationFetchScope(const Akonadi::ItemFetchScope& a0)
{
    Akonadi::ResourceBase::setItemSynchronizationFetchScope(a0);
}

void sipAkonadi_ResourceBase::sipProtect_synchronizeCollectionAttributes(qint64 a0)
{
    Akonadi::ResourceBase::synchronizeCollectionAttributes(a0);
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceBase, &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 7812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_ResourceBase, &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 7854 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipAkonadi_ResourceBase *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipAkonadi_ResourceBase *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipAkonadi_ResourceBase *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceBase *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_ResourceBase *sipCpp;

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Akonadi::ChangeRecorder *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_changeRecorder();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_isOnline();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setNeedsNetwork(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_ResourceBase, sipName_setNeedsNetwork, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOnline(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_ResourceBase, sipName_setOnline, NULL);

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfigPtr(sipCpp->sipProtect_config());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_ResourceBase, &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_ResourceBase, sipName_setName, NULL);

    return NULL;
}


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

    {
        Akonadi::ResourceBase *sipCpp;

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ResourceBase, sipName_retrieveCollections);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_retrieveCollections();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Collection * a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ResourceBase, sipName_retrieveItems);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_retrieveItems(*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_ResourceBase, sipName_retrieveItems, NULL);

    return NULL;
}


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

    {
        const Akonadi::Item * a0;
        const QSet<QByteArray> * a1;
        int a1State = 0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Item, &a0, sipType_QSet_0100QByteArray,&a1, &a1State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ResourceBase, sipName_retrieveItem);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_retrieveItem(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QSet<QByteArray> *>(a1),sipType_QSet_0100QByteArray,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Item * a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Item, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_itemRetrieved(*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_ResourceBase, sipName_itemRetrieved, NULL);

    return NULL;
}


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

    {
        const Akonadi::Item * a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Item, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_changeCommitted(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Akonadi::Collection * a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_changeCommitted(*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_ResourceBase, sipName_changeCommitted, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection::List * a0;
        int a0State = 0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QList_0100Akonadi_Collection,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_collectionsRetrieved(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Collection::List *>(a0),sipType_QList_0100Akonadi_Collection,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Collection::List * a0;
        int a0State = 0;
        const Akonadi::Collection::List * a1;
        int a1State = 0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QList_0100Akonadi_Collection,&a0, &a0State, sipType_QList_0100Akonadi_Collection,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_collectionsRetrievedIncremental(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Collection::List *>(a0),sipType_QList_0100Akonadi_Collection,a0State);
            sipReleaseType(const_cast<Akonadi::Collection::List *>(a1),sipType_QList_0100Akonadi_Collection,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setCollectionStreamingEnabled(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_ResourceBase, sipName_setCollectionStreamingEnabled, NULL);

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Item::List * a0;
        int a0State = 0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QList_0100Akonadi_Item,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_itemsRetrieved(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Item::List *>(a0),sipType_QList_0100Akonadi_Item,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTotalItems(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_ResourceBase, sipName_setTotalItems, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setItemStreamingEnabled(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_ResourceBase, sipName_setItemStreamingEnabled, NULL);

    return NULL;
}


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

    {
        const Akonadi::Item::List * a0;
        int a0State = 0;
        const Akonadi::Item::List * a1;
        int a1State = 0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QList_0100Akonadi_Item,&a0, &a0State, sipType_QList_0100Akonadi_Item,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_itemsRetrievedIncremental(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Item::List *>(a0),sipType_QList_0100Akonadi_Item,a0State);
            sipReleaseType(const_cast<Akonadi::Item::List *>(a1),sipType_QList_0100Akonadi_Item,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Akonadi::Collection *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->sipProtect_currentCollection());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Akonadi::Item *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Item(sipCpp->sipProtect_currentItem());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_synchronizeCollection(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qint64 a0;
        bool a1;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bnb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_synchronizeCollection(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_ResourceBase, sipName_synchronizeCollection, NULL);

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_cancelTask(*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_ResourceBase, sipName_cancelTask, NULL);

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doSetOnline(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_ResourceBase, sipName_doSetOnline, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setHierarchicalRemoteIdentifiersEnabled(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_ResourceBase, sipName_setHierarchicalRemoteIdentifiersEnabled, NULL);

    return NULL;
}


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

    {
        QObject * a0;
        const char * a1;
        PyObject *a1Keep;
        const QVariant * a2;
        int a2State = 0;
        int a3;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8AAJ1E", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QObject, &a0, &a1Keep, &a1, sipType_QVariant,&a2, &a2State, sipType_Akonadi_ResourceBase_SchedulePriority, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_scheduleCustomTask(a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Collection * a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_retrieveCollectionAttributes(*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_ResourceBase, sipName_retrieveCollectionAttributes, NULL);

    return NULL;
}


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

    {
        sipAkonadi_ResourceBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Collection * a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_collectionAttributesRetrieved(*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_ResourceBase, sipName_collectionAttributesRetrieved, NULL);

    return NULL;
}


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

    {
        Akonadi::ItemSync::TransactionMode a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_ItemSync_TransactionMode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setItemTransactionMode(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_ResourceBase, sipName_setItemTransactionMode, NULL);

    return NULL;
}


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

    {
        const Akonadi::ItemFetchScope * a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_ItemFetchScope, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setItemSynchronizationFetchScope(*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_ResourceBase, sipName_setItemSynchronizationFetchScope, NULL);

    return NULL;
}


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

    {
        qint64 a0;
        sipAkonadi_ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_synchronizeCollectionAttributes(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_ResourceBase, sipName_synchronizeCollectionAttributes, NULL);

    return NULL;
}


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

    {
        bool a0;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutomaticProgressReporting(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_ResourceBase, sipName_setAutomaticProgressReporting, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_ResourceBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_AgentBase)->ctd_cast((Akonadi::AgentBase *)(Akonadi::ResourceBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_ResourceBase(*a0);
            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_Akonadi_ResourceBase[] = {{5, 255, 1}};


static PyMethodDef methods_Akonadi_ResourceBase[] = {
    {SIP_MLNAME_CAST(sipName_abortActivity), meth_Akonadi_ResourceBase_abortActivity, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_aboutToQuit), meth_Akonadi_ResourceBase_aboutToQuit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cancelTask), meth_Akonadi_ResourceBase_cancelTask, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeCommitted), meth_Akonadi_ResourceBase_changeCommitted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeProcessed), meth_Akonadi_ResourceBase_changeProcessed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeRecorder), meth_Akonadi_ResourceBase_changeRecorder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_ResourceBase_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearCache), meth_Akonadi_ResourceBase_clearCache, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionAttributesRetrieved), meth_Akonadi_ResourceBase_collectionAttributesRetrieved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionsRetrievalDone), meth_Akonadi_ResourceBase_collectionsRetrievalDone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionsRetrieved), meth_Akonadi_ResourceBase_collectionsRetrieved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionsRetrievedIncremental), meth_Akonadi_ResourceBase_collectionsRetrievedIncremental, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_Akonadi_ResourceBase_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_ResourceBase_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentCollection), meth_Akonadi_ResourceBase_currentCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentItem), meth_Akonadi_ResourceBase_currentItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_ResourceBase_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deferTask), meth_Akonadi_ResourceBase_deferTask, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_ResourceBase_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSetOnline), meth_Akonadi_ResourceBase_doSetOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOnline), meth_Akonadi_ResourceBase_isOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemRetrieved), meth_Akonadi_ResourceBase_itemRetrieved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemsRetrievalDone), meth_Akonadi_ResourceBase_itemsRetrievalDone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemsRetrieved), meth_Akonadi_ResourceBase_itemsRetrieved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemsRetrievedIncremental), meth_Akonadi_ResourceBase_itemsRetrievedIncremental, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Akonadi_ResourceBase_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_ResourceBase_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_retrieveCollectionAttributes), meth_Akonadi_ResourceBase_retrieveCollectionAttributes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_retrieveCollections), meth_Akonadi_ResourceBase_retrieveCollections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_retrieveItem), meth_Akonadi_ResourceBase_retrieveItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_retrieveItems), meth_Akonadi_ResourceBase_retrieveItems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scheduleCustomTask), meth_Akonadi_ResourceBase_scheduleCustomTask, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_ResourceBase_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutomaticProgressReporting), meth_Akonadi_ResourceBase_setAutomaticProgressReporting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionStreamingEnabled), meth_Akonadi_ResourceBase_setCollectionStreamingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHierarchicalRemoteIdentifiersEnabled), meth_Akonadi_ResourceBase_setHierarchicalRemoteIdentifiersEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemStreamingEnabled), meth_Akonadi_ResourceBase_setItemStreamingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemSynchronizationFetchScope), meth_Akonadi_ResourceBase_setItemSynchronizationFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemTransactionMode), meth_Akonadi_ResourceBase_setItemTransactionMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setName), meth_Akonadi_ResourceBase_setName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNeedsNetwork), meth_Akonadi_ResourceBase_setNeedsNetwork, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOnline), meth_Akonadi_ResourceBase_setOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalItems), meth_Akonadi_ResourceBase_setTotalItems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronize), meth_Akonadi_ResourceBase_synchronize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronizeCollection), meth_Akonadi_ResourceBase_synchronizeCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronizeCollectionAttributes), meth_Akonadi_ResourceBase_synchronizeCollectionAttributes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronizeCollectionTree), meth_Akonadi_ResourceBase_synchronizeCollectionTree, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_taskDone), meth_Akonadi_ResourceBase_taskDone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_ResourceBase_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_ResourceBase[] = {
    {sipName_AfterChangeReplay, sipAkonadi_ResourceBase::AfterChangeReplay, 121},
    {sipName_Append, sipAkonadi_ResourceBase::Append, 121},
    {sipName_Prepend, sipAkonadi_ResourceBase::Prepend, 121},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Akonadi_ResourceBase[] = {
    {"attributesSynchronized(qlonglong)", 0, 0},
    {"synchronized()", 0, 0},
    {"nameChanged(QString)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ResourceBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ResourceBase,
        {0}
    },
    {
        sipNameNr_ResourceBase,
        {0, 255, 0},
        49, methods_Akonadi_ResourceBase,
        3, enummembers_Akonadi_ResourceBase,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_ResourceBase,
    0,
    init_Akonadi_ResourceBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_ResourceBase,
    0,
    0,
    0,
    release_Akonadi_ResourceBase,
    cast_Akonadi_ResourceBase,
    0,
    0,
    0
},
    &Akonadi::ResourceBase::staticMetaObject,
    0,
    pyqt4_signals_Akonadi_ResourceBase
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/recursiveitemfetchjob.sip"
#include <akonadi/recursiveitemfetchjob.h>
#line 9419 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 9423 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9426 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 9429 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9432 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 9435 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 9438 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9441 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9444 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 9447 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9450 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9453 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 9456 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9462 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9465 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9468 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9471 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9474 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9477 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9480 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 9483 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9486 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9489 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_RecursiveItemFetchJob : public Akonadi::RecursiveItemFetchJob
{
public:
    sipAkonadi_RecursiveItemFetchJob(const Akonadi::Collection&,const QStringList&,QObject *);
    virtual ~sipAkonadi_RecursiveItemFetchJob();

    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:
    sipAkonadi_RecursiveItemFetchJob(const sipAkonadi_RecursiveItemFetchJob &);
    sipAkonadi_RecursiveItemFetchJob &operator = (const sipAkonadi_RecursiveItemFetchJob &);

    char sipPyMethods[12];
};

sipAkonadi_RecursiveItemFetchJob::sipAkonadi_RecursiveItemFetchJob(const Akonadi::Collection& a0,const QStringList& a1,QObject *a2): Akonadi::RecursiveItemFetchJob(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_RecursiveItemFetchJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_RecursiveItemFetchJob);
}

int sipAkonadi_RecursiveItemFetchJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::RecursiveItemFetchJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_RecursiveItemFetchJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_RecursiveItemFetchJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_RecursiveItemFetchJob,_clname)) ? this : Akonadi::RecursiveItemFetchJob::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::RecursiveItemFetchJob::start();
        return;
    }

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

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

bool sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

QString sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

bool sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_RecursiveItemFetchJob::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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 9904 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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 9946 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

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

    return NULL;
}


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

    {
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_doKill, NULL);

    return NULL;
}


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

    {
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_doSuspend, NULL);

    return NULL;
}


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

    {
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_doResume, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_setCapabilities, NULL);

    return NULL;
}


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

    {
        int a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_setError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_setErrorText, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_setProcessedAmount, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_setTotalAmount, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_setPercent, NULL);

    return NULL;
}


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

    {
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_emitResult, NULL);

    return NULL;
}


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

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_emitPercent, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        sipAkonadi_RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &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_RecursiveItemFetchJob, sipName_emitSpeed, NULL);

    return NULL;
}


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

    {
        const Akonadi::ItemFetchScope * a0;
        Akonadi::RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &sipCpp, sipType_Akonadi_ItemFetchScope, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFetchScope(*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_RecursiveItemFetchJob, sipName_setFetchScope, NULL);

    return NULL;
}


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

    {
        Akonadi::RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &sipCpp))
        {
            Akonadi::ItemFetchScope *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->fetchScope();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &sipCpp))
        {
            Akonadi::Item::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Item::List(sipCpp->items());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::RecursiveItemFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveItemFetchJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::RecursiveItemFetchJob::start() : sipCpp->start());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_RecursiveItemFetchJob)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_RecursiveItemFetchJob *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::RecursiveItemFetchJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const Akonadi::Collection * a0;
        const QStringList * a1;
        int a1State = 0;
        QObject * a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1|JH", sipType_Akonadi_Collection, &a0, sipType_QStringList,&a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_RecursiveItemFetchJob(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_RecursiveItemFetchJob[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_RecursiveItemFetchJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_RecursiveItemFetchJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_RecursiveItemFetchJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_RecursiveItemFetchJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_RecursiveItemFetchJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_RecursiveItemFetchJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_RecursiveItemFetchJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_RecursiveItemFetchJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_RecursiveItemFetchJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_RecursiveItemFetchJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchScope), meth_Akonadi_RecursiveItemFetchJob_fetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_items), meth_Akonadi_RecursiveItemFetchJob_items, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_RecursiveItemFetchJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_RecursiveItemFetchJob_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_RecursiveItemFetchJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_RecursiveItemFetchJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_RecursiveItemFetchJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFetchScope), meth_Akonadi_RecursiveItemFetchJob_setFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_RecursiveItemFetchJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_RecursiveItemFetchJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_RecursiveItemFetchJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_RecursiveItemFetchJob_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_RecursiveItemFetchJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_RecursiveItemFetchJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__RecursiveItemFetchJob,
        {0}
    },
    {
        sipNameNr_RecursiveItemFetchJob,
        {0, 255, 0},
        23, methods_Akonadi_RecursiveItemFetchJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_RecursiveItemFetchJob,
    0,
    init_Akonadi_RecursiveItemFetchJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_RecursiveItemFetchJob,
    0,
    0,
    0,
    release_Akonadi_RecursiveItemFetchJob,
    cast_Akonadi_RecursiveItemFetchJob,
    0,
    0,
    0
},
    &Akonadi::RecursiveItemFetchJob::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/recursivecollectionfilterproxymodel.sip"
#include <akonadi/recursivecollectionfilterproxymodel.h>
#line 10695 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 10699 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 10702 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10705 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10711 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10714 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10717 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 10720 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10723 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10726 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 10729 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10732 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 10735 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10738 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 151 "/usr/local/share/py-sip/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 10741 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 144 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 10744 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10747 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 144 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 10750 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10753 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 10756 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10759 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10762 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10765 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10768 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10771 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 10774 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10777 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_RecursiveCollectionFilterProxyModel : public Akonadi::RecursiveCollectionFilterProxyModel
{
public:
    sipAkonadi_RecursiveCollectionFilterProxyModel(QObject *);
    virtual ~sipAkonadi_RecursiveCollectionFilterProxyModel();

    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_encodeData(const QModelIndexList&,QDataStream&) const;
    bool sipProtect_decodeData(int,int,const QModelIndex&,QDataStream&);
    void sipProtect_beginInsertRows(const QModelIndex&,int,int);
    void sipProtect_endInsertRows();
    void sipProtect_beginRemoveRows(const QModelIndex&,int,int);
    void sipProtect_endRemoveRows();
    void sipProtect_beginInsertColumns(const QModelIndex&,int,int);
    void sipProtect_endInsertColumns();
    void sipProtect_beginRemoveColumns(const QModelIndex&,int,int);
    void sipProtect_endRemoveColumns();
    QModelIndexList sipProtect_persistentIndexList() const;
    void sipProtect_reset();
    void sipProtect_changePersistentIndex(const QModelIndex&,const QModelIndex&);
    void sipProtect_changePersistentIndexList(const QModelIndexList&,const QModelIndexList&);
    QModelIndex sipProtect_createIndex(int,int,void *) const;
    bool sipProtect_beginMoveRows(const QModelIndex&,int,int,const QModelIndex&,int);
    void sipProtect_endMoveRows();
    bool sipProtect_beginMoveColumns(const QModelIndex&,int,int,const QModelIndex&,int);
    void sipProtect_endMoveColumns();
    void sipProtect_beginResetModel();
    void sipProtect_endResetModel();
    void sipProtect_setRoleNames(const QHash<int,QByteArray>&);
    bool sipProtectVirt_filterAcceptsRow(bool,int,const QModelIndex&) const;
    bool sipProtectVirt_filterAcceptsColumn(bool,int,const QModelIndex&) const;
    void sipProtect_filterChanged();
    bool sipProtectVirt_lessThan(bool,const QModelIndex&,const QModelIndex&) const;
    void sipProtect_invalidateFilter();
    bool sipProtectVirt_acceptRow(bool,int,const QModelIndex&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool acceptRow(int,const QModelIndex&) const;
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    void setSourceModel(QAbstractItemModel *);
    QModelIndex mapToSource(const QModelIndex&) const;
    QModelIndex mapFromSource(const QModelIndex&) const;
    QItemSelection mapSelectionToSource(const QItemSelection&) const;
    QItemSelection mapSelectionFromSource(const QItemSelection&) const;
    bool filterAcceptsRow(int,const QModelIndex&) const;
    bool filterAcceptsColumn(int,const QModelIndex&) const;
    bool lessThan(const QModelIndex&,const QModelIndex&) const;
    QModelIndex index(int,int,const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    int rowCount(const QModelIndex&) const;
    int columnCount(const QModelIndex&) const;
    bool hasChildren(const QModelIndex&) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    QVariant headerData(int,Qt::Orientation,int) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    QMimeData * mimeData(const QModelIndexList&) const;
    bool dropMimeData(const QMimeData *,Qt::DropAction,int,int,const QModelIndex&);
    bool insertRows(int,int,const QModelIndex&);
    bool insertColumns(int,int,const QModelIndex&);
    bool removeRows(int,int,const QModelIndex&);
    bool removeColumns(int,int,const QModelIndex&);
    void fetchMore(const QModelIndex&);
    bool canFetchMore(const QModelIndex&) const;
    Qt::ItemFlags flags(const QModelIndex&) const;
    QModelIndex buddy(const QModelIndex&) const;
    QSize span(const QModelIndex&) const;
    void sort(int,Qt::SortOrder);
    QStringList mimeTypes() const;
    Qt::DropActions supportedDropActions() const;
    QVariant data(const QModelIndex&,int) const;
    bool submit();
    void revert();
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    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:
    sipAkonadi_RecursiveCollectionFilterProxyModel(const sipAkonadi_RecursiveCollectionFilterProxyModel &);
    sipAkonadi_RecursiveCollectionFilterProxyModel &operator = (const sipAkonadi_RecursiveCollectionFilterProxyModel &);

    char sipPyMethods[44];
};

sipAkonadi_RecursiveCollectionFilterProxyModel::sipAkonadi_RecursiveCollectionFilterProxyModel(QObject *a0): Akonadi::RecursiveCollectionFilterProxyModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_RecursiveCollectionFilterProxyModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_RecursiveCollectionFilterProxyModel);
}

int sipAkonadi_RecursiveCollectionFilterProxyModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::RecursiveCollectionFilterProxyModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_RecursiveCollectionFilterProxyModel,_c,_id,_a);

    return _id;
}

void *sipAkonadi_RecursiveCollectionFilterProxyModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_RecursiveCollectionFilterProxyModel,_clname)) ? this : Akonadi::RecursiveCollectionFilterProxyModel::qt_metacast(_clname);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::acceptRow(int a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::acceptRow(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t,PyObject *,int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState,sipMeth,a0,a1);
}

QModelIndexList sipAkonadi_RecursiveCollectionFilterProxyModel::match(const QModelIndex& a0,int a1,const QVariant& a2,int a3,Qt::MatchFlags a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KRecursiveFilterProxyModel::match(a0,a1,a2,a3,a4);

    typedef QList<QModelIndex> (*sipVH_QtCore_48)(sip_gilstate_t,PyObject *,const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

    return ((sipVH_QtCore_48)(sipModuleAPI_akonadi_QtCore->em_virthandlers[48]))(sipGILState,sipMeth,a0,a1,a2,a3,a4);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::setSourceModel(QAbstractItemModel *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KRecursiveFilterProxyModel::setSourceModel(a0);
        return;
    }

    typedef void (*sipVH_QtGui_36)(sip_gilstate_t,PyObject *,QAbstractItemModel *);

    ((sipVH_QtGui_36)(sipModuleAPI_akonadi_QtGui->em_virthandlers[36]))(sipGILState,sipMeth,a0);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::mapToSource(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::mapToSource(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState,sipMeth,a0);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::mapFromSource(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::mapFromSource(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState,sipMeth,a0);
}

QItemSelection sipAkonadi_RecursiveCollectionFilterProxyModel::mapSelectionToSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::mapSelectionToSource(a0);

    typedef QItemSelection (*sipVH_QtGui_115)(sip_gilstate_t,PyObject *,const QItemSelection&);

    return ((sipVH_QtGui_115)(sipModuleAPI_akonadi_QtGui->em_virthandlers[115]))(sipGILState,sipMeth,a0);
}

QItemSelection sipAkonadi_RecursiveCollectionFilterProxyModel::mapSelectionFromSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::mapSelectionFromSource(a0);

    typedef QItemSelection (*sipVH_QtGui_115)(sip_gilstate_t,PyObject *,const QItemSelection&);

    return ((sipVH_QtGui_115)(sipModuleAPI_akonadi_QtGui->em_virthandlers[115]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::filterAcceptsRow(int a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::filterAcceptsRow(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t,PyObject *,int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState,sipMeth,a0,a1);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::filterAcceptsColumn(int a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::filterAcceptsColumn(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t,PyObject *,int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState,sipMeth,a0,a1);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::lessThan(const QModelIndex& a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::lessThan(a0,a1);

    typedef bool (*sipVH_QtGui_113)(sip_gilstate_t,PyObject *,const QModelIndex&,const QModelIndex&);

    return ((sipVH_QtGui_113)(sipModuleAPI_akonadi_QtGui->em_virthandlers[113]))(sipGILState,sipMeth,a0,a1);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::index(a0,a1,a2);

    typedef QModelIndex (*sipVH_QtCore_46)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

    return ((sipVH_QtCore_46)(sipModuleAPI_akonadi_QtCore->em_virthandlers[46]))(sipGILState,sipMeth,a0,a1,a2);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::parent(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::parent(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState,sipMeth,a0);
}

int sipAkonadi_RecursiveCollectionFilterProxyModel::rowCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::rowCount(a0);

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_43)(sipModuleAPI_akonadi_QtCore->em_virthandlers[43]))(sipGILState,sipMeth,a0);
}

int sipAkonadi_RecursiveCollectionFilterProxyModel::columnCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::columnCount(a0);

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_43)(sipModuleAPI_akonadi_QtCore->em_virthandlers[43]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::hasChildren(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::hasChildren(a0);

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_42)(sipModuleAPI_akonadi_QtCore->em_virthandlers[42]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::setData(const QModelIndex& a0,const QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::setData(a0,a1,a2);

    typedef bool (*sipVH_QtCore_59)(sip_gilstate_t,PyObject *,const QModelIndex&,const QVariant&,int);

    return ((sipVH_QtCore_59)(sipModuleAPI_akonadi_QtCore->em_virthandlers[59]))(sipGILState,sipMeth,a0,a1,a2);
}

QVariant sipAkonadi_RecursiveCollectionFilterProxyModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::headerData(a0,a1,a2);

    typedef QVariant (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *,int,Qt::Orientation,int);

    return ((sipVH_QtCore_58)(sipModuleAPI_akonadi_QtCore->em_virthandlers[58]))(sipGILState,sipMeth,a0,a1,a2);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::setHeaderData(a0,a1,a2,a3);

    typedef bool (*sipVH_QtCore_57)(sip_gilstate_t,PyObject *,int,Qt::Orientation,const QVariant&,int);

    return ((sipVH_QtCore_57)(sipModuleAPI_akonadi_QtCore->em_virthandlers[57]))(sipGILState,sipMeth,a0,a1,a2,a3);
}

QMimeData * sipAkonadi_RecursiveCollectionFilterProxyModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::mimeData(a0);

    typedef QMimeData * (*sipVH_QtCore_54)(sip_gilstate_t,PyObject *,const QList<QModelIndex>&);

    return ((sipVH_QtCore_54)(sipModuleAPI_akonadi_QtCore->em_virthandlers[54]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::dropMimeData(const QMimeData *a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::dropMimeData(a0,a1,a2,a3,a4);

    typedef bool (*sipVH_QtCore_45)(sip_gilstate_t,PyObject *,const QMimeData *,Qt::DropAction,int,int,const QModelIndex&);

    return ((sipVH_QtCore_45)(sipModuleAPI_akonadi_QtCore->em_virthandlers[45]))(sipGILState,sipMeth,a0,a1,a2,a3,a4);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::insertRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::insertRows(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState,sipMeth,a0,a1,a2);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::insertColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::insertColumns(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState,sipMeth,a0,a1,a2);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::removeRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::removeRows(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState,sipMeth,a0,a1,a2);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::removeColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::removeColumns(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t,PyObject *,int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState,sipMeth,a0,a1,a2);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
        QSortFilterProxyModel::fetchMore(a0);
        return;
    }

    typedef void (*sipVH_QtCore_51)(sip_gilstate_t,PyObject *,const QModelIndex&);

    ((sipVH_QtCore_51)(sipModuleAPI_akonadi_QtCore->em_virthandlers[51]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::canFetchMore(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::canFetchMore(a0);

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_42)(sipModuleAPI_akonadi_QtCore->em_virthandlers[42]))(sipGILState,sipMeth,a0);
}

Qt::ItemFlags sipAkonadi_RecursiveCollectionFilterProxyModel::flags(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::flags(a0);

    typedef Qt::ItemFlags (*sipVH_QtCore_50)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_50)(sipModuleAPI_akonadi_QtCore->em_virthandlers[50]))(sipGILState,sipMeth,a0);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::buddy(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::buddy(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState,sipMeth,a0);
}

QSize sipAkonadi_RecursiveCollectionFilterProxyModel::span(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::span(a0);

    typedef QSize (*sipVH_QtCore_47)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_47)(sipModuleAPI_akonadi_QtCore->em_virthandlers[47]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sort(int a0,Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
        QSortFilterProxyModel::sort(a0,a1);
        return;
    }

    typedef void (*sipVH_QtCore_49)(sip_gilstate_t,PyObject *,int,Qt::SortOrder);

    ((sipVH_QtCore_49)(sipModuleAPI_akonadi_QtCore->em_virthandlers[49]))(sipGILState,sipMeth,a0,a1);
}

QStringList sipAkonadi_RecursiveCollectionFilterProxyModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::mimeTypes();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_akonadi_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

Qt::DropActions sipAkonadi_RecursiveCollectionFilterProxyModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::supportedDropActions();

    typedef Qt::DropActions (*sipVH_QtCore_53)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_53)(sipModuleAPI_akonadi_QtCore->em_virthandlers[53]))(sipGILState,sipMeth);
}

QVariant sipAkonadi_RecursiveCollectionFilterProxyModel::data(const QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSortFilterProxyModel::data(a0,a1);

    typedef QVariant (*sipVH_QtCore_60)(sip_gilstate_t,PyObject *,const QModelIndex&,int);

    return ((sipVH_QtCore_60)(sipModuleAPI_akonadi_QtCore->em_virthandlers[60]))(sipGILState,sipMeth,a0,a1);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return QAbstractProxyModel::submit();

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

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

void sipAkonadi_RecursiveCollectionFilterProxyModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
        QAbstractProxyModel::revert();
        return;
    }

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

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

QMap<int,QVariant> sipAkonadi_RecursiveCollectionFilterProxyModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QAbstractProxyModel::itemData(a0);

    typedef QMap<int,QVariant> (*sipVH_QtCore_56)(sip_gilstate_t,PyObject *,const QModelIndex&);

    return ((sipVH_QtCore_56)(sipModuleAPI_akonadi_QtCore->em_virthandlers[56]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::setItemData(const QModelIndex& a0,const QMap<int,QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return QAbstractItemModel::setItemData(a0,a1);

    typedef bool (*sipVH_QtCore_55)(sip_gilstate_t,PyObject *,const QModelIndex&,const QMap<int,QVariant>&);

    return ((sipVH_QtCore_55)(sipModuleAPI_akonadi_QtCore->em_virthandlers[55]))(sipGILState,sipMeth,a0,a1);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_encodeData(const QModelIndexList& a0,QDataStream& a1) const
{
    QAbstractItemModel::encodeData(a0,a1);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_decodeData(int a0,int a1,const QModelIndex& a2,QDataStream& a3)
{
    return QAbstractItemModel::decodeData(a0,a1,a2,a3);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_beginInsertRows(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginInsertRows(a0,a1,a2);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_endInsertRows()
{
    QAbstractItemModel::endInsertRows();
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_beginRemoveRows(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginRemoveRows(a0,a1,a2);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_endRemoveRows()
{
    QAbstractItemModel::endRemoveRows();
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_beginInsertColumns(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginInsertColumns(a0,a1,a2);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_endInsertColumns()
{
    QAbstractItemModel::endInsertColumns();
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_beginRemoveColumns(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginRemoveColumns(a0,a1,a2);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_endRemoveColumns()
{
    QAbstractItemModel::endRemoveColumns();
}

QModelIndexList sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_persistentIndexList() const
{
    return QAbstractItemModel::persistentIndexList();
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_reset()
{
    QAbstractItemModel::reset();
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_changePersistentIndex(const QModelIndex& a0,const QModelIndex& a1)
{
    QAbstractItemModel::changePersistentIndex(a0,a1);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_changePersistentIndexList(const QModelIndexList& a0,const QModelIndexList& a1)
{
    QAbstractItemModel::changePersistentIndexList(a0,a1);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_createIndex(int a0,int a1,void *a2) const
{
    return QAbstractItemModel::createIndex(a0,a1,a2);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_beginMoveRows(const QModelIndex& a0,int a1,int a2,const QModelIndex& a3,int a4)
{
    return QAbstractItemModel::beginMoveRows(a0,a1,a2,a3,a4);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_endMoveRows()
{
    QAbstractItemModel::endMoveRows();
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_beginMoveColumns(const QModelIndex& a0,int a1,int a2,const QModelIndex& a3,int a4)
{
    return QAbstractItemModel::beginMoveColumns(a0,a1,a2,a3,a4);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_endMoveColumns()
{
    QAbstractItemModel::endMoveColumns();
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_beginResetModel()
{
    QAbstractItemModel::beginResetModel();
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_endResetModel()
{
    QAbstractItemModel::endResetModel();
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_setRoleNames(const QHash<int,QByteArray>& a0)
{
    QAbstractItemModel::setRoleNames(a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtectVirt_filterAcceptsRow(bool sipSelfWasArg,int a0,const QModelIndex& a1) const
{
    return (sipSelfWasArg ? QSortFilterProxyModel::filterAcceptsRow(a0,a1) : filterAcceptsRow(a0,a1));
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtectVirt_filterAcceptsColumn(bool sipSelfWasArg,int a0,const QModelIndex& a1) const
{
    return (sipSelfWasArg ? QSortFilterProxyModel::filterAcceptsColumn(a0,a1) : filterAcceptsColumn(a0,a1));
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_filterChanged()
{
    QSortFilterProxyModel::filterChanged();
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtectVirt_lessThan(bool sipSelfWasArg,const QModelIndex& a0,const QModelIndex& a1) const
{
    return (sipSelfWasArg ? QSortFilterProxyModel::lessThan(a0,a1) : lessThan(a0,a1));
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtect_invalidateFilter()
{
    QSortFilterProxyModel::invalidateFilter();
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::sipProtectVirt_acceptRow(bool sipSelfWasArg,int a0,const QModelIndex& a1) const
{
    return (sipSelfWasArg ? Akonadi::RecursiveCollectionFilterProxyModel::acceptRow(a0,a1) : acceptRow(a0,a1));
}


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

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &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 11809 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &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 11851 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &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_RecursiveCollectionFilterProxyModel, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &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_RecursiveCollectionFilterProxyModel, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &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_RecursiveCollectionFilterProxyModel, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &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_RecursiveCollectionFilterProxyModel, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &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_RecursiveCollectionFilterProxyModel, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_encodeData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_encodeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndexList * a0;
        int a0State = 0;
        QDataStream * a1;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QList_0100QModelIndex,&a0, &a0State, sipType_QDataStream, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_encodeData(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0100QModelIndex,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_encodeData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_decodeData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_decodeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const QModelIndex * a2;
        QDataStream * a3;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9J9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2, sipType_QDataStream, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_decodeData(a0,a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_decodeData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginInsertRows(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginInsertRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginInsertRows(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_beginInsertRows, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endInsertRows(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endInsertRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endInsertRows();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_endInsertRows, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginRemoveRows(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginRemoveRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginRemoveRows(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_beginRemoveRows, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endRemoveRows(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endRemoveRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endRemoveRows();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_endRemoveRows, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginInsertColumns(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginInsertColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginInsertColumns(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_beginInsertColumns, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endInsertColumns(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endInsertColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endInsertColumns();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_endInsertColumns, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginRemoveColumns(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginRemoveColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginRemoveColumns(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_beginRemoveColumns, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endRemoveColumns(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endRemoveColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endRemoveColumns();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_endRemoveColumns, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_persistentIndexList(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_persistentIndexList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            QModelIndexList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndexList(sipCpp->sipProtect_persistentIndexList());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_persistentIndexList, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_reset(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_reset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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_RecursiveCollectionFilterProxyModel, sipName_reset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_changePersistentIndex(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_changePersistentIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex * a0;
        const QModelIndex * a1;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0, sipType_QModelIndex, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_changePersistentIndex(*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_RecursiveCollectionFilterProxyModel, sipName_changePersistentIndex, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_changePersistentIndexList(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_changePersistentIndexList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndexList * a0;
        int a0State = 0;
        const QModelIndexList * a1;
        int a1State = 0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QList_0100QModelIndex,&a0, &a0State, sipType_QList_0100QModelIndex,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_changePersistentIndexList(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0100QModelIndex,a0State);
            sipReleaseType(const_cast<QModelIndexList *>(a1),sipType_QList_0100QModelIndex,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_changePersistentIndexList, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_createIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_createIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        PyObject * a2 = 0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_object,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|P0", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, &a0, &a1, &a2))
        {
            QModelIndex *sipRes = 0;

#line 216 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
        // The Qt API is broken (and won't be fixed as it would break binary
        // compatibility) regarding the internal id of a model index on different
        // architectures (32 vs 64 bits).  We choose to work around the breakage as it
        // is fairly subtle and continues to catch people out.  Instead of letting Qt
        // convert betweed an integer id and a pointer id (the internal format used by
        // Qt) we let Python do it.
        
        void *ptr;
        
        if (a2)
        {
            // Try and convert it to a Python long and fallback to the object's
            // address if it fails.
            ptr = PyLong_AsVoidPtr(a2);
        
            if (PyErr_Occurred())
            {
                PyErr_Clear();
                ptr = a2;
            }
        }
        else
        {
            ptr = 0;
        }
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = new QModelIndex(sipCpp->createIndex(a0, a1, ptr));
        #else
        sipRes = new QModelIndex(sipCpp->sipProtect_createIndex(a0, a1, ptr));
        #endif
#line 12451 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_createIndex, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginMoveRows(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginMoveRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        const QModelIndex * a3;
        int a4;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9iiJ9i", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2, sipType_QModelIndex, &a3, &a4))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_beginMoveRows(*a0,a1,a2,*a3,a4);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_beginMoveRows, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endMoveRows(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endMoveRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endMoveRows();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_endMoveRows, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginMoveColumns(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginMoveColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex * a0;
        int a1;
        int a2;
        const QModelIndex * a3;
        int a4;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9iiJ9i", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2, sipType_QModelIndex, &a3, &a4))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_beginMoveColumns(*a0,a1,a2,*a3,a4);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_beginMoveColumns, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endMoveColumns(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endMoveColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endMoveColumns();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_endMoveColumns, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginResetModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_beginResetModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginResetModel();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_beginResetModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endResetModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_endResetModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endResetModel();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_endResetModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_setRoleNames(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_setRoleNames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHash<int,QByteArray> * a0;
        int a0State = 0;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QHash_1800_0100QByteArray,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setRoleNames(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHash<int,QByteArray> *>(a0),sipType_QHash_1800_0100QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_setRoleNames, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_filterAcceptsRow(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_filterAcceptsRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QModelIndex * a1;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_filterAcceptsRow(sipSelfWasArg,a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_filterAcceptsRow, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_filterAcceptsColumn(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_filterAcceptsColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QModelIndex * a1;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_filterAcceptsColumn(sipSelfWasArg,a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_filterAcceptsColumn, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_filterChanged(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_filterChanged(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_filterChanged();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_filterChanged, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_lessThan(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_lessThan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex * a0;
        const QModelIndex * a1;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_lessThan(sipSelfWasArg,*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_lessThan, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_invalidateFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_invalidateFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_invalidateFilter();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_invalidateFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_addContentMimeTypeInclusionFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_addContentMimeTypeInclusionFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Akonadi::RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addContentMimeTypeInclusionFilter(*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_RecursiveCollectionFilterProxyModel, sipName_addContentMimeTypeInclusionFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_addContentMimeTypeInclusionFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_addContentMimeTypeInclusionFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        Akonadi::RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addContentMimeTypeInclusionFilters(*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_RecursiveCollectionFilterProxyModel, sipName_addContentMimeTypeInclusionFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_clearFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_clearFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearFilters();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_clearFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_setContentMimeTypeInclusionFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_setContentMimeTypeInclusionFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        Akonadi::RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContentMimeTypeInclusionFilters(*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_RecursiveCollectionFilterProxyModel, sipName_setContentMimeTypeInclusionFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_contentMimeTypeInclusionFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_contentMimeTypeInclusionFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->contentMimeTypeInclusionFilters());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_contentMimeTypeInclusionFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_acceptRow(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_acceptRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QModelIndex * a1;
        sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_acceptRow(sipSelfWasArg,a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_acceptRow, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_RecursiveCollectionFilterProxyModel(void *, const sipTypeDef *);}
static void *cast_Akonadi_RecursiveCollectionFilterProxyModel(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_RecursiveCollectionFilterProxyModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KRecursiveFilterProxyModel)->ctd_cast((KRecursiveFilterProxyModel *)(Akonadi::RecursiveCollectionFilterProxyModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_RecursiveCollectionFilterProxyModel(void *, int);}
static void release_Akonadi_RecursiveCollectionFilterProxyModel(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_RecursiveCollectionFilterProxyModel *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::RecursiveCollectionFilterProxyModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_RecursiveCollectionFilterProxyModel(sipSimpleWrapper *);}
static void dealloc_Akonadi_RecursiveCollectionFilterProxyModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_RecursiveCollectionFilterProxyModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_RecursiveCollectionFilterProxyModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_RecursiveCollectionFilterProxyModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Akonadi_RecursiveCollectionFilterProxyModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_RecursiveCollectionFilterProxyModel *sipCpp = 0;

    {
        QObject * a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_RecursiveCollectionFilterProxyModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_RecursiveCollectionFilterProxyModel[] = {{252, 7, 1}};


static PyMethodDef methods_Akonadi_RecursiveCollectionFilterProxyModel[] = {
    {SIP_MLNAME_CAST(sipName_acceptRow), meth_Akonadi_RecursiveCollectionFilterProxyModel_acceptRow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addContentMimeTypeInclusionFilter), meth_Akonadi_RecursiveCollectionFilterProxyModel_addContentMimeTypeInclusionFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addContentMimeTypeInclusionFilters), meth_Akonadi_RecursiveCollectionFilterProxyModel_addContentMimeTypeInclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginInsertColumns), meth_Akonadi_RecursiveCollectionFilterProxyModel_beginInsertColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginInsertRows), meth_Akonadi_RecursiveCollectionFilterProxyModel_beginInsertRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginMoveColumns), meth_Akonadi_RecursiveCollectionFilterProxyModel_beginMoveColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginMoveRows), meth_Akonadi_RecursiveCollectionFilterProxyModel_beginMoveRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginRemoveColumns), meth_Akonadi_RecursiveCollectionFilterProxyModel_beginRemoveColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginRemoveRows), meth_Akonadi_RecursiveCollectionFilterProxyModel_beginRemoveRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_beginResetModel), meth_Akonadi_RecursiveCollectionFilterProxyModel_beginResetModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changePersistentIndex), meth_Akonadi_RecursiveCollectionFilterProxyModel_changePersistentIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changePersistentIndexList), meth_Akonadi_RecursiveCollectionFilterProxyModel_changePersistentIndexList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_RecursiveCollectionFilterProxyModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearFilters), meth_Akonadi_RecursiveCollectionFilterProxyModel_clearFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_RecursiveCollectionFilterProxyModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contentMimeTypeInclusionFilters), meth_Akonadi_RecursiveCollectionFilterProxyModel_contentMimeTypeInclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createIndex), (PyCFunction)meth_Akonadi_RecursiveCollectionFilterProxyModel_createIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_RecursiveCollectionFilterProxyModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decodeData), meth_Akonadi_RecursiveCollectionFilterProxyModel_decodeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_RecursiveCollectionFilterProxyModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodeData), meth_Akonadi_RecursiveCollectionFilterProxyModel_encodeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endInsertColumns), meth_Akonadi_RecursiveCollectionFilterProxyModel_endInsertColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endInsertRows), meth_Akonadi_RecursiveCollectionFilterProxyModel_endInsertRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endMoveColumns), meth_Akonadi_RecursiveCollectionFilterProxyModel_endMoveColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endMoveRows), meth_Akonadi_RecursiveCollectionFilterProxyModel_endMoveRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endRemoveColumns), meth_Akonadi_RecursiveCollectionFilterProxyModel_endRemoveColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endRemoveRows), meth_Akonadi_RecursiveCollectionFilterProxyModel_endRemoveRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endResetModel), meth_Akonadi_RecursiveCollectionFilterProxyModel_endResetModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterAcceptsColumn), meth_Akonadi_RecursiveCollectionFilterProxyModel_filterAcceptsColumn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterAcceptsRow), meth_Akonadi_RecursiveCollectionFilterProxyModel_filterAcceptsRow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterChanged), meth_Akonadi_RecursiveCollectionFilterProxyModel_filterChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invalidateFilter), meth_Akonadi_RecursiveCollectionFilterProxyModel_invalidateFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lessThan), meth_Akonadi_RecursiveCollectionFilterProxyModel_lessThan, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_persistentIndexList), meth_Akonadi_RecursiveCollectionFilterProxyModel_persistentIndexList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_RecursiveCollectionFilterProxyModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_Akonadi_RecursiveCollectionFilterProxyModel_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_RecursiveCollectionFilterProxyModel_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContentMimeTypeInclusionFilters), meth_Akonadi_RecursiveCollectionFilterProxyModel_setContentMimeTypeInclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRoleNames), meth_Akonadi_RecursiveCollectionFilterProxyModel_setRoleNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_RecursiveCollectionFilterProxyModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_RecursiveCollectionFilterProxyModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__RecursiveCollectionFilterProxyModel,
        {0}
    },
    {
        sipNameNr_RecursiveCollectionFilterProxyModel,
        {0, 255, 0},
        40, methods_Akonadi_RecursiveCollectionFilterProxyModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_RecursiveCollectionFilterProxyModel,
    0,
    init_Akonadi_RecursiveCollectionFilterProxyModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_RecursiveCollectionFilterProxyModel,
    0,
    0,
    0,
    release_Akonadi_RecursiveCollectionFilterProxyModel,
    cast_Akonadi_RecursiveCollectionFilterProxyModel,
    0,
    0,
    0
},
    &Akonadi::RecursiveCollectionFilterProxyModel::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/preprocessorbase.sip"
#include <akonadi/preprocessorbase.h>
#line 13141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13145 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 13148 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 13151 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 13154 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 13157 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13160 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13163 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13166 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 13169 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/changerecorder.sip"
#include <akonadi/changerecorder.h>
#line 13172 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 13177 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13180 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13183 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13186 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 13189 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13192 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13195 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13198 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13201 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 13204 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13207 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_PreprocessorBase : public Akonadi::PreprocessorBase
{
public:
    sipAkonadi_PreprocessorBase(const QString&);
    virtual ~sipAkonadi_PreprocessorBase();

    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 sipProtectVirt_aboutToQuit(bool);
    Akonadi::ChangeRecorder * sipProtect_changeRecorder() const;
    void sipProtect_changeProcessed();
    bool sipProtect_isOnline() const;
    void sipProtect_setNeedsNetwork(bool);
    void sipProtect_setOnline(bool);
    void sipProtectVirt_doSetOnline(bool,bool);
    KSharedConfigPtr sipProtect_config();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Akonadi::PreprocessorBase::ProcessingResult processItem(const Akonadi::Item&);
    int status() const;
    QString statusMessage() const;
    int progress() const;
    QString progressMessage() const;
    void configure(WId);
    void cleanup();
    void aboutToQuit();
    void doSetOnline(bool);
    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:
    sipAkonadi_PreprocessorBase(const sipAkonadi_PreprocessorBase &);
    sipAkonadi_PreprocessorBase &operator = (const sipAkonadi_PreprocessorBase &);

    char sipPyMethods[16];
};

sipAkonadi_PreprocessorBase::sipAkonadi_PreprocessorBase(const QString& a0): Akonadi::PreprocessorBase(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_PreprocessorBase::~sipAkonadi_PreprocessorBase()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_PreprocessorBase::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_PreprocessorBase);
}

int sipAkonadi_PreprocessorBase::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::PreprocessorBase::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_PreprocessorBase,_c,_id,_a);

    return _id;
}

void *sipAkonadi_PreprocessorBase::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_PreprocessorBase,_clname)) ? this : Akonadi::PreprocessorBase::qt_metacast(_clname);
}

Akonadi::PreprocessorBase::ProcessingResult sipAkonadi_PreprocessorBase::processItem(const Akonadi::Item& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_PreprocessorBase,sipName_processItem);

    if (!sipMeth)
        return (Akonadi::PreprocessorBase::ProcessingResult)0;

    extern Akonadi::PreprocessorBase::ProcessingResult sipVH_akonadi_3(sip_gilstate_t,PyObject *,const Akonadi::Item&);

    return sipVH_akonadi_3(sipGILState,sipMeth,a0);
}

int sipAkonadi_PreprocessorBase::status() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_status);

    if (!sipMeth)
        return Akonadi::AgentBase::status();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_akonadi_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

QString sipAkonadi_PreprocessorBase::statusMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_statusMessage);

    if (!sipMeth)
        return Akonadi::AgentBase::statusMessage();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

int sipAkonadi_PreprocessorBase::progress() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_progress);

    if (!sipMeth)
        return Akonadi::AgentBase::progress();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_akonadi_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

QString sipAkonadi_PreprocessorBase::progressMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_progressMessage);

    if (!sipMeth)
        return Akonadi::AgentBase::progressMessage();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

void sipAkonadi_PreprocessorBase::configure(WId a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_configure);

    if (!sipMeth)
    {
        Akonadi::AgentBase::configure(a0);
        return;
    }

    typedef void (*sipVH_kdeui_6)(sip_gilstate_t,PyObject *,unsigned long);

    ((sipVH_kdeui_6)(sipModuleAPI_akonadi_kdeui->em_virthandlers[6]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PreprocessorBase::cleanup()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_cleanup);

    if (!sipMeth)
    {
        Akonadi::AgentBase::cleanup();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipAkonadi_PreprocessorBase::aboutToQuit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_aboutToQuit);

    if (!sipMeth)
    {
        Akonadi::AgentBase::aboutToQuit();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipAkonadi_PreprocessorBase::doSetOnline(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_doSetOnline);

    if (!sipMeth)
    {
        Akonadi::AgentBase::doSetOnline(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_akonadi_QtNetwork->em_virthandlers[1]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_PreprocessorBase::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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_PreprocessorBase::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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipAkonadi_PreprocessorBase::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_akonadi_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PreprocessorBase::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_akonadi_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PreprocessorBase::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_akonadi_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PreprocessorBase::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PreprocessorBase::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipAkonadi_PreprocessorBase::sipProtect_sender() const
{
    return QObject::sender();
}

int sipAkonadi_PreprocessorBase::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_PreprocessorBase::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_PreprocessorBase::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_PreprocessorBase::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_PreprocessorBase::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_PreprocessorBase::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipAkonadi_PreprocessorBase::sipProtectVirt_aboutToQuit(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Akonadi::AgentBase::aboutToQuit() : aboutToQuit());
}

Akonadi::ChangeRecorder * sipAkonadi_PreprocessorBase::sipProtect_changeRecorder() const
{
    return Akonadi::AgentBase::changeRecorder();
}

void sipAkonadi_PreprocessorBase::sipProtect_changeProcessed()
{
    Akonadi::AgentBase::changeProcessed();
}

bool sipAkonadi_PreprocessorBase::sipProtect_isOnline() const
{
    return Akonadi::AgentBase::isOnline();
}

void sipAkonadi_PreprocessorBase::sipProtect_setNeedsNetwork(bool a0)
{
    Akonadi::AgentBase::setNeedsNetwork(a0);
}

void sipAkonadi_PreprocessorBase::sipProtect_setOnline(bool a0)
{
    Akonadi::AgentBase::setOnline(a0);
}

void sipAkonadi_PreprocessorBase::sipProtectVirt_doSetOnline(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? Akonadi::AgentBase::doSetOnline(a0) : doSetOnline(a0));
}

KSharedConfigPtr sipAkonadi_PreprocessorBase::sipProtect_config()
{
    return Akonadi::AgentBase::config();
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_sender(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PreprocessorBase, &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 13674 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_receivers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_PreprocessorBase, &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 13716 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_PreprocessorBase, &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_PreprocessorBase, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_PreprocessorBase, &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_PreprocessorBase, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_PreprocessorBase, &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_PreprocessorBase, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_PreprocessorBase, &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_PreprocessorBase, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_PreprocessorBase, &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_PreprocessorBase, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_aboutToQuit(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_aboutToQuit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_aboutToQuit(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_aboutToQuit, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_changeRecorder(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_changeRecorder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp))
        {
            Akonadi::ChangeRecorder *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_changeRecorder();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Akonadi_ChangeRecorder,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_changeRecorder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_changeProcessed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_changeProcessed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_changeProcessed();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_changeProcessed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_isOnline(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_isOnline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_isOnline();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_isOnline, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_setNeedsNetwork(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_setNeedsNetwork(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setNeedsNetwork(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_PreprocessorBase, sipName_setNeedsNetwork, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_setOnline(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_setOnline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOnline(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_PreprocessorBase, sipName_setOnline, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_doSetOnline(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_doSetOnline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doSetOnline(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_PreprocessorBase, sipName_doSetOnline, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_config(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_config(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp))
        {
            KSharedConfigPtr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfigPtr(sipCpp->sipProtect_config());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KSharedConfigPtr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_config, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_processItem(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_processItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const Akonadi::Item * a0;
        Akonadi::PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp, sipType_Akonadi_Item, &a0))
        {
            Akonadi::PreprocessorBase::ProcessingResult sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_PreprocessorBase, sipName_processItem);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->processItem(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Akonadi_PreprocessorBase_ProcessingResult);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_processItem, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_finishProcessing(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_finishProcessing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::PreprocessorBase::ProcessingResult a0;
        Akonadi::PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp, sipType_Akonadi_PreprocessorBase_ProcessingResult, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->finishProcessing(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_PreprocessorBase, sipName_finishProcessing, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_setFetchScope(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_setFetchScope(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::ItemFetchScope * a0;
        Akonadi::PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp, sipType_Akonadi_ItemFetchScope, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFetchScope(*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_PreprocessorBase, sipName_setFetchScope, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PreprocessorBase_fetchScope(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PreprocessorBase_fetchScope(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::PreprocessorBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PreprocessorBase, &sipCpp))
        {
            Akonadi::ItemFetchScope *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->fetchScope();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Akonadi_ItemFetchScope,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PreprocessorBase, sipName_fetchScope, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_PreprocessorBase(void *, const sipTypeDef *);}
static void *cast_Akonadi_PreprocessorBase(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_PreprocessorBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_AgentBase)->ctd_cast((Akonadi::AgentBase *)(Akonadi::PreprocessorBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_PreprocessorBase(void *, int);}
static void release_Akonadi_PreprocessorBase(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_PreprocessorBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_PreprocessorBase(sipSimpleWrapper *);}
static void dealloc_Akonadi_PreprocessorBase(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_PreprocessorBase *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_PreprocessorBase(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_PreprocessorBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Akonadi_PreprocessorBase(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipAkonadi_PreprocessorBase *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_PreprocessorBase(*a0);
            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_Akonadi_PreprocessorBase[] = {{5, 255, 1}};


static PyMethodDef methods_Akonadi_PreprocessorBase[] = {
    {SIP_MLNAME_CAST(sipName_aboutToQuit), meth_Akonadi_PreprocessorBase_aboutToQuit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeProcessed), meth_Akonadi_PreprocessorBase_changeProcessed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeRecorder), meth_Akonadi_PreprocessorBase_changeRecorder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_PreprocessorBase_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_Akonadi_PreprocessorBase_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_PreprocessorBase_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_PreprocessorBase_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_PreprocessorBase_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSetOnline), meth_Akonadi_PreprocessorBase_doSetOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchScope), meth_Akonadi_PreprocessorBase_fetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_finishProcessing), meth_Akonadi_PreprocessorBase_finishProcessing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOnline), meth_Akonadi_PreprocessorBase_isOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_processItem), meth_Akonadi_PreprocessorBase_processItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_PreprocessorBase_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_PreprocessorBase_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFetchScope), meth_Akonadi_PreprocessorBase_setFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNeedsNetwork), meth_Akonadi_PreprocessorBase_setNeedsNetwork, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOnline), meth_Akonadi_PreprocessorBase_setOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_PreprocessorBase_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_PreprocessorBase[] = {
    {sipName_ProcessingCompleted, Akonadi::PreprocessorBase::ProcessingCompleted, 117},
    {sipName_ProcessingDelayed, Akonadi::PreprocessorBase::ProcessingDelayed, 117},
    {sipName_ProcessingFailed, Akonadi::PreprocessorBase::ProcessingFailed, 117},
    {sipName_ProcessingRefused, Akonadi::PreprocessorBase::ProcessingRefused, 117},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_PreprocessorBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__PreprocessorBase,
        {0}
    },
    {
        sipNameNr_PreprocessorBase,
        {0, 255, 0},
        19, methods_Akonadi_PreprocessorBase,
        4, enummembers_Akonadi_PreprocessorBase,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_PreprocessorBase,
    0,
    init_Akonadi_PreprocessorBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_PreprocessorBase,
    0,
    0,
    0,
    release_Akonadi_PreprocessorBase,
    cast_Akonadi_PreprocessorBase,
    0,
    0,
    0
},
    &Akonadi::PreprocessorBase::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/persistentsearchattribute.sip"
#include <akonadi/persistentsearchattribute.h>
#line 14355 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14359 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 14362 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14365 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_PersistentSearchAttribute : public Akonadi::PersistentSearchAttribute
{
public:
    sipAkonadi_PersistentSearchAttribute();
    sipAkonadi_PersistentSearchAttribute(const Akonadi::PersistentSearchAttribute&);
    virtual ~sipAkonadi_PersistentSearchAttribute();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QByteArray type() const;
    Akonadi::Attribute * clone() const;
    QByteArray serialized() const;
    void deserialize(const QByteArray&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_PersistentSearchAttribute(const sipAkonadi_PersistentSearchAttribute &);
    sipAkonadi_PersistentSearchAttribute &operator = (const sipAkonadi_PersistentSearchAttribute &);

    char sipPyMethods[4];
};

sipAkonadi_PersistentSearchAttribute::sipAkonadi_PersistentSearchAttribute(): Akonadi::PersistentSearchAttribute(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_PersistentSearchAttribute::sipAkonadi_PersistentSearchAttribute(const Akonadi::PersistentSearchAttribute& a0): Akonadi::PersistentSearchAttribute(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_PersistentSearchAttribute::~sipAkonadi_PersistentSearchAttribute()
{
    sipCommonDtor(sipPySelf);
}

QByteArray sipAkonadi_PersistentSearchAttribute::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_type);

    if (!sipMeth)
        return Akonadi::PersistentSearchAttribute::type();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_akonadi_QtCore->em_virthandlers[14]))(sipGILState,sipMeth);
}

Akonadi::Attribute * sipAkonadi_PersistentSearchAttribute::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_clone);

    if (!sipMeth)
        return Akonadi::PersistentSearchAttribute::clone();

    extern Akonadi::Attribute * sipVH_akonadi_4(sip_gilstate_t,PyObject *);

    return sipVH_akonadi_4(sipGILState,sipMeth);
}

QByteArray sipAkonadi_PersistentSearchAttribute::serialized() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_serialized);

    if (!sipMeth)
        return Akonadi::PersistentSearchAttribute::serialized();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_akonadi_QtCore->em_virthandlers[14]))(sipGILState,sipMeth);
}

void sipAkonadi_PersistentSearchAttribute::deserialize(const QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_deserialize);

    if (!sipMeth)
    {
        Akonadi::PersistentSearchAttribute::deserialize(a0);
        return;
    }

    typedef void (*sipVH_QtXml_29)(sip_gilstate_t,PyObject *,const QByteArray&);

    ((sipVH_QtXml_29)(sipModuleAPI_akonadi_QtXml->em_virthandlers[29]))(sipGILState,sipMeth,a0);
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_queryLanguage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_queryLanguage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::PersistentSearchAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PersistentSearchAttribute, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->queryLanguage());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PersistentSearchAttribute, sipName_queryLanguage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_setQueryLanguage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_setQueryLanguage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Akonadi::PersistentSearchAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_PersistentSearchAttribute, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueryLanguage(*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_PersistentSearchAttribute, sipName_setQueryLanguage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_queryString(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_queryString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::PersistentSearchAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PersistentSearchAttribute, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->queryString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PersistentSearchAttribute, sipName_queryString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_setQueryString(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_setQueryString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Akonadi::PersistentSearchAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_PersistentSearchAttribute, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueryString(*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_PersistentSearchAttribute, sipName_setQueryString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_type(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::PersistentSearchAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PersistentSearchAttribute, &sipCpp))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->Akonadi::PersistentSearchAttribute::type() : sipCpp->type()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PersistentSearchAttribute, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_clone(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::PersistentSearchAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PersistentSearchAttribute, &sipCpp))
        {
            Akonadi::Attribute *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::PersistentSearchAttribute::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Akonadi_Attribute,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PersistentSearchAttribute, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_serialized(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_serialized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::PersistentSearchAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PersistentSearchAttribute, &sipCpp))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->Akonadi::PersistentSearchAttribute::serialized() : 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_PersistentSearchAttribute, sipName_serialized, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_deserialize(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_deserialize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        Akonadi::PersistentSearchAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_PersistentSearchAttribute, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::PersistentSearchAttribute::deserialize(*a0) : sipCpp->deserialize(*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_PersistentSearchAttribute, sipName_deserialize, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_PersistentSearchAttribute(void *, const sipTypeDef *);}
static void *cast_Akonadi_PersistentSearchAttribute(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_PersistentSearchAttribute)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Attribute)->ctd_cast((Akonadi::Attribute *)(Akonadi::PersistentSearchAttribute *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_PersistentSearchAttribute(void *, int);}
static void release_Akonadi_PersistentSearchAttribute(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_PersistentSearchAttribute *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::PersistentSearchAttribute *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_PersistentSearchAttribute(sipSimpleWrapper *);}
static void dealloc_Akonadi_PersistentSearchAttribute(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_PersistentSearchAttribute *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_PersistentSearchAttribute(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_PersistentSearchAttribute(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Akonadi_PersistentSearchAttribute(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipAkonadi_PersistentSearchAttribute *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_PersistentSearchAttribute();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::PersistentSearchAttribute * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_PersistentSearchAttribute, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_PersistentSearchAttribute(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_PersistentSearchAttribute[] = {{24, 255, 1}};


static PyMethodDef methods_Akonadi_PersistentSearchAttribute[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_Akonadi_PersistentSearchAttribute_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deserialize), meth_Akonadi_PersistentSearchAttribute_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryLanguage), meth_Akonadi_PersistentSearchAttribute_queryLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryString), meth_Akonadi_PersistentSearchAttribute_queryString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_Akonadi_PersistentSearchAttribute_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQueryLanguage), meth_Akonadi_PersistentSearchAttribute_setQueryLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQueryString), meth_Akonadi_PersistentSearchAttribute_setQueryString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_PersistentSearchAttribute_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_PersistentSearchAttribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__PersistentSearchAttribute,
        {0}
    },
    {
        sipNameNr_PersistentSearchAttribute,
        {0, 255, 0},
        8, methods_Akonadi_PersistentSearchAttribute,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_PersistentSearchAttribute,
    0,
    init_Akonadi_PersistentSearchAttribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_PersistentSearchAttribute,
    0,
    0,
    0,
    release_Akonadi_PersistentSearchAttribute,
    cast_Akonadi_PersistentSearchAttribute,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/partfetcher.sip"
#include <akonadi/partfetcher.h>
#line 14849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 14853 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14856 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 14859 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 14862 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14865 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14868 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 14871 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14874 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14877 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 14880 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14883 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14886 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14889 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14892 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14895 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14898 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14901 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 14904 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14907 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14910 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_PartFetcher : public Akonadi::PartFetcher
{
public:
    sipAkonadi_PartFetcher(const QModelIndex&,const QByteArray&,QObject *);
    virtual ~sipAkonadi_PartFetcher();

    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:
    sipAkonadi_PartFetcher(const sipAkonadi_PartFetcher &);
    sipAkonadi_PartFetcher &operator = (const sipAkonadi_PartFetcher &);

    char sipPyMethods[12];
};

sipAkonadi_PartFetcher::sipAkonadi_PartFetcher(const QModelIndex& a0,const QByteArray& a1,QObject *a2): Akonadi::PartFetcher(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_PartFetcher::~sipAkonadi_PartFetcher()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_PartFetcher::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_PartFetcher);
}

int sipAkonadi_PartFetcher::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::PartFetcher::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_PartFetcher,_c,_id,_a);

    return _id;
}

void *sipAkonadi_PartFetcher::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_PartFetcher,_clname)) ? this : Akonadi::PartFetcher::qt_metacast(_clname);
}

void sipAkonadi_PartFetcher::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        Akonadi::PartFetcher::start();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

bool sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

QString sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

bool sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_PartFetcher::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipAkonadi_PartFetcher::sipProtect_sender() const
{
    return QObject::sender();
}

int sipAkonadi_PartFetcher::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_PartFetcher::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_PartFetcher::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_PartFetcher::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_PartFetcher::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_PartFetcher::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipAkonadi_PartFetcher::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doKill() : doKill());
}

bool sipAkonadi_PartFetcher::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipAkonadi_PartFetcher::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipAkonadi_PartFetcher::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipAkonadi_PartFetcher::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipAkonadi_PartFetcher::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipAkonadi_PartFetcher::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipAkonadi_PartFetcher::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipAkonadi_PartFetcher::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipAkonadi_PartFetcher::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipAkonadi_PartFetcher::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipAkonadi_PartFetcher::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_sender(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &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 15325 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PartFetcher, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_receivers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_PartFetcher, &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 15367 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PartFetcher, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_doKill(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_doKill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_doKill, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_doSuspend(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_doSuspend(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_doSuspend, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_doResume(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_doResume(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_doResume, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_setCapabilities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_setCapabilities, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_setError(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_setError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_setError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_setErrorText(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_setErrorText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_setErrorText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_setProcessedAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_setProcessedAmount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_setProcessedAmount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_setTotalAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_setTotalAmount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_setTotalAmount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_setPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_setPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_setPercent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_emitResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_emitResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_emitResult, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_emitPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_emitPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_emitPercent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_emitSpeed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_emitSpeed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        sipAkonadi_PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_PartFetcher, &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_PartFetcher, sipName_emitSpeed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_start(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_start(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::PartFetcher::start() : sipCpp->start());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PartFetcher, sipName_start, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_index(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_index(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &sipCpp))
        {
            QModelIndex *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex(sipCpp->index());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PartFetcher, sipName_index, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_partName(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_partName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &sipCpp))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->partName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PartFetcher, sipName_partName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_PartFetcher_item(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PartFetcher_item(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::PartFetcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_PartFetcher, &sipCpp))
        {
            Akonadi::Item *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Item(sipCpp->item());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Akonadi_Item,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PartFetcher, sipName_item, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_PartFetcher(void *, const sipTypeDef *);}
static void *cast_Akonadi_PartFetcher(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_PartFetcher)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KJob)->ctd_cast((KJob *)(Akonadi::PartFetcher *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_PartFetcher(void *, int);}
static void release_Akonadi_PartFetcher(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_PartFetcher *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::PartFetcher *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_PartFetcher(sipSimpleWrapper *);}
static void dealloc_Akonadi_PartFetcher(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_PartFetcher *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_PartFetcher(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_PartFetcher(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Akonadi_PartFetcher(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_PartFetcher *sipCpp = 0;

    {
        const QModelIndex * a0;
        const QByteArray * a1;
        int a1State = 0;
        QObject * a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1|JH", sipType_QModelIndex, &a0, sipType_QByteArray, &a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_PartFetcher(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_PartFetcher[] = {{89, 3, 1}};


static PyMethodDef methods_Akonadi_PartFetcher[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_PartFetcher_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_PartFetcher_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_PartFetcher_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_PartFetcher_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_PartFetcher_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_PartFetcher_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_PartFetcher_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_PartFetcher_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_PartFetcher_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_PartFetcher_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Akonadi_PartFetcher_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_Akonadi_PartFetcher_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partName), meth_Akonadi_PartFetcher_partName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_PartFetcher_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_PartFetcher_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_PartFetcher_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_PartFetcher_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_PartFetcher_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_PartFetcher_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_PartFetcher_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_PartFetcher_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_PartFetcher_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_PartFetcher_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_PartFetcher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__PartFetcher,
        {0}
    },
    {
        sipNameNr_PartFetcher,
        {0, 255, 0},
        23, methods_Akonadi_PartFetcher,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_PartFetcher,
    0,
    init_Akonadi_PartFetcher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_PartFetcher,
    0,
    0,
    0,
    release_Akonadi_PartFetcher,
    cast_Akonadi_PartFetcher,
    0,
    0,
    0
},
    &Akonadi::PartFetcher::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/mimetypechecker.sip"
#include <akonadi/mimetypechecker.h>
#line 16116 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 16120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 16126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 16129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


extern "C" {static PyObject *meth_Akonadi_MimeTypeChecker_wantedMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MimeTypeChecker_wantedMimeTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::MimeTypeChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->wantedMimeTypes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MimeTypeChecker, sipName_wantedMimeTypes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MimeTypeChecker_setWantedMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MimeTypeChecker_setWantedMimeTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        Akonadi::MimeTypeChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWantedMimeTypes(*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_MimeTypeChecker, sipName_setWantedMimeTypes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MimeTypeChecker_addWantedMimeType(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MimeTypeChecker_addWantedMimeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Akonadi::MimeTypeChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addWantedMimeType(*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_MimeTypeChecker, sipName_addWantedMimeType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MimeTypeChecker_removeWantedMimeType(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MimeTypeChecker_removeWantedMimeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Akonadi::MimeTypeChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeWantedMimeType(*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_MimeTypeChecker, sipName_removeWantedMimeType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MimeTypeChecker_isWantedItem(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MimeTypeChecker_isWantedItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Item * a0;
        Akonadi::MimeTypeChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_Akonadi_Item, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isWantedItem(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Akonadi::Item * a0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1", sipType_Akonadi_Item, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::MimeTypeChecker::isWantedItem(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MimeTypeChecker, sipName_isWantedItem, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MimeTypeChecker_isWantedCollection(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MimeTypeChecker_isWantedCollection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Collection * a0;
        Akonadi::MimeTypeChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isWantedCollection(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Akonadi::Collection * a0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1", sipType_Akonadi_Collection, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::MimeTypeChecker::isWantedCollection(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MimeTypeChecker, sipName_isWantedCollection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MimeTypeChecker_isWantedMimeType(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MimeTypeChecker_isWantedMimeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Akonadi::MimeTypeChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isWantedMimeType(*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_MimeTypeChecker, sipName_isWantedMimeType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MimeTypeChecker_containsWantedMimeType(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MimeTypeChecker_containsWantedMimeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        Akonadi::MimeTypeChecker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->containsWantedMimeType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MimeTypeChecker, sipName_containsWantedMimeType, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_MimeTypeChecker(void *, const sipTypeDef *);}
static void *cast_Akonadi_MimeTypeChecker(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Akonadi_MimeTypeChecker)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_MimeTypeChecker(void *, int);}
static void release_Akonadi_MimeTypeChecker(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Akonadi::MimeTypeChecker *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Akonadi_MimeTypeChecker(void *, SIP_SSIZE_T, const void *);}
static void assign_Akonadi_MimeTypeChecker(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Akonadi::MimeTypeChecker *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Akonadi::MimeTypeChecker *>(sipSrc);
}


extern "C" {static void *array_Akonadi_MimeTypeChecker(SIP_SSIZE_T);}
static void *array_Akonadi_MimeTypeChecker(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::MimeTypeChecker[sipNrElem];
}


extern "C" {static void *copy_Akonadi_MimeTypeChecker(const void *, SIP_SSIZE_T);}
static void *copy_Akonadi_MimeTypeChecker(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Akonadi::MimeTypeChecker(reinterpret_cast<const Akonadi::MimeTypeChecker *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Akonadi_MimeTypeChecker(sipSimpleWrapper *);}
static void dealloc_Akonadi_MimeTypeChecker(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_MimeTypeChecker(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_Akonadi_MimeTypeChecker(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Akonadi_MimeTypeChecker(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::MimeTypeChecker *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::MimeTypeChecker();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Akonadi::MimeTypeChecker * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_MimeTypeChecker, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::MimeTypeChecker(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Akonadi_MimeTypeChecker[] = {
    {SIP_MLNAME_CAST(sipName_addWantedMimeType), meth_Akonadi_MimeTypeChecker_addWantedMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsWantedMimeType), meth_Akonadi_MimeTypeChecker_containsWantedMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isWantedCollection), meth_Akonadi_MimeTypeChecker_isWantedCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isWantedItem), meth_Akonadi_MimeTypeChecker_isWantedItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isWantedMimeType), meth_Akonadi_MimeTypeChecker_isWantedMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeWantedMimeType), meth_Akonadi_MimeTypeChecker_removeWantedMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWantedMimeTypes), meth_Akonadi_MimeTypeChecker_setWantedMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wantedMimeTypes), meth_Akonadi_MimeTypeChecker_wantedMimeTypes, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MimeTypeChecker = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__MimeTypeChecker,
        {0}
    },
    {
        sipNameNr_MimeTypeChecker,
        {0, 255, 0},
        8, methods_Akonadi_MimeTypeChecker,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Akonadi_MimeTypeChecker,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_MimeTypeChecker,
    assign_Akonadi_MimeTypeChecker,
    array_Akonadi_MimeTypeChecker,
    copy_Akonadi_MimeTypeChecker,
    release_Akonadi_MimeTypeChecker,
    cast_Akonadi_MimeTypeChecker,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/linkjob.sip"
#include <akonadi/linkjob.h>
#line 16549 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 16553 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16556 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 16559 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 16562 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 16565 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16568 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 16571 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16574 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16577 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 16580 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16583 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 16586 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 16589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16592 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16595 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16598 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 16601 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16604 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 16607 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16610 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 16613 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 16616 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 16619 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_LinkJob : public Akonadi::LinkJob
{
public:
    sipAkonadi_LinkJob(const Akonadi::Collection&,const Akonadi::Item::List&,QObject *);
    virtual ~sipAkonadi_LinkJob();

    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_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 sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);
    void sipProtectVirt_doHandleResponse(bool,const QByteArray&,const QByteArray&);
    bool sipProtectVirt_addSubjob(bool,KJob *);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtectVirt_doKill(bool);
    void sipProtect_emitWriteFinished();
    void sipProtectVirt_slotResult(bool,KJob *);
    void sipProtectVirt_doStart(bool);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QString errorString() const;
    void doStart();
    void doHandleResponse(const QByteArray&,const QByteArray&);
    bool addSubjob(KJob *);
    bool removeSubjob(KJob *);
    bool doKill();
    void slotResult(KJob *);
    void slotInfoMessage(KJob *,const QString&,const QString&);
    void start();
    bool doSuspend();
    bool doResume();
    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:
    sipAkonadi_LinkJob(const sipAkonadi_LinkJob &);
    sipAkonadi_LinkJob &operator = (const sipAkonadi_LinkJob &);

    char sipPyMethods[18];
};

sipAkonadi_LinkJob::sipAkonadi_LinkJob(const Akonadi::Collection& a0,const Akonadi::Item::List& a1,QObject *a2): Akonadi::LinkJob(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_LinkJob::~sipAkonadi_LinkJob()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_LinkJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_LinkJob);
}

int sipAkonadi_LinkJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::LinkJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_LinkJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_LinkJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_LinkJob,_clname)) ? this : Akonadi::LinkJob::qt_metacast(_clname);
}

QString sipAkonadi_LinkJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return Akonadi::Job::errorString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

void sipAkonadi_LinkJob::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_doStart);

    if (!sipMeth)
    {
        Akonadi::LinkJob::doStart();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipAkonadi_LinkJob::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_doHandleResponse);

    if (!sipMeth)
    {
        Akonadi::Job::doHandleResponse(a0,a1);
        return;
    }

    extern void sipVH_akonadi_6(sip_gilstate_t,PyObject *,const QByteArray&,const QByteArray&);

    sipVH_akonadi_6(sipGILState,sipMeth,a0,a1);
}

bool sipAkonadi_LinkJob::addSubjob(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_addSubjob);

    if (!sipMeth)
        return Akonadi::Job::addSubjob(a0);

    typedef bool (*sipVH_kdecore_53)(sip_gilstate_t,PyObject *,KJob *);

    return ((sipVH_kdecore_53)(sipModuleAPI_akonadi_kdecore->em_virthandlers[53]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_LinkJob::removeSubjob(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_removeSubjob);

    if (!sipMeth)
        return Akonadi::Job::removeSubjob(a0);

    typedef bool (*sipVH_kdecore_53)(sip_gilstate_t,PyObject *,KJob *);

    return ((sipVH_kdecore_53)(sipModuleAPI_akonadi_kdecore->em_virthandlers[53]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_LinkJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return Akonadi::Job::doKill();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

void sipAkonadi_LinkJob::slotResult(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_slotResult);

    if (!sipMeth)
    {
        Akonadi::Job::slotResult(a0);
        return;
    }

    typedef void (*sipVH_kdecore_27)(sip_gilstate_t,PyObject *,KJob *);

    ((sipVH_kdecore_27)(sipModuleAPI_akonadi_kdecore->em_virthandlers[27]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_LinkJob::slotInfoMessage(KJob *a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_slotInfoMessage);

    if (!sipMeth)
    {
        KCompositeJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdecore_23)(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    ((sipVH_kdecore_23)(sipModuleAPI_akonadi_kdecore->em_virthandlers[23]))(sipGILState,sipMeth,a0,a1,a2);
}

void sipAkonadi_LinkJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        Akonadi::Job::start();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

bool sipAkonadi_LinkJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return KJob::doSuspend();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipAkonadi_LinkJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return KJob::doResume();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipAkonadi_LinkJob::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_LinkJob::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipAkonadi_LinkJob::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_akonadi_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_LinkJob::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_akonadi_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_LinkJob::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_akonadi_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_LinkJob::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_LinkJob::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipAkonadi_LinkJob::sipProtect_sender() const
{
    return QObject::sender();
}

int sipAkonadi_LinkJob::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_LinkJob::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_LinkJob::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_LinkJob::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_LinkJob::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_LinkJob::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipAkonadi_LinkJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipAkonadi_LinkJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipAkonadi_LinkJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipAkonadi_LinkJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipAkonadi_LinkJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipAkonadi_LinkJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipAkonadi_LinkJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipAkonadi_LinkJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipAkonadi_LinkJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipAkonadi_LinkJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipAkonadi_LinkJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

bool sipAkonadi_LinkJob::sipProtect_hasSubjobs()
{
    return KCompositeJob::hasSubjobs();
}

const QList<KJob *>& sipAkonadi_LinkJob::sipProtect_subjobs() const
{
    return KCompositeJob::subjobs();
}

void sipAkonadi_LinkJob::sipProtect_clearSubjobs()
{
    KCompositeJob::clearSubjobs();
}

void sipAkonadi_LinkJob::sipProtectVirt_slotInfoMessage(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KCompositeJob::slotInfoMessage(a0,a1,a2) : slotInfoMessage(a0,a1,a2));
}

void sipAkonadi_LinkJob::sipProtectVirt_doHandleResponse(bool sipSelfWasArg,const QByteArray& a0,const QByteArray& a1)
{
    (sipSelfWasArg ? Akonadi::Job::doHandleResponse(a0,a1) : doHandleResponse(a0,a1));
}

bool sipAkonadi_LinkJob::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::addSubjob(a0) : addSubjob(a0));
}

bool sipAkonadi_LinkJob::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::removeSubjob(a0) : removeSubjob(a0));
}

bool sipAkonadi_LinkJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Akonadi::Job::doKill() : doKill());
}

void sipAkonadi_LinkJob::sipProtect_emitWriteFinished()
{
    Akonadi::Job::emitWriteFinished();
}

void sipAkonadi_LinkJob::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? Akonadi::Job::slotResult(a0) : slotResult(a0));
}

void sipAkonadi_LinkJob::sipProtectVirt_doStart(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Akonadi::LinkJob::doStart() : doStart());
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_sender(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &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 17202 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LinkJob, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_receivers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_LinkJob, &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 17244 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LinkJob, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_doSuspend(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_doSuspend(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_doSuspend, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_doResume(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_doResume(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_doResume, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_setCapabilities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_setCapabilities, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_setError(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_setError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_setError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_setErrorText(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_setErrorText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_setErrorText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_setProcessedAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_setProcessedAmount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_setProcessedAmount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_setTotalAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_setTotalAmount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_setTotalAmount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_setPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_setPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_setPercent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_emitResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_emitResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_emitResult, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_emitPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_emitPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_emitPercent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_emitSpeed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_emitSpeed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_emitSpeed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_hasSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_hasSubjobs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_hasSubjobs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_subjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_subjobs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_subjobs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_clearSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_clearSubjobs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_clearSubjobs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_slotInfoMessage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_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;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_slotInfoMessage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_doHandleResponse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Akonadi_LinkJob, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doHandleResponse(sipSelfWasArg,*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LinkJob, sipName_doHandleResponse, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_addSubjob(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_addSubjob(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_addSubjob, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_removeSubjob(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_removeSubjob(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_removeSubjob, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_doKill(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_doKill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_doKill, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_emitWriteFinished(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_emitWriteFinished(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitWriteFinished();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LinkJob, sipName_emitWriteFinished, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_slotResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_slotResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_LinkJob, &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_LinkJob, sipName_slotResult, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_LinkJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_LinkJob_doStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_LinkJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doStart(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LinkJob, sipName_doStart, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_LinkJob(void *, const sipTypeDef *);}
static void *cast_Akonadi_LinkJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_LinkJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Job)->ctd_cast((Akonadi::Job *)(Akonadi::LinkJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_LinkJob(void *, int);}
static void release_Akonadi_LinkJob(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_LinkJob *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::LinkJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_LinkJob(sipSimpleWrapper *);}
static void dealloc_Akonadi_LinkJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_LinkJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_LinkJob(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_LinkJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Akonadi_LinkJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_LinkJob *sipCpp = 0;

    {
        const Akonadi::Collection * a0;
        const Akonadi::Item::List * a1;
        int a1State = 0;
        QObject * a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1|JH", sipType_Akonadi_Collection, &a0, sipType_QList_0100Akonadi_Item,&a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_LinkJob(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Item::List *>(a1),sipType_QList_0100Akonadi_Item,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_LinkJob[] = {{101, 255, 1}};


static PyMethodDef methods_Akonadi_LinkJob[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_LinkJob_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_LinkJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_Akonadi_LinkJob_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_LinkJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_LinkJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_LinkJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_LinkJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_LinkJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_LinkJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_LinkJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_LinkJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_LinkJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_LinkJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_LinkJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitWriteFinished), meth_Akonadi_LinkJob_emitWriteFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_Akonadi_LinkJob_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_LinkJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_Akonadi_LinkJob_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_LinkJob_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_LinkJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_LinkJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_LinkJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_LinkJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_LinkJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_LinkJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_Akonadi_LinkJob_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_LinkJob_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_Akonadi_LinkJob_subjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_LinkJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_LinkJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__LinkJob,
        {0}
    },
    {
        sipNameNr_LinkJob,
        {0, 255, 0},
        29, methods_Akonadi_LinkJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_LinkJob,
    0,
    init_Akonadi_LinkJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_LinkJob,
    0,
    0,
    0,
    release_Akonadi_LinkJob,
    cast_Akonadi_LinkJob,
    0,
    0,
    0
},
    &Akonadi::LinkJob::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/standardmailactionmanager.sip"
#include <akonadi/kmime/standardmailactionmanager.h>
#line 18177 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 18181 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 18184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 18187 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 79 "/usr/local/share/py-sip/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 18190 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/favoritecollectionsmodel.sip"
#include <akonadi/favoritecollectionsmodel.h>
#line 18193 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 18196 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 18199 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 18202 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 18205 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/standardactionmanager.sip"
#include <akonadi/standardactionmanager.h>
#line 18208 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 18211 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 18214 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18217 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18220 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18223 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 18226 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 18229 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 18232 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 18235 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 18238 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 18241 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 18244 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 18247 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 18250 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 18253 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_StandardMailActionManager : public Akonadi::StandardMailActionManager
{
public:
    sipAkonadi_StandardMailActionManager(KActionCollection *,QWidget *);
    virtual ~sipAkonadi_StandardMailActionManager();

    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:
    sipAkonadi_StandardMailActionManager(const sipAkonadi_StandardMailActionManager &);
    sipAkonadi_StandardMailActionManager &operator = (const sipAkonadi_StandardMailActionManager &);

    char sipPyMethods[7];
};

sipAkonadi_StandardMailActionManager::sipAkonadi_StandardMailActionManager(KActionCollection *a0,QWidget *a1): Akonadi::StandardMailActionManager(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_StandardMailActionManager::~sipAkonadi_StandardMailActionManager()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_StandardMailActionManager::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_StandardMailActionManager);
}

int sipAkonadi_StandardMailActionManager::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::StandardMailActionManager::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_StandardMailActionManager,_c,_id,_a);

    return _id;
}

void *sipAkonadi_StandardMailActionManager::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_StandardMailActionManager,_clname)) ? this : Akonadi::StandardMailActionManager::qt_metacast(_clname);
}

bool sipAkonadi_StandardMailActionManager::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_akonadi_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipAkonadi_StandardMailActionManager::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_akonadi_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipAkonadi_StandardMailActionManager::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_akonadi_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_StandardMailActionManager::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_akonadi_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_StandardMailActionManager::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_akonadi_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_StandardMailActionManager::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipAkonadi_StandardMailActionManager::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_akonadi_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipAkonadi_StandardMailActionManager::sipProtect_sender() const
{
    return QObject::sender();
}

int sipAkonadi_StandardMailActionManager::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_StandardMailActionManager::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_StandardMailActionManager::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_StandardMailActionManager::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_StandardMailActionManager::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_StandardMailActionManager::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_sender(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipAkonadi_StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_StandardMailActionManager, &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 18513 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StandardMailActionManager, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_receivers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        sipAkonadi_StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_StandardMailActionManager, &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 18555 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/akonadi/sipakonadipart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StandardMailActionManager, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &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_StandardMailActionManager, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &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_StandardMailActionManager, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &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_StandardMailActionManager, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_StandardMailActionManager, &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_StandardMailActionManager, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Akonadi_StandardMailActionManager, &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_StandardMailActionManager, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_setCollectionSelectionModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_setCollectionSelectionModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QItemSelectionModel * a0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_QItemSelectionModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionSelectionModel(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_StandardMailActionManager, sipName_setCollectionSelectionModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_setItemSelectionModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_setItemSelectionModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QItemSelectionModel * a0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_QItemSelectionModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setItemSelectionModel(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_StandardMailActionManager, sipName_setItemSelectionModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_createAction(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_createAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::StandardMailActionManager::Type a0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardMailActionManager_Type, &a0))
        {
            KAction *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createAction(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAction,NULL);
        }
    }

    {
        Akonadi::StandardActionManager::Type a0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0))
        {
            KAction *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createAction(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StandardMailActionManager, sipName_createAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_createAllActions(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_createAllActions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->createAllActions();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StandardMailActionManager, sipName_createAllActions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_action(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_action(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::StandardMailActionManager::Type a0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardMailActionManager_Type, &a0))
        {
            KAction *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->action(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAction,NULL);
        }
    }

    {
        Akonadi::StandardActionManager::Type a0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0))
        {
            KAction *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->action(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StandardMailActionManager, sipName_action, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_setActionText(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_setActionText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::StandardActionManager::Type a0;
        const KLocalizedString * a1;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ9", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0, sipType_KLocalizedString, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setActionText(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_StandardMailActionManager, sipName_setActionText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_interceptAction(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_interceptAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::StandardMailActionManager::Type a0;
        bool a1 = 1;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|b", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardMailActionManager_Type, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->interceptAction(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        Akonadi::StandardActionManager::Type a0;
        bool a1 = 1;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|b", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->interceptAction(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_StandardMailActionManager, sipName_interceptAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_selectedCollections(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_selectedCollections(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp))
        {
            Akonadi::Collection::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::List(sipCpp->selectedCollections());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Akonadi_Collection,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StandardMailActionManager, sipName_selectedCollections, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_selectedItems(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_selectedItems(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp))
        {
            Akonadi::Item::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Item::List(sipCpp->selectedItems());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Akonadi_Item,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StandardMailActionManager, sipName_selectedItems, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_setFavoriteCollectionsModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_setFavoriteCollectionsModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::FavoriteCollectionsModel * a0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_FavoriteCollectionsModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFavoriteCollectionsModel(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_StandardMailActionManager, sipName_setFavoriteCollectionsModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_setFavoriteSelectionModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_setFavoriteSelectionModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QItemSelectionModel * a0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_QItemSelectionModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFavoriteSelectionModel(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_StandardMailActionManager, sipName_setFavoriteSelectionModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_StandardMailActionManager_setCollectionPropertiesPageNames(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_StandardMailActionManager_setCollectionPropertiesPageNames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        Akonadi::StandardMailActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionPropertiesPageNames(*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_StandardMailActionManager, sipName_setCollectionPropertiesPageNames, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_StandardMailActionManager(void *, const sipTypeDef *);}
static void *cast_Akonadi_StandardMailActionManager(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_StandardMailActionManager)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(Akonadi::StandardMailActionManager *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_StandardMailActionManager(void *, int);}
static void release_Akonadi_StandardMailActionManager(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_StandardMailActionManager *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::StandardMailActionManager *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_StandardMailActionManager(sipSimpleWrapper *);}
static void dealloc_Akonadi_StandardMailActionManager(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_StandardMailActionManager *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_StandardMailActionManager(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_StandardMailActionManager(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Akonadi_StandardMailActionManager(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_StandardMailActionManager *sipCpp = 0;

    {
        KActionCollection * a0;
        QWidget * a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_KActionCollection, &a0, sipType_QWidget, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_StandardMailActionManager(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_StandardMailActionManager[] = {{134, 0, 1}};


static PyMethodDef methods_Akonadi_StandardMailActionManager[] = {
    {SIP_MLNAME_CAST(sipName_action), meth_Akonadi_StandardMailActionManager_action, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_StandardMailActionManager_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_StandardMailActionManager_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAction), meth_Akonadi_StandardMailActionManager_createAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAllActions), meth_Akonadi_StandardMailActionManager_createAllActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_StandardMailActionManager_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_StandardMailActionManager_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_interceptAction), meth_Akonadi_StandardMailActionManager_interceptAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_StandardMailActionManager_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedCollections), meth_Akonadi_StandardMailActionManager_selectedCollections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedItems), meth_Akonadi_StandardMailActionManager_selectedItems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Akonadi_StandardMailActionManager_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActionText), meth_Akonadi_StandardMailActionManager_setActionText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionPropertiesPageNames), meth_Akonadi_StandardMailActionManager_setCollectionPropertiesPageNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionSelectionModel), meth_Akonadi_StandardMailActionManager_setCollectionSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFavoriteCollectionsModel), meth_Akonadi_StandardMailActionManager_setFavoriteCollectionsModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFavoriteSelectionModel), meth_Akonadi_StandardMailActionManager_setFavoriteSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemSelectionModel), meth_Akonadi_StandardMailActionManager_setItemSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_StandardMailActionManager_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_StandardMailActionManager[] = {
    {sipName_EmptyAllTrash, Akonadi::StandardMailActionManager::EmptyAllTrash, 139},
    {sipName_EmptyTrash, Akonadi::StandardMailActionManager::EmptyTrash, 139},
    {sipName_LastType, Akonadi::StandardMailActionManager::LastType, 139},
    {sipName_MarkAllMailAsActionItem, Akonadi::StandardMailActionManager::MarkAllMailAsActionItem, 139},
    {sipName_MarkAllMailAsImportant, Akonadi::StandardMailActionManager::MarkAllMailAsImportant, 139},
    {sipName_MarkAllMailAsRead, Akonadi::StandardMailActionManager::MarkAllMailAsRead, 139},
    {sipName_MarkAllMailAsUnread, Akonadi::StandardMailActionManager::MarkAllMailAsUnread, 139},
    {sipName_MarkMailAsActionItem, Akonadi::StandardMailActionManager::MarkMailAsActionItem, 139},
    {sipName_MarkMailAsImportant, Akonadi::StandardMailActionManager::MarkMailAsImportant, 139},
    {sipName_MarkMailAsRead, Akonadi::StandardMailActionManager::MarkMailAsRead, 139},
    {sipName_MarkMailAsUnread, Akonadi::StandardMailActionManager::MarkMailAsUnread, 139},
    {sipName_MoveAllToTrash, Akonadi::StandardMailActionManager::MoveAllToTrash, 139},
    {sipName_MoveToTrash, Akonadi::StandardMailActionManager::MoveToTrash, 139},
    {sipName_RemoveDuplicates, Akonadi::StandardMailActionManager::RemoveDuplicates, 139},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Akonadi_StandardMailActionManager[] = {
    {"actionStateUpdated()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_StandardMailActionManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__StandardMailActionManager,
        {0}
    },
    {
        sipNameNr_StandardMailActionManager,
        {0, 255, 0},
        19, methods_Akonadi_StandardMailActionManager,
        14, enummembers_Akonadi_StandardMailActionManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_StandardMailActionManager,
    0,
    init_Akonadi_StandardMailActionManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_StandardMailActionManager,
    0,
    0,
    0,
    release_Akonadi_StandardMailActionManager,
    cast_Akonadi_StandardMailActionManager,
    0,
    0,
    0
},
    &Akonadi::StandardMailActionManager::staticMetaObject,
    0,
    pyqt4_signals_Akonadi_StandardMailActionManager
};
