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

#include "sipAPIakonadi.h"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 64 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 67 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 70 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_Job : public Akonadi::Job
{
public:
    sipAkonadi_Job(QObject*);
    virtual ~sipAkonadi_Job();

    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_Job(const sipAkonadi_Job &);
    sipAkonadi_Job &operator = (const sipAkonadi_Job &);

    char sipPyMethods[18];
};

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

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

const QMetaObject *sipAkonadi_Job::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_Job);
}

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

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

    return _id;
}

void *sipAkonadi_Job::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_Job, _clname)) ? this : Akonadi::Job::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::Job::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_Job::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Job::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_Job::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Job::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_Job::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Job::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_Job::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Job::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_Job::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Job::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_Job::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Job::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_Job::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Job::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_Job::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Job::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_Job::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Job::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_Job::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::Job::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_Job::slotResult(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Job::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_Job::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Job::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_Job::removeSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Job::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_Job::addSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Job::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_Job::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::Job::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_Job::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,sipName_Job,sipName_doStart);

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

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

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

    if (!sipMeth)
        return Akonadi::Job::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_Job_start(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_start(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::Job *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_Job, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::Job::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_Job, sipName_start, NULL);

    return NULL;
}


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

    {
        const Akonadi::Job *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::Job *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_Job, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Job, sipName_doStart);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            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_Job, sipName_doStart, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_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::Job *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_Akonadi_Job, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::Job::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_Job, sipName_doHandleResponse, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::Job::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_Job, sipName_addSubjob, NULL);

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::Job *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::Job *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_Job, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::Job::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_Job, sipName_slotResult, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_Job(void *, int);}
static void release_Akonadi_Job(void *sipCppV,int)
{
    Akonadi::Job *sipCpp = reinterpret_cast<Akonadi::Job *>(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_Job(sipSimpleWrapper *);}
static void dealloc_Akonadi_Job(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_Job *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_Job[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_Job_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_Job_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_Job_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_Job_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitWriteFinished), meth_Akonadi_Job_emitWriteFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_Akonadi_Job_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_Akonadi_Job_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_Job_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_Job_start, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_Job[] = {
    {sipName_ConnectionFailed, static_cast<int>(Akonadi::Job::ConnectionFailed), 105},
    {sipName_ProtocolVersionMismatch, static_cast<int>(Akonadi::Job::ProtocolVersionMismatch), 105},
    {sipName_Unknown, static_cast<int>(Akonadi::Job::Unknown), 105},
    {sipName_UserCanceled, static_cast<int>(Akonadi::Job::UserCanceled), 105},
    {sipName_UserError, static_cast<int>(Akonadi::Job::UserError), 105},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_Job[] = {
    {"writeFinished(Akonadi::Job*)", 0, 0, 0},
    {"aboutToStart(Akonadi::Job*)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_Job = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Job,
        {0}
    },
    {
        sipNameNr_Job,
        {0, 255, 0},
        9, methods_Akonadi_Job,
        5, enummembers_Akonadi_Job,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_Job,
    0,
    init_type_Akonadi_Job,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Job,
    0,
    0,
    0,
    release_Akonadi_Job,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::Job::staticMetaObject,
    0,
    signals_Akonadi_Job,
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectioncombobox.sip"
#include <akonadi/collectioncombobox.h>
#line 848 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 852 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 855 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 858 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 861 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 864 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 867 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 870 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 873 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kcompletion.sip"
#include <kcompletion.h>
#line 876 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 879 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kglobalsettings.sip"
#include <kglobalsettings.h>
#line 882 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlineedit.sip"
#include <qlineedit.h>
#line 885 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kcompletionbox.sip"
#include <kcompletionbox.h>
#line 888 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 891 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 894 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 897 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 900 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 903 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 906 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 909 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 912 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 915 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 918 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 921 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 924 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 927 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 930 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 933 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 936 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 1580 "/usr/share/python3-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 939 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qcompleter.sip"
#include <qcompleter.h>
#line 942 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 945 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 948 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemdelegate.sip"
#include <qabstractitemdelegate.h>
#line 951 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 954 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qcombobox.sip"
#include <qcombobox.h>
#line 957 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 960 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 963 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 966 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 969 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 972 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 975 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 978 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 981 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 984 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 987 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 990 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 993 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 996 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 999 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 1002 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 1005 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 1008 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1011 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 1014 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1017 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1020 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1023 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1026 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1029 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1032 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1035 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1038 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 1041 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 1044 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 1047 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1050 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 1053 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 1056 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 1059 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1062 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 1065 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 1068 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 1071 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 1074 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1077 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1080 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1083 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1086 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1089 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1092 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1095 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 157 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kcompletion.sip"
#include <qmap.h>
#line 1098 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kshortcut.sip"
#include <kshortcut.h>
#line 1101 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kcompletion.sip"
#include <kcompletion.h>
#line 1104 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_CollectionComboBox : public Akonadi::CollectionComboBox
{
public:
    sipAkonadi_CollectionComboBox(QWidget*);
    sipAkonadi_CollectionComboBox(QAbstractItemModel*,QWidget*);
    virtual ~sipAkonadi_CollectionComboBox();

    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 setCompletedItems(const QStringList&,bool);
    void setCompletionMode(KGlobalSettings::Completion);
    void setHandleSignals(bool);
    void setCompletionObject(KCompletion*,bool);
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    bool focusNextPrevChild(bool);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void closeEvent(QCloseEvent*);
    void moveEvent(QMoveEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    void setVisible(bool);
    int devType() const;
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void paintEvent(QPaintEvent*);
    void resizeEvent(QResizeEvent*);
    void changeEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    bool event(QEvent*);
    void hidePopup();
    void showPopup();
    QSize sizeHint() const;
    QSize minimumSizeHint() const;
    void wheelEvent(QWheelEvent*);
    void create(WId,bool,bool);
    void setCompletedText(const QString&,bool);
    void makeCompletion(const QString&);
    void setCompletedText(const QString&);
    void setLineEdit(QLineEdit*);
    bool eventFilter(QObject*,QEvent*);
    void setContextMenuEnabled(bool);
    void setAutoCompletion(bool);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[60];
};

sipAkonadi_CollectionComboBox::sipAkonadi_CollectionComboBox(QWidget*a0): Akonadi::CollectionComboBox(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionComboBox::sipAkonadi_CollectionComboBox(QAbstractItemModel*a0,QWidget*a1): Akonadi::CollectionComboBox(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_CollectionComboBox::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionComboBox);
}

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

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

    return _id;
}

void *sipAkonadi_CollectionComboBox::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionComboBox, _clname)) ? this : Akonadi::CollectionComboBox::qt_metacast(_clname);
}

void sipAkonadi_CollectionComboBox::setCompletedItems(const QStringList& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setCompletedItems(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_82)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QStringList&,bool);

    ((sipVH_kdeui_82)(sipModuleAPI_akonadi_kdeui->em_virthandlers[82]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionComboBox::setCompletionMode(KGlobalSettings::Completion a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setCompletionMode(a0);
        return;
    }

    typedef void (*sipVH_kdeui_70)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KGlobalSettings::Completion);

    ((sipVH_kdeui_70)(sipModuleAPI_akonadi_kdeui->em_virthandlers[70]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionComboBox::setHandleSignals(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setHandleSignals(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_CollectionComboBox::setCompletionObject(KCompletion*a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setCompletionObject(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_69)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KCompletion*,bool);

    ((sipVH_kdeui_69)(sipModuleAPI_akonadi_kdeui->em_virthandlers[69]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

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

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::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_CollectionComboBox::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::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_CollectionComboBox::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::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_CollectionComboBox::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::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_CollectionComboBox::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::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);
}

void sipAkonadi_CollectionComboBox::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::languageChange();
        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_CollectionComboBox::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::windowActivationChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipAkonadi_CollectionComboBox::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::fontChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QFont&);

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

void sipAkonadi_CollectionComboBox::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::paletteChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPalette&);

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

void sipAkonadi_CollectionComboBox::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::enabledChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

bool sipAkonadi_CollectionComboBox::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::focusNextPrevChild(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);
}

int sipAkonadi_CollectionComboBox::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::metric(a0);

    typedef int (*sipVH_QtGui_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

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

void sipAkonadi_CollectionComboBox::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

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

void sipAkonadi_CollectionComboBox::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

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

void sipAkonadi_CollectionComboBox::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

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

void sipAkonadi_CollectionComboBox::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

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

void sipAkonadi_CollectionComboBox::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

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

void sipAkonadi_CollectionComboBox::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

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

void sipAkonadi_CollectionComboBox::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

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

void sipAkonadi_CollectionComboBox::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

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

void sipAkonadi_CollectionComboBox::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::leaveEvent(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_CollectionComboBox::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::enterEvent(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_CollectionComboBox::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_CollectionComboBox::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

QPaintEngine* sipAkonadi_CollectionComboBox::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

int sipAkonadi_CollectionComboBox::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::heightForWidth(a0);

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

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

void sipAkonadi_CollectionComboBox::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

int sipAkonadi_CollectionComboBox::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::devType();

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

QVariant sipAkonadi_CollectionComboBox::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

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

void sipAkonadi_CollectionComboBox::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

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

void sipAkonadi_CollectionComboBox::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

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

void sipAkonadi_CollectionComboBox::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

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

void sipAkonadi_CollectionComboBox::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

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

void sipAkonadi_CollectionComboBox::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_CollectionComboBox::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_CollectionComboBox::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

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

void sipAkonadi_CollectionComboBox::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

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

void sipAkonadi_CollectionComboBox::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

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

void sipAkonadi_CollectionComboBox::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

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

void sipAkonadi_CollectionComboBox::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::changeEvent(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_CollectionComboBox::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

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

void sipAkonadi_CollectionComboBox::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

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

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

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::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_CollectionComboBox::hidePopup()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_hidePopup);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::hidePopup();
        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_CollectionComboBox::showPopup()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_showPopup);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::showPopup();
        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);
}

QSize sipAkonadi_CollectionComboBox::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::sizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

QSize sipAkonadi_CollectionComboBox::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionComboBox::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[51],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

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

void sipAkonadi_CollectionComboBox::create(WId a0,bool a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,NULL,sipName_create);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::create(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdeui_68)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, unsigned long,bool,bool);

    ((sipVH_kdeui_68)(sipModuleAPI_akonadi_kdeui->em_virthandlers[68]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionComboBox::setCompletedText(const QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,NULL,sipName_setCompletedText);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setCompletedText(a0,a1);
        return;
    }

    typedef void (*sipVH_QtXml_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,bool);

    ((sipVH_QtXml_24)(sipModuleAPI_akonadi_QtXml->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionComboBox::makeCompletion(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[54],sipPySelf,NULL,sipName_makeCompletion);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::makeCompletion(a0);
        return;
    }

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

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

void sipAkonadi_CollectionComboBox::setCompletedText(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[55],sipPySelf,NULL,sipName_setCompletedText);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setCompletedText(a0);
        return;
    }

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

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

void sipAkonadi_CollectionComboBox::setLineEdit(QLineEdit*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[56],sipPySelf,NULL,sipName_setLineEdit);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setLineEdit(a0);
        return;
    }

    typedef void (*sipVH_kdeui_86)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QLineEdit*);

    ((sipVH_kdeui_86)(sipModuleAPI_akonadi_kdeui->em_virthandlers[86]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

    if (!sipMeth)
        return Akonadi::CollectionComboBox::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);
}

void sipAkonadi_CollectionComboBox::setContextMenuEnabled(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[58],sipPySelf,NULL,sipName_setContextMenuEnabled);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setContextMenuEnabled(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_CollectionComboBox::setAutoCompletion(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[59],sipPySelf,NULL,sipName_setAutoCompletion);

    if (!sipMeth)
    {
        Akonadi::CollectionComboBox::setAutoCompletion(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);
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionComboBox, &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_CollectionComboBox, sipName_setMimeTypeFilter, NULL);

    return NULL;
}


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

    {
        const Akonadi::CollectionComboBox *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;
        Akonadi::CollectionComboBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionComboBox, &sipCpp, sipType_Akonadi_Collection_Rights, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAccessRightsFilter(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::CollectionComboBox *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::Collection* a0;
        Akonadi::CollectionComboBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_CollectionComboBox, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultCollection(*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_CollectionComboBox, sipName_setDefaultCollection, NULL);

    return NULL;
}


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

    {
        const Akonadi::CollectionComboBox *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionComboBox, &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_CollectionComboBox, sipName_currentCollection, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionComboBox(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionComboBox(void *sipCppV, const sipTypeDef *targetType)
{
    Akonadi::CollectionComboBox *sipCpp = reinterpret_cast<Akonadi::CollectionComboBox *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast<QPaintDevice *>(sipCpp);

    if (targetType == sipType_KCompletionBase)
        return static_cast<KCompletionBase *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionComboBox(void *, int);}
static void release_Akonadi_CollectionComboBox(void *sipCppV,int)
{
    Akonadi::CollectionComboBox *sipCpp = reinterpret_cast<Akonadi::CollectionComboBox *>(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_CollectionComboBox(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionComboBox(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionComboBox *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QWidget* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QAbstractItemModel* a0;
        QWidget* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_QAbstractItemModel, &a0, sipType_QWidget, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionComboBox(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CollectionComboBox[] = {
    {SIP_MLNAME_CAST(sipName_accessRightsFilter), meth_Akonadi_CollectionComboBox_accessRightsFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentCollection), meth_Akonadi_CollectionComboBox_currentCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeFilter), meth_Akonadi_CollectionComboBox_mimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAccessRightsFilter), meth_Akonadi_CollectionComboBox_setAccessRightsFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultCollection), meth_Akonadi_CollectionComboBox_setDefaultCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeTypeFilter), meth_Akonadi_CollectionComboBox_setMimeTypeFilter, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_CollectionComboBox[] = {
    {"currentChanged(Akonadi::Collection)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionComboBox = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionComboBox,
        {0}
    },
    {
        sipNameNr_CollectionComboBox,
        {0, 255, 0},
        6, methods_Akonadi_CollectionComboBox,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionComboBox,
    0,
    init_type_Akonadi_CollectionComboBox,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionComboBox,
    0,
    0,
    0,
    release_Akonadi_CollectionComboBox,
    cast_Akonadi_CollectionComboBox,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionComboBox::staticMetaObject,
    0,
    signals_Akonadi_CollectionComboBox,
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionattributessynchronizationjob.sip"
#include <akonadi/collectionattributessynchronizationjob.h>
#line 2608 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 2612 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2615 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2618 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2621 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 2624 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2627 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2630 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 2633 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2636 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2639 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2642 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2645 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2648 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2651 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2654 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2657 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2660 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2663 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2666 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_CollectionAttributesSynchronizationJob : public Akonadi::CollectionAttributesSynchronizationJob
{
public:
    sipAkonadi_CollectionAttributesSynchronizationJob(const Akonadi::Collection&,QObject*);
    virtual ~sipAkonadi_CollectionAttributesSynchronizationJob();

    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_CollectionAttributesSynchronizationJob(const sipAkonadi_CollectionAttributesSynchronizationJob &);
    sipAkonadi_CollectionAttributesSynchronizationJob &operator = (const sipAkonadi_CollectionAttributesSynchronizationJob &);

    char sipPyMethods[12];
};

sipAkonadi_CollectionAttributesSynchronizationJob::sipAkonadi_CollectionAttributesSynchronizationJob(const Akonadi::Collection& a0,QObject*a1): Akonadi::CollectionAttributesSynchronizationJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_CollectionAttributesSynchronizationJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionAttributesSynchronizationJob);
}

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

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

    return _id;
}

void *sipAkonadi_CollectionAttributesSynchronizationJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionAttributesSynchronizationJob, _clname)) ? this : Akonadi::CollectionAttributesSynchronizationJob::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob_start(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionAttributesSynchronizationJob_start(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::CollectionAttributesSynchronizationJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionAttributesSynchronizationJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionAttributesSynchronizationJob::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_CollectionAttributesSynchronizationJob, sipName_start, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionAttributesSynchronizationJob(void *, int);}
static void release_Akonadi_CollectionAttributesSynchronizationJob(void *sipCppV,int)
{
    Akonadi::CollectionAttributesSynchronizationJob *sipCpp = reinterpret_cast<Akonadi::CollectionAttributesSynchronizationJob *>(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_CollectionAttributesSynchronizationJob(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionAttributesSynchronizationJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionAttributesSynchronizationJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CollectionAttributesSynchronizationJob[] = {
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_CollectionAttributesSynchronizationJob_start, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionAttributesSynchronizationJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionAttributesSynchronizationJob,
        {0}
    },
    {
        sipNameNr_CollectionAttributesSynchronizationJob,
        {0, 255, 0},
        1, methods_Akonadi_CollectionAttributesSynchronizationJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionAttributesSynchronizationJob,
    0,
    init_type_Akonadi_CollectionAttributesSynchronizationJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionAttributesSynchronizationJob,
    0,
    0,
    0,
    release_Akonadi_CollectionAttributesSynchronizationJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionAttributesSynchronizationJob::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 3082 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 3086 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


extern "C" {static int slot_Akonadi_Collection_Rights___bool__(PyObject *);}
static int slot_Akonadi_Collection_Rights___bool__(PyObject *sipSelf)
{
    Akonadi::Collection::Rights *sipCpp = reinterpret_cast<Akonadi::Collection::Rights *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Collection_Rights));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Akonadi::Collection::Rights::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 3108 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___ne__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Collection_Rights___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::Collection::Rights *sipCpp = reinterpret_cast<Akonadi::Collection::Rights *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Collection_Rights));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Collection::Rights* a0;
        int a0State = 0;

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

#line 380 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Akonadi::Collection::Rights::Int() != a0->operator Akonadi::Collection::Rights::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 3142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
            sipReleaseType(const_cast<Akonadi::Collection::Rights *>(a0),sipType_Akonadi_Collection_Rights,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,ne_slot,sipType_Akonadi_Collection_Rights,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___eq__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Collection_Rights___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::Collection::Rights *sipCpp = reinterpret_cast<Akonadi::Collection::Rights *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Collection_Rights));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Collection::Rights* a0;
        int a0State = 0;

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

#line 371 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Akonadi::Collection::Rights::Int() == a0->operator Akonadi::Collection::Rights::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 3182 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
            sipReleaseType(const_cast<Akonadi::Collection::Rights *>(a0),sipType_Akonadi_Collection_Rights,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,eq_slot,sipType_Akonadi_Collection_Rights,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___invert__(PyObject *);}
static PyObject *slot_Akonadi_Collection_Rights___invert__(PyObject *sipSelf)
{
    Akonadi::Collection::Rights *sipCpp = reinterpret_cast<Akonadi::Collection::Rights *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Collection_Rights));

    if (!sipCpp)
        return 0;


    {
        {
            Akonadi::Collection::Rights*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::Rights(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Akonadi_Collection_Rights, &a0, &a0State, &a1))
        {
            Akonadi::Collection::Rights*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::Rights((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;
        Akonadi::Collection::Rights* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Akonadi_Collection_Rights, &a0, &a0State, sipType_Akonadi_Collection_Rights, &a1, &a1State))
        {
            Akonadi::Collection::Rights*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::Rights((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);
            sipReleaseType(a1,sipType_Akonadi_Collection_Rights,a1State);

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

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Akonadi_Collection_Rights, &a0, &a0State, &a1))
        {
            Akonadi::Collection::Rights*sipRes = 0;

#line 365 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Akonadi::Collection::Rights(*a0 ^ a1);
#line 3291 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;
        Akonadi::Collection::Rights* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Akonadi_Collection_Rights, &a0, &a0State, sipType_Akonadi_Collection_Rights, &a1, &a1State))
        {
            Akonadi::Collection::Rights*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::Rights((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);
            sipReleaseType(a1,sipType_Akonadi_Collection_Rights,a1State);

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

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Akonadi_Collection_Rights, &a0, &a0State, &a1))
        {
            Akonadi::Collection::Rights*sipRes = 0;

#line 360 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Akonadi::Collection::Rights(*a0 | a1);
#line 3343 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___int__(PyObject *);}
static PyObject *slot_Akonadi_Collection_Rights___int__(PyObject *sipSelf)
{
    Akonadi::Collection::Rights *sipCpp = reinterpret_cast<Akonadi::Collection::Rights *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Collection_Rights));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Collection_Rights___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Akonadi_Collection_Rights)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Akonadi::Collection::Rights *sipCpp = reinterpret_cast<Akonadi::Collection::Rights *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Collection_Rights));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Akonadi_Collection_Rights, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Akonadi::Collection::Rights::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___ior__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Collection_Rights___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Akonadi_Collection_Rights)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Akonadi::Collection::Rights *sipCpp = reinterpret_cast<Akonadi::Collection::Rights *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Collection_Rights));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Akonadi_Collection_Rights, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Akonadi::Collection::Rights::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___iand__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Collection_Rights___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Akonadi_Collection_Rights)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Akonadi::Collection::Rights *sipCpp = reinterpret_cast<Akonadi::Collection::Rights *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Collection_Rights));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Akonadi::Collection::Rights::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    delete reinterpret_cast<Akonadi::Collection::Rights *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Akonadi_Collection_Rights(void *, SIP_SSIZE_T, const void *);}
static void assign_Akonadi_Collection_Rights(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Akonadi::Collection::Rights *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Akonadi::Collection::Rights *>(sipSrc);
}


extern "C" {static void *array_Akonadi_Collection_Rights(SIP_SSIZE_T);}
static void *array_Akonadi_Collection_Rights(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::Collection::Rights[sipNrElem];
}


extern "C" {static void *copy_Akonadi_Collection_Rights(const void *, SIP_SSIZE_T);}
static void *copy_Akonadi_Collection_Rights(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Akonadi::Collection::Rights(reinterpret_cast<const Akonadi::Collection::Rights *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_type_Akonadi_Collection_Rights(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_Collection_Rights(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::Collection::Rights *sipCpp = 0;

    {
        const Akonadi::Collection::Rights* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::Collection::Rights();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Akonadi_Collection_Rights(PyObject *, void **, int *, PyObject *);}
static int convertTo_Akonadi_Collection_Rights(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Akonadi::Collection::Rights **sipCppPtr = reinterpret_cast<Akonadi::Collection::Rights **>(sipCppPtrV);

#line 398 "/usr/share/python3-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Akonadi::Collection::Rights is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Akonadi_Collection_Right)) ||
            sipCanConvertToType(sipPy, sipType_Akonadi_Collection_Rights, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Akonadi_Collection_Right)))
{
    *sipCppPtr = new Akonadi::Collection::Rights(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Akonadi::Collection::Rights *>(sipConvertToType(sipPy, sipType_Akonadi_Collection_Rights, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 3627 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Akonadi_Collection_Rights[] = {
    {(void *)slot_Akonadi_Collection_Rights___bool__, bool_slot},
    {(void *)slot_Akonadi_Collection_Rights___ne__, ne_slot},
    {(void *)slot_Akonadi_Collection_Rights___eq__, eq_slot},
    {(void *)slot_Akonadi_Collection_Rights___invert__, invert_slot},
    {(void *)slot_Akonadi_Collection_Rights___and__, and_slot},
    {(void *)slot_Akonadi_Collection_Rights___xor__, xor_slot},
    {(void *)slot_Akonadi_Collection_Rights___or__, or_slot},
    {(void *)slot_Akonadi_Collection_Rights___int__, int_slot},
    {(void *)slot_Akonadi_Collection_Rights___ixor__, ixor_slot},
    {(void *)slot_Akonadi_Collection_Rights___ior__, ior_slot},
    {(void *)slot_Akonadi_Collection_Rights___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_Collection_Rights = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Collection__Rights,
        {0}
    },
    {
        sipNameNr_Rights,
        {29, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Akonadi_Collection_Rights,
    init_type_Akonadi_Collection_Rights,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Collection_Rights,
    assign_Akonadi_Collection_Rights,
    array_Akonadi_Collection_Rights,
    copy_Akonadi_Collection_Rights,
    release_Akonadi_Collection_Rights,
    0,
    convertTo_Akonadi_Collection_Rights,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 3703 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3707 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionstatistics.sip"
#include <akonadi/collectionstatistics.h>
#line 3710 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/cachepolicy.sip"
#include <akonadi/cachepolicy.h>
#line 3713 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3716 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3719 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 3722 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <akonadi/entity.h>
#line 3725 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 3728 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3731 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3734 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


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

    {
        const KUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            Akonadi::Collection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(Akonadi::Collection::fromUrl(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Collection, &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_Collection, sipName_setName, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;
        Akonadi::Collection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Collection, &sipCpp, sipType_Akonadi_Collection_Rights, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRights(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Collection, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContentMimeTypes(*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_Collection, sipName_setContentMimeTypes, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_Collection, &sipCpp))
        {
            Akonadi::Entity::Id sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parent();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Collection* a0;
        Akonadi::Collection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_Collection, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setParent(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        Akonadi::Entity::Id a0;
        Akonadi::Collection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_Collection, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setParent(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_Collection, sipName_setParent, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Collection, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setParentRemoteId(*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_Collection, sipName_setParentRemoteId, NULL);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(Akonadi::Collection::root());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Akonadi::Collection::mimeType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Collection, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResource(*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_Collection, sipName_setResource, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::CachePolicy(sipCpp->cachePolicy());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::CachePolicy* a0;
        Akonadi::Collection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_Collection, &sipCpp, sipType_Akonadi_CachePolicy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCachePolicy(*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_Collection, sipName_setCachePolicy, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::CollectionStatistics(sipCpp->statistics());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::CollectionStatistics* a0;
        Akonadi::Collection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_Collection, &sipCpp, sipType_Akonadi_CollectionStatistics, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStatistics(*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_Collection, sipName_setStatistics, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

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

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

    {
        Akonadi::Collection::UrlType a0;
        const Akonadi::Collection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_Collection, &sipCpp, sipType_Akonadi_Collection_UrlType, &a0))
        {
            KUrl*sipRes;

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

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

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

    return NULL;
}


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

    {
        const Akonadi::Collection *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isVirtual();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Akonadi_Collection(SIP_SSIZE_T);}
static void *array_Akonadi_Collection(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::Collection[sipNrElem];
}


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


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


extern "C" {static void *init_type_Akonadi_Collection(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_Collection(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::Collection *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const Akonadi::Collection* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::Collection(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        Akonadi::Entity::Id a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "n", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::Collection(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_Collection[] = {
    {SIP_MLNAME_CAST(sipName_cachePolicy), meth_Akonadi_Collection_cachePolicy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contentMimeTypes), meth_Akonadi_Collection_contentMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromUrl), meth_Akonadi_Collection_fromUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isVirtual), meth_Akonadi_Collection_isVirtual, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeType), meth_Akonadi_Collection_mimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Akonadi_Collection_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_Akonadi_Collection_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentRemoteId), meth_Akonadi_Collection_parentRemoteId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resource), meth_Akonadi_Collection_resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rights), meth_Akonadi_Collection_rights, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_root), meth_Akonadi_Collection_root, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCachePolicy), meth_Akonadi_Collection_setCachePolicy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContentMimeTypes), meth_Akonadi_Collection_setContentMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setName), meth_Akonadi_Collection_setName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setParent), meth_Akonadi_Collection_setParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setParentRemoteId), meth_Akonadi_Collection_setParentRemoteId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResource), meth_Akonadi_Collection_setResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRights), meth_Akonadi_Collection_setRights, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStatistics), meth_Akonadi_Collection_setStatistics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statistics), meth_Akonadi_Collection_statistics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_Akonadi_Collection_url, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_Collection[] = {
    {sipName_AllRights, static_cast<int>(Akonadi::Collection::AllRights), 30},
    {sipName_CanChangeCollection, static_cast<int>(Akonadi::Collection::CanChangeCollection), 30},
    {sipName_CanChangeItem, static_cast<int>(Akonadi::Collection::CanChangeItem), 30},
    {sipName_CanCreateCollection, static_cast<int>(Akonadi::Collection::CanCreateCollection), 30},
    {sipName_CanCreateItem, static_cast<int>(Akonadi::Collection::CanCreateItem), 30},
    {sipName_CanDeleteCollection, static_cast<int>(Akonadi::Collection::CanDeleteCollection), 30},
    {sipName_CanDeleteItem, static_cast<int>(Akonadi::Collection::CanDeleteItem), 30},
    {sipName_CanLinkItem, static_cast<int>(Akonadi::Collection::CanLinkItem), 30},
    {sipName_CanUnlinkItem, static_cast<int>(Akonadi::Collection::CanUnlinkItem), 30},
    {sipName_ReadOnly, static_cast<int>(Akonadi::Collection::ReadOnly), 30},
    {sipName_UrlShort, static_cast<int>(Akonadi::Collection::UrlShort), 32},
    {sipName_UrlWithName, static_cast<int>(Akonadi::Collection::UrlWithName), 32},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_Collection = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Collection,
        {0}
    },
    {
        sipNameNr_Collection,
        {0, 255, 0},
        21, methods_Akonadi_Collection,
        12, enummembers_Akonadi_Collection,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_Collection,
    0,
    init_type_Akonadi_Collection,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Collection,
    assign_Akonadi_Collection,
    array_Akonadi_Collection,
    copy_Akonadi_Collection,
    release_Akonadi_Collection,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <akonadi/entity.h>
#line 4529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4533 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 4536 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 4539 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4542 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4545 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


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

    {
        const Akonadi::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_Entity, &sipCpp))
        {
            Akonadi::Entity::Id sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->id();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Entity, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRemoteId(*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_Entity, sipName_setRemoteId, NULL);

    return NULL;
}


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

    {
        const Akonadi::Entity *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::Entity *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::Attribute* a0;
        Akonadi::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_Entity, &sipCpp, sipType_Akonadi_Attribute, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addAttribute(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_Entity, sipName_addAttribute, NULL);

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        Akonadi::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Entity, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAttribute(*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_Entity, sipName_removeAttribute, NULL);

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const Akonadi::Entity *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_Entity, &sipCpp))
        {
            Akonadi::Attribute::List*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Attribute::List(sipCpp->attributes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::Entity *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const Akonadi::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Entity, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Akonadi::Attribute*sipRes;

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

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

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

    return NULL;
}


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

    {
        Akonadi::Entity::Id a0;
        Akonadi::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_Entity, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setId(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_Entity, sipName_setId, NULL);

    return NULL;
}


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

    {
        const Akonadi::Entity *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::Collection* a0;
        Akonadi::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_Entity, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setParentCollection(*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_Entity, sipName_setParentCollection, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Entity, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRemoteRevision(*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_Entity, sipName_setRemoteRevision, NULL);

    return NULL;
}


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

    {
        const Akonadi::Entity *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Akonadi_Entity___ge__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Entity___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::Entity *sipCpp = reinterpret_cast<Akonadi::Entity *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Entity));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Entity* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Akonadi::Entity::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,ge_slot,sipType_Akonadi_Entity,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_Entity___lt__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Entity___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::Entity *sipCpp = reinterpret_cast<Akonadi::Entity *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Entity));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Entity* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Akonadi::Entity::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,lt_slot,sipType_Akonadi_Entity,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_Entity___ne__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Entity___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::Entity *sipCpp = reinterpret_cast<Akonadi::Entity *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Entity));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Entity* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,ne_slot,sipType_Akonadi_Entity,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_Entity___eq__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_Entity___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::Entity *sipCpp = reinterpret_cast<Akonadi::Entity *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_Entity));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Entity* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,eq_slot,sipType_Akonadi_Entity,sipSelf,sipArg);
}


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


    Py_END_ALLOW_THREADS
}


extern "C" {static void *init_type_Akonadi_Entity(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_Entity(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::Entity *sipCpp = 0;

    {
        const Akonadi::Entity* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_Entity, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::Entity(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Akonadi_Entity[] = {
    {(void *)slot_Akonadi_Entity___ge__, ge_slot},
    {(void *)slot_Akonadi_Entity___lt__, lt_slot},
    {(void *)slot_Akonadi_Entity___ne__, ne_slot},
    {(void *)slot_Akonadi_Entity___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Akonadi_Entity[] = {
    {SIP_MLNAME_CAST(sipName_addAttribute), meth_Akonadi_Entity_addAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_attribute), meth_Akonadi_Entity_attribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_attributes), meth_Akonadi_Entity_attributes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearAttributes), meth_Akonadi_Entity_clearAttributes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttribute), meth_Akonadi_Entity_hasAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_id), meth_Akonadi_Entity_id, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Akonadi_Entity_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentCollection), meth_Akonadi_Entity_parentCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remoteId), meth_Akonadi_Entity_remoteId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remoteRevision), meth_Akonadi_Entity_remoteRevision, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAttribute), meth_Akonadi_Entity_removeAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setId), meth_Akonadi_Entity_setId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setParentCollection), meth_Akonadi_Entity_setParentCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRemoteId), meth_Akonadi_Entity_setRemoteId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRemoteRevision), meth_Akonadi_Entity_setRemoteRevision, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_Entity[] = {
    {sipName_AddIfMissing, static_cast<int>(Akonadi::Entity::AddIfMissing), 65},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_Entity = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Entity,
        {0}
    },
    {
        sipNameNr_Entity,
        {0, 255, 0},
        15, methods_Akonadi_Entity,
        1, enummembers_Akonadi_Entity,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Akonadi_Entity,
    init_type_Akonadi_Entity,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_Akonadi_Entity,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/changerecorder.sip"
#include <akonadi/changerecorder.h>
#line 5221 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5225 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5228 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qsettings.sip"
#include <qsettings.h>
#line 5231 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 5234 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <qvector.h>
#line 5237 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/session.sip"
#include <akonadi/session.h>
#line 5240 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionstatistics.sip"
#include <akonadi/collectionstatistics.h>
#line 5243 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionfetchscope.sip"
#include <akonadi/collectionfetchscope.h>
#line 5246 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5249 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 5252 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 508 "/usr/share/python3-sip/PyQt4/QtCore/qset.sip"
#include <qset.h>
#line 5255 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5258 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5261 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 77 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <qlist.h>
#line 5264 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5267 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 5270 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5273 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5276 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5279 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5282 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5285 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5288 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5291 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5294 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5297 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_ChangeRecorder : public Akonadi::ChangeRecorder
{
public:
    sipAkonadi_ChangeRecorder(QObject*);
    virtual ~sipAkonadi_ChangeRecorder();

    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_ChangeRecorder(const sipAkonadi_ChangeRecorder &);
    sipAkonadi_ChangeRecorder &operator = (const sipAkonadi_ChangeRecorder &);

    char sipPyMethods[7];
};

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

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

const QMetaObject *sipAkonadi_ChangeRecorder::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_ChangeRecorder);
}

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

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

    return _id;
}

void *sipAkonadi_ChangeRecorder::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_ChangeRecorder, _clname)) ? this : Akonadi::ChangeRecorder::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::ChangeRecorder::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_ChangeRecorder::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::ChangeRecorder::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_ChangeRecorder::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::ChangeRecorder::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_ChangeRecorder::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::ChangeRecorder::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_ChangeRecorder::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::ChangeRecorder::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_ChangeRecorder::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::ChangeRecorder::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_ChangeRecorder::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::ChangeRecorder::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_ChangeRecorder_setConfig(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_ChangeRecorder_setConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSettings* a0;
        Akonadi::ChangeRecorder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_ChangeRecorder, &sipCpp, sipType_QSettings, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setConfig(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_ChangeRecorder, sipName_setConfig, NULL);

    return NULL;
}


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

    {
        const Akonadi::ChangeRecorder *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::ChangeRecorder *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::ChangeRecorder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_ChangeRecorder, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setChangeRecordingEnabled(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_ChangeRecorder, sipName_setChangeRecordingEnabled, NULL);

    return NULL;
}


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

    {
        Akonadi::ChangeRecorder *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::ChangeRecorder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_ChangeRecorder, &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_ChangeRecorder, sipName_dumpNotificationListToString, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_ChangeRecorder(void *, int);}
static void release_Akonadi_ChangeRecorder(void *sipCppV,int)
{
    Akonadi::ChangeRecorder *sipCpp = reinterpret_cast<Akonadi::ChangeRecorder *>(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_ChangeRecorder(sipSimpleWrapper *);}
static void dealloc_Akonadi_ChangeRecorder(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_ChangeRecorder *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_ChangeRecorder[] = {
    {SIP_MLNAME_CAST(sipName_changeProcessed), meth_Akonadi_ChangeRecorder_changeProcessed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dumpNotificationListToString), meth_Akonadi_ChangeRecorder_dumpNotificationListToString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Akonadi_ChangeRecorder_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replayNext), meth_Akonadi_ChangeRecorder_replayNext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setChangeRecordingEnabled), meth_Akonadi_ChangeRecorder_setChangeRecordingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setConfig), meth_Akonadi_ChangeRecorder_setConfig, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ChangeRecorder = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ChangeRecorder,
        {0}
    },
    {
        sipNameNr_ChangeRecorder,
        {0, 255, 0},
        6, methods_Akonadi_ChangeRecorder,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_ChangeRecorder,
    0,
    init_type_Akonadi_ChangeRecorder,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_ChangeRecorder,
    0,
    0,
    0,
    release_Akonadi_ChangeRecorder,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::ChangeRecorder::staticMetaObject,
    0,
    signals_Akonadi_ChangeRecorder,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/monitor.sip"
#include <akonadi/monitor.h>
#line 5775 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5779 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 5782 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <qvector.h>
#line 5785 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/session.sip"
#include <akonadi/session.h>
#line 5788 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionstatistics.sip"
#include <akonadi/collectionstatistics.h>
#line 5791 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionfetchscope.sip"
#include <akonadi/collectionfetchscope.h>
#line 5794 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5797 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5800 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 5803 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 508 "/usr/share/python3-sip/PyQt4/QtCore/qset.sip"
#include <qset.h>
#line 5806 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5809 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5812 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 77 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <qlist.h>
#line 5815 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5818 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 5821 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5824 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5827 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5830 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5833 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5836 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5839 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5842 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5845 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5848 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_Monitor : public Akonadi::Monitor
{
public:
    sipAkonadi_Monitor(QObject*);
    virtual ~sipAkonadi_Monitor();

    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_Monitor(const sipAkonadi_Monitor &);
    sipAkonadi_Monitor &operator = (const sipAkonadi_Monitor &);

    char sipPyMethods[7];
};

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

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

const QMetaObject *sipAkonadi_Monitor::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_Monitor);
}

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

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

    return _id;
}

void *sipAkonadi_Monitor::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_Monitor, _clname)) ? this : Akonadi::Monitor::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::Monitor::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_Monitor::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Monitor::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_Monitor::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Monitor::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_Monitor::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Monitor::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_Monitor::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::Monitor::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_Monitor::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Monitor::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_Monitor::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::Monitor::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_Monitor_setCollectionMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_setCollectionMonitored(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Collection* a0;
        bool a1 = 1;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, sipType_Akonadi_Collection, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionMonitored(*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_Monitor, sipName_setCollectionMonitored, NULL);

    return NULL;
}


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

    {
        const Akonadi::Item* a0;
        bool a1 = 1;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, sipType_Akonadi_Item, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setItemMonitored(*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_Monitor, sipName_setItemMonitored, NULL);

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        bool a1 = 1;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResourceMonitored(*a0,a1);
            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_Monitor, sipName_setResourceMonitored, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        bool a1 = 1;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeTypeMonitored(*a0,a1);
            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_Monitor, sipName_setMimeTypeMonitored, NULL);

    return NULL;
}


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

    {
        bool a0 = 1;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAllMonitored(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_Monitor, sipName_setAllMonitored, NULL);

    return NULL;
}


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

    {
        Akonadi::Session* a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, sipType_Akonadi_Session, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->ignoreSession(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_Monitor, sipName_ignoreSession, NULL);

    return NULL;
}


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

    {
        bool a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->fetchCollection(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_Monitor, sipName_fetchCollection, NULL);

    return NULL;
}


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

    {
        bool a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->fetchCollectionStatistics(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_Monitor, sipName_fetchCollectionStatistics, NULL);

    return NULL;
}


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

    {
        const Akonadi::ItemFetchScope* a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, sipType_Akonadi_ItemFetchScope, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setItemFetchScope(*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_Monitor, sipName_setItemFetchScope, NULL);

    return NULL;
}


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

    {
        Akonadi::Monitor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->itemFetchScope();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::Monitor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::List(sipCpp->collectionsMonitored());
            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_Monitor, sipName_collectionsMonitored, NULL);

    return NULL;
}


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

    {
        const Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_Monitor, &sipCpp))
        {
            QList<Akonadi::Entity::Id>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Akonadi::Entity::Id>(sipCpp->itemsMonitored());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::Monitor *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::Monitor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->resourcesMonitored());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::Monitor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAllMonitored();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::CollectionFetchScope* a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, sipType_Akonadi_CollectionFetchScope, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionFetchScope(*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_Monitor, sipName_setCollectionFetchScope, NULL);

    return NULL;
}


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

    {
        Akonadi::Monitor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->collectionFetchScope();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::Session* a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, sipType_Akonadi_Session, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSession(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_Monitor, sipName_setSession, NULL);

    return NULL;
}


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

    {
        const Akonadi::Monitor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->session();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_Monitor, &sipCpp))
        {
            QVector<Akonadi::Entity::Id>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVector<Akonadi::Entity::Id>(sipCpp->itemsMonitoredEx());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_Monitor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->fetchChangedOnly(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_Monitor, sipName_fetchChangedOnly, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_Monitor(void *, int);}
static void release_Akonadi_Monitor(void *sipCppV,int)
{
    Akonadi::Monitor *sipCpp = reinterpret_cast<Akonadi::Monitor *>(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_Monitor(sipSimpleWrapper *);}
static void dealloc_Akonadi_Monitor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_Monitor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_Monitor[] = {
    {SIP_MLNAME_CAST(sipName_collectionFetchScope), meth_Akonadi_Monitor_collectionFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionsMonitored), meth_Akonadi_Monitor_collectionsMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchChangedOnly), meth_Akonadi_Monitor_fetchChangedOnly, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchCollection), meth_Akonadi_Monitor_fetchCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchCollectionStatistics), meth_Akonadi_Monitor_fetchCollectionStatistics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoreSession), meth_Akonadi_Monitor_ignoreSession, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAllMonitored), meth_Akonadi_Monitor_isAllMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemFetchScope), meth_Akonadi_Monitor_itemFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemsMonitored), meth_Akonadi_Monitor_itemsMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemsMonitoredEx), meth_Akonadi_Monitor_itemsMonitoredEx, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypesMonitored), meth_Akonadi_Monitor_mimeTypesMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourcesMonitored), meth_Akonadi_Monitor_resourcesMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_session), meth_Akonadi_Monitor_session, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllMonitored), meth_Akonadi_Monitor_setAllMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionFetchScope), meth_Akonadi_Monitor_setCollectionFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionMonitored), meth_Akonadi_Monitor_setCollectionMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemFetchScope), meth_Akonadi_Monitor_setItemFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemMonitored), meth_Akonadi_Monitor_setItemMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeTypeMonitored), meth_Akonadi_Monitor_setMimeTypeMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResourceMonitored), meth_Akonadi_Monitor_setResourceMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSession), meth_Akonadi_Monitor_setSession, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_Monitor[] = {
    {"collectionUnsubscribed(Akonadi::Collection)", 0, 0, 0},
    {"collectionSubscribed(Akonadi::Collection,Akonadi::Collection)", 0, 0, 0},
    {"collectionStatisticsChanged(Akonadi::Entity::Id,Akonadi::CollectionStatistics)", 0, 0, 0},
    {"collectionMoved(Akonadi::Collection,Akonadi::Collection,Akonadi::Collection)", 0, 0, 0},
    {"allMonitored(bool)", 0, 0, 0},
    {"mimeTypeMonitored(QString,bool)", 0, 0, 0},
    {"resourceMonitored(QByteArray,bool)", 0, 0, 0},
    {"itemMonitored(Akonadi::Item,bool)", 0, 0, 0},
    {"collectionMonitored(Akonadi::Collection,bool)", 0, 0, 0},
    {"collectionRemoved(Akonadi::Collection)", 0, 0, 0},
    {"collectionChanged(Akonadi::Collection)", 0, 0, 0},
    {"collectionChanged(Akonadi::Collection,QSet<QByteArray>)", 0, 0, 0},
    {"collectionAdded(Akonadi::Collection,Akonadi::Collection)", 0, 0, 0},
    {"itemUnlinked(Akonadi::Item,Akonadi::Collection)", 0, 0, 0},
    {"itemLinked(Akonadi::Item,Akonadi::Collection)", 0, 0, 0},
    {"itemRemoved(Akonadi::Item)", 0, 0, 0},
    {"itemAdded(Akonadi::Item,Akonadi::Collection)", 0, 0, 0},
    {"itemMoved(Akonadi::Item,Akonadi::Collection,Akonadi::Collection)", 0, 0, 0},
    {"itemChanged(Akonadi::Item,QSet<QByteArray>)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_Monitor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Monitor,
        {0}
    },
    {
        sipNameNr_Monitor,
        {0, 255, 0},
        21, methods_Akonadi_Monitor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_Monitor,
    0,
    init_type_Akonadi_Monitor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Monitor,
    0,
    0,
    0,
    release_Akonadi_Monitor,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::Monitor::staticMetaObject,
    0,
    signals_Akonadi_Monitor,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/cachepolicy.sip"
#include <akonadi/cachepolicy.h>
#line 6773 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6777 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


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

    {
        const Akonadi::CachePolicy *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->inheritFromParent();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::CachePolicy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_CachePolicy, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInheritFromParent(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_CachePolicy, sipName_setInheritFromParent, NULL);

    return NULL;
}


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

    {
        const Akonadi::CachePolicy *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CachePolicy, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalParts(*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_CachePolicy, sipName_setLocalParts, NULL);

    return NULL;
}


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

    {
        const Akonadi::CachePolicy *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cacheTimeout();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        Akonadi::CachePolicy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_CachePolicy, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCacheTimeout(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_CachePolicy, sipName_setCacheTimeout, NULL);

    return NULL;
}


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

    {
        const Akonadi::CachePolicy *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->intervalCheckTime();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        Akonadi::CachePolicy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_CachePolicy, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIntervalCheckTime(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_CachePolicy, sipName_setIntervalCheckTime, NULL);

    return NULL;
}


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

    {
        const Akonadi::CachePolicy *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->syncOnDemand();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::CachePolicy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_CachePolicy, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSyncOnDemand(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_CachePolicy, sipName_setSyncOnDemand, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_Akonadi_CachePolicy___ne__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CachePolicy___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::CachePolicy *sipCpp = reinterpret_cast<Akonadi::CachePolicy *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CachePolicy));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CachePolicy* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,ne_slot,sipType_Akonadi_CachePolicy,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_CachePolicy___eq__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CachePolicy___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::CachePolicy *sipCpp = reinterpret_cast<Akonadi::CachePolicy *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CachePolicy));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CachePolicy* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,eq_slot,sipType_Akonadi_CachePolicy,sipSelf,sipArg);
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Akonadi_CachePolicy(SIP_SSIZE_T);}
static void *array_Akonadi_CachePolicy(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::CachePolicy[sipNrElem];
}


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


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


extern "C" {static void *init_type_Akonadi_CachePolicy(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CachePolicy(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::CachePolicy *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const Akonadi::CachePolicy* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_CachePolicy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::CachePolicy(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CachePolicy[] = {
    {SIP_MLNAME_CAST(sipName_cacheTimeout), meth_Akonadi_CachePolicy_cacheTimeout, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inheritFromParent), meth_Akonadi_CachePolicy_inheritFromParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_intervalCheckTime), meth_Akonadi_CachePolicy_intervalCheckTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localParts), meth_Akonadi_CachePolicy_localParts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCacheTimeout), meth_Akonadi_CachePolicy_setCacheTimeout, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInheritFromParent), meth_Akonadi_CachePolicy_setInheritFromParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIntervalCheckTime), meth_Akonadi_CachePolicy_setIntervalCheckTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalParts), meth_Akonadi_CachePolicy_setLocalParts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSyncOnDemand), meth_Akonadi_CachePolicy_setSyncOnDemand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_syncOnDemand), meth_Akonadi_CachePolicy_syncOnDemand, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CachePolicy = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CachePolicy,
        {0}
    },
    {
        sipNameNr_CachePolicy,
        {0, 255, 0},
        10, methods_Akonadi_CachePolicy,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Akonadi_CachePolicy,
    init_type_Akonadi_CachePolicy,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CachePolicy,
    assign_Akonadi_CachePolicy,
    array_Akonadi_CachePolicy,
    copy_Akonadi_CachePolicy,
    release_Akonadi_CachePolicy,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/attributefactory.sip"
#include <akonadi/attributefactory.h>
#line 7273 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 7277 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7280 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


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

    {
        const QByteArray* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::AttributeFactory::createAttribute(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *init_type_Akonadi_AttributeFactory(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_AttributeFactory(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::AttributeFactory *sipCpp = 0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Akonadi_AttributeFactory[] = {
    {SIP_MLNAME_CAST(sipName_createAttribute), meth_Akonadi_AttributeFactory_createAttribute, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AttributeFactory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AttributeFactory,
        {0}
    },
    {
        sipNameNr_AttributeFactory,
        {0, 255, 0},
        1, methods_Akonadi_AttributeFactory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_Akonadi_AttributeFactory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AttributeFactory,
    0,
    0,
    0,
    release_Akonadi_AttributeFactory,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 7414 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7418 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


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

    {
        const Akonadi::Attribute *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Attribute, sipName_type);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(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_Attribute, sipName_type, NULL);

    return NULL;
}


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

    {
        const Akonadi::Attribute *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Attribute, sipName_serialized);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        Akonadi::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_Attribute, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Attribute, sipName_deserialize);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            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_Attribute, sipName_deserialize, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


static PyMethodDef methods_Akonadi_Attribute[] = {
    {SIP_MLNAME_CAST(sipName_deserialize), meth_Akonadi_Attribute_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_Akonadi_Attribute_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_Attribute_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_Attribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Attribute,
        {0}
    },
    {
        sipNameNr_Attribute,
        {0, 255, 0},
        3, methods_Akonadi_Attribute,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Attribute,
    0,
    0,
    0,
    release_Akonadi_Attribute,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agenttypewidget.sip"
#include <akonadi/agenttypewidget.h>
#line 7609 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 7613 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 7616 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agentfilterproxymodel.sip"
#include <akonadi/agentfilterproxymodel.h>
#line 7619 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7622 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 7625 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7628 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7631 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 7634 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 7637 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7640 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 7643 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 7646 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 7649 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 7652 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 7655 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 7658 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7661 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 7664 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 7667 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 7670 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 7673 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 7676 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7679 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 7682 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7685 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7688 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7691 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7694 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7697 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7700 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7703 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7706 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7709 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7712 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7715 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7718 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7721 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7724 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7727 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7730 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7733 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7736 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7739 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 7742 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 7745 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 7748 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 7751 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7754 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 7757 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 7760 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 7763 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7766 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 7769 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 7772 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 7775 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 7778 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 7781 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7784 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7787 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7790 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7793 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7796 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 7799 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7802 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7805 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_AgentTypeWidget : public Akonadi::AgentTypeWidget
{
public:
    sipAkonadi_AgentTypeWidget(QWidget*);
    virtual ~sipAkonadi_AgentTypeWidget();

    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*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void closeEvent(QCloseEvent*);
    void resizeEvent(QResizeEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    void setVisible(bool);
    int devType() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[47];
};

sipAkonadi_AgentTypeWidget::sipAkonadi_AgentTypeWidget(QWidget*a0): Akonadi::AgentTypeWidget(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_AgentTypeWidget::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentTypeWidget);
}

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

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

    return _id;
}

void *sipAkonadi_AgentTypeWidget::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentTypeWidget, _clname)) ? this : Akonadi::AgentTypeWidget::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::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_AgentTypeWidget::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::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_AgentTypeWidget::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::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_AgentTypeWidget::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::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_AgentTypeWidget::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::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_AgentTypeWidget::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::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);
}

void sipAkonadi_AgentTypeWidget::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::languageChange();
        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_AgentTypeWidget::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::windowActivationChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipAkonadi_AgentTypeWidget::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::fontChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QFont&);

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

void sipAkonadi_AgentTypeWidget::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::paletteChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPalette&);

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

void sipAkonadi_AgentTypeWidget::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::enabledChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

bool sipAkonadi_AgentTypeWidget::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::focusNextPrevChild(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);
}

QVariant sipAkonadi_AgentTypeWidget::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

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

void sipAkonadi_AgentTypeWidget::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

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

int sipAkonadi_AgentTypeWidget::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::metric(a0);

    typedef int (*sipVH_QtGui_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

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

void sipAkonadi_AgentTypeWidget::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::changeEvent(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_AgentTypeWidget::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

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

void sipAkonadi_AgentTypeWidget::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

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

void sipAkonadi_AgentTypeWidget::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

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

void sipAkonadi_AgentTypeWidget::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

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

void sipAkonadi_AgentTypeWidget::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

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

void sipAkonadi_AgentTypeWidget::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

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

void sipAkonadi_AgentTypeWidget::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

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

void sipAkonadi_AgentTypeWidget::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

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

void sipAkonadi_AgentTypeWidget::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

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

void sipAkonadi_AgentTypeWidget::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

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

void sipAkonadi_AgentTypeWidget::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

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

void sipAkonadi_AgentTypeWidget::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

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

void sipAkonadi_AgentTypeWidget::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

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

void sipAkonadi_AgentTypeWidget::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::leaveEvent(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_AgentTypeWidget::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::enterEvent(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_AgentTypeWidget::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

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

void sipAkonadi_AgentTypeWidget::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

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

void sipAkonadi_AgentTypeWidget::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

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

void sipAkonadi_AgentTypeWidget::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

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

void sipAkonadi_AgentTypeWidget::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

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

void sipAkonadi_AgentTypeWidget::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_AgentTypeWidget::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_AgentTypeWidget::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_AgentTypeWidget::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::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);
}

QPaintEngine* sipAkonadi_AgentTypeWidget::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

int sipAkonadi_AgentTypeWidget::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::heightForWidth(a0);

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

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

QSize sipAkonadi_AgentTypeWidget::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

QSize sipAkonadi_AgentTypeWidget::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::sizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_AgentTypeWidget::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        Akonadi::AgentTypeWidget::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

int sipAkonadi_AgentTypeWidget::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeWidget::devType();

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


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

    {
        const Akonadi::AgentTypeWidget *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::AgentType(sipCpp->currentAgentType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentTypeWidget *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->agentFilterProxyModel();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_Akonadi_AgentTypeWidget(void *, const sipTypeDef *);}
static void *cast_Akonadi_AgentTypeWidget(void *sipCppV, const sipTypeDef *targetType)
{
    Akonadi::AgentTypeWidget *sipCpp = reinterpret_cast<Akonadi::AgentTypeWidget *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast<QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_AgentTypeWidget(void *, int);}
static void release_Akonadi_AgentTypeWidget(void *sipCppV,int)
{
    Akonadi::AgentTypeWidget *sipCpp = reinterpret_cast<Akonadi::AgentTypeWidget *>(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_AgentTypeWidget(sipSimpleWrapper *);}
static void dealloc_Akonadi_AgentTypeWidget(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_AgentTypeWidget *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QWidget* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentTypeWidget[] = {
    {SIP_MLNAME_CAST(sipName_agentFilterProxyModel), meth_Akonadi_AgentTypeWidget_agentFilterProxyModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentAgentType), meth_Akonadi_AgentTypeWidget_currentAgentType, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_AgentTypeWidget[] = {
    {"activated()", 0, 0, 0},
    {"currentChanged(Akonadi::AgentType,Akonadi::AgentType)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentTypeWidget = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentTypeWidget,
        {0}
    },
    {
        sipNameNr_AgentTypeWidget,
        {0, 255, 0},
        2, methods_Akonadi_AgentTypeWidget,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentTypeWidget,
    0,
    init_type_Akonadi_AgentTypeWidget,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentTypeWidget,
    0,
    0,
    0,
    release_Akonadi_AgentTypeWidget,
    cast_Akonadi_AgentTypeWidget,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentTypeWidget::staticMetaObject,
    0,
    signals_Akonadi_AgentTypeWidget,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agenttypemodel.sip"
#include <akonadi/agenttypemodel.h>
#line 8922 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 8926 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8929 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 8932 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8935 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 8938 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8941 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8944 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8947 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 8950 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8953 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 8956 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8959 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 8962 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8965 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 8968 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8971 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8974 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8977 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8980 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8983 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8986 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 8989 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8992 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 8995 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 8998 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_AgentTypeModel : public Akonadi::AgentTypeModel
{
public:
    sipAkonadi_AgentTypeModel(QObject*);
    virtual ~sipAkonadi_AgentTypeModel();

    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 revert();
    bool submit();
    QSize span(const QModelIndex&) const;
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    QModelIndex buddy(const QModelIndex&) const;
    void sort(int,Qt::SortOrder);
    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&);
    Qt::DropActions supportedDropActions() const;
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    QMimeData* mimeData(const QModelIndexList&) const;
    QStringList mimeTypes() const;
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    QVariant headerData(int,Qt::Orientation,int) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    bool hasChildren(const QModelIndex&) const;
    Qt::ItemFlags flags(const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    QModelIndex index(int,int,const QModelIndex&) const;
    QVariant data(const QModelIndex&,int) const;
    int rowCount(const QModelIndex&) const;
    int columnCount(const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[35];
};

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

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

const QMetaObject *sipAkonadi_AgentTypeModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentTypeModel);
}

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

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

    return _id;
}

void *sipAkonadi_AgentTypeModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentTypeModel, _clname)) ? this : Akonadi::AgentTypeModel::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeModel::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_AgentTypeModel::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeModel::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_AgentTypeModel::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeModel::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_AgentTypeModel::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeModel::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_AgentTypeModel::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeModel::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_AgentTypeModel::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeModel::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_AgentTypeModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeModel::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_AgentTypeModel::removeColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::removeRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::insertColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::insertRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::setData(const QModelIndex& a0,const QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::hasChildren(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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_AgentTypeModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeModel::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);
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::AgentTypeModel::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_AgentTypeModel, sipName_columnCount, NULL);

    return NULL;
}


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

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

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::AgentTypeModel::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_AgentTypeModel, sipName_data, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AgentTypeModel_index(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AgentTypeModel_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::AgentTypeModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->Akonadi::AgentTypeModel::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_AgentTypeModel, sipName_index, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_AgentTypeModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->Akonadi::AgentTypeModel::parent(*a0) : sipCpp->parent(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Qt::ItemFlags((sipSelfWasArg ? sipCpp->Akonadi::AgentTypeModel::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_AgentTypeModel, sipName_flags, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_AgentTypeModel(void *, int);}
static void release_Akonadi_AgentTypeModel(void *sipCppV,int)
{
    Akonadi::AgentTypeModel *sipCpp = reinterpret_cast<Akonadi::AgentTypeModel *>(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_AgentTypeModel(sipSimpleWrapper *);}
static void dealloc_Akonadi_AgentTypeModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_AgentTypeModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentTypeModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_AgentTypeModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_Akonadi_AgentTypeModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flags), meth_Akonadi_AgentTypeModel_flags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Akonadi_AgentTypeModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_Akonadi_AgentTypeModel_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_Akonadi_AgentTypeModel_rowCount, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_AgentTypeModel[] = {
    {sipName_CapabilitiesRole, static_cast<int>(Akonadi::AgentTypeModel::CapabilitiesRole), 23},
    {sipName_DescriptionRole, static_cast<int>(Akonadi::AgentTypeModel::DescriptionRole), 23},
    {sipName_IdentifierRole, static_cast<int>(Akonadi::AgentTypeModel::IdentifierRole), 23},
    {sipName_MimeTypesRole, static_cast<int>(Akonadi::AgentTypeModel::MimeTypesRole), 23},
    {sipName_TypeRole, static_cast<int>(Akonadi::AgentTypeModel::TypeRole), 23},
    {sipName_UserRole, static_cast<int>(Akonadi::AgentTypeModel::UserRole), 23},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentTypeModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentTypeModel,
        {0}
    },
    {
        sipNameNr_AgentTypeModel,
        {0, 255, 0},
        6, methods_Akonadi_AgentTypeModel,
        6, enummembers_Akonadi_AgentTypeModel,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentTypeModel,
    0,
    init_type_Akonadi_AgentTypeModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentTypeModel,
    0,
    0,
    0,
    release_Akonadi_AgentTypeModel,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentTypeModel::staticMetaObject,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agenttypedialog.sip"
#include <akonadi/agenttypedialog.h>
#line 9954 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 9958 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agentfilterproxymodel.sip"
#include <akonadi/agentfilterproxymodel.h>
#line 9961 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 9964 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9967 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9970 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9973 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 9976 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9979 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 9982 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 9985 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 9988 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 9991 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kpushbutton.sip"
#include <kpushbutton.h>
#line 9994 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 9997 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 10000 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 10003 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kguiitem.sip"
#include <kguiitem.h>
#line 10006 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 10009 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10012 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 10015 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 10018 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10021 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10024 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10027 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10030 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10033 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 10036 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10039 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 10042 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 10045 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 10048 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 10051 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 10054 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 10057 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 10060 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 10063 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10066 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 10069 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 10072 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 10075 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10078 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 10081 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10084 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10087 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10090 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10093 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10096 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10099 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10102 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10105 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10108 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10111 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10114 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10117 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 10120 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 10123 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 10126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 10129 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10132 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 10135 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 10138 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10141 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 10144 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 10147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 10150 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 10153 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 10156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10159 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10162 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10165 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 10168 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 10171 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10174 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10177 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_AgentTypeDialog : public Akonadi::AgentTypeDialog
{
public:
    sipAkonadi_AgentTypeDialog(QWidget*);
    virtual ~sipAkonadi_AgentTypeDialog();

    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*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    int devType() const;
    bool eventFilter(QObject*,QEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void resizeEvent(QResizeEvent*);
    void showEvent(QShowEvent*);
    void reject();
    void accept();
    void setVisible(bool);
    void slotButtonClicked(int);
    void keyPressEvent(QKeyEvent*);
    void closeEvent(QCloseEvent*);
    void hideEvent(QHideEvent*);
    void setPlainCaption(const QString&);
    void setCaption(const QString&,bool);
    void setCaption(const QString&);
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    void done(int);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[54];
};

sipAkonadi_AgentTypeDialog::sipAkonadi_AgentTypeDialog(QWidget*a0): Akonadi::AgentTypeDialog(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_AgentTypeDialog::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentTypeDialog);
}

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

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

    return _id;
}

void *sipAkonadi_AgentTypeDialog::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentTypeDialog, _clname)) ? this : Akonadi::AgentTypeDialog::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::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_AgentTypeDialog::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::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_AgentTypeDialog::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::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_AgentTypeDialog::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::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_AgentTypeDialog::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::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);
}

void sipAkonadi_AgentTypeDialog::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::languageChange();
        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_AgentTypeDialog::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::windowActivationChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipAkonadi_AgentTypeDialog::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::fontChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QFont&);

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

void sipAkonadi_AgentTypeDialog::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::paletteChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPalette&);

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

void sipAkonadi_AgentTypeDialog::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::enabledChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

bool sipAkonadi_AgentTypeDialog::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::focusNextPrevChild(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);
}

QVariant sipAkonadi_AgentTypeDialog::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

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

void sipAkonadi_AgentTypeDialog::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

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

int sipAkonadi_AgentTypeDialog::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::metric(a0);

    typedef int (*sipVH_QtGui_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

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

void sipAkonadi_AgentTypeDialog::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::changeEvent(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_AgentTypeDialog::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

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

void sipAkonadi_AgentTypeDialog::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

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

void sipAkonadi_AgentTypeDialog::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

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

void sipAkonadi_AgentTypeDialog::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

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

void sipAkonadi_AgentTypeDialog::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

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

void sipAkonadi_AgentTypeDialog::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

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

void sipAkonadi_AgentTypeDialog::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

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

void sipAkonadi_AgentTypeDialog::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

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

void sipAkonadi_AgentTypeDialog::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::leaveEvent(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_AgentTypeDialog::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::enterEvent(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_AgentTypeDialog::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

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

void sipAkonadi_AgentTypeDialog::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

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

void sipAkonadi_AgentTypeDialog::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

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

void sipAkonadi_AgentTypeDialog::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

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

void sipAkonadi_AgentTypeDialog::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_AgentTypeDialog::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_AgentTypeDialog::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

void sipAkonadi_AgentTypeDialog::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

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

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

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::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);
}

QPaintEngine* sipAkonadi_AgentTypeDialog::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

int sipAkonadi_AgentTypeDialog::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::heightForWidth(a0);

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

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

int sipAkonadi_AgentTypeDialog::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::devType();

    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_AgentTypeDialog::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::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);
}

void sipAkonadi_AgentTypeDialog::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

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

void sipAkonadi_AgentTypeDialog::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

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

void sipAkonadi_AgentTypeDialog::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

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

void sipAkonadi_AgentTypeDialog::reject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_reject);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::reject();
        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_AgentTypeDialog::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_accept);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::accept();
        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_AgentTypeDialog::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipAkonadi_AgentTypeDialog::slotButtonClicked(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_slotButtonClicked);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::slotButtonClicked(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

void sipAkonadi_AgentTypeDialog::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

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

void sipAkonadi_AgentTypeDialog::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

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

void sipAkonadi_AgentTypeDialog::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

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

void sipAkonadi_AgentTypeDialog::setPlainCaption(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_setPlainCaption);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::setPlainCaption(a0);
        return;
    }

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

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

void sipAkonadi_AgentTypeDialog::setCaption(const QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_setCaption);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::setCaption(a0,a1);
        return;
    }

    typedef void (*sipVH_QtXml_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,bool);

    ((sipVH_QtXml_24)(sipModuleAPI_akonadi_QtXml->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_AgentTypeDialog::setCaption(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_setCaption);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::setCaption(a0);
        return;
    }

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

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

QSize sipAkonadi_AgentTypeDialog::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

QSize sipAkonadi_AgentTypeDialog::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentTypeDialog::sizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_AgentTypeDialog::done(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,NULL,sipName_done);

    if (!sipMeth)
    {
        Akonadi::AgentTypeDialog::done(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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


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

    {
        const Akonadi::AgentTypeDialog *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::AgentType(sipCpp->agentType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentTypeDialog *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->agentFilterProxyModel();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        Akonadi::AgentTypeDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_AgentTypeDialog, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentTypeDialog::done(a0) : sipCpp->done(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_AgentTypeDialog, sipName_done, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_Akonadi_AgentTypeDialog(void *, const sipTypeDef *);}
static void *cast_Akonadi_AgentTypeDialog(void *sipCppV, const sipTypeDef *targetType)
{
    Akonadi::AgentTypeDialog *sipCpp = reinterpret_cast<Akonadi::AgentTypeDialog *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast<QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_AgentTypeDialog(void *, int);}
static void release_Akonadi_AgentTypeDialog(void *sipCppV,int)
{
    Akonadi::AgentTypeDialog *sipCpp = reinterpret_cast<Akonadi::AgentTypeDialog *>(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_AgentTypeDialog(sipSimpleWrapper *);}
static void dealloc_Akonadi_AgentTypeDialog(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_AgentTypeDialog *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        QWidget* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentTypeDialog[] = {
    {SIP_MLNAME_CAST(sipName_agentFilterProxyModel), meth_Akonadi_AgentTypeDialog_agentFilterProxyModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_agentType), meth_Akonadi_AgentTypeDialog_agentType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_done), meth_Akonadi_AgentTypeDialog_done, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentTypeDialog = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentTypeDialog,
        {0}
    },
    {
        sipNameNr_AgentTypeDialog,
        {0, 255, 0},
        3, methods_Akonadi_AgentTypeDialog,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentTypeDialog,
    0,
    init_type_Akonadi_AgentTypeDialog,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentTypeDialog,
    0,
    0,
    0,
    release_Akonadi_AgentTypeDialog,
    cast_Akonadi_AgentTypeDialog,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentTypeDialog::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 11448 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11452 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 11455 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11458 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


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

    {
        const Akonadi::AgentType *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentType *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentType *sipCpp;

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

    return NULL;
}


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

    {
        const Akonadi::AgentType *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentType *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentType *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QIcon(sipCpp->icon());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentType *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentType *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Akonadi_AgentType___ne__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_AgentType___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::AgentType *sipCpp = reinterpret_cast<Akonadi::AgentType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_AgentType));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::AgentType* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,ne_slot,sipType_Akonadi_AgentType,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_AgentType___eq__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_AgentType___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::AgentType *sipCpp = reinterpret_cast<Akonadi::AgentType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_AgentType));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::AgentType* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,eq_slot,sipType_Akonadi_AgentType,sipSelf,sipArg);
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Akonadi_AgentType(SIP_SSIZE_T);}
static void *array_Akonadi_AgentType(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::AgentType[sipNrElem];
}


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


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


extern "C" {static void *init_type_Akonadi_AgentType(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_AgentType(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::AgentType *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const Akonadi::AgentType* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_AgentType, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::AgentType(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentType[] = {
    {SIP_MLNAME_CAST(sipName_capabilities), meth_Akonadi_AgentType_capabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_Akonadi_AgentType_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_Akonadi_AgentType_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iconName), meth_Akonadi_AgentType_iconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifier), meth_Akonadi_AgentType_identifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Akonadi_AgentType_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypes), meth_Akonadi_AgentType_mimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Akonadi_AgentType_name, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentType = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentType,
        {0}
    },
    {
        sipNameNr_AgentType,
        {0, 255, 0},
        8, methods_Akonadi_AgentType,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Akonadi_AgentType,
    init_type_Akonadi_AgentType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentType,
    assign_Akonadi_AgentType,
    array_Akonadi_AgentType,
    copy_Akonadi_AgentType,
    release_Akonadi_AgentType,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/agentsearchinterface.sip"
#include <akonadi/agentsearchinterface.h>
#line 11896 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"

#line 124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <qvector.h>
#line 11900 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qvector.sip"
#include <qvector.h>
#line 11903 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11906 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11909 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 11912 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart6.cpp"


class sipAkonadi_AgentSearchInterface : public Akonadi::AgentSearchInterface
{
public:
    sipAkonadi_AgentSearchInterface();
    sipAkonadi_AgentSearchInterface(const Akonadi::AgentSearchInterface&);
    virtual ~sipAkonadi_AgentSearchInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void search(const QString&,const Akonadi::Collection&);
    void removeSearch(const Akonadi::Collection&);
    void addSearch(const QString&,const QString&,const Akonadi::Collection&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[3];
};

sipAkonadi_AgentSearchInterface::sipAkonadi_AgentSearchInterface(): Akonadi::AgentSearchInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_AgentSearchInterface::sipAkonadi_AgentSearchInterface(const Akonadi::AgentSearchInterface& a0): Akonadi::AgentSearchInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipAkonadi_AgentSearchInterface::search(const QString& a0,const Akonadi::Collection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_AgentSearchInterface,sipName_search);

    if (!sipMeth)
        return;

    extern void sipVH_akonadi_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const Akonadi::Collection&);

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_AgentSearchInterface,sipName_removeSearch);

    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_AgentSearchInterface::addSearch(const QString& a0,const QString& a1,const Akonadi::Collection& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_AgentSearchInterface,sipName_addSearch);

    if (!sipMeth)
        return;

    extern void sipVH_akonadi_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,const Akonadi::Collection&);

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


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const Akonadi::Collection* a2;
        Akonadi::AgentSearchInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J9", &sipSelf, sipType_Akonadi_AgentSearchInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_Akonadi_Collection, &a2))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AgentSearchInterface, sipName_addSearch);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->addSearch(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Collection* a0;
        Akonadi::AgentSearchInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_AgentSearchInterface, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AgentSearchInterface, sipName_removeSearch);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeSearch(*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_AgentSearchInterface, sipName_removeSearch, NULL);

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const Akonadi::Collection* a1;
        Akonadi::AgentSearchInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Akonadi_AgentSearchInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_Akonadi_Collection, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AgentSearchInterface, sipName_search);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->search(*a0,*a1);
            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_AgentSearchInterface, sipName_search, NULL);

    return NULL;
}


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

    {
        const QVector<qint64>* a0;
        int a0State = 0;
        Akonadi::AgentSearchInterface::ResultScope a1;
        Akonadi::AgentSearchInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_Akonadi_AgentSearchInterface, &sipCpp, sipType_QVector_3800,&a0, &a0State, sipType_Akonadi_AgentSearchInterface_ResultScope, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->searchFinished(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVector<qint64> *>(a0),sipType_QVector_3800,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Akonadi::ImapSet* a0;
        Akonadi::AgentSearchInterface::ResultScope a1;
        Akonadi::AgentSearchInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_Akonadi_AgentSearchInterface, &sipCpp, sipType_Akonadi_ImapSet, &a0, sipType_Akonadi_AgentSearchInterface_ResultScope, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->searchFinished(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<QByteArray>* a0;
        int a0State = 0;
        Akonadi::AgentSearchInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AgentSearchInterface, &sipCpp, sipType_QVector_0100QByteArray,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->searchFinished(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVector<QByteArray> *>(a0),sipType_QVector_0100QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::AgentSearchInterface* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Akonadi_AgentSearchInterface[] = {
    {SIP_MLNAME_CAST(sipName_addSearch), meth_Akonadi_AgentSearchInterface_addSearch, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSearch), meth_Akonadi_AgentSearchInterface_removeSearch, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_search), meth_Akonadi_AgentSearchInterface_search, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_searchFinished), meth_Akonadi_AgentSearchInterface_searchFinished, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_AgentSearchInterface[] = {
    {sipName_Rid, static_cast<int>(Akonadi::AgentSearchInterface::Rid), 19},
    {sipName_Uid, static_cast<int>(Akonadi::AgentSearchInterface::Uid), 19},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentSearchInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentSearchInterface,
        {0}
    },
    {
        sipNameNr_AgentSearchInterface,
        {0, 255, 0},
        4, methods_Akonadi_AgentSearchInterface,
        2, enummembers_Akonadi_AgentSearchInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_Akonadi_AgentSearchInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentSearchInterface,
    0,
    0,
    0,
    release_Akonadi_AgentSearchInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};




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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ImapSet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ImapSet,
        {0}
    },
    {
        sipNameNr_ImapSet,
        {0, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_Akonadi_ImapSet,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
