/*
 * Module code.
 *
 * Generated by SIP 4.16.7
 */

#include "sipAPIakonadi.h"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/transactionjobs.sip"
#include <akonadi/transactionjobs.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

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


class sipAkonadi_TransactionCommitJob : public Akonadi::TransactionCommitJob
{
public:
    sipAkonadi_TransactionCommitJob(QObject*);
    virtual ~sipAkonadi_TransactionCommitJob();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

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

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

const QMetaObject *sipAkonadi_TransactionCommitJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_TransactionCommitJob);
}

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

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

    return _id;
}

void *sipAkonadi_TransactionCommitJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_TransactionCommitJob, _clname)) ? this : Akonadi::TransactionCommitJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionCommitJob::event(a0);

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionCommitJob::doResume();

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionCommitJob::doSuspend();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        Akonadi::TransactionCommitJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_TransactionCommitJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::TransactionCommitJob::doStart() : sipCpp->doStart());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_TransactionCommitJob)
        return ptr;

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_TransactionCommitJob[] = {
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_TransactionCommitJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_TransactionCommitJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__TransactionCommitJob,
        {0}
    },
    {
        sipNameNr_TransactionCommitJob,
        {0, 255, 0},
        1, methods_Akonadi_TransactionCommitJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_TransactionCommitJob,
    0,
    init_type_Akonadi_TransactionCommitJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_TransactionCommitJob,
    0,
    0,
    0,
    release_Akonadi_TransactionCommitJob,
    cast_Akonadi_TransactionCommitJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::TransactionCommitJob::staticMetaObject,
    0,
    0
};

#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/transactionjobs.sip"
#include <akonadi/transactionjobs.h>
#line 612 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 616 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 619 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 622 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 625 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 628 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 631 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 634 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 637 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 640 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 643 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 646 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 649 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 652 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 655 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 658 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 661 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 664 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 667 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 670 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 673 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_TransactionRollbackJob : public Akonadi::TransactionRollbackJob
{
public:
    sipAkonadi_TransactionRollbackJob(QObject*);
    virtual ~sipAkonadi_TransactionRollbackJob();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

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

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

const QMetaObject *sipAkonadi_TransactionRollbackJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_TransactionRollbackJob);
}

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

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

    return _id;
}

void *sipAkonadi_TransactionRollbackJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_TransactionRollbackJob, _clname)) ? this : Akonadi::TransactionRollbackJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionRollbackJob::event(a0);

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionRollbackJob::doResume();

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionRollbackJob::doSuspend();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        Akonadi::TransactionRollbackJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_TransactionRollbackJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::TransactionRollbackJob::doStart() : sipCpp->doStart());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_TransactionRollbackJob)
        return ptr;

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_TransactionRollbackJob[] = {
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_TransactionRollbackJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_TransactionRollbackJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__TransactionRollbackJob,
        {0}
    },
    {
        sipNameNr_TransactionRollbackJob,
        {0, 255, 0},
        1, methods_Akonadi_TransactionRollbackJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_TransactionRollbackJob,
    0,
    init_type_Akonadi_TransactionRollbackJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_TransactionRollbackJob,
    0,
    0,
    0,
    release_Akonadi_TransactionRollbackJob,
    cast_Akonadi_TransactionRollbackJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::TransactionRollbackJob::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/transactionjobs.sip"
#include <akonadi/transactionjobs.h>
#line 1212 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1216 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 1219 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1222 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 1225 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1228 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1231 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 1234 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1237 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 1240 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 1243 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1246 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1249 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1255 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1258 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1261 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1264 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1267 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1270 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1273 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_TransactionBeginJob : public Akonadi::TransactionBeginJob
{
public:
    sipAkonadi_TransactionBeginJob(QObject*);
    virtual ~sipAkonadi_TransactionBeginJob();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

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

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

const QMetaObject *sipAkonadi_TransactionBeginJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_TransactionBeginJob);
}

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

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

    return _id;
}

void *sipAkonadi_TransactionBeginJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_TransactionBeginJob, _clname)) ? this : Akonadi::TransactionBeginJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionBeginJob::event(a0);

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionBeginJob::doResume();

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionBeginJob::doSuspend();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        Akonadi::TransactionBeginJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_TransactionBeginJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::TransactionBeginJob::doStart() : sipCpp->doStart());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_TransactionBeginJob)
        return ptr;

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_TransactionBeginJob[] = {
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_TransactionBeginJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_TransactionBeginJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__TransactionBeginJob,
        {0}
    },
    {
        sipNameNr_TransactionBeginJob,
        {0, 255, 0},
        1, methods_Akonadi_TransactionBeginJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_TransactionBeginJob,
    0,
    init_type_Akonadi_TransactionBeginJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_TransactionBeginJob,
    0,
    0,
    0,
    release_Akonadi_TransactionBeginJob,
    cast_Akonadi_TransactionBeginJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::TransactionBeginJob::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/statisticsproxymodel.sip"
#include <akonadi/statisticsproxymodel.h>
#line 1812 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1816 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 127 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1819 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1822 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1825 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1828 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1831 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1834 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1837 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1840 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1843 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 1846 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 1849 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1852 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1855 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 174 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 1858 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 1861 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1864 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 1867 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1870 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 1873 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1876 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1879 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1882 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1885 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1888 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1891 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1894 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_StatisticsProxyModel : public Akonadi::StatisticsProxyModel
{
public:
    sipAkonadi_StatisticsProxyModel(QObject*);
    virtual ~sipAkonadi_StatisticsProxyModel();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    void revert();
    bool submit();
    Qt::DropActions supportedDropActions() const;
    QStringList mimeTypes() const;
    void sort(int,Qt::SortOrder);
    QSize span(const QModelIndex&) const;
    QModelIndex buddy(const QModelIndex&) const;
    bool canFetchMore(const QModelIndex&) const;
    void fetchMore(const QModelIndex&);
    bool removeColumns(int,int,const QModelIndex&);
    bool removeRows(int,int,const QModelIndex&);
    bool insertColumns(int,int,const QModelIndex&);
    bool insertRows(int,int,const QModelIndex&);
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    QMimeData* mimeData(const QModelIndexList&) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    bool setData(const QModelIndex&,const QVariant&,int);
    bool hasChildren(const QModelIndex&) const;
    int rowCount(const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    bool lessThan(const QModelIndex&,const QModelIndex&) const;
    bool filterAcceptsColumn(int,const QModelIndex&) const;
    bool filterAcceptsRow(int,const QModelIndex&) const;
    QItemSelection mapSelectionFromSource(const QItemSelection&) const;
    QItemSelection mapSelectionToSource(const QItemSelection&) const;
    QModelIndex mapFromSource(const QModelIndex&) const;
    QModelIndex mapToSource(const QModelIndex&) const;
    void setSourceModel(QAbstractItemModel*);
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    int columnCount(const QModelIndex&) const;
    Qt::ItemFlags flags(const QModelIndex&) const;
    QVariant headerData(int,Qt::Orientation,int) const;
    QVariant data(const QModelIndex&,int) const;
    QModelIndex index(int,int,const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[43];
};

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

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

const QMetaObject *sipAkonadi_StatisticsProxyModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_StatisticsProxyModel);
}

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

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

    return _id;
}

void *sipAkonadi_StatisticsProxyModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_StatisticsProxyModel, _clname)) ? this : Akonadi::StatisticsProxyModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::event(a0);

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

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

bool sipAkonadi_StatisticsProxyModel::setItemData(const QModelIndex& a0,const QMap<int,QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::setItemData(a0,a1);

    typedef bool (*sipVH_QtCore_55)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QMap<int,QVariant>&);

    return ((sipVH_QtCore_55)(sipModuleAPI_akonadi_QtCore->em_virthandlers[55]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QMap<int,QVariant> sipAkonadi_StatisticsProxyModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::itemData(a0);

    typedef QMap<int,QVariant> (*sipVH_QtCore_56)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_56)(sipModuleAPI_akonadi_QtCore->em_virthandlers[56]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_StatisticsProxyModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::StatisticsProxyModel::revert();
        return;
    }

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

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

bool sipAkonadi_StatisticsProxyModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::submit();

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

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

Qt::DropActions sipAkonadi_StatisticsProxyModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::supportedDropActions();

    typedef Qt::DropActions (*sipVH_QtCore_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_53)(sipModuleAPI_akonadi_QtCore->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth);
}

QStringList sipAkonadi_StatisticsProxyModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::mimeTypes();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_akonadi_QtCore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_StatisticsProxyModel::sort(int a0,Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::StatisticsProxyModel::sort(a0,a1);
        return;
    }

    typedef void (*sipVH_QtCore_49)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::SortOrder);

    ((sipVH_QtCore_49)(sipModuleAPI_akonadi_QtCore->em_virthandlers[49]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QSize sipAkonadi_StatisticsProxyModel::span(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::span(a0);

    typedef QSize (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_47)(sipModuleAPI_akonadi_QtCore->em_virthandlers[47]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_StatisticsProxyModel::buddy(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::buddy(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_StatisticsProxyModel::canFetchMore(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::canFetchMore(a0);

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_42)(sipModuleAPI_akonadi_QtCore->em_virthandlers[42]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_StatisticsProxyModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::StatisticsProxyModel::fetchMore(a0);
        return;
    }

    typedef void (*sipVH_QtCore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    ((sipVH_QtCore_51)(sipModuleAPI_akonadi_QtCore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_StatisticsProxyModel::removeColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::removeColumns(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_StatisticsProxyModel::removeRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::removeRows(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_StatisticsProxyModel::insertColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::insertColumns(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_StatisticsProxyModel::insertRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::insertRows(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_StatisticsProxyModel::dropMimeData(const QMimeData*a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::dropMimeData(a0,a1,a2,a3,a4);

    typedef bool (*sipVH_QtCore_45)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);

    return ((sipVH_QtCore_45)(sipModuleAPI_akonadi_QtCore->em_virthandlers[45]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QMimeData* sipAkonadi_StatisticsProxyModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::mimeData(a0);

    typedef QMimeData* (*sipVH_QtCore_54)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList<QModelIndex>&);

    return ((sipVH_QtCore_54)(sipModuleAPI_akonadi_QtCore->em_virthandlers[54]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_StatisticsProxyModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::setHeaderData(a0,a1,a2,a3);

    typedef bool (*sipVH_QtCore_57)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::Orientation,const QVariant&,int);

    return ((sipVH_QtCore_57)(sipModuleAPI_akonadi_QtCore->em_virthandlers[57]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

bool sipAkonadi_StatisticsProxyModel::setData(const QModelIndex& a0,const QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::setData(a0,a1,a2);

    typedef bool (*sipVH_QtCore_59)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QVariant&,int);

    return ((sipVH_QtCore_59)(sipModuleAPI_akonadi_QtCore->em_virthandlers[59]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_StatisticsProxyModel::hasChildren(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::hasChildren(a0);

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_42)(sipModuleAPI_akonadi_QtCore->em_virthandlers[42]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipAkonadi_StatisticsProxyModel::rowCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::rowCount(a0);

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_43)(sipModuleAPI_akonadi_QtCore->em_virthandlers[43]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_StatisticsProxyModel::parent(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::parent(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_StatisticsProxyModel::lessThan(const QModelIndex& a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::lessThan(a0,a1);

    typedef bool (*sipVH_QtGui_113)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QModelIndex&);

    return ((sipVH_QtGui_113)(sipModuleAPI_akonadi_QtGui->em_virthandlers[113]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_StatisticsProxyModel::filterAcceptsColumn(int a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::filterAcceptsColumn(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_StatisticsProxyModel::filterAcceptsRow(int a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::filterAcceptsRow(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QItemSelection sipAkonadi_StatisticsProxyModel::mapSelectionFromSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::mapSelectionFromSource(a0);

    typedef QItemSelection (*sipVH_QtGui_115)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QItemSelection&);

    return ((sipVH_QtGui_115)(sipModuleAPI_akonadi_QtGui->em_virthandlers[115]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QItemSelection sipAkonadi_StatisticsProxyModel::mapSelectionToSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::mapSelectionToSource(a0);

    typedef QItemSelection (*sipVH_QtGui_115)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QItemSelection&);

    return ((sipVH_QtGui_115)(sipModuleAPI_akonadi_QtGui->em_virthandlers[115]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_StatisticsProxyModel::mapFromSource(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::mapFromSource(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_StatisticsProxyModel::mapToSource(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::mapToSource(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_StatisticsProxyModel::setSourceModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_setSourceModel);

    if (!sipMeth)
    {
        Akonadi::StatisticsProxyModel::setSourceModel(a0);
        return;
    }

    typedef void (*sipVH_QtGui_36)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QAbstractItemModel*);

    ((sipVH_QtGui_36)(sipModuleAPI_akonadi_QtGui->em_virthandlers[36]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndexList sipAkonadi_StatisticsProxyModel::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[37]),sipPySelf,NULL,sipName_match);

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::match(a0,a1,a2,a3,a4);

    typedef QList<QModelIndex> (*sipVH_QtCore_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

    return ((sipVH_QtCore_48)(sipModuleAPI_akonadi_QtCore->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

int sipAkonadi_StatisticsProxyModel::columnCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::columnCount(a0);

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_43)(sipModuleAPI_akonadi_QtCore->em_virthandlers[43]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

Qt::ItemFlags sipAkonadi_StatisticsProxyModel::flags(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::flags(a0);

    typedef Qt::ItemFlags (*sipVH_QtCore_50)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_50)(sipModuleAPI_akonadi_QtCore->em_virthandlers[50]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QVariant sipAkonadi_StatisticsProxyModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::headerData(a0,a1,a2);

    typedef QVariant (*sipVH_QtCore_58)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::Orientation,int);

    return ((sipVH_QtCore_58)(sipModuleAPI_akonadi_QtCore->em_virthandlers[58]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

QVariant sipAkonadi_StatisticsProxyModel::data(const QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::data(a0,a1);

    typedef QVariant (*sipVH_QtCore_60)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int);

    return ((sipVH_QtCore_60)(sipModuleAPI_akonadi_QtCore->em_virthandlers[60]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QModelIndex sipAkonadi_StatisticsProxyModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::StatisticsProxyModel::index(a0,a1,a2);

    typedef QModelIndex (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_46)(sipModuleAPI_akonadi_QtCore->em_virthandlers[46]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}


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

    {
        bool a0;
        Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setToolTipEnabled(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_StatisticsProxyModel, sipName_setToolTipEnabled, NULL);

    return NULL;
}


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

    {
        const Akonadi::StatisticsProxyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isToolTipEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExtraColumnsEnabled(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_StatisticsProxyModel, sipName_setExtraColumnsEnabled, NULL);

    return NULL;
}


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

    {
        const Akonadi::StatisticsProxyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isExtraColumnsEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        const QModelIndex& a2def = QModelIndex();
        const QModelIndex* a2 = &a2def;
        const Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii|J9", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->Akonadi::StatisticsProxyModel::index(a0,a1,*a2) : sipCpp->index(a0,a1,*a2)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QModelIndex* a0;
        int a1 = Qt::DisplayRole;
        const Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|i", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, sipType_QModelIndex, &a0, &a1))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::StatisticsProxyModel::data(*a0,a1) : sipCpp->data(*a0,a1)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        Qt::Orientation a1;
        int a2 = Qt::DisplayRole;
        const Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiE|i", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, &a2))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::StatisticsProxyModel::headerData(a0,a1,a2) : sipCpp->headerData(a0,a1,a2)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QModelIndex* a0;
        const Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            Qt::ItemFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Qt::ItemFlags((sipSelfWasArg ? sipCpp->Akonadi::StatisticsProxyModel::flags(*a0) : sipCpp->flags(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::StatisticsProxyModel::columnCount(*a0) : sipCpp->columnCount(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QModelIndex* a0;
        int a1;
        const QVariant* a2;
        int a2State = 0;
        int a3 = 1;
        Qt::MatchFlags a4def = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap);
        Qt::MatchFlags* a4 = &a4def;
        int a4State = 0;
        const Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9iJ1|iJ1", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, sipType_QModelIndex, &a0, &a1, sipType_QVariant,&a2, &a2State, &a3, sipType_Qt_MatchFlags, &a4, &a4State))
        {
            QModelIndexList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndexList((sipSelfWasArg ? sipCpp->Akonadi::StatisticsProxyModel::match(*a0,a1,*a2,a3,*a4) : sipCpp->match(*a0,a1,*a2,a3,*a4)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);
            sipReleaseType(a4,sipType_Qt_MatchFlags,a4State);

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

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

    return NULL;
}


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

    {
        QAbstractItemModel* a0;
        Akonadi::StatisticsProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StatisticsProxyModel, &sipCpp, sipType_QAbstractItemModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::StatisticsProxyModel::setSourceModel(a0) : sipCpp->setSourceModel(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_StatisticsProxyModel, sipName_setSourceModel, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_StatisticsProxyModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QSortFilterProxyModel)->ctd_cast((QSortFilterProxyModel *)(Akonadi::StatisticsProxyModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_StatisticsProxyModel[] = {{455, 2, 1}};


static PyMethodDef methods_Akonadi_StatisticsProxyModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_StatisticsProxyModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_Akonadi_StatisticsProxyModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flags), meth_Akonadi_StatisticsProxyModel_flags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_headerData), meth_Akonadi_StatisticsProxyModel_headerData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Akonadi_StatisticsProxyModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isExtraColumnsEnabled), meth_Akonadi_StatisticsProxyModel_isExtraColumnsEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isToolTipEnabled), meth_Akonadi_StatisticsProxyModel_isToolTipEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Akonadi_StatisticsProxyModel_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setExtraColumnsEnabled), meth_Akonadi_StatisticsProxyModel_setExtraColumnsEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSourceModel), meth_Akonadi_StatisticsProxyModel_setSourceModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setToolTipEnabled), meth_Akonadi_StatisticsProxyModel_setToolTipEnabled, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_StatisticsProxyModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__StatisticsProxyModel,
        {0}
    },
    {
        sipNameNr_StatisticsProxyModel,
        {0, 255, 0},
        11, methods_Akonadi_StatisticsProxyModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_StatisticsProxyModel,
    0,
    init_type_Akonadi_StatisticsProxyModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_StatisticsProxyModel,
    0,
    0,
    0,
    release_Akonadi_StatisticsProxyModel,
    cast_Akonadi_StatisticsProxyModel,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::StatisticsProxyModel::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/standardactionmanager.sip"
#include <akonadi/standardactionmanager.h>
#line 3139 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 3143 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3146 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 3149 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3152 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3155 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 3158 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3161 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 3164 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3167 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 3170 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 94 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 3173 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/favoritecollectionsmodel.sip"
#include <akonadi/favoritecollectionsmodel.h>
#line 3176 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 3179 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3182 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3185 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3191 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3194 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3197 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3200 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3203 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3206 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 3209 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3212 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3215 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"


class sipAkonadi_StandardActionManager : public Akonadi::StandardActionManager
{
public:
    sipAkonadi_StandardActionManager(KActionCollection*,QWidget*);
    virtual ~sipAkonadi_StandardActionManager();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipAkonadi_StandardActionManager::sipAkonadi_StandardActionManager(KActionCollection*a0,QWidget*a1): Akonadi::StandardActionManager(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_StandardActionManager::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_StandardActionManager);
}

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

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

    return _id;
}

void *sipAkonadi_StandardActionManager::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_StandardActionManager, _clname)) ? this : Akonadi::StandardActionManager::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::StandardActionManager::event(a0);

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

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


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

    {
        QItemSelectionModel* a0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_setCollectionSelectionModel, NULL);

    return NULL;
}


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

    {
        QItemSelectionModel* a0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_setItemSelectionModel, NULL);

    return NULL;
}


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

    {
        Akonadi::StandardActionManager::Type a0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_createAction, NULL);

    return NULL;
}


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

    {
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_createAllActions, NULL);

    return NULL;
}


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

    {
        Akonadi::StandardActionManager::Type a0;
        const Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_action, NULL);

    return NULL;
}


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

    {
        Akonadi::StandardActionManager::Type a0;
        const KLocalizedString* a1;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ9", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_setActionText, NULL);

    return NULL;
}


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

    {
        Akonadi::FavoriteCollectionsModel* a0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_setFavoriteCollectionsModel, NULL);

    return NULL;
}


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

    {
        QItemSelectionModel* a0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_setFavoriteSelectionModel, NULL);

    return NULL;
}


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

    {
        Akonadi::StandardActionManager::Type a0;
        bool a1 = 1;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|b", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_interceptAction, NULL);

    return NULL;
}


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

    {
        const Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_selectedCollections, NULL);

    return NULL;
}


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

    {
        const Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_selectedItems, NULL);

    return NULL;
}


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

    {
        Akonadi::StandardActionManager::Type a0;
        Akonadi::StandardActionManager::TextContext a1;
        const QString* a2;
        int a2State = 0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEJ1", &sipSelf, sipType_Akonadi_StandardActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0, sipType_Akonadi_StandardActionManager_TextContext, &a1, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContextText(a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        Akonadi::StandardActionManager::Type a0;
        Akonadi::StandardActionManager::TextContext a1;
        const KLocalizedString* a2;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEJ9", &sipSelf, sipType_Akonadi_StandardActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0, sipType_Akonadi_StandardActionManager_TextContext, &a1, sipType_KLocalizedString, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContextText(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_StandardActionManager, sipName_setContextText, NULL);

    return NULL;
}


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

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_StandardActionManager, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeTypeFilter(*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_StandardActionManager, sipName_setMimeTypeFilter, NULL);

    return NULL;
}


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

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_StandardActionManager, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCapabilityFilter(*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_StandardActionManager, sipName_setCapabilityFilter, NULL);

    return NULL;
}


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

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_StandardActionManager, &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_StandardActionManager, sipName_setCollectionPropertiesPageNames, NULL);

    return NULL;
}


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

    {
        QMenu* a0;
        Akonadi::StandardActionManager::Type a1;
        Akonadi::StandardActionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8E", &sipSelf, sipType_Akonadi_StandardActionManager, &sipCpp, sipType_QMenu, &a0, sipType_Akonadi_StandardActionManager_Type, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->createActionFolderMenu(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_StandardActionManager, sipName_createActionFolderMenu, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_StandardActionManager)
        return ptr;

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_type_Akonadi_StandardActionManager(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_StandardActionManager(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_StandardActionManager *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_StandardActionManager(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_StandardActionManager[] = {
    {SIP_MLNAME_CAST(sipName_action), meth_Akonadi_StandardActionManager_action, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAction), meth_Akonadi_StandardActionManager_createAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createActionFolderMenu), meth_Akonadi_StandardActionManager_createActionFolderMenu, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAllActions), meth_Akonadi_StandardActionManager_createAllActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_interceptAction), meth_Akonadi_StandardActionManager_interceptAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedCollections), meth_Akonadi_StandardActionManager_selectedCollections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedItems), meth_Akonadi_StandardActionManager_selectedItems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActionText), meth_Akonadi_StandardActionManager_setActionText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilityFilter), meth_Akonadi_StandardActionManager_setCapabilityFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionPropertiesPageNames), meth_Akonadi_StandardActionManager_setCollectionPropertiesPageNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionSelectionModel), meth_Akonadi_StandardActionManager_setCollectionSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContextText), meth_Akonadi_StandardActionManager_setContextText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFavoriteCollectionsModel), meth_Akonadi_StandardActionManager_setFavoriteCollectionsModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFavoriteSelectionModel), meth_Akonadi_StandardActionManager_setFavoriteSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemSelectionModel), meth_Akonadi_StandardActionManager_setItemSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeTypeFilter), meth_Akonadi_StandardActionManager_setMimeTypeFilter, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_StandardActionManager[] = {
    {sipName_AddToFavoriteCollections, static_cast<int>(Akonadi::StandardActionManager::AddToFavoriteCollections), 140},
    {sipName_CollectionProperties, static_cast<int>(Akonadi::StandardActionManager::CollectionProperties), 140},
    {sipName_CopyCollectionToDialog, static_cast<int>(Akonadi::StandardActionManager::CopyCollectionToDialog), 140},
    {sipName_CopyCollectionToMenu, static_cast<int>(Akonadi::StandardActionManager::CopyCollectionToMenu), 140},
    {sipName_CopyCollections, static_cast<int>(Akonadi::StandardActionManager::CopyCollections), 140},
    {sipName_CopyItemToDialog, static_cast<int>(Akonadi::StandardActionManager::CopyItemToDialog), 140},
    {sipName_CopyItemToMenu, static_cast<int>(Akonadi::StandardActionManager::CopyItemToMenu), 140},
    {sipName_CopyItems, static_cast<int>(Akonadi::StandardActionManager::CopyItems), 140},
    {sipName_CreateCollection, static_cast<int>(Akonadi::StandardActionManager::CreateCollection), 140},
    {sipName_CreateResource, static_cast<int>(Akonadi::StandardActionManager::CreateResource), 140},
    {sipName_CutCollections, static_cast<int>(Akonadi::StandardActionManager::CutCollections), 140},
    {sipName_CutItems, static_cast<int>(Akonadi::StandardActionManager::CutItems), 140},
    {sipName_DeleteCollections, static_cast<int>(Akonadi::StandardActionManager::DeleteCollections), 140},
    {sipName_DeleteItems, static_cast<int>(Akonadi::StandardActionManager::DeleteItems), 140},
    {sipName_DeleteResources, static_cast<int>(Akonadi::StandardActionManager::DeleteResources), 140},
    {sipName_DialogText, static_cast<int>(Akonadi::StandardActionManager::DialogText), 139},
    {sipName_DialogTitle, static_cast<int>(Akonadi::StandardActionManager::DialogTitle), 139},
    {sipName_ErrorMessageText, static_cast<int>(Akonadi::StandardActionManager::ErrorMessageText), 139},
    {sipName_ErrorMessageTitle, static_cast<int>(Akonadi::StandardActionManager::ErrorMessageTitle), 139},
    {sipName_LastType, static_cast<int>(Akonadi::StandardActionManager::LastType), 140},
    {sipName_ManageLocalSubscriptions, static_cast<int>(Akonadi::StandardActionManager::ManageLocalSubscriptions), 140},
    {sipName_MessageBoxAlternativeText, static_cast<int>(Akonadi::StandardActionManager::MessageBoxAlternativeText), 139},
    {sipName_MessageBoxText, static_cast<int>(Akonadi::StandardActionManager::MessageBoxText), 139},
    {sipName_MessageBoxTitle, static_cast<int>(Akonadi::StandardActionManager::MessageBoxTitle), 139},
    {sipName_MoveCollectionToDialog, static_cast<int>(Akonadi::StandardActionManager::MoveCollectionToDialog), 140},
    {sipName_MoveCollectionToMenu, static_cast<int>(Akonadi::StandardActionManager::MoveCollectionToMenu), 140},
    {sipName_MoveCollectionsToTrash, static_cast<int>(Akonadi::StandardActionManager::MoveCollectionsToTrash), 140},
    {sipName_MoveItemToDialog, static_cast<int>(Akonadi::StandardActionManager::MoveItemToDialog), 140},
    {sipName_MoveItemToMenu, static_cast<int>(Akonadi::StandardActionManager::MoveItemToMenu), 140},
    {sipName_MoveItemsToTrash, static_cast<int>(Akonadi::StandardActionManager::MoveItemsToTrash), 140},
    {sipName_MoveToTrashRestoreCollection, static_cast<int>(Akonadi::StandardActionManager::MoveToTrashRestoreCollection), 140},
    {sipName_MoveToTrashRestoreCollectionAlternative, static_cast<int>(Akonadi::StandardActionManager::MoveToTrashRestoreCollectionAlternative), 140},
    {sipName_MoveToTrashRestoreItem, static_cast<int>(Akonadi::StandardActionManager::MoveToTrashRestoreItem), 140},
    {sipName_MoveToTrashRestoreItemAlternative, static_cast<int>(Akonadi::StandardActionManager::MoveToTrashRestoreItemAlternative), 140},
    {sipName_Paste, static_cast<int>(Akonadi::StandardActionManager::Paste), 140},
    {sipName_RemoveFromFavoriteCollections, static_cast<int>(Akonadi::StandardActionManager::RemoveFromFavoriteCollections), 140},
    {sipName_RenameFavoriteCollection, static_cast<int>(Akonadi::StandardActionManager::RenameFavoriteCollection), 140},
    {sipName_ResourceProperties, static_cast<int>(Akonadi::StandardActionManager::ResourceProperties), 140},
    {sipName_RestoreCollectionsFromTrash, static_cast<int>(Akonadi::StandardActionManager::RestoreCollectionsFromTrash), 140},
    {sipName_RestoreItemsFromTrash, static_cast<int>(Akonadi::StandardActionManager::RestoreItemsFromTrash), 140},
    {sipName_SynchronizeCollections, static_cast<int>(Akonadi::StandardActionManager::SynchronizeCollections), 140},
    {sipName_SynchronizeCollectionsRecursive, static_cast<int>(Akonadi::StandardActionManager::SynchronizeCollectionsRecursive), 140},
    {sipName_SynchronizeFavoriteCollections, static_cast<int>(Akonadi::StandardActionManager::SynchronizeFavoriteCollections), 140},
    {sipName_SynchronizeResources, static_cast<int>(Akonadi::StandardActionManager::SynchronizeResources), 140},
    {sipName_ToggleWorkOffline, static_cast<int>(Akonadi::StandardActionManager::ToggleWorkOffline), 140},
};


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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_StandardActionManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__StandardActionManager,
        {0}
    },
    {
        sipNameNr_StandardActionManager,
        {0, 255, 0},
        16, methods_Akonadi_StandardActionManager,
        45, enummembers_Akonadi_StandardActionManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_StandardActionManager,
    0,
    init_type_Akonadi_StandardActionManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_StandardActionManager,
    0,
    0,
    0,
    release_Akonadi_StandardActionManager,
    cast_Akonadi_StandardActionManager,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::StandardActionManager::staticMetaObject,
    0,
    signals_Akonadi_StandardActionManager,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/transactionsequence.sip"
#include <akonadi/transactionsequence.h>
#line 4070 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4074 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 4077 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4080 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 4083 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4086 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4089 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 4092 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4095 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 4098 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 4101 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4104 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4107 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4116 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4119 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4122 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4125 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4128 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4131 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool doResume();
    bool doSuspend();
    void start();
    void slotInfoMessage(KJob*,const QString&,const QString&);
    void slotResult(KJob*);
    bool addSubjob(KJob*);
    bool doKill();
    bool removeSubjob(KJob*);
    void doHandleResponse(const QByteArray&,const QByteArray&);
    void doStart();
    QString errorString() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[20];
};

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(sipPySelf, sipType_Akonadi_TransactionSequence, _clname)) ? this : Akonadi::TransactionSequence::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionSequence::doResume();

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

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

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

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

    if (!sipMeth)
        return Akonadi::TransactionSequence::doSuspend();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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;
        Akonadi::TransactionSequence *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    {
        Akonadi::TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_TransactionSequence, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::TransactionSequence::doStart() : sipCpp->doStart());
            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;
        Akonadi::TransactionSequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_TransactionSequence, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::TransactionSequence::slotResult(a0) : sipCpp->slotResult(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_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)
{
    Akonadi::TransactionSequence *sipCpp = reinterpret_cast<Akonadi::TransactionSequence *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

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

    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_type_Akonadi_TransactionSequence(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{104, 255, 1}};


static PyMethodDef methods_Akonadi_TransactionSequence[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_TransactionSequence_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commit), meth_Akonadi_TransactionSequence_commit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_TransactionSequence_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rollback), meth_Akonadi_TransactionSequence_rollback, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutomaticCommittingEnabled), meth_Akonadi_TransactionSequence_setAutomaticCommittingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIgnoreJobFailure), meth_Akonadi_TransactionSequence_setIgnoreJobFailure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_TransactionSequence_slotResult, 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},
        7, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::TransactionSequence::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/session.sip"
#include <akonadi/session.h>
#line 4839 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4843 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4846 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4849 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4852 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4855 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4858 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4861 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4864 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4867 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4870 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4873 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4876 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4879 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    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(sipPySelf, sipType_Akonadi_Session, _clname)) ? this : Akonadi::Session::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ((sipVH_QtCore_17)(sipModuleAPI_akonadi_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, 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)
    {
        Akonadi::Session::childEvent(a0);
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::Session::event(a0);

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

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


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

    {
        const 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)
{
    Akonadi::Session *sipCpp = reinterpret_cast<Akonadi::Session *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

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

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


static PyMethodDef methods_Akonadi_Session[] = {
    {SIP_MLNAME_CAST(sipName_clear), meth_Akonadi_Session_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultSession), meth_Akonadi_Session_defaultSession, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionId), meth_Akonadi_Session_sessionId, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_Session[] = {
    {"reconnected()", 0, 0, 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},
        3, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::Session::staticMetaObject,
    0,
    signals_Akonadi_Session,
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/servermanager.sip"
#include <akonadi/servermanager.h>
#line 5291 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 5295 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5298 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5301 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5304 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5307 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5310 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5313 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5316 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5319 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5322 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5328 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5331 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5334 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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)
{
    Akonadi::ServerManager *sipCpp = reinterpret_cast<Akonadi::ServerManager *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

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

    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[] = {{141, 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, static_cast<int>(Akonadi::ServerManager::Broken), 131},
    {sipName_NotRunning, static_cast<int>(Akonadi::ServerManager::NotRunning), 131},
    {sipName_Running, static_cast<int>(Akonadi::ServerManager::Running), 131},
    {sipName_Starting, static_cast<int>(Akonadi::ServerManager::Starting), 131},
    {sipName_Stopping, static_cast<int>(Akonadi::ServerManager::Stopping), 131},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_ServerManager[] = {
    {"stateChanged(Akonadi::ServerManager::State)", 0, 0, 0},
    {"stopped()", 0, 0, 0},
    {"started()", 0, 0, 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,
    0,
    0,
    0
},
    &Akonadi::ServerManager::staticMetaObject,
    0,
    signals_Akonadi_ServerManager,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/searchcreatejob.sip"
#include <akonadi/searchcreatejob.h>
#line 5617 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5621 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5624 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5627 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 5630 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5633 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 5636 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5639 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 5642 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5645 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5648 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 5651 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5654 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5657 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5660 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5663 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5666 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5669 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5672 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5675 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5678 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5681 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool doResume();
    bool doSuspend();
    void start();
    void slotInfoMessage(KJob*,const QString&,const QString&);
    void slotResult(KJob*);
    bool doKill();
    bool removeSubjob(KJob*);
    bool addSubjob(KJob*);
    void doHandleResponse(const QByteArray&,const QByteArray&);
    void doStart();
    QString errorString() const;

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(sipPySelf, sipType_Akonadi_SearchCreateJob, _clname)) ? this : Akonadi::SearchCreateJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::SearchCreateJob::event(a0);

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

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

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

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

    if (!sipMeth)
        return Akonadi::SearchCreateJob::doResume();

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

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

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

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

    if (!sipMeth)
        return Akonadi::SearchCreateJob::doSuspend();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        Akonadi::SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_SearchCreateJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::SearchCreateJob::doStart() : sipCpp->doStart());
            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;

    {
        const 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;
        Akonadi::SearchCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_Akonadi_SearchCreateJob, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::SearchCreateJob::doHandleResponse(*a0,*a1) : sipCpp->doHandleResponse(*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)
{
    Akonadi::SearchCreateJob *sipCpp = reinterpret_cast<Akonadi::SearchCreateJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

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

    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_type_Akonadi_SearchCreateJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{104, 255, 1}};


static PyMethodDef methods_Akonadi_SearchCreateJob[] = {
    {SIP_MLNAME_CAST(sipName_createdCollection), meth_Akonadi_SearchCreateJob_createdCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_SearchCreateJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_SearchCreateJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQueryLanguage), meth_Akonadi_SearchCreateJob_setQueryLanguage, 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},
        4, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::SearchCreateJob::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/resourcesynchronizationjob.sip"
#include <akonadi/resourcesynchronizationjob.h>
#line 6318 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 6322 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 6325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 6328 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6331 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 6334 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6337 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 6340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 6343 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6346 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6349 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6352 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6355 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6358 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6361 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6364 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6367 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 6370 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6373 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6376 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QString errorString() const;
    bool doResume();
    bool doSuspend();
    bool doKill();
    void start();

public:
    sipSimpleWrapper *sipPySelf;

private:
    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(sipPySelf, sipType_Akonadi_ResourceSynchronizationJob, _clname)) ? this : Akonadi::ResourceSynchronizationJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::ResourceSynchronizationJob::event(a0);

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::ResourceSynchronizationJob::doResume();

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

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

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

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

    if (!sipMeth)
        return Akonadi::ResourceSynchronizationJob::doSuspend();

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

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

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

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

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

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

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

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

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

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

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

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


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

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


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

    {
        const Akonadi::ResourceSynchronizationJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->collectionTreeOnly();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::ResourceSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ResourceSynchronizationJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionTreeOnly(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_setCollectionTreeOnly, 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)
{
    Akonadi::ResourceSynchronizationJob *sipCpp = reinterpret_cast<Akonadi::ResourceSynchronizationJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

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

    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_type_Akonadi_ResourceSynchronizationJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_collectionTreeOnly), meth_Akonadi_ResourceSynchronizationJob_collectionTreeOnly, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resource), meth_Akonadi_ResourceSynchronizationJob_resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionTreeOnly), meth_Akonadi_ResourceSynchronizationJob_setCollectionTreeOnly, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_ResourceSynchronizationJob_start, 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},
        4, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::ResourceSynchronizationJob::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/resourcesettings.sip"
#include <akonadi/resourcesettings.h>
#line 6892 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6896 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kconfigskeleton.sip"
#include <kconfigskeleton.h>
#line 6899 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6902 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 6905 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kconfigskeleton.sip"
#include <kconfigskeleton.h>
#line 6908 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qcolor.sip"
#include <qcolor.h>
#line 6911 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 136 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6914 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6917 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 6920 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 6923 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 6926 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6929 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 628 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6932 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6935 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6938 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6941 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 406 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 6944 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6947 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 6950 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6953 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 6956 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6959 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 6962 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6965 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6968 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6971 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6974 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6977 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6980 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6983 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6986 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6989 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 6992 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6995 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6998 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7001 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7004 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7007 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7010 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7013 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7016 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 7019 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7022 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7025 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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[] = {{125, 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,
    0,
    0,
    0
},
    &Akonadi::ResourceSettings::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/resourcebasesettings.sip"
#include <akonadi/resourcebasesettings.h>
#line 7140 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7144 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kconfigskeleton.sip"
#include <kconfigskeleton.h>
#line 7147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7150 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 7153 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kconfigskeleton.sip"
#include <kconfigskeleton.h>
#line 7156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qcolor.sip"
#include <qcolor.h>
#line 7159 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 136 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7162 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7165 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7168 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 7171 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 7174 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7177 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 628 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7180 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7183 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7186 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7189 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 406 "/usr/share/python3-sip/PyQt4/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 7192 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7195 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 7198 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7201 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 7204 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7207 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 7210 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7213 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7216 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7219 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7222 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7225 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7228 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7231 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7234 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7237 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7240 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7243 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7246 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7249 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7255 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7258 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7261 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7264 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 7267 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7270 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7273 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void usrWriteConfig();
    void usrReadConfig();
    void usrSetDefaults();
    bool usrUseDefaults(bool);
    bool useDefaults(bool);
    void writeConfig();
    void readConfig();
    void setDefaults();

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(sipPySelf, sipType_Akonadi_ResourceBaseSettings, _clname)) ? this : Akonadi::ResourceBaseSettings::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::ResourceBaseSettings::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBaseSettings::usrWriteConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_usrWriteConfig);

    if (!sipMeth)
    {
        Akonadi::ResourceBaseSettings::usrWriteConfig();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_ResourceBaseSettings::usrReadConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_usrReadConfig);

    if (!sipMeth)
    {
        Akonadi::ResourceBaseSettings::usrReadConfig();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_ResourceBaseSettings::usrSetDefaults()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_usrSetDefaults);

    if (!sipMeth)
    {
        Akonadi::ResourceBaseSettings::usrSetDefaults();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipAkonadi_ResourceBaseSettings::usrUseDefaults(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_usrUseDefaults);

    if (!sipMeth)
        return Akonadi::ResourceBaseSettings::usrUseDefaults(a0);

    typedef bool (*sipVH_QtGui_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtGui_11)(sipModuleAPI_akonadi_QtGui->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_ResourceBaseSettings::useDefaults(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_useDefaults);

    if (!sipMeth)
        return Akonadi::ResourceBaseSettings::useDefaults(a0);

    typedef bool (*sipVH_QtGui_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtGui_11)(sipModuleAPI_akonadi_QtGui->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBaseSettings::writeConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_writeConfig);

    if (!sipMeth)
    {
        Akonadi::ResourceBaseSettings::writeConfig();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_ResourceBaseSettings::readConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_readConfig);

    if (!sipMeth)
    {
        Akonadi::ResourceBaseSettings::readConfig();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_ResourceBaseSettings::setDefaults()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_setDefaults);

    if (!sipMeth)
    {
        Akonadi::ResourceBaseSettings::setDefaults();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


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)
{
    Akonadi::ResourceBaseSettings *sipCpp = reinterpret_cast<Akonadi::ResourceBaseSettings *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    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_type_Akonadi_ResourceBaseSettings(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_minimumCheckInterval), meth_Akonadi_ResourceBaseSettings_minimumCheckInterval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_minimumCheckIntervalItem), meth_Akonadi_ResourceBaseSettings_minimumCheckIntervalItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_Akonadi_ResourceBaseSettings_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMinimumCheckInterval), meth_Akonadi_ResourceBaseSettings_setMinimumCheckInterval, 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},
        4, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::ResourceBaseSettings::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/resourcebase.sip"
#include <akonadi/resourcebase.h>
#line 7844 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7848 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 7851 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 7854 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/itemsync.sip"
#include <akonadi/itemsync.h>
#line 7857 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7860 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7863 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 7866 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7869 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7872 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 513 "/usr/share/python3-sip/PyQt4/QtCore/qset.sip"
#include <qset.h>
#line 7875 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7878 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 7881 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 7884 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7887 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7890 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 7893 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/changerecorder.sip"
#include <akonadi/changerecorder.h>
#line 7896 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 7901 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7904 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7907 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7910 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7913 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7916 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7919 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 7922 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7925 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7928 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void doSetOnline(bool);
    void aboutToQuit();
    void cleanup();
    void configure(WId);
    QString progressMessage() const;
    int progress() const;
    QString statusMessage() const;
    int status() const;
    bool retrieveItem(const Akonadi::Item&,const QSet<QByteArray>&);
    void retrieveItems(const Akonadi::Collection&);
    void retrieveCollections();

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(sipPySelf, sipType_Akonadi_ResourceBase, _clname)) ? this : Akonadi::ResourceBase::qt_metacast(_clname);
}

void sipAkonadi_ResourceBase::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_akonadi_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBase::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_akonadi_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBase::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_akonadi_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBase::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_akonadi_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBase::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_akonadi_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_ResourceBase::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::ResourceBase::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_ResourceBase::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::ResourceBase::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBase::doSetOnline(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_doSetOnline);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::doSetOnline(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_akonadi_QtNetwork->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBase::aboutToQuit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_aboutToQuit);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::aboutToQuit();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_ResourceBase::cleanup()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_cleanup);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::cleanup();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_ResourceBase::configure(WId a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_configure);

    if (!sipMeth)
    {
        Akonadi::ResourceBase::configure(a0);
        return;
    }

    typedef void (*sipVH_kdeui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, unsigned long);

    ((sipVH_kdeui_7)(sipModuleAPI_akonadi_kdeui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipAkonadi_ResourceBase::progressMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_progressMessage);

    if (!sipMeth)
        return Akonadi::ResourceBase::progressMessage();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipAkonadi_ResourceBase::progress() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_progress);

    if (!sipMeth)
        return Akonadi::ResourceBase::progress();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_akonadi_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipAkonadi_ResourceBase::statusMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_statusMessage);

    if (!sipMeth)
        return Akonadi::ResourceBase::statusMessage();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipAkonadi_ResourceBase::status() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_status);

    if (!sipMeth)
        return Akonadi::ResourceBase::status();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_akonadi_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipAkonadi_ResourceBase::retrieveItem(const Akonadi::Item& a0,const QSet<QByteArray>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,sipName_ResourceBase,sipName_retrieveItem);

    if (!sipMeth)
        return 0;

    extern bool sipVH_akonadi_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const QSet<QByteArray>&);

    return sipVH_akonadi_1(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_ResourceBase::retrieveItems(const Akonadi::Collection& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,sipName_ResourceBase,sipName_retrieveItems);

    if (!sipMeth)
        return;

    extern void sipVH_akonadi_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Collection&);

    sipVH_akonadi_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_ResourceBase::retrieveCollections()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,sipName_ResourceBase,sipName_retrieveCollections);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


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;

    {
        const 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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ResourceBase, sipName_retrieveCollections);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ResourceBase, sipName_retrieveItems);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9J1", &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->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Item, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Item, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->changeCommitted(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Akonadi::Collection* a0;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QList_0100Akonadi_Collection,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QList_0100Akonadi_Collection,&a0, &a0State, sipType_QList_0100Akonadi_Collection,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QList_0100Akonadi_Item,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pi", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QList_0100Akonadi_Item,&a0, &a0State, sipType_QList_0100Akonadi_Item,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        const Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Akonadi::Collection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->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;

    {
        const Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Akonadi::Item*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Item(sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pn", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->synchronizeCollection(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qint64 a0;
        bool a1;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pnb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->cancelTask();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::ResourceBase::doSetOnline(a0) : sipCpp->doSetOnline(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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase::SchedulePriority a3;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8AAJ1E", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_QObject, &a0, &a1Keep, &a1, sipType_QVariant,&a2, &a2State, sipType_Akonadi_ResourceBase_SchedulePriority, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;

    {
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pE", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_ItemSync_TransactionMode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_ItemFetchScope, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pn", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
}


extern "C" {static PyObject *meth_Akonadi_ResourceBase_invalidateCache(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_ResourceBase_invalidateCache(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Collection* a0;
        Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->invalidateCache(*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_invalidateCache, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_ResourceBase_dumpNotificationListToString(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_ResourceBase_dumpNotificationListToString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->dumpNotificationListToString());
            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_dumpNotificationListToString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_ResourceBase_dumpSchedulerToString(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_ResourceBase_dumpSchedulerToString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::ResourceBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_ResourceBase, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->dumpSchedulerToString());
            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_dumpSchedulerToString, 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_type_Akonadi_ResourceBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_cancelTask), meth_Akonadi_ResourceBase_cancelTask, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeCommitted), meth_Akonadi_ResourceBase_changeCommitted, 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_currentCollection), meth_Akonadi_ResourceBase_currentCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentItem), meth_Akonadi_ResourceBase_currentItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deferTask), meth_Akonadi_ResourceBase_deferTask, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSetOnline), meth_Akonadi_ResourceBase_doSetOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dumpNotificationListToString), meth_Akonadi_ResourceBase_dumpNotificationListToString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dumpSchedulerToString), meth_Akonadi_ResourceBase_dumpSchedulerToString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invalidateCache), meth_Akonadi_ResourceBase_invalidateCache, 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_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_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_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}
};

static sipEnumMemberDef enummembers_Akonadi_ResourceBase[] = {
    {sipName_AfterChangeReplay, static_cast<int>(Akonadi::ResourceBase::AfterChangeReplay), 124},
    {sipName_Append, static_cast<int>(Akonadi::ResourceBase::Append), 124},
    {sipName_Prepend, static_cast<int>(Akonadi::ResourceBase::Prepend), 124},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_ResourceBase[] = {
    {"collectionTreeSynchronized()", 0, 0, 0},
    {"attributesSynchronized(qlonglong)", 0, 0, 0},
    {"synchronized()", 0, 0, 0},
    {"nameChanged(QString)", 0, 0, 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},
        38, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::ResourceBase::staticMetaObject,
    0,
    signals_Akonadi_ResourceBase,
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/recursiveitemfetchjob.sip"
#include <akonadi/recursiveitemfetchjob.h>
#line 9601 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 9605 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9608 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 9611 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9614 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 9617 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 9620 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9623 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9626 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 9629 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9632 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9635 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 9638 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9641 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9644 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9647 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9650 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9653 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9656 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9659 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9662 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 9665 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9668 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9671 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QString errorString() const;
    bool doResume();
    bool doSuspend();
    bool doKill();
    void start();

public:
    sipSimpleWrapper *sipPySelf;

private:
    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(sipPySelf, sipType_Akonadi_RecursiveItemFetchJob, _clname)) ? this : Akonadi::RecursiveItemFetchJob::qt_metacast(_clname);
}

void sipAkonadi_RecursiveItemFetchJob::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::RecursiveItemFetchJob::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_akonadi_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveItemFetchJob::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::RecursiveItemFetchJob::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_akonadi_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveItemFetchJob::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::RecursiveItemFetchJob::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_akonadi_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveItemFetchJob::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::RecursiveItemFetchJob::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_akonadi_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveItemFetchJob::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::RecursiveItemFetchJob::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_akonadi_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_RecursiveItemFetchJob::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::RecursiveItemFetchJob::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_RecursiveItemFetchJob::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::RecursiveItemFetchJob::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipAkonadi_RecursiveItemFetchJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return Akonadi::RecursiveItemFetchJob::errorString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipAkonadi_RecursiveItemFetchJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return Akonadi::RecursiveItemFetchJob::doResume();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipAkonadi_RecursiveItemFetchJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return Akonadi::RecursiveItemFetchJob::doSuspend();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipAkonadi_RecursiveItemFetchJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return Akonadi::RecursiveItemFetchJob::doKill();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_RecursiveItemFetchJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        Akonadi::RecursiveItemFetchJob::start();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


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;

    {
        const 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)
{
    Akonadi::RecursiveItemFetchJob *sipCpp = reinterpret_cast<Akonadi::RecursiveItemFetchJob *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    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_type_Akonadi_RecursiveItemFetchJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_fetchScope), meth_Akonadi_RecursiveItemFetchJob_fetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_items), meth_Akonadi_RecursiveItemFetchJob_items, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFetchScope), meth_Akonadi_RecursiveItemFetchJob_setFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_RecursiveItemFetchJob_start, 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},
        4, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::RecursiveItemFetchJob::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/recursivecollectionfilterproxymodel.sip"
#include <akonadi/recursivecollectionfilterproxymodel.h>
#line 10190 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 10194 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 10197 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10200 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10203 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10206 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10209 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10212 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 127 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 10215 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10218 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10221 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 10224 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10227 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 10230 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 174 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 10236 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 10239 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10242 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 10245 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10248 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 10251 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10254 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10257 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10260 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10263 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10266 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 10269 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10272 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    int columnCount(const QModelIndex&) const;
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    void revert();
    bool submit();
    void setSourceModel(QAbstractItemModel*);
    Qt::DropActions supportedDropActions() const;
    QStringList mimeTypes() const;
    void sort(int,Qt::SortOrder);
    QSize span(const QModelIndex&) const;
    QModelIndex buddy(const QModelIndex&) const;
    Qt::ItemFlags flags(const QModelIndex&) const;
    bool canFetchMore(const QModelIndex&) const;
    void fetchMore(const QModelIndex&);
    bool removeColumns(int,int,const QModelIndex&);
    bool removeRows(int,int,const QModelIndex&);
    bool insertColumns(int,int,const QModelIndex&);
    bool insertRows(int,int,const QModelIndex&);
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    QMimeData* mimeData(const QModelIndexList&) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    QVariant headerData(int,Qt::Orientation,int) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    QVariant data(const QModelIndex&,int) const;
    bool hasChildren(const QModelIndex&) const;
    int rowCount(const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    QModelIndex index(int,int,const QModelIndex&) const;
    bool lessThan(const QModelIndex&,const QModelIndex&) const;
    bool filterAcceptsColumn(int,const QModelIndex&) const;
    QItemSelection mapSelectionFromSource(const QItemSelection&) const;
    QItemSelection mapSelectionToSource(const QItemSelection&) const;
    QModelIndex mapFromSource(const QModelIndex&) const;
    QModelIndex mapToSource(const QModelIndex&) const;
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    bool acceptRow(int,const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_RecursiveCollectionFilterProxyModel(const sipAkonadi_RecursiveCollectionFilterProxyModel &);
    sipAkonadi_RecursiveCollectionFilterProxyModel &operator = (const sipAkonadi_RecursiveCollectionFilterProxyModel &);

    char sipPyMethods[45];
};

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(sipPySelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, _clname)) ? this : Akonadi::RecursiveCollectionFilterProxyModel::qt_metacast(_clname);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_akonadi_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_akonadi_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_akonadi_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_akonadi_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_akonadi_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipAkonadi_RecursiveCollectionFilterProxyModel::columnCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_columnCount);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::columnCount(a0);

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_43)(sipModuleAPI_akonadi_QtCore->em_virthandlers[43]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::setItemData(const QModelIndex& a0,const QMap<int,QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::setItemData(a0,a1);

    typedef bool (*sipVH_QtCore_55)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QMap<int,QVariant>&);

    return ((sipVH_QtCore_55)(sipModuleAPI_akonadi_QtCore->em_virthandlers[55]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QMap<int,QVariant> sipAkonadi_RecursiveCollectionFilterProxyModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_itemData);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::itemData(a0);

    typedef QMap<int,QVariant> (*sipVH_QtCore_56)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_56)(sipModuleAPI_akonadi_QtCore->em_virthandlers[56]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::revert();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::submit();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::setSourceModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_setSourceModel);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::setSourceModel(a0);
        return;
    }

    typedef void (*sipVH_QtGui_36)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QAbstractItemModel*);

    ((sipVH_QtGui_36)(sipModuleAPI_akonadi_QtGui->em_virthandlers[36]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

Qt::DropActions sipAkonadi_RecursiveCollectionFilterProxyModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_supportedDropActions);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::supportedDropActions();

    typedef Qt::DropActions (*sipVH_QtCore_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_53)(sipModuleAPI_akonadi_QtCore->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth);
}

QStringList sipAkonadi_RecursiveCollectionFilterProxyModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_mimeTypes);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::mimeTypes();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_akonadi_QtCore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::sort(int a0,Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::sort(a0,a1);
        return;
    }

    typedef void (*sipVH_QtCore_49)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::SortOrder);

    ((sipVH_QtCore_49)(sipModuleAPI_akonadi_QtCore->em_virthandlers[49]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QSize sipAkonadi_RecursiveCollectionFilterProxyModel::span(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_span);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::span(a0);

    typedef QSize (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_47)(sipModuleAPI_akonadi_QtCore->em_virthandlers[47]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::buddy(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_buddy);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::buddy(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

Qt::ItemFlags sipAkonadi_RecursiveCollectionFilterProxyModel::flags(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::flags(a0);

    typedef Qt::ItemFlags (*sipVH_QtCore_50)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_50)(sipModuleAPI_akonadi_QtCore->em_virthandlers[50]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::canFetchMore(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_canFetchMore);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::canFetchMore(a0);

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_42)(sipModuleAPI_akonadi_QtCore->em_virthandlers[42]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_RecursiveCollectionFilterProxyModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
        Akonadi::RecursiveCollectionFilterProxyModel::fetchMore(a0);
        return;
    }

    typedef void (*sipVH_QtCore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    ((sipVH_QtCore_51)(sipModuleAPI_akonadi_QtCore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::removeColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_removeColumns);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::removeColumns(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, 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 Akonadi::RecursiveCollectionFilterProxyModel::removeRows(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, 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[23],sipPySelf,NULL,sipName_insertColumns);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::insertColumns(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::insertRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_insertRows);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::insertRows(a0,a1,a2);

    typedef bool (*sipVH_QtCore_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_52)(sipModuleAPI_akonadi_QtCore->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

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[25],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::dropMimeData(a0,a1,a2,a3,a4);

    typedef bool (*sipVH_QtCore_45)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);

    return ((sipVH_QtCore_45)(sipModuleAPI_akonadi_QtCore->em_virthandlers[45]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QMimeData* sipAkonadi_RecursiveCollectionFilterProxyModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_mimeData);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::mimeData(a0);

    typedef QMimeData* (*sipVH_QtCore_54)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList<QModelIndex>&);

    return ((sipVH_QtCore_54)(sipModuleAPI_akonadi_QtCore->em_virthandlers[54]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::setHeaderData(a0,a1,a2,a3);

    typedef bool (*sipVH_QtCore_57)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::Orientation,const QVariant&,int);

    return ((sipVH_QtCore_57)(sipModuleAPI_akonadi_QtCore->em_virthandlers[57]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

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[28]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::headerData(a0,a1,a2);

    typedef QVariant (*sipVH_QtCore_58)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::Orientation,int);

    return ((sipVH_QtCore_58)(sipModuleAPI_akonadi_QtCore->em_virthandlers[58]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::setData(const QModelIndex& a0,const QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::setData(a0,a1,a2);

    typedef bool (*sipVH_QtCore_59)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QVariant&,int);

    return ((sipVH_QtCore_59)(sipModuleAPI_akonadi_QtCore->em_virthandlers[59]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

QVariant sipAkonadi_RecursiveCollectionFilterProxyModel::data(const QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::data(a0,a1);

    typedef QVariant (*sipVH_QtCore_60)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int);

    return ((sipVH_QtCore_60)(sipModuleAPI_akonadi_QtCore->em_virthandlers[60]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::hasChildren(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,NULL,sipName_hasChildren);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::hasChildren(a0);

    typedef bool (*sipVH_QtCore_42)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_42)(sipModuleAPI_akonadi_QtCore->em_virthandlers[42]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipAkonadi_RecursiveCollectionFilterProxyModel::rowCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,NULL,sipName_rowCount);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::rowCount(a0);

    typedef int (*sipVH_QtCore_43)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_43)(sipModuleAPI_akonadi_QtCore->em_virthandlers[43]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::parent(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,NULL,sipName_parent);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::parent(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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[34]),sipPySelf,NULL,sipName_index);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::index(a0,a1,a2);

    typedef QModelIndex (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_46)(sipModuleAPI_akonadi_QtCore->em_virthandlers[46]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::lessThan(const QModelIndex& a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_lessThan);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::lessThan(a0,a1);

    typedef bool (*sipVH_QtGui_113)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QModelIndex&);

    return ((sipVH_QtGui_113)(sipModuleAPI_akonadi_QtGui->em_virthandlers[113]))(sipGILState, 0, sipPySelf, 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[36]),sipPySelf,NULL,sipName_filterAcceptsColumn);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::filterAcceptsColumn(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QItemSelection sipAkonadi_RecursiveCollectionFilterProxyModel::mapSelectionFromSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,NULL,sipName_mapSelectionFromSource);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::mapSelectionFromSource(a0);

    typedef QItemSelection (*sipVH_QtGui_115)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QItemSelection&);

    return ((sipVH_QtGui_115)(sipModuleAPI_akonadi_QtGui->em_virthandlers[115]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QItemSelection sipAkonadi_RecursiveCollectionFilterProxyModel::mapSelectionToSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,NULL,sipName_mapSelectionToSource);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::mapSelectionToSource(a0);

    typedef QItemSelection (*sipVH_QtGui_115)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QItemSelection&);

    return ((sipVH_QtGui_115)(sipModuleAPI_akonadi_QtGui->em_virthandlers[115]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::mapFromSource(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[39]),sipPySelf,NULL,sipName_mapFromSource);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::mapFromSource(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_RecursiveCollectionFilterProxyModel::mapToSource(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,NULL,sipName_mapToSource);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::mapToSource(a0);

    typedef QModelIndex (*sipVH_QtCore_44)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_44)(sipModuleAPI_akonadi_QtCore->em_virthandlers[44]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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[41]),sipPySelf,NULL,sipName_match);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::match(a0,a1,a2,a3,a4);

    typedef QList<QModelIndex> (*sipVH_QtCore_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

    return ((sipVH_QtCore_48)(sipModuleAPI_akonadi_QtCore->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

bool sipAkonadi_RecursiveCollectionFilterProxyModel::acceptRow(int a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[42]),sipPySelf,NULL,sipName_acceptRow);

    if (!sipMeth)
        return Akonadi::RecursiveCollectionFilterProxyModel::acceptRow(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


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;

    {
        const 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;
        const Akonadi::RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "piJ9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::RecursiveCollectionFilterProxyModel::acceptRow(a0,*a1) : sipCpp->acceptRow(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;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_setSearchPattern(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_setSearchPattern(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->setSearchPattern(*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_setSearchPattern, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_columnCount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_RecursiveCollectionFilterProxyModel_columnCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        const Akonadi::RecursiveCollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_RecursiveCollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::RecursiveCollectionFilterProxyModel::columnCount(*a0) : sipCpp->columnCount(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RecursiveCollectionFilterProxyModel, sipName_columnCount, 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)
{
    Akonadi::RecursiveCollectionFilterProxyModel *sipCpp = reinterpret_cast<Akonadi::RecursiveCollectionFilterProxyModel *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    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_type_Akonadi_RecursiveCollectionFilterProxyModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_clearFilters), meth_Akonadi_RecursiveCollectionFilterProxyModel_clearFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_RecursiveCollectionFilterProxyModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contentMimeTypeInclusionFilters), meth_Akonadi_RecursiveCollectionFilterProxyModel_contentMimeTypeInclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContentMimeTypeInclusionFilters), meth_Akonadi_RecursiveCollectionFilterProxyModel_setContentMimeTypeInclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSearchPattern), meth_Akonadi_RecursiveCollectionFilterProxyModel_setSearchPattern, 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},
        8, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::RecursiveCollectionFilterProxyModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/preprocessorbase.sip"
#include <akonadi/preprocessorbase.h>
#line 11416 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11420 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 11423 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 11426 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 11429 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 11432 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11435 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11438 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11441 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 11444 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/changerecorder.sip"
#include <akonadi/changerecorder.h>
#line 11447 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 11452 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11455 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11458 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11461 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11464 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11467 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11470 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11473 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11476 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11479 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11482 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11485 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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 protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void doSetOnline(bool);
    void aboutToQuit();
    void cleanup();
    void configure(WId);
    QString progressMessage() const;
    int progress() const;
    QString statusMessage() const;
    int status() const;
    Akonadi::PreprocessorBase::ProcessingResult processItem(const Akonadi::Item&);

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(sipPySelf, sipType_Akonadi_PreprocessorBase, _clname)) ? this : Akonadi::PreprocessorBase::qt_metacast(_clname);
}

void sipAkonadi_PreprocessorBase::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_akonadi_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_PreprocessorBase::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_akonadi_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_PreprocessorBase::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_akonadi_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_PreprocessorBase::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_akonadi_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_PreprocessorBase::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_akonadi_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_PreprocessorBase::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::PreprocessorBase::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_PreprocessorBase::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::PreprocessorBase::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_PreprocessorBase::doSetOnline(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_doSetOnline);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::doSetOnline(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_akonadi_QtNetwork->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_PreprocessorBase::aboutToQuit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_aboutToQuit);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::aboutToQuit();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_PreprocessorBase::cleanup()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_cleanup);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::cleanup();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_PreprocessorBase::configure(WId a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_configure);

    if (!sipMeth)
    {
        Akonadi::PreprocessorBase::configure(a0);
        return;
    }

    typedef void (*sipVH_kdeui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, unsigned long);

    ((sipVH_kdeui_7)(sipModuleAPI_akonadi_kdeui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipAkonadi_PreprocessorBase::progressMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_progressMessage);

    if (!sipMeth)
        return Akonadi::PreprocessorBase::progressMessage();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipAkonadi_PreprocessorBase::progress() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_progress);

    if (!sipMeth)
        return Akonadi::PreprocessorBase::progress();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_akonadi_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipAkonadi_PreprocessorBase::statusMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_statusMessage);

    if (!sipMeth)
        return Akonadi::PreprocessorBase::statusMessage();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipAkonadi_PreprocessorBase::status() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_status);

    if (!sipMeth)
        return Akonadi::PreprocessorBase::status();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_akonadi_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

Akonadi::PreprocessorBase::ProcessingResult sipAkonadi_PreprocessorBase::processItem(const Akonadi::Item& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,sipName_PreprocessorBase,sipName_processItem);

    if (!sipMeth)
        return (Akonadi::PreprocessorBase::ProcessingResult)0;

    extern Akonadi::PreprocessorBase::ProcessingResult sipVH_akonadi_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&);

    return sipVH_akonadi_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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_type_Akonadi_PreprocessorBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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_fetchScope), meth_Akonadi_PreprocessorBase_fetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_finishProcessing), meth_Akonadi_PreprocessorBase_finishProcessing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_processItem), meth_Akonadi_PreprocessorBase_processItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFetchScope), meth_Akonadi_PreprocessorBase_setFetchScope, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_PreprocessorBase[] = {
    {sipName_ProcessingCompleted, static_cast<int>(Akonadi::PreprocessorBase::ProcessingCompleted), 120},
    {sipName_ProcessingDelayed, static_cast<int>(Akonadi::PreprocessorBase::ProcessingDelayed), 120},
    {sipName_ProcessingFailed, static_cast<int>(Akonadi::PreprocessorBase::ProcessingFailed), 120},
    {sipName_ProcessingRefused, static_cast<int>(Akonadi::PreprocessorBase::ProcessingRefused), 120},
};


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},
        4, 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_type_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,
    0,
    0,
    0
},
    &Akonadi::PreprocessorBase::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/persistentsearchattribute.sip"
#include <akonadi/persistentsearchattribute.h>
#line 12086 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"

#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12090 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 12093 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart1.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12096 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/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:
    void deserialize(const QByteArray&);
    QByteArray serialized() const;
    Akonadi::Attribute* clone() const;
    QByteArray type() const;

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);
}

void sipAkonadi_PersistentSearchAttribute::deserialize(const QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_deserialize);

    if (!sipMeth)
    {
        Akonadi::PersistentSearchAttribute::deserialize(a0);
        return;
    }

    typedef void (*sipVH_QtXml_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&);

    ((sipVH_QtXml_29)(sipModuleAPI_akonadi_QtXml->em_virthandlers[29]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QByteArray sipAkonadi_PersistentSearchAttribute::serialized() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_serialized);

    if (!sipMeth)
        return Akonadi::PersistentSearchAttribute::serialized();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_akonadi_QtCore->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth);
}

Akonadi::Attribute* sipAkonadi_PersistentSearchAttribute::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_clone);

    if (!sipMeth)
        return Akonadi::PersistentSearchAttribute::clone();

    extern Akonadi::Attribute* sipVH_akonadi_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_akonadi_4(sipGILState, 0, sipPySelf, sipMeth);
}

QByteArray sipAkonadi_PersistentSearchAttribute::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_type);

    if (!sipMeth)
        return Akonadi::PersistentSearchAttribute::type();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_akonadi_QtCore->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_Akonadi_PersistentSearchAttribute_queryLanguage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_PersistentSearchAttribute_queryLanguage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const 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;

    {
        const 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));

    {
        const 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));

    {
        const 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));

    {
        const 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_type_Akonadi_PersistentSearchAttribute(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{25, 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_type_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
},
    0,
    0,
    0
};
