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

#include "sipAPIakonadi.h"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentmanager.sip"
#include <akonadi/agentmanager.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 64 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 67 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


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

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::AgentType::List(sipCpp->types());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AgentManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Akonadi::AgentType*sipRes;

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentManager *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AgentManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Akonadi::AgentInstance*sipRes;

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance* a0;
        Akonadi::AgentManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_AgentManager, &sipCpp, sipType_Akonadi_AgentInstance, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeInstance(*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_AgentManager, sipName_removeInstance, NULL);

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Akonadi::Collection* a0;
        bool a1;
        Akonadi::AgentManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_Akonadi_AgentManager, &sipCpp, sipType_Akonadi_Collection, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->synchronizeCollection(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentManager)
        return ptr;

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_AgentManager(void *, int);}
static void release_Akonadi_AgentManager(void *sipCppV,int)
{
    Akonadi::AgentManager *sipCpp = reinterpret_cast<Akonadi::AgentManager *>(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_AgentManager(sipSimpleWrapper *);}
static void dealloc_Akonadi_AgentManager(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_AgentManager(sipGetAddress(sipSelf),0);
    }
}


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


static PyMethodDef methods_Akonadi_AgentManager[] = {
    {SIP_MLNAME_CAST(sipName_instance), meth_Akonadi_AgentManager_instance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_instances), meth_Akonadi_AgentManager_instances, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeInstance), meth_Akonadi_AgentManager_removeInstance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_Akonadi_AgentManager_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronizeCollection), meth_Akonadi_AgentManager_synchronizeCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_AgentManager_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_types), meth_Akonadi_AgentManager_types, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_AgentManager[] = {
    {"instanceOnline(Akonadi::AgentInstance,bool)", 0, 0, 0},
    {"instanceWarning(Akonadi::AgentInstance,QString)", 0, 0, 0},
    {"instanceError(Akonadi::AgentInstance,QString)", 0, 0, 0},
    {"instanceNameChanged(Akonadi::AgentInstance)", 0, 0, 0},
    {"instanceProgressChanged(Akonadi::AgentInstance)", 0, 0, 0},
    {"instanceStatusChanged(Akonadi::AgentInstance)", 0, 0, 0},
    {"instanceRemoved(Akonadi::AgentInstance)", 0, 0, 0},
    {"instanceAdded(Akonadi::AgentInstance)", 0, 0, 0},
    {"typeRemoved(Akonadi::AgentType)", 0, 0, 0},
    {"typeAdded(Akonadi::AgentType)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentManager,
        {0}
    },
    {
        sipNameNr_AgentManager,
        {0, 255, 0},
        7, methods_Akonadi_AgentManager,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentManager,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentManager,
    0,
    0,
    0,
    release_Akonadi_AgentManager,
    cast_Akonadi_AgentManager,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentManager::staticMetaObject,
    0,
    signals_Akonadi_AgentManager,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstancewidget.sip"
#include <akonadi/agentinstancewidget.h>
#line 408 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 412 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 415 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 418 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 421 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentfilterproxymodel.sip"
#include <akonadi/agentfilterproxymodel.h>
#line 424 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 427 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 39 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 430 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 433 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 436 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 39 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 439 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 442 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 445 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 448 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 451 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 454 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 457 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 460 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 463 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 466 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 469 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 472 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 475 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 478 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 481 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 484 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 487 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 490 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 656 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 493 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 496 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 616 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 499 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 605 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 502 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 748 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 505 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 801 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 508 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 774 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 511 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 790 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 514 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 863 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 517 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 412 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 520 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 627 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 523 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 583 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 526 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 570 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 557 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 532 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 533 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 535 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 514 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 538 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 483 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 541 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 356 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 544 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 261 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 547 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 550 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 61 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 553 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 39 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 556 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 559 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 562 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 565 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 568 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 571 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 574 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 577 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 580 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 583 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 586 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 592 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 595 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 598 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 601 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 604 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 607 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 610 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentInstanceWidget : public Akonadi::AgentInstanceWidget
{
public:
    sipAkonadi_AgentInstanceWidget(QWidget*);
    virtual ~sipAkonadi_AgentInstanceWidget();

    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_AgentInstanceWidget(const sipAkonadi_AgentInstanceWidget &);
    sipAkonadi_AgentInstanceWidget &operator = (const sipAkonadi_AgentInstanceWidget &);

    char sipPyMethods[47];
};

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

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

const QMetaObject *sipAkonadi_AgentInstanceWidget::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentInstanceWidget);
}

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

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

    return _id;
}

void *sipAkonadi_AgentInstanceWidget::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentInstanceWidget, _clname)) ? this : Akonadi::AgentInstanceWidget::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::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::AgentInstanceWidget::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_AgentInstanceWidget::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::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::AgentInstanceWidget::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_AgentInstanceWidget::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    if (!sipMeth)
        return Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::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::AgentInstanceWidget::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_AgentInstanceWidget::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceWidget::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_AgentInstanceWidget::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    {
        const Akonadi::AgentInstanceWidget *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstanceWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AgentInstanceWidget, &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_AgentInstanceWidget, sipName_agentFilterProxyModel, NULL);

    return NULL;
}


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

    {
        const Akonadi::AgentInstanceWidget *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Akonadi::AgentInstance>(sipCpp->selectedAgentInstances());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstanceWidget *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->view();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentInstanceWidget)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QWidget)->ctd_cast((QWidget *)(Akonadi::AgentInstanceWidget *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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


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

    {
        QWidget* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentInstanceWidget[] = {
    {SIP_MLNAME_CAST(sipName_agentFilterProxyModel), meth_Akonadi_AgentInstanceWidget_agentFilterProxyModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentAgentInstance), meth_Akonadi_AgentInstanceWidget_currentAgentInstance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedAgentInstances), meth_Akonadi_AgentInstanceWidget_selectedAgentInstances, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_view), meth_Akonadi_AgentInstanceWidget_view, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentInstanceWidget = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentInstanceWidget,
        {0}
    },
    {
        sipNameNr_AgentInstanceWidget,
        {0, 255, 0},
        4, methods_Akonadi_AgentInstanceWidget,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentInstanceWidget,
    0,
    init_type_Akonadi_AgentInstanceWidget,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentInstanceWidget,
    0,
    0,
    0,
    release_Akonadi_AgentInstanceWidget,
    cast_Akonadi_AgentInstanceWidget,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentInstanceWidget::staticMetaObject,
    0,
    signals_Akonadi_AgentInstanceWidget,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstancemodel.sip"
#include <akonadi/agentinstancemodel.h>
#line 1786 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1790 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1793 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1796 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1799 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1802 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 1805 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1808 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1811 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1814 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 1817 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 1820 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1823 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 1826 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1829 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 1832 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1835 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1838 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1841 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1844 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1847 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1850 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1853 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1856 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1859 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1862 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentInstanceModel : public Akonadi::AgentInstanceModel
{
public:
    sipAkonadi_AgentInstanceModel(QObject*);
    virtual ~sipAkonadi_AgentInstanceModel();

    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);
    bool hasChildren(const QModelIndex&) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    Qt::ItemFlags flags(const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    QModelIndex index(int,int,const QModelIndex&) const;
    QVariant headerData(int,Qt::Orientation,int) const;
    QVariant data(const QModelIndex&,int) const;
    int rowCount(const QModelIndex&) const;
    int columnCount(const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[35];
};

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

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

const QMetaObject *sipAkonadi_AgentInstanceModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentInstanceModel);
}

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

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

    return _id;
}

void *sipAkonadi_AgentInstanceModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentInstanceModel, _clname)) ? this : Akonadi::AgentInstanceModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::AgentInstanceModel::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_AgentInstanceModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceModel::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_AgentInstanceModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::sort(int a0,Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::setHeaderData(a0,a1,a2,a3);

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

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

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

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

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

bool sipAkonadi_AgentInstanceModel::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::AgentInstanceModel::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);
}

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

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

    if (!sipMeth)
        return Akonadi::AgentInstanceModel::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_AgentInstanceModel::parent(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceModel::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_AgentInstanceModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentInstanceModel::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_AgentInstanceModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

QVariant sipAkonadi_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel::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::AgentInstanceModel::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_AgentInstanceModel_columnCount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AgentInstanceModel_columnCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::AgentInstanceModel::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_AgentInstanceModel, sipName_columnCount, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::AgentInstanceModel::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_AgentInstanceModel, sipName_rowCount, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::AgentInstanceModel::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_AgentInstanceModel, sipName_data, NULL);

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AgentInstanceModel_index(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AgentInstanceModel_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::AgentInstanceModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->Akonadi::AgentInstanceModel::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_AgentInstanceModel, sipName_index, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_AgentInstanceModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->Akonadi::AgentInstanceModel::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_AgentInstanceModel, sipName_parent, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Qt::ItemFlags((sipSelfWasArg ? sipCpp->Akonadi::AgentInstanceModel::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_AgentInstanceModel, sipName_flags, NULL);

    return NULL;
}


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

    {
        const QModelIndex* a0;
        const QVariant* a1;
        int a1State = 0;
        int a2;
        Akonadi::AgentInstanceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1i", &sipSelf, sipType_Akonadi_AgentInstanceModel, &sipCpp, sipType_QModelIndex, &a0, sipType_QVariant,&a1, &a1State, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::AgentInstanceModel::setData(*a0,*a1,a2) : sipCpp->setData(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentInstanceModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractItemModel)->ctd_cast((QAbstractItemModel *)(Akonadi::AgentInstanceModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentInstanceModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_AgentInstanceModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_Akonadi_AgentInstanceModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flags), meth_Akonadi_AgentInstanceModel_flags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_headerData), meth_Akonadi_AgentInstanceModel_headerData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Akonadi_AgentInstanceModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_Akonadi_AgentInstanceModel_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_Akonadi_AgentInstanceModel_rowCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_Akonadi_AgentInstanceModel_setData, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_AgentInstanceModel[] = {
    {sipName_CapabilitiesRole, static_cast<int>(Akonadi::AgentInstanceModel::CapabilitiesRole), 15},
    {sipName_DescriptionRole, static_cast<int>(Akonadi::AgentInstanceModel::DescriptionRole), 15},
    {sipName_InstanceIdentifierRole, static_cast<int>(Akonadi::AgentInstanceModel::InstanceIdentifierRole), 15},
    {sipName_InstanceRole, static_cast<int>(Akonadi::AgentInstanceModel::InstanceRole), 15},
    {sipName_MimeTypesRole, static_cast<int>(Akonadi::AgentInstanceModel::MimeTypesRole), 15},
    {sipName_OnlineRole, static_cast<int>(Akonadi::AgentInstanceModel::OnlineRole), 15},
    {sipName_ProgressRole, static_cast<int>(Akonadi::AgentInstanceModel::ProgressRole), 15},
    {sipName_StatusMessageRole, static_cast<int>(Akonadi::AgentInstanceModel::StatusMessageRole), 15},
    {sipName_StatusRole, static_cast<int>(Akonadi::AgentInstanceModel::StatusRole), 15},
    {sipName_TypeIdentifierRole, static_cast<int>(Akonadi::AgentInstanceModel::TypeIdentifierRole), 15},
    {sipName_TypeRole, static_cast<int>(Akonadi::AgentInstanceModel::TypeRole), 15},
    {sipName_UserRole, static_cast<int>(Akonadi::AgentInstanceModel::UserRole), 15},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentInstanceModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentInstanceModel,
        {0}
    },
    {
        sipNameNr_AgentInstanceModel,
        {0, 255, 0},
        8, methods_Akonadi_AgentInstanceModel,
        12, enummembers_Akonadi_AgentInstanceModel,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentInstanceModel,
    0,
    init_type_Akonadi_AgentInstanceModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentInstanceModel,
    0,
    0,
    0,
    release_Akonadi_AgentInstanceModel,
    cast_Akonadi_AgentInstanceModel,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentInstanceModel::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstancecreatejob.sip"
#include <akonadi/agentinstancecreatejob.h>
#line 2906 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 2910 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2913 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2916 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 2919 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2922 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2925 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 2928 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2931 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2934 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 2937 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2940 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2943 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2946 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2949 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2952 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2955 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2958 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2961 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2964 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2967 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2970 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentInstanceCreateJob : public Akonadi::AgentInstanceCreateJob
{
public:
    sipAkonadi_AgentInstanceCreateJob(const Akonadi::AgentType&,QObject*);
    sipAkonadi_AgentInstanceCreateJob(const QString&,QObject*);
    virtual ~sipAkonadi_AgentInstanceCreateJob();

    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_AgentInstanceCreateJob(const sipAkonadi_AgentInstanceCreateJob &);
    sipAkonadi_AgentInstanceCreateJob &operator = (const sipAkonadi_AgentInstanceCreateJob &);

    char sipPyMethods[12];
};

sipAkonadi_AgentInstanceCreateJob::sipAkonadi_AgentInstanceCreateJob(const Akonadi::AgentType& a0,QObject*a1): Akonadi::AgentInstanceCreateJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

const QMetaObject *sipAkonadi_AgentInstanceCreateJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentInstanceCreateJob);
}

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

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

    return _id;
}

void *sipAkonadi_AgentInstanceCreateJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentInstanceCreateJob, _clname)) ? this : Akonadi::AgentInstanceCreateJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        Akonadi::AgentInstanceCreateJob::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_AgentInstanceCreateJob_configure(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AgentInstanceCreateJob_configure(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWidget* a0 = 0;
        Akonadi::AgentInstanceCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J:", &sipSelf, sipType_Akonadi_AgentInstanceCreateJob, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->configure(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_AgentInstanceCreateJob, sipName_configure, NULL);

    return NULL;
}


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

    {
        const Akonadi::AgentInstanceCreateJob *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::AgentInstanceCreateJob *sipCpp;

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentInstanceCreateJob)
        return ptr;

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

    return NULL;
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentInstanceCreateJob[] = {
    {SIP_MLNAME_CAST(sipName_configure), meth_Akonadi_AgentInstanceCreateJob_configure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_instance), meth_Akonadi_AgentInstanceCreateJob_instance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_AgentInstanceCreateJob_start, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentInstanceCreateJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentInstanceCreateJob,
        {0}
    },
    {
        sipNameNr_AgentInstanceCreateJob,
        {0, 255, 0},
        3, methods_Akonadi_AgentInstanceCreateJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentInstanceCreateJob,
    0,
    init_type_Akonadi_AgentInstanceCreateJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentInstanceCreateJob,
    0,
    0,
    0,
    release_Akonadi_AgentInstanceCreateJob,
    cast_Akonadi_AgentInstanceCreateJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentInstanceCreateJob::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 3482 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3486 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3489 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 3492 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::AgentType(sipCpp->type());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AgentInstance, &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_AgentInstance, sipName_identifier, NULL);

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->status();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Akonadi_AgentInstance_Status);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->progress();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOnline();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::AgentInstance *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_AgentInstance, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIsOnline(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_AgentInstance, sipName_setIsOnline, NULL);

    return NULL;
}


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

    {
        QWidget* a0 = 0;
        Akonadi::AgentInstance *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J:", &sipSelf, sipType_Akonadi_AgentInstance, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->configure(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_AgentInstance, sipName_configure, NULL);

    return NULL;
}


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

    {
        Akonadi::AgentInstance *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::AgentInstance *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentInstance *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Akonadi_AgentInstance___ne__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_AgentInstance___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::AgentInstance *sipCpp = reinterpret_cast<Akonadi::AgentInstance *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_AgentInstance));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::AgentInstance* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Akonadi::AgentInstance::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_AgentInstance,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_AgentInstance___eq__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_AgentInstance___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::AgentInstance *sipCpp = reinterpret_cast<Akonadi::AgentInstance *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_AgentInstance));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::AgentInstance* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Akonadi::AgentInstance::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_AgentInstance,sipSelf,sipArg);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Akonadi::AgentInstance* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentInstance[] = {
    {SIP_MLNAME_CAST(sipName_abortCurrentTask), meth_Akonadi_AgentInstance_abortCurrentTask, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configure), meth_Akonadi_AgentInstance_configure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifier), meth_Akonadi_AgentInstance_identifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOnline), meth_Akonadi_AgentInstance_isOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Akonadi_AgentInstance_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Akonadi_AgentInstance_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_progress), meth_Akonadi_AgentInstance_progress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reconfigure), meth_Akonadi_AgentInstance_reconfigure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_restart), meth_Akonadi_AgentInstance_restart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsOnline), meth_Akonadi_AgentInstance_setIsOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setName), meth_Akonadi_AgentInstance_setName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_Akonadi_AgentInstance_status, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusMessage), meth_Akonadi_AgentInstance_statusMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronize), meth_Akonadi_AgentInstance_synchronize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_synchronizeCollectionTree), meth_Akonadi_AgentInstance_synchronizeCollectionTree, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_AgentInstance_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_AgentInstance[] = {
    {sipName_Broken, static_cast<int>(Akonadi::AgentInstance::Broken), 12},
    {sipName_Idle, static_cast<int>(Akonadi::AgentInstance::Idle), 12},
    {sipName_Running, static_cast<int>(Akonadi::AgentInstance::Running), 12},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentInstance = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentInstance,
        {0}
    },
    {
        sipNameNr_AgentInstance,
        {0, 255, 0},
        16, methods_Akonadi_AgentInstance,
        3, enummembers_Akonadi_AgentInstance,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Akonadi_AgentInstance,
    init_type_Akonadi_AgentInstance,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentInstance,
    assign_Akonadi_AgentInstance,
    array_Akonadi_AgentInstance,
    copy_Akonadi_AgentInstance,
    release_Akonadi_AgentInstance,
    cast_Akonadi_AgentInstance,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentfilterproxymodel.sip"
#include <akonadi/agentfilterproxymodel.h>
#line 4168 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4172 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4175 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 4178 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4181 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4184 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4187 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4190 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4193 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4196 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 4199 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4202 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 4205 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4208 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 174 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 4211 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 127 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 4214 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 4217 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4220 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 4223 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4226 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 4229 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4232 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4235 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4238 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4241 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4244 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4247 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4250 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentFilterProxyModel : public Akonadi::AgentFilterProxyModel
{
public:
    sipAkonadi_AgentFilterProxyModel(QObject*);
    virtual ~sipAkonadi_AgentFilterProxyModel();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[43];
};

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

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

const QMetaObject *sipAkonadi_AgentFilterProxyModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentFilterProxyModel);
}

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

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

    return _id;
}

void *sipAkonadi_AgentFilterProxyModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentFilterProxyModel, _clname)) ? this : Akonadi::AgentFilterProxyModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::setItemData(const QModelIndex& a0,const QMap<int,QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

    if (!sipMeth)
    {
        Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::removeColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::removeRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::insertColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::insertRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::setData(const QModelIndex& a0,const QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::AgentFilterProxyModel::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_AgentFilterProxyModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AgentFilterProxyModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addMimeTypeFilter(*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_AgentFilterProxyModel, sipName_addMimeTypeFilter, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AgentFilterProxyModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCapabilityFilter(*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_AgentFilterProxyModel, sipName_addCapabilityFilter, NULL);

    return NULL;
}


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

    {
        Akonadi::AgentFilterProxyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        const QModelIndex* a1;
        const Akonadi::AgentFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "piJ9", &sipSelf, sipType_Akonadi_AgentFilterProxyModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::AgentFilterProxyModel::filterAcceptsRow(a0,*a1) : sipCpp->filterAcceptsRow(a0,*a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AgentFilterProxyModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->excludeCapabilities(*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_AgentFilterProxyModel, sipName_excludeCapabilities, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentFilterProxyModel)
        return ptr;

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

    return NULL;
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentFilterProxyModel[] = {
    {SIP_MLNAME_CAST(sipName_addCapabilityFilter), meth_Akonadi_AgentFilterProxyModel_addCapabilityFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMimeTypeFilter), meth_Akonadi_AgentFilterProxyModel_addMimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearFilters), meth_Akonadi_AgentFilterProxyModel_clearFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_excludeCapabilities), meth_Akonadi_AgentFilterProxyModel_excludeCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterAcceptsRow), meth_Akonadi_AgentFilterProxyModel_filterAcceptsRow, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentFilterProxyModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentFilterProxyModel,
        {0}
    },
    {
        sipNameNr_AgentFilterProxyModel,
        {0, 255, 0},
        5, methods_Akonadi_AgentFilterProxyModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentFilterProxyModel,
    0,
    init_type_Akonadi_AgentFilterProxyModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentFilterProxyModel,
    0,
    0,
    0,
    release_Akonadi_AgentFilterProxyModel,
    cast_Akonadi_AgentFilterProxyModel,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentFilterProxyModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentfactory.sip"
#include <akonadi/agentfactory.h>
#line 5306 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5310 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5313 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5316 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5319 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5322 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5328 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5331 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5334 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5337 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5343 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5346 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentFactoryBase : public Akonadi::AgentFactoryBase
{
public:
    sipAkonadi_AgentFactoryBase(const char*,QObject*);
    virtual ~sipAkonadi_AgentFactoryBase();

    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*);
    QObject* createInstance(const QString&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipAkonadi_AgentFactoryBase::sipAkonadi_AgentFactoryBase(const char*a0,QObject*a1): Akonadi::AgentFactoryBase(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_AgentFactoryBase::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentFactoryBase);
}

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

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

    return _id;
}

void *sipAkonadi_AgentFactoryBase::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentFactoryBase, _clname)) ? this : Akonadi::AgentFactoryBase::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject* sipAkonadi_AgentFactoryBase::createInstance(const QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    extern QObject* sipVH_akonadi_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

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


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

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

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AgentFactoryBase, sipName_createInstance);
                return NULL;
            }

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_AgentFactoryBase, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->createComponentData(*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_AgentFactoryBase, sipName_createComponentData, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentFactoryBase)
        return ptr;

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

    return NULL;
}


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

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


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

    {
        const char* a0;
        PyObject *a0Keep;
        QObject* a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentFactoryBase[] = {
    {SIP_MLNAME_CAST(sipName_createComponentData), meth_Akonadi_AgentFactoryBase_createComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createInstance), meth_Akonadi_AgentFactoryBase_createInstance, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentFactoryBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentFactoryBase,
        {0}
    },
    {
        sipNameNr_AgentFactoryBase,
        {0, 255, 0},
        2, methods_Akonadi_AgentFactoryBase,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentFactoryBase,
    0,
    init_type_Akonadi_AgentFactoryBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentFactoryBase,
    0,
    0,
    0,
    release_Akonadi_AgentFactoryBase,
    cast_Akonadi_AgentFactoryBase,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentFactoryBase::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 5755 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 5759 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 513 "/usr/share/python3-sip/PyQt4/QtCore/qset.sip"
#include <qset.h>
#line 5762 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5765 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 5768 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentBase_ObserverV2 : public Akonadi::AgentBase::ObserverV2
{
public:
    sipAkonadi_AgentBase_ObserverV2();
    sipAkonadi_AgentBase_ObserverV2(const Akonadi::AgentBase::ObserverV2&);
    virtual ~sipAkonadi_AgentBase_ObserverV2();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void collectionRemoved(const Akonadi::Collection&);
    void collectionAdded(const Akonadi::Collection&,const Akonadi::Collection&);
    void itemRemoved(const Akonadi::Item&);
    void itemChanged(const Akonadi::Item&,const QSet<QByteArray>&);
    void itemAdded(const Akonadi::Item&,const Akonadi::Collection&);
    void collectionChanged(const Akonadi::Collection&,const QSet<QByteArray>&);
    void collectionMoved(const Akonadi::Collection&,const Akonadi::Collection&,const Akonadi::Collection&);
    void itemUnlinked(const Akonadi::Item&,const Akonadi::Collection&);
    void itemLinked(const Akonadi::Item&,const Akonadi::Collection&);
    void itemMoved(const Akonadi::Item&,const Akonadi::Collection&,const Akonadi::Collection&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[10];
};

sipAkonadi_AgentBase_ObserverV2::sipAkonadi_AgentBase_ObserverV2(): Akonadi::AgentBase::ObserverV2(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_AgentBase_ObserverV2::sipAkonadi_AgentBase_ObserverV2(const Akonadi::AgentBase::ObserverV2& a0): Akonadi::AgentBase::ObserverV2(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::collectionRemoved(a0);
        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_AgentBase_ObserverV2::collectionAdded(const Akonadi::Collection& a0,const Akonadi::Collection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::collectionAdded(a0,a1);
        return;
    }

    extern void sipVH_akonadi_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Collection&,const Akonadi::Collection&);

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

void sipAkonadi_AgentBase_ObserverV2::itemRemoved(const Akonadi::Item& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::itemRemoved(a0);
        return;
    }

    extern void sipVH_akonadi_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&);

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

void sipAkonadi_AgentBase_ObserverV2::itemChanged(const Akonadi::Item& a0,const QSet<QByteArray>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::itemChanged(a0,a1);
        return;
    }

    extern void sipVH_akonadi_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const QSet<QByteArray>&);

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

void sipAkonadi_AgentBase_ObserverV2::itemAdded(const Akonadi::Item& a0,const Akonadi::Collection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::itemAdded(a0,a1);
        return;
    }

    extern void sipVH_akonadi_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const Akonadi::Collection&);

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

void sipAkonadi_AgentBase_ObserverV2::collectionChanged(const Akonadi::Collection& a0,const QSet<QByteArray>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::collectionChanged(a0,a1);
        return;
    }

    extern void sipVH_akonadi_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Collection&,const QSet<QByteArray>&);

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

void sipAkonadi_AgentBase_ObserverV2::collectionMoved(const Akonadi::Collection& a0,const Akonadi::Collection& a1,const Akonadi::Collection& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::collectionMoved(a0,a1,a2);
        return;
    }

    extern void sipVH_akonadi_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Collection&,const Akonadi::Collection&,const Akonadi::Collection&);

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

void sipAkonadi_AgentBase_ObserverV2::itemUnlinked(const Akonadi::Item& a0,const Akonadi::Collection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::itemUnlinked(a0,a1);
        return;
    }

    extern void sipVH_akonadi_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const Akonadi::Collection&);

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

void sipAkonadi_AgentBase_ObserverV2::itemLinked(const Akonadi::Item& a0,const Akonadi::Collection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::itemLinked(a0,a1);
        return;
    }

    extern void sipVH_akonadi_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const Akonadi::Collection&);

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

void sipAkonadi_AgentBase_ObserverV2::itemMoved(const Akonadi::Item& a0,const Akonadi::Collection& a1,const Akonadi::Collection& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::ObserverV2::itemMoved(a0,a1,a2);
        return;
    }

    extern void sipVH_akonadi_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const Akonadi::Collection&,const Akonadi::Collection&);

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


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

    {
        const Akonadi::Item* a0;
        const Akonadi::Collection* a1;
        const Akonadi::Collection* a2;
        Akonadi::AgentBase::ObserverV2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_Akonadi_AgentBase_ObserverV2, &sipCpp, sipType_Akonadi_Item, &a0, sipType_Akonadi_Collection, &a1, sipType_Akonadi_Collection, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::ObserverV2::itemMoved(*a0,*a1,*a2) : sipCpp->itemMoved(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Item* a0;
        const Akonadi::Collection* a1;
        Akonadi::AgentBase::ObserverV2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Akonadi_AgentBase_ObserverV2, &sipCpp, sipType_Akonadi_Item, &a0, sipType_Akonadi_Collection, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::ObserverV2::itemLinked(*a0,*a1) : sipCpp->itemLinked(*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_ObserverV2, sipName_itemLinked, NULL);

    return NULL;
}


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

    {
        const Akonadi::Item* a0;
        const Akonadi::Collection* a1;
        Akonadi::AgentBase::ObserverV2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Akonadi_AgentBase_ObserverV2, &sipCpp, sipType_Akonadi_Item, &a0, sipType_Akonadi_Collection, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::ObserverV2::itemUnlinked(*a0,*a1) : sipCpp->itemUnlinked(*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_ObserverV2, sipName_itemUnlinked, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection* a0;
        const Akonadi::Collection* a1;
        const Akonadi::Collection* a2;
        Akonadi::AgentBase::ObserverV2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_Akonadi_AgentBase_ObserverV2, &sipCpp, sipType_Akonadi_Collection, &a0, sipType_Akonadi_Collection, &a1, sipType_Akonadi_Collection, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::ObserverV2::collectionMoved(*a0,*a1,*a2) : sipCpp->collectionMoved(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Collection* a0;
        const QSet<QByteArray>* a1;
        int a1State = 0;
        Akonadi::AgentBase::ObserverV2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_Akonadi_AgentBase_ObserverV2, &sipCpp, sipType_Akonadi_Collection, &a0, sipType_QSet_0100QByteArray,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::ObserverV2::collectionChanged(*a0,*a1) : sipCpp->collectionChanged(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QSet<QByteArray> *>(a1),sipType_QSet_0100QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentBase_ObserverV2)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_AgentBase_Observer)->ctd_cast((Akonadi::AgentBase::Observer *)(Akonadi::AgentBase::ObserverV2 *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_AgentBase_ObserverV2 *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::AgentBase::ObserverV2 *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Akonadi_AgentBase_ObserverV2(SIP_SSIZE_T);}
static void *array_Akonadi_AgentBase_ObserverV2(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::AgentBase::ObserverV2[sipNrElem];
}


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::AgentBase::ObserverV2* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentBase_ObserverV2[] = {
    {SIP_MLNAME_CAST(sipName_collectionChanged), meth_Akonadi_AgentBase_ObserverV2_collectionChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionMoved), meth_Akonadi_AgentBase_ObserverV2_collectionMoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemLinked), meth_Akonadi_AgentBase_ObserverV2_itemLinked, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemMoved), meth_Akonadi_AgentBase_ObserverV2_itemMoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemUnlinked), meth_Akonadi_AgentBase_ObserverV2_itemUnlinked, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentBase_ObserverV2 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentBase__ObserverV2,
        {0}
    },
    {
        sipNameNr_ObserverV2,
        {5, 255, 0},
        5, methods_Akonadi_AgentBase_ObserverV2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentBase_ObserverV2,
    0,
    init_type_Akonadi_AgentBase_ObserverV2,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentBase_ObserverV2,
    assign_Akonadi_AgentBase_ObserverV2,
    array_Akonadi_AgentBase_ObserverV2,
    copy_Akonadi_AgentBase_ObserverV2,
    release_Akonadi_AgentBase_ObserverV2,
    cast_Akonadi_AgentBase_ObserverV2,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 6321 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 6325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 6328 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 513 "/usr/share/python3-sip/PyQt4/QtCore/qset.sip"
#include <qset.h>
#line 6331 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6334 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentBase_Observer : public Akonadi::AgentBase::Observer
{
public:
    sipAkonadi_AgentBase_Observer();
    sipAkonadi_AgentBase_Observer(const Akonadi::AgentBase::Observer&);
    virtual ~sipAkonadi_AgentBase_Observer();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void collectionRemoved(const Akonadi::Collection&);
    void collectionChanged(const Akonadi::Collection&);
    void collectionAdded(const Akonadi::Collection&,const Akonadi::Collection&);
    void itemRemoved(const Akonadi::Item&);
    void itemChanged(const Akonadi::Item&,const QSet<QByteArray>&);
    void itemAdded(const Akonadi::Item&,const Akonadi::Collection&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[6];
};

sipAkonadi_AgentBase_Observer::sipAkonadi_AgentBase_Observer(): Akonadi::AgentBase::Observer(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_AgentBase_Observer::sipAkonadi_AgentBase_Observer(const Akonadi::AgentBase::Observer& a0): Akonadi::AgentBase::Observer(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::Observer::collectionRemoved(a0);
        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_AgentBase_Observer::collectionChanged(const Akonadi::Collection& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::Observer::collectionChanged(a0);
        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_AgentBase_Observer::collectionAdded(const Akonadi::Collection& a0,const Akonadi::Collection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::Observer::collectionAdded(a0,a1);
        return;
    }

    extern void sipVH_akonadi_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Collection&,const Akonadi::Collection&);

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

void sipAkonadi_AgentBase_Observer::itemRemoved(const Akonadi::Item& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::Observer::itemRemoved(a0);
        return;
    }

    extern void sipVH_akonadi_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&);

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

void sipAkonadi_AgentBase_Observer::itemChanged(const Akonadi::Item& a0,const QSet<QByteArray>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::Observer::itemChanged(a0,a1);
        return;
    }

    extern void sipVH_akonadi_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const QSet<QByteArray>&);

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

void sipAkonadi_AgentBase_Observer::itemAdded(const Akonadi::Item& a0,const Akonadi::Collection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::Observer::itemAdded(a0,a1);
        return;
    }

    extern void sipVH_akonadi_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const Akonadi::Collection&);

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


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

    {
        const Akonadi::Item* a0;
        const Akonadi::Collection* a1;
        Akonadi::AgentBase::Observer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Akonadi_AgentBase_Observer, &sipCpp, sipType_Akonadi_Item, &a0, sipType_Akonadi_Collection, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::Observer::itemAdded(*a0,*a1) : sipCpp->itemAdded(*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_Observer, sipName_itemAdded, NULL);

    return NULL;
}


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

    {
        const Akonadi::Item* a0;
        const QSet<QByteArray>* a1;
        int a1State = 0;
        Akonadi::AgentBase::Observer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_Akonadi_AgentBase_Observer, &sipCpp, sipType_Akonadi_Item, &a0, sipType_QSet_0100QByteArray,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::Observer::itemChanged(*a0,*a1) : sipCpp->itemChanged(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QSet<QByteArray> *>(a1),sipType_QSet_0100QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Item* a0;
        Akonadi::AgentBase::Observer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_AgentBase_Observer, &sipCpp, sipType_Akonadi_Item, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::Observer::itemRemoved(*a0) : sipCpp->itemRemoved(*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_Observer, sipName_itemRemoved, NULL);

    return NULL;
}


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

    {
        const Akonadi::Collection* a0;
        const Akonadi::Collection* a1;
        Akonadi::AgentBase::Observer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Akonadi_AgentBase_Observer, &sipCpp, sipType_Akonadi_Collection, &a0, sipType_Akonadi_Collection, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::Observer::collectionAdded(*a0,*a1) : sipCpp->collectionAdded(*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_Observer, sipName_collectionAdded, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_AgentBase_Observer, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::Observer::collectionChanged(*a0) : sipCpp->collectionChanged(*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_Observer, sipName_collectionChanged, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_AgentBase_Observer, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::Observer::collectionRemoved(*a0) : sipCpp->collectionRemoved(*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_Observer, sipName_collectionRemoved, NULL);

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_AgentBase_Observer *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::AgentBase::Observer *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Akonadi_AgentBase_Observer(SIP_SSIZE_T);}
static void *array_Akonadi_AgentBase_Observer(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::AgentBase::Observer[sipNrElem];
}


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::AgentBase::Observer* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Akonadi_AgentBase_Observer[] = {
    {SIP_MLNAME_CAST(sipName_collectionAdded), meth_Akonadi_AgentBase_Observer_collectionAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionChanged), meth_Akonadi_AgentBase_Observer_collectionChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionRemoved), meth_Akonadi_AgentBase_Observer_collectionRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemAdded), meth_Akonadi_AgentBase_Observer_itemAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemChanged), meth_Akonadi_AgentBase_Observer_itemChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemRemoved), meth_Akonadi_AgentBase_Observer_itemRemoved, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentBase_Observer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentBase__Observer,
        {0}
    },
    {
        sipNameNr_Observer,
        {5, 255, 0},
        6, methods_Akonadi_AgentBase_Observer,
        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_AgentBase_Observer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentBase_Observer,
    assign_Akonadi_AgentBase_Observer,
    array_Akonadi_AgentBase_Observer,
    copy_Akonadi_AgentBase_Observer,
    release_Akonadi_AgentBase_Observer,
    cast_Akonadi_AgentBase_Observer,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 6825 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6829 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 6832 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 6835 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6838 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6841 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6844 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 6847 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/changerecorder.sip"
#include <akonadi/changerecorder.h>
#line 6850 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentbase.sip"
#include <akonadi/agentbase.h>
#line 6855 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6858 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6861 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6864 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 6867 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6870 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6873 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6876 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6879 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 6882 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6885 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6888 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentBase : public Akonadi::AgentBase
{
public:
    sipAkonadi_AgentBase(const QString&);
    virtual ~sipAkonadi_AgentBase();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void doSetOnline(bool);
    void aboutToQuit();
    void cleanup();
    void configure(WId);
    QString progressMessage() const;
    int progress() const;
    QString statusMessage() const;
    int status() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[15];
};

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

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

const QMetaObject *sipAkonadi_AgentBase::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentBase);
}

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

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

    return _id;
}

void *sipAkonadi_AgentBase::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentBase, _clname)) ? this : Akonadi::AgentBase::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::AgentBase::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_AgentBase::doSetOnline(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::doSetOnline(a0);
        return;
    }

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

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

void sipAkonadi_AgentBase::aboutToQuit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::aboutToQuit();
        return;
    }

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

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

void sipAkonadi_AgentBase::cleanup()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::cleanup();
        return;
    }

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

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

void sipAkonadi_AgentBase::configure(WId a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::AgentBase::configure(a0);
        return;
    }

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

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

QString sipAkonadi_AgentBase::progressMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentBase::progressMessage();

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

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

int sipAkonadi_AgentBase::progress() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentBase::progress();

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

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

QString sipAkonadi_AgentBase::statusMessage() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentBase::statusMessage();

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

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

int sipAkonadi_AgentBase::status() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::AgentBase::status();

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

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


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

    {
        const Akonadi::AgentBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::status() : sipCpp->status());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::AgentBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::progress() : sipCpp->progress());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        WId a0;
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::configure(a0) : sipCpp->configure(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_AgentBase, sipName_configure, NULL);

    return NULL;
}


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

    {
        const Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp))
        {
            WId sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->winIdForDialogs();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AgentBase, &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_AgentBase, sipName_identifier, NULL);

    return NULL;
}


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

    {
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::cleanup() : sipCpp->cleanup());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::AgentBase::Observer* a0;
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp, sipType_Akonadi_AgentBase_Observer, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->registerObserver(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_AgentBase, sipName_registerObserver, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAgentName(*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_AgentBase, sipName_setAgentName, NULL);

    return NULL;
}


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

    {
        const Akonadi::AgentBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::aboutToQuit() : sipCpp->aboutToQuit());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp))
        {
            Akonadi::ChangeRecorder*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->changeRecorder();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_AgentBase, &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_AgentBase, sipName_changeProcessed, NULL);

    return NULL;
}


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

    {
        const Akonadi::AgentBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOnline();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNeedsNetwork(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOnline(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AgentBase::doSetOnline(a0) : sipCpp->doSetOnline(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(Akonadi::AgentBase::componentData());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::AgentBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_AgentBase, &sipCpp))
        {
            KSharedConfigPtr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KSharedConfigPtr(sipCpp->config());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentBase)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_AgentBase(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentBase[] = {
    {SIP_MLNAME_CAST(sipName_aboutToQuit), meth_Akonadi_AgentBase_aboutToQuit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_agentName), meth_Akonadi_AgentBase_agentName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeProcessed), meth_Akonadi_AgentBase_changeProcessed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeRecorder), meth_Akonadi_AgentBase_changeRecorder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cleanup), meth_Akonadi_AgentBase_cleanup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_componentData), meth_Akonadi_AgentBase_componentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_config), meth_Akonadi_AgentBase_config, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configure), meth_Akonadi_AgentBase_configure, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSetOnline), meth_Akonadi_AgentBase_doSetOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifier), meth_Akonadi_AgentBase_identifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOnline), meth_Akonadi_AgentBase_isOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_progress), meth_Akonadi_AgentBase_progress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_progressMessage), meth_Akonadi_AgentBase_progressMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerObserver), meth_Akonadi_AgentBase_registerObserver, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAgentName), meth_Akonadi_AgentBase_setAgentName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNeedsNetwork), meth_Akonadi_AgentBase_setNeedsNetwork, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOnline), meth_Akonadi_AgentBase_setOnline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_Akonadi_AgentBase_status, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusMessage), meth_Akonadi_AgentBase_statusMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_winIdForDialogs), meth_Akonadi_AgentBase_winIdForDialogs, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_AgentBase[] = {
    {sipName_Broken, static_cast<int>(Akonadi::AgentBase::Broken), 8},
    {sipName_Idle, static_cast<int>(Akonadi::AgentBase::Idle), 8},
    {sipName_Running, static_cast<int>(Akonadi::AgentBase::Running), 8},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_AgentBase[] = {
    {"advancedStatus(QVariantMap)", 0, 0, 0},
    {"configurationDialogRejected()", 0, 0, 0},
    {"configurationDialogAccepted()", 0, 0, 0},
    {"onlineChanged(bool)", 0, 0, 0},
    {"reloadConfiguration()", 0, 0, 0},
    {"abortRequested()", 0, 0, 0},
    {"error(QString)", 0, 0, 0},
    {"warning(QString)", 0, 0, 0},
    {"percent(int)", 0, 0, 0},
    {"agentNameChanged(QString)", 0, 0, 0},
    {"status(int,QString)", 0, &methods_Akonadi_AgentBase[17], 0},
    {"status(int)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentBase,
        {0}
    },
    {
        sipNameNr_AgentBase,
        {0, 255, 0},
        20, methods_Akonadi_AgentBase,
        3, enummembers_Akonadi_AgentBase,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentBase,
    0,
    init_type_Akonadi_AgentBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentBase,
    0,
    0,
    0,
    release_Akonadi_AgentBase,
    cast_Akonadi_AgentBase,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentBase::staticMetaObject,
    0,
    signals_Akonadi_AgentBase,
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentactionmanager.sip"
#include <akonadi/agentactionmanager.h>
#line 7935 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 7939 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 7942 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7945 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 7948 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7951 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 7954 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 7957 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7960 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 94 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 7963 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7966 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7969 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7972 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7975 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7978 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7981 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7984 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7987 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7990 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 7993 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7996 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7999 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart7.cpp"


class sipAkonadi_AgentActionManager : public Akonadi::AgentActionManager
{
public:
    sipAkonadi_AgentActionManager(KActionCollection*,QWidget*);
    virtual ~sipAkonadi_AgentActionManager();

    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_AgentActionManager(const sipAkonadi_AgentActionManager &);
    sipAkonadi_AgentActionManager &operator = (const sipAkonadi_AgentActionManager &);

    char sipPyMethods[7];
};

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

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

const QMetaObject *sipAkonadi_AgentActionManager::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_AgentActionManager);
}

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

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

    return _id;
}

void *sipAkonadi_AgentActionManager::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_AgentActionManager, _clname)) ? this : Akonadi::AgentActionManager::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_AgentActionManager, &sipCpp, sipType_QItemSelectionModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectionModel(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_AgentActionManager, sipName_setSelectionModel, NULL);

    return NULL;
}


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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AgentActionManager, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCapabilityFilter(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_AgentActionManager, &sipCpp, sipType_Akonadi_AgentActionManager_Type, &a0))
        {
            KAction*sipRes;

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

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

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

    return NULL;
}


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

    {
        Akonadi::AgentActionManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_AgentActionManager, &sipCpp, sipType_Akonadi_AgentActionManager_Type, &a0))
        {
            KAction*sipRes;

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|b", &sipSelf, sipType_Akonadi_AgentActionManager, &sipCpp, sipType_Akonadi_AgentActionManager_Type, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->interceptAction(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::AgentActionManager *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEJ9", &sipSelf, sipType_Akonadi_AgentActionManager, &sipCpp, sipType_Akonadi_AgentActionManager_Type, &a0, sipType_Akonadi_AgentActionManager_TextContext, &a1, sipType_KLocalizedString, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContextText(a0,a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_AgentActionManager)
        return ptr;

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

    return NULL;
}


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

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


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

    {
        KActionCollection* a0;
        QWidget* a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_AgentActionManager[] = {
    {SIP_MLNAME_CAST(sipName_action), meth_Akonadi_AgentActionManager_action, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAction), meth_Akonadi_AgentActionManager_createAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAllActions), meth_Akonadi_AgentActionManager_createAllActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_interceptAction), meth_Akonadi_AgentActionManager_interceptAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedAgentInstances), meth_Akonadi_AgentActionManager_selectedAgentInstances, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilityFilter), meth_Akonadi_AgentActionManager_setCapabilityFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContextText), meth_Akonadi_AgentActionManager_setContextText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeTypeFilter), meth_Akonadi_AgentActionManager_setMimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectionModel), meth_Akonadi_AgentActionManager_setSelectionModel, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_AgentActionManager[] = {
    {sipName_ConfigureAgentInstance, static_cast<int>(Akonadi::AgentActionManager::ConfigureAgentInstance), 4},
    {sipName_CreateAgentInstance, static_cast<int>(Akonadi::AgentActionManager::CreateAgentInstance), 4},
    {sipName_DeleteAgentInstance, static_cast<int>(Akonadi::AgentActionManager::DeleteAgentInstance), 4},
    {sipName_DialogText, static_cast<int>(Akonadi::AgentActionManager::DialogText), 3},
    {sipName_DialogTitle, static_cast<int>(Akonadi::AgentActionManager::DialogTitle), 3},
    {sipName_ErrorMessageText, static_cast<int>(Akonadi::AgentActionManager::ErrorMessageText), 3},
    {sipName_ErrorMessageTitle, static_cast<int>(Akonadi::AgentActionManager::ErrorMessageTitle), 3},
    {sipName_LastType, static_cast<int>(Akonadi::AgentActionManager::LastType), 4},
    {sipName_MessageBoxAlternativeText, static_cast<int>(Akonadi::AgentActionManager::MessageBoxAlternativeText), 3},
    {sipName_MessageBoxText, static_cast<int>(Akonadi::AgentActionManager::MessageBoxText), 3},
    {sipName_MessageBoxTitle, static_cast<int>(Akonadi::AgentActionManager::MessageBoxTitle), 3},
};


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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AgentActionManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AgentActionManager,
        {0}
    },
    {
        sipNameNr_AgentActionManager,
        {0, 255, 0},
        9, methods_Akonadi_AgentActionManager,
        11, enummembers_Akonadi_AgentActionManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AgentActionManager,
    0,
    init_type_Akonadi_AgentActionManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AgentActionManager,
    0,
    0,
    0,
    release_Akonadi_AgentActionManager,
    cast_Akonadi_AgentActionManager,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::AgentActionManager::staticMetaObject,
    0,
    signals_Akonadi_AgentActionManager,
};




pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Akonadi,
        {0}
    },
    {
        sipNameNr_Akonadi,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
