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

#include "sipAPIakonadi.h"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/etmviewstatesaver.sip"
#include <akonadi/etmviewstatesaver.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/share/python3-sip/PyQt4/QtCore/qpair.sip"
#include <qpair.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 89 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 64 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 67 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 70 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 73 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 76 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 79 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 82 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 85 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_ETMViewStateSaver : public Akonadi::ETMViewStateSaver
{
public:
    sipAkonadi_ETMViewStateSaver(QObject*);
    virtual ~sipAkonadi_ETMViewStateSaver();

    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 indexToConfigString(const QModelIndex&) const;
    QModelIndex indexFromConfigString(const QAbstractItemModel*,const QString&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[9];
};

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

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

const QMetaObject *sipAkonadi_ETMViewStateSaver::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_ETMViewStateSaver);
}

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

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

    return _id;
}

void *sipAkonadi_ETMViewStateSaver::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_ETMViewStateSaver, _clname)) ? this : Akonadi::ETMViewStateSaver::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::ETMViewStateSaver::indexToConfigString(a0);

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

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

QModelIndex sipAkonadi_ETMViewStateSaver::indexFromConfigString(const QAbstractItemModel*a0,const QString& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::ETMViewStateSaver::indexFromConfigString(a0,a1);

    typedef QModelIndex (*sipVH_kdeui_38)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QAbstractItemModel*,const QString&);

    return ((sipVH_kdeui_38)(sipModuleAPI_akonadi_kdeui->em_virthandlers[38]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_ETMViewStateSaver, &sipCpp, sipType_QList_0100Akonadi_Collection,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->selectCollections(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Collection::List *>(a0),sipType_QList_0100Akonadi_Collection,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Item::List* a0;
        int a0State = 0;
        Akonadi::ETMViewStateSaver *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_ETMViewStateSaver, &sipCpp, sipType_QList_0100Akonadi_Item,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->selectItems(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Item::List *>(a0),sipType_QList_0100Akonadi_Item,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QAbstractItemModel* a0;
        const QString* a1;
        int a1State = 0;
        const Akonadi::ETMViewStateSaver *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J1", &sipSelf, sipType_Akonadi_ETMViewStateSaver, &sipCpp, sipType_QAbstractItemModel, &a0, sipType_QString,&a1, &a1State))
        {
            QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->Akonadi::ETMViewStateSaver::indexFromConfigString(a0,*a1) : sipCpp->indexFromConfigString(a0,*a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_ETMViewStateSaver, &sipCpp, sipType_QModelIndex, &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->Akonadi::ETMViewStateSaver::indexToConfigString(*a0) : sipCpp->indexToConfigString(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_ETMViewStateSaver[] = {
    {SIP_MLNAME_CAST(sipName_indexFromConfigString), meth_Akonadi_ETMViewStateSaver_indexFromConfigString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_indexToConfigString), meth_Akonadi_ETMViewStateSaver_indexToConfigString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectCollections), meth_Akonadi_ETMViewStateSaver_selectCollections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectItems), meth_Akonadi_ETMViewStateSaver_selectItems, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ETMViewStateSaver = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ETMViewStateSaver,
        {0}
    },
    {
        sipNameNr_ETMViewStateSaver,
        {0, 255, 0},
        4, methods_Akonadi_ETMViewStateSaver,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_ETMViewStateSaver,
    0,
    init_type_Akonadi_ETMViewStateSaver,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_ETMViewStateSaver,
    0,
    0,
    0,
    release_Akonadi_ETMViewStateSaver,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::ETMViewStateSaver::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entitytreeviewstatesaver.sip"
#include <akonadi/entitytreeviewstatesaver.h>
#line 544 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qtreeview.sip"
#include <qtreeview.h>
#line 548 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 551 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 554 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 557 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 560 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 563 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 566 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 569 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 572 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 575 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 578 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 581 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 584 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 587 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 590 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_EntityTreeViewStateSaver : public Akonadi::EntityTreeViewStateSaver
{
public:
    sipAkonadi_EntityTreeViewStateSaver(QTreeView*);
    virtual ~sipAkonadi_EntityTreeViewStateSaver();

    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_EntityTreeViewStateSaver(const sipAkonadi_EntityTreeViewStateSaver &);
    sipAkonadi_EntityTreeViewStateSaver &operator = (const sipAkonadi_EntityTreeViewStateSaver &);

    char sipPyMethods[7];
};

sipAkonadi_EntityTreeViewStateSaver::sipAkonadi_EntityTreeViewStateSaver(QTreeView*a0): Akonadi::EntityTreeViewStateSaver(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_EntityTreeViewStateSaver::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_EntityTreeViewStateSaver);
}

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

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

    return _id;
}

void *sipAkonadi_EntityTreeViewStateSaver::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_EntityTreeViewStateSaver, _clname)) ? this : Akonadi::EntityTreeViewStateSaver::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    {
        KConfigGroup* a0;
        const Akonadi::EntityTreeViewStateSaver *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_EntityTreeViewStateSaver, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->saveState(*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_EntityTreeViewStateSaver, sipName_saveState, NULL);

    return NULL;
}


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

    {
        const KConfigGroup* a0;
        const Akonadi::EntityTreeViewStateSaver *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_EntityTreeViewStateSaver, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->restoreState(*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_EntityTreeViewStateSaver, sipName_restoreState, NULL);

    return NULL;
}


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

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


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

    {
        QTreeView* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTreeView, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_EntityTreeViewStateSaver(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_EntityTreeViewStateSaver[] = {
    {SIP_MLNAME_CAST(sipName_restoreState), meth_Akonadi_EntityTreeViewStateSaver_restoreState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveState), meth_Akonadi_EntityTreeViewStateSaver_saveState, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityTreeViewStateSaver = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityTreeViewStateSaver,
        {0}
    },
    {
        sipNameNr_EntityTreeViewStateSaver,
        {0, 255, 0},
        2, methods_Akonadi_EntityTreeViewStateSaver,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityTreeViewStateSaver,
    0,
    init_type_Akonadi_EntityTreeViewStateSaver,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityTreeViewStateSaver,
    0,
    0,
    0,
    release_Akonadi_EntityTreeViewStateSaver,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::EntityTreeViewStateSaver::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entitytreeview.sip"
#include <akonadi/entitytreeview.h>
#line 950 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 954 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 957 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 960 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 963 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 966 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 969 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 972 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 975 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 978 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 981 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 169 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 984 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 987 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 990 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 993 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 996 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 999 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 1002 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 1005 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 1130 "/usr/share/python3-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 1008 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1011 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1014 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 89 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 1017 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 1020 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1023 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1026 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 1029 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1032 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qheaderview.sip"
#include <qheaderview.h>
#line 1035 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 89 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 1038 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1041 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1044 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemdelegate.sip"
#include <qabstractitemdelegate.h>
#line 1047 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1050 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1053 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1056 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1059 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1062 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 1065 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 1068 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1071 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1074 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qscrollbar.sip"
#include <qscrollbar.h>
#line 1077 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1080 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 1083 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qframe.sip"
#include <qframe.h>
#line 1086 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1089 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1092 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 1095 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 1098 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1101 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 1104 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1107 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 1113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 1116 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 1119 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1122 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 1125 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1128 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1131 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1134 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1137 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1140 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1143 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 1146 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 1149 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 1152 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1155 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 1158 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 1161 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 1164 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1167 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 1170 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 1173 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 1176 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 1179 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 1182 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1185 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1191 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1194 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1197 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1200 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_EntityTreeView : public Akonadi::EntityTreeView
{
public:
    sipAkonadi_EntityTreeView(QWidget*);
    sipAkonadi_EntityTreeView(KXMLGUIClient*,QWidget*);
    virtual ~sipAkonadi_EntityTreeView();

    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*);
    bool eventFilter(QObject*,QEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void closeEvent(QCloseEvent*);
    void moveEvent(QMoveEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void keyReleaseEvent(QKeyEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    void setVisible(bool);
    int devType() const;
    void changeEvent(QEvent*);
    void wheelEvent(QWheelEvent*);
    QSize sizeHint() const;
    QSize minimumSizeHint() const;
    void inputMethodEvent(QInputMethodEvent*);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void resizeEvent(QResizeEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    bool event(QEvent*);
    QStyleOptionViewItem viewOptions() const;
    QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex&,const QEvent*) const;
    bool edit(const QModelIndex&,QAbstractItemView::EditTrigger,QEvent*);
    void editorDestroyed(QObject*);
    void commitData(QWidget*);
    void closeEditor(QWidget*,QAbstractItemDelegate::EndEditHint);
    void horizontalScrollbarValueChanged(int);
    void verticalScrollbarValueChanged(int);
    void verticalScrollbarAction(int);
    void updateEditorGeometries();
    void updateEditorData();
    int sizeHintForRow(int) const;
    void selectionChanged(const QItemSelection&,const QItemSelection&);
    bool viewportEvent(QEvent*);
    bool isIndexHidden(const QModelIndex&) const;
    void horizontalScrollbarAction(int);
    int sizeHintForColumn(int) const;
    void updateGeometries();
    void keyPressEvent(QKeyEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    void drawBranches(QPainter*,const QRect&,const QModelIndex&) const;
    void drawRow(QPainter*,const QStyleOptionViewItem&,const QModelIndex&) const;
    void mouseReleaseEvent(QMouseEvent*);
    void paintEvent(QPaintEvent*);
    QModelIndexList selectedIndexes() const;
    QRegion visualRegionForSelection(const QItemSelection&) const;
    void setSelection(const QRect&,QItemSelectionModel::SelectionFlags);
    int verticalOffset() const;
    int horizontalOffset() const;
    QModelIndex moveCursor(QAbstractItemView::CursorAction,Qt::KeyboardModifiers);
    void rowsAboutToBeRemoved(const QModelIndex&,int,int);
    void rowsInserted(const QModelIndex&,int,int);
    void scrollContentsBy(int,int);
    void selectAll();
    void dataChanged(const QModelIndex&,const QModelIndex&);
    void reset();
    QModelIndex indexAt(const QPoint&) const;
    void scrollTo(const QModelIndex&,QAbstractItemView::ScrollHint);
    QRect visualRect(const QModelIndex&) const;
    void keyboardSearch(const QString&);
    void setSelectionModel(QItemSelectionModel*);
    void setRootIndex(const QModelIndex&);
    void startDrag(Qt::DropActions);
    void contextMenuEvent(QContextMenuEvent*);
    void dropEvent(QDropEvent*);
    void timerEvent(QTimerEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void setModel(QAbstractItemModel*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[87];
};

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

sipAkonadi_EntityTreeView::sipAkonadi_EntityTreeView(KXMLGUIClient*a0,QWidget*a1): Akonadi::EntityTreeView(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_EntityTreeView::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_EntityTreeView);
}

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

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

    return _id;
}

void *sipAkonadi_EntityTreeView::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_EntityTreeView, _clname)) ? this : Akonadi::EntityTreeView::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::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_EntityTreeView::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::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_EntityTreeView::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QStyleOptionViewItem sipAkonadi_EntityTreeView::viewOptions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::viewOptions();

    typedef QStyleOptionViewItem (*sipVH_QtGui_71)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

QItemSelectionModel::SelectionFlags sipAkonadi_EntityTreeView::selectionCommand(const QModelIndex& a0,const QEvent*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::selectionCommand(a0,a1);

    typedef QItemSelectionModel::SelectionFlags (*sipVH_QtGui_233)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QEvent*);

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

bool sipAkonadi_EntityTreeView::edit(const QModelIndex& a0,QAbstractItemView::EditTrigger a1,QEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::edit(a0,a1,a2);

    typedef bool (*sipVH_QtGui_234)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,QAbstractItemView::EditTrigger,QEvent*);

    return ((sipVH_QtGui_234)(sipModuleAPI_akonadi_QtGui->em_virthandlers[234]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_EntityTreeView::editorDestroyed(QObject*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::editorDestroyed(a0);
        return;
    }

    typedef void (*sipVH_QtGui_235)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*);

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

void sipAkonadi_EntityTreeView::commitData(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::commitData(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

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

void sipAkonadi_EntityTreeView::closeEditor(QWidget*a0,QAbstractItemDelegate::EndEditHint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::closeEditor(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_236)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,QAbstractItemDelegate::EndEditHint);

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

void sipAkonadi_EntityTreeView::horizontalScrollbarValueChanged(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::horizontalScrollbarValueChanged(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

void sipAkonadi_EntityTreeView::verticalScrollbarValueChanged(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::verticalScrollbarValueChanged(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

void sipAkonadi_EntityTreeView::verticalScrollbarAction(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::verticalScrollbarAction(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

void sipAkonadi_EntityTreeView::updateEditorGeometries()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::updateEditorGeometries();
        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_EntityTreeView::updateEditorData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

int sipAkonadi_EntityTreeView::sizeHintForRow(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::sizeHintForRow(a0);

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

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

void sipAkonadi_EntityTreeView::selectionChanged(const QItemSelection& a0,const QItemSelection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_selectionChanged);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::selectionChanged(a0,a1);
        return;
    }

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

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

bool sipAkonadi_EntityTreeView::viewportEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_viewportEvent);

    if (!sipMeth)
        return Akonadi::EntityTreeView::viewportEvent(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_EntityTreeView::isIndexHidden(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::isIndexHidden(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_EntityTreeView::horizontalScrollbarAction(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::horizontalScrollbarAction(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

int sipAkonadi_EntityTreeView::sizeHintForColumn(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::sizeHintForColumn(a0);

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

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

void sipAkonadi_EntityTreeView::updateGeometries()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

void sipAkonadi_EntityTreeView::drawBranches(QPainter*a0,const QRect& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::drawBranches(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QRect&,const QModelIndex&);

    ((sipVH_QtGui_47)(sipModuleAPI_akonadi_QtGui->em_virthandlers[47]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_EntityTreeView::drawRow(QPainter*a0,const QStyleOptionViewItem& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::drawRow(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QStyleOptionViewItem&,const QModelIndex&);

    ((sipVH_QtGui_48)(sipModuleAPI_akonadi_QtGui->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

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

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

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

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

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

QModelIndexList sipAkonadi_EntityTreeView::selectedIndexes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::selectedIndexes();

    typedef QList<QModelIndex> (*sipVH_QtGui_49)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

QRegion sipAkonadi_EntityTreeView::visualRegionForSelection(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::visualRegionForSelection(a0);

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

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

void sipAkonadi_EntityTreeView::setSelection(const QRect& a0,QItemSelectionModel::SelectionFlags a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[65],sipPySelf,NULL,sipName_setSelection);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::setSelection(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRect&,QItemSelectionModel::SelectionFlags);

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

int sipAkonadi_EntityTreeView::verticalOffset() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::verticalOffset();

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

int sipAkonadi_EntityTreeView::horizontalOffset() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::horizontalOffset();

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

QModelIndex sipAkonadi_EntityTreeView::moveCursor(QAbstractItemView::CursorAction a0,Qt::KeyboardModifiers a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[68],sipPySelf,NULL,sipName_moveCursor);

    if (!sipMeth)
        return Akonadi::EntityTreeView::moveCursor(a0,a1);

    typedef QModelIndex (*sipVH_QtGui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QAbstractItemView::CursorAction,Qt::KeyboardModifiers);

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

void sipAkonadi_EntityTreeView::rowsAboutToBeRemoved(const QModelIndex& a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[69],sipPySelf,NULL,sipName_rowsAboutToBeRemoved);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::rowsAboutToBeRemoved(a0,a1,a2);
        return;
    }

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

    ((sipVH_QtGui_53)(sipModuleAPI_akonadi_QtGui->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_EntityTreeView::rowsInserted(const QModelIndex& a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[70],sipPySelf,NULL,sipName_rowsInserted);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::rowsInserted(a0,a1,a2);
        return;
    }

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

    ((sipVH_QtGui_53)(sipModuleAPI_akonadi_QtGui->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_EntityTreeView::scrollContentsBy(int a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[71],sipPySelf,NULL,sipName_scrollContentsBy);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::scrollContentsBy(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);

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

void sipAkonadi_EntityTreeView::selectAll()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[72],sipPySelf,NULL,sipName_selectAll);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::selectAll();
        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_EntityTreeView::dataChanged(const QModelIndex& a0,const QModelIndex& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[73],sipPySelf,NULL,sipName_dataChanged);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::dataChanged(a0,a1);
        return;
    }

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

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

void sipAkonadi_EntityTreeView::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

QModelIndex sipAkonadi_EntityTreeView::indexAt(const QPoint& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::indexAt(a0);

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

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

void sipAkonadi_EntityTreeView::scrollTo(const QModelIndex& a0,QAbstractItemView::ScrollHint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[76],sipPySelf,NULL,sipName_scrollTo);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::scrollTo(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_55)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,QAbstractItemView::ScrollHint);

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

QRect sipAkonadi_EntityTreeView::visualRect(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeView::visualRect(a0);

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

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

void sipAkonadi_EntityTreeView::keyboardSearch(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[78],sipPySelf,NULL,sipName_keyboardSearch);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::keyboardSearch(a0);
        return;
    }

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

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

void sipAkonadi_EntityTreeView::setSelectionModel(QItemSelectionModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[79],sipPySelf,NULL,sipName_setSelectionModel);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::setSelectionModel(a0);
        return;
    }

    typedef void (*sipVH_QtGui_37)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QItemSelectionModel*);

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

void sipAkonadi_EntityTreeView::setRootIndex(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[80],sipPySelf,NULL,sipName_setRootIndex);

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

void sipAkonadi_EntityTreeView::startDrag(Qt::DropActions a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[81],sipPySelf,NULL,sipName_startDrag);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::startDrag(a0);
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::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_EntityTreeView::setModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[86],sipPySelf,NULL,sipName_setModel);

    if (!sipMeth)
    {
        Akonadi::EntityTreeView::setModel(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_EntityTreeView_setXmlGuiClient(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityTreeView_setXmlGuiClient(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KXMLGUIClient* a0;
        Akonadi::EntityTreeView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, sipType_KXMLGUIClient, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setXmlGuiClient(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_EntityTreeView, sipName_setXmlGuiClient, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, sipType_QAbstractItemModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeView::setModel(a0) : sipCpp->setModel(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_EntityTreeView, sipName_setModel, NULL);

    return NULL;
}


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

    {
        QDragMoveEvent* a0;
        Akonadi::EntityTreeView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeView::dragMoveEvent(a0) : sipCpp->dragMoveEvent(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_EntityTreeView, sipName_dragMoveEvent, NULL);

    return NULL;
}


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

    {
        QTimerEvent* a0;
        Akonadi::EntityTreeView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeView::timerEvent(a0) : sipCpp->timerEvent(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_EntityTreeView, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QDropEvent* a0;
        Akonadi::EntityTreeView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, sipType_QDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeView::dropEvent(a0) : sipCpp->dropEvent(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_EntityTreeView, sipName_dropEvent, NULL);

    return NULL;
}


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

    {
        QContextMenuEvent* a0;
        Akonadi::EntityTreeView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeView::contextMenuEvent(a0) : sipCpp->contextMenuEvent(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_EntityTreeView, sipName_contextMenuEvent, NULL);

    return NULL;
}


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

    {
        Qt::DropActions* a0;
        int a0State = 0;
        Akonadi::EntityTreeView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, sipType_Qt_DropActions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeView::startDrag(*a0) : sipCpp->startDrag(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::EntityTreeView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDropActionMenuEnabled(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_EntityTreeView, sipName_setDropActionMenuEnabled, NULL);

    return NULL;
}


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

    {
        const Akonadi::EntityTreeView *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDropActionMenuEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::EntityTreeView *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isManualSortingActive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::EntityTreeView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_EntityTreeView, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setManualSortingActive(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_EntityTreeView, sipName_setManualSortingActive, NULL);

    return NULL;
}


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

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

    return sipCppV;
}


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

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


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

    {
        QWidget* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        KXMLGUIClient* a0;
        QWidget* a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_EntityTreeView[] = {
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_Akonadi_EntityTreeView_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_Akonadi_EntityTreeView_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_Akonadi_EntityTreeView_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDropActionMenuEnabled), meth_Akonadi_EntityTreeView_isDropActionMenuEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isManualSortingActive), meth_Akonadi_EntityTreeView_isManualSortingActive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDropActionMenuEnabled), meth_Akonadi_EntityTreeView_setDropActionMenuEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setManualSortingActive), meth_Akonadi_EntityTreeView_setManualSortingActive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModel), meth_Akonadi_EntityTreeView_setModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXmlGuiClient), meth_Akonadi_EntityTreeView_setXmlGuiClient, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startDrag), meth_Akonadi_EntityTreeView_startDrag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_EntityTreeView_timerEvent, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityTreeView = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityTreeView,
        {0}
    },
    {
        sipNameNr_EntityTreeView,
        {0, 255, 0},
        11, methods_Akonadi_EntityTreeView,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityTreeView,
    0,
    init_type_Akonadi_EntityTreeView,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityTreeView,
    0,
    0,
    0,
    release_Akonadi_EntityTreeView,
    cast_Akonadi_EntityTreeView,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::EntityTreeView::staticMetaObject,
    0,
    signals_Akonadi_EntityTreeView,
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entitytreemodel.sip"
#include <akonadi/entitytreemodel.h>
#line 3321 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/changerecorder.sip"
#include <akonadi/changerecorder.h>
#line 3325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3328 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3331 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3334 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3337 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 3340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 3343 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3346 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3349 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3352 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 3355 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3358 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3361 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3364 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3367 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 3370 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3373 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 3376 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 3379 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 3382 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3385 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3388 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3391 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3394 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3397 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3400 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 3403 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3406 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3409 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_EntityTreeModel : public Akonadi::EntityTreeModel
{
public:
    sipAkonadi_EntityTreeModel(Akonadi::ChangeRecorder*,QObject*);
    virtual ~sipAkonadi_EntityTreeModel();

    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;
    QModelIndex buddy(const QModelIndex&) const;
    void sort(int,Qt::SortOrder);
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    bool entityMatch(const Akonadi::Collection&,const QVariant&,Qt::MatchFlags) const;
    bool entityMatch(const Akonadi::Item&,const QVariant&,Qt::MatchFlags) const;
    int entityColumnCount(Akonadi::EntityTreeModel::HeaderGroup) const;
    QVariant entityHeaderData(int,Qt::Orientation,int,Akonadi::EntityTreeModel::HeaderGroup) const;
    QVariant entityData(const Akonadi::Collection&,int,int) const;
    QVariant entityData(const Akonadi::Item&,int,int) const;
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    bool hasChildren(const QModelIndex&) const;
    void fetchMore(const QModelIndex&);
    bool canFetchMore(const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    QModelIndex index(int,int,const QModelIndex&) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    QMimeData* mimeData(const QModelIndexList&) const;
    Qt::DropActions supportedDropActions() const;
    QStringList mimeTypes() const;
    Qt::ItemFlags flags(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_EntityTreeModel(const sipAkonadi_EntityTreeModel &);
    sipAkonadi_EntityTreeModel &operator = (const sipAkonadi_EntityTreeModel &);

    char sipPyMethods[37];
};

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

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

const QMetaObject *sipAkonadi_EntityTreeModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_EntityTreeModel);
}

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

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

    return _id;
}

void *sipAkonadi_EntityTreeModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_EntityTreeModel, _clname)) ? this : Akonadi::EntityTreeModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::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_EntityTreeModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::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_EntityTreeModel::entityMatch(const Akonadi::Collection& a0,const QVariant& a1,Qt::MatchFlags a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::entityMatch(a0,a1,a2);

    extern bool sipVH_akonadi_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Collection&,const QVariant&,Qt::MatchFlags);

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

bool sipAkonadi_EntityTreeModel::entityMatch(const Akonadi::Item& a0,const QVariant& a1,Qt::MatchFlags a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::entityMatch(a0,a1,a2);

    extern bool sipVH_akonadi_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,const QVariant&,Qt::MatchFlags);

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

int sipAkonadi_EntityTreeModel::entityColumnCount(Akonadi::EntityTreeModel::HeaderGroup a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::entityColumnCount(a0);

    extern int sipVH_akonadi_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Akonadi::EntityTreeModel::HeaderGroup);

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

QVariant sipAkonadi_EntityTreeModel::entityHeaderData(int a0,Qt::Orientation a1,int a2,Akonadi::EntityTreeModel::HeaderGroup a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::entityHeaderData(a0,a1,a2,a3);

    extern QVariant sipVH_akonadi_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::Orientation,int,Akonadi::EntityTreeModel::HeaderGroup);

    return sipVH_akonadi_15(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

QVariant sipAkonadi_EntityTreeModel::entityData(const Akonadi::Collection& a0,int a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::entityData(a0,a1,a2);

    extern QVariant sipVH_akonadi_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Collection&,int,int);

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

QVariant sipAkonadi_EntityTreeModel::entityData(const Akonadi::Item& a0,int a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::entityData(a0,a1,a2);

    extern QVariant sipVH_akonadi_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Item&,int,int);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityTreeModel::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_EntityTreeModel::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::EntityTreeModel::setData(a0,a1,a2);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    {
        bool a0;
        Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setShowSystemEntities(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_EntityTreeModel, sipName_setShowSystemEntities, NULL);

    return NULL;
}


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

    {
        const Akonadi::EntityTreeModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->systemEntitiesShown();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::EntityTreeModel::ItemPopulationStrategy a0;
        Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_Akonadi_EntityTreeModel_ItemPopulationStrategy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setItemPopulationStrategy(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_EntityTreeModel, sipName_setItemPopulationStrategy, NULL);

    return NULL;
}


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

    {
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp))
        {
            Akonadi::EntityTreeModel::ItemPopulationStrategy sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->itemPopulationStrategy();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Akonadi_EntityTreeModel_ItemPopulationStrategy);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIncludeRootCollection(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_EntityTreeModel, sipName_setIncludeRootCollection, NULL);

    return NULL;
}


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

    {
        const Akonadi::EntityTreeModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->includeRootCollection();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRootCollectionDisplayName(*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_EntityTreeModel, sipName_setRootCollectionDisplayName, NULL);

    return NULL;
}


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

    {
        const Akonadi::EntityTreeModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::EntityTreeModel::CollectionFetchStrategy a0;
        Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_Akonadi_EntityTreeModel_CollectionFetchStrategy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionFetchStrategy(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_EntityTreeModel, sipName_setCollectionFetchStrategy, NULL);

    return NULL;
}


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

    {
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp))
        {
            Akonadi::EntityTreeModel::CollectionFetchStrategy sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->collectionFetchStrategy();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Akonadi_EntityTreeModel_CollectionFetchStrategy);
        }
    }

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityTreeModel_headerData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityTreeModel_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::EntityTreeModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::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_EntityTreeModel, sipName_headerData, NULL);

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::EntityTreeModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::mimeTypes() : sipCpp->mimeTypes()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp))
        {
            Qt::DropActions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Qt::DropActions((sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::supportedDropActions() : sipCpp->supportedDropActions()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QModelIndexList* a0;
        int a0State = 0;
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_QList_0100QModelIndex,&a0, &a0State))
        {
            QMimeData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::mimeData(*a0) : sipCpp->mimeData(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0100QModelIndex,a0State);

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

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

    return NULL;
}


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

    {
        const QMimeData* a0;
        Qt::DropAction a1;
        int a2;
        int a3;
        const QModelIndex* a4;
        Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8EiiJ9", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_QMimeData, &a0, sipType_Qt_DropAction, &a1, &a2, &a3, sipType_QModelIndex, &a4))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::dropMimeData(a0,a1,a2,a3,*a4) : sipCpp->dropMimeData(a0,a1,a2,a3,*a4));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityTreeModel_setData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityTreeModel_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 = Qt::EditRole;
        Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|i", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_QModelIndex, &a0, sipType_QVariant,&a1, &a1State, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::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_EntityTreeModel, sipName_setData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityTreeModel_index(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityTreeModel_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::EntityTreeModel *sipCpp;

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::fetchMore(*a0) : sipCpp->fetchMore(*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_EntityTreeModel, sipName_fetchMore, NULL);

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::EntityTreeModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Item* a0;
        int a1;
        int a2 = Qt::DisplayRole;
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9i|i", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_Akonadi_Item, &a0, &a1, &a2))
        {
            QVariant*sipRes;

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

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

    {
        const Akonadi::Collection* a0;
        int a1;
        int a2 = Qt::DisplayRole;
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9i|i", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_Akonadi_Collection, &a0, &a1, &a2))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::entityData(*a0,a1,a2) : sipCpp->entityData(*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_EntityTreeModel, sipName_entityData, NULL);

    return NULL;
}


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

    {
        int a0;
        Qt::Orientation a1;
        int a2;
        Akonadi::EntityTreeModel::HeaderGroup a3;
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "piEiE", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, &a2, sipType_Akonadi_EntityTreeModel_HeaderGroup, &a3))
        {
            QVariant*sipRes;

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

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

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

    return NULL;
}


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

    {
        Akonadi::EntityTreeModel::HeaderGroup a0;
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pE", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_Akonadi_EntityTreeModel_HeaderGroup, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityTreeModel::entityColumnCount(a0) : sipCpp->entityColumnCount(a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Item* a0;
        const QVariant* a1;
        int a1State = 0;
        Qt::MatchFlags* a2;
        int a2State = 0;
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9J1J1", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_Akonadi_Item, &a0, sipType_QVariant,&a1, &a1State, sipType_Qt_MatchFlags, &a2, &a2State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Akonadi::Collection* a0;
        const QVariant* a1;
        int a1State = 0;
        Qt::MatchFlags* a2;
        int a2State = 0;
        const Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9J1J1", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, sipType_Akonadi_Collection, &a0, sipType_QVariant,&a1, &a1State, sipType_Qt_MatchFlags, &a2, &a2State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QAbstractItemModel* a0;
        const Akonadi::Collection* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J9", sipType_QAbstractItemModel, &a0, sipType_Akonadi_Collection, &a1))
        {
            QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex(Akonadi::EntityTreeModel::modelIndexForCollection(a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QAbstractItemModel* a0;
        const Akonadi::Item* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J9", sipType_QAbstractItemModel, &a0, sipType_Akonadi_Item, &a1))
        {
            QModelIndexList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndexList(Akonadi::EntityTreeModel::modelIndexesForItem(a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::EntityTreeModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->includeUnsubscribed();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Akonadi::EntityTreeModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_EntityTreeModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIncludeUnsubscribed(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_EntityTreeModel, sipName_setIncludeUnsubscribed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityTreeModel_removeColumns(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityTreeModel_removeColumns(PyObject *, PyObject *)
{

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityTreeModel_removeRows(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityTreeModel_removeRows(PyObject *, PyObject *)
{

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityTreeModel_insertColumns(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityTreeModel_insertColumns(PyObject *, PyObject *)
{

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityTreeModel_insertRows(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityTreeModel_insertRows(PyObject *, PyObject *)
{

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

    return NULL;
}


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

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


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

    {
        Akonadi::ChangeRecorder* a0;
        QObject* a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_EntityTreeModel[] = {
    {SIP_MLNAME_CAST(sipName_canFetchMore), meth_Akonadi_EntityTreeModel_canFetchMore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearAndReset), meth_Akonadi_EntityTreeModel_clearAndReset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionFetchStrategy), meth_Akonadi_EntityTreeModel_collectionFetchStrategy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_EntityTreeModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_Akonadi_EntityTreeModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropMimeData), meth_Akonadi_EntityTreeModel_dropMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entityColumnCount), meth_Akonadi_EntityTreeModel_entityColumnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entityData), meth_Akonadi_EntityTreeModel_entityData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entityHeaderData), meth_Akonadi_EntityTreeModel_entityHeaderData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entityMatch), meth_Akonadi_EntityTreeModel_entityMatch, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchMore), meth_Akonadi_EntityTreeModel_fetchMore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flags), meth_Akonadi_EntityTreeModel_flags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasChildren), meth_Akonadi_EntityTreeModel_hasChildren, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_headerData), meth_Akonadi_EntityTreeModel_headerData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeRootCollection), meth_Akonadi_EntityTreeModel_includeRootCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeUnsubscribed), meth_Akonadi_EntityTreeModel_includeUnsubscribed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Akonadi_EntityTreeModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertColumns), meth_Akonadi_EntityTreeModel_insertColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertRows), meth_Akonadi_EntityTreeModel_insertRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemPopulationStrategy), meth_Akonadi_EntityTreeModel_itemPopulationStrategy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Akonadi_EntityTreeModel_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeData), meth_Akonadi_EntityTreeModel_mimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypes), meth_Akonadi_EntityTreeModel_mimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modelIndexForCollection), meth_Akonadi_EntityTreeModel_modelIndexForCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modelIndexesForItem), meth_Akonadi_EntityTreeModel_modelIndexesForItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_Akonadi_EntityTreeModel_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeColumns), meth_Akonadi_EntityTreeModel_removeColumns, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeRows), meth_Akonadi_EntityTreeModel_removeRows, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rootCollectionDisplayName), meth_Akonadi_EntityTreeModel_rootCollectionDisplayName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_Akonadi_EntityTreeModel_rowCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionFetchStrategy), meth_Akonadi_EntityTreeModel_setCollectionFetchStrategy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_Akonadi_EntityTreeModel_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIncludeRootCollection), meth_Akonadi_EntityTreeModel_setIncludeRootCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIncludeUnsubscribed), meth_Akonadi_EntityTreeModel_setIncludeUnsubscribed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemPopulationStrategy), meth_Akonadi_EntityTreeModel_setItemPopulationStrategy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRootCollectionDisplayName), meth_Akonadi_EntityTreeModel_setRootCollectionDisplayName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowSystemEntities), meth_Akonadi_EntityTreeModel_setShowSystemEntities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedDropActions), meth_Akonadi_EntityTreeModel_supportedDropActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_systemEntitiesShown), meth_Akonadi_EntityTreeModel_systemEntitiesShown, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_EntityTreeModel[] = {
    {sipName_AmazingCompletionRole, static_cast<int>(Akonadi::EntityTreeModel::AmazingCompletionRole), 78},
    {sipName_AvailablePartsRole, static_cast<int>(Akonadi::EntityTreeModel::AvailablePartsRole), 78},
    {sipName_CollectionChildOrderRole, static_cast<int>(Akonadi::EntityTreeModel::CollectionChildOrderRole), 78},
    {sipName_CollectionDerefRole, static_cast<int>(Akonadi::EntityTreeModel::CollectionDerefRole), 78},
    {sipName_CollectionIdRole, static_cast<int>(Akonadi::EntityTreeModel::CollectionIdRole), 78},
    {sipName_CollectionRefRole, static_cast<int>(Akonadi::EntityTreeModel::CollectionRefRole), 78},
    {sipName_CollectionRole, static_cast<int>(Akonadi::EntityTreeModel::CollectionRole), 78},
    {sipName_CollectionSyncProgressRole, static_cast<int>(Akonadi::EntityTreeModel::CollectionSyncProgressRole), 78},
    {sipName_CollectionTreeHeaders, static_cast<int>(Akonadi::EntityTreeModel::CollectionTreeHeaders), 76},
    {sipName_ColumnCountRole, static_cast<int>(Akonadi::EntityTreeModel::ColumnCountRole), 78},
    {sipName_EndHeaderGroup, static_cast<int>(Akonadi::EntityTreeModel::EndHeaderGroup), 76},
    {sipName_EndRole, static_cast<int>(Akonadi::EntityTreeModel::EndRole), 78},
    {sipName_EntityTreeHeaders, static_cast<int>(Akonadi::EntityTreeModel::EntityTreeHeaders), 76},
    {sipName_EntityUrlRole, static_cast<int>(Akonadi::EntityTreeModel::EntityUrlRole), 78},
    {sipName_FetchCollectionsRecursive, static_cast<int>(Akonadi::EntityTreeModel::FetchCollectionsRecursive), 74},
    {sipName_FetchFirstLevelChildCollections, static_cast<int>(Akonadi::EntityTreeModel::FetchFirstLevelChildCollections), 74},
    {sipName_FetchNoCollections, static_cast<int>(Akonadi::EntityTreeModel::FetchNoCollections), 74},
    {sipName_FetchStateRole, static_cast<int>(Akonadi::EntityTreeModel::FetchStateRole), 78},
    {sipName_FetchingState, static_cast<int>(Akonadi::EntityTreeModel::FetchingState), 75},
    {sipName_IdleState, static_cast<int>(Akonadi::EntityTreeModel::IdleState), 75},
    {sipName_ImmediatePopulation, static_cast<int>(Akonadi::EntityTreeModel::ImmediatePopulation), 77},
    {sipName_InvisibleCollectionFetch, static_cast<int>(Akonadi::EntityTreeModel::InvisibleCollectionFetch), 74},
    {sipName_ItemIdRole, static_cast<int>(Akonadi::EntityTreeModel::ItemIdRole), 78},
    {sipName_ItemListHeaders, static_cast<int>(Akonadi::EntityTreeModel::ItemListHeaders), 76},
    {sipName_ItemRole, static_cast<int>(Akonadi::EntityTreeModel::ItemRole), 78},
    {sipName_LazyPopulation, static_cast<int>(Akonadi::EntityTreeModel::LazyPopulation), 77},
    {sipName_LoadedPartsRole, static_cast<int>(Akonadi::EntityTreeModel::LoadedPartsRole), 78},
    {sipName_MimeTypeRole, static_cast<int>(Akonadi::EntityTreeModel::MimeTypeRole), 78},
    {sipName_NoItemPopulation, static_cast<int>(Akonadi::EntityTreeModel::NoItemPopulation), 77},
    {sipName_ParentCollectionRole, static_cast<int>(Akonadi::EntityTreeModel::ParentCollectionRole), 78},
    {sipName_PendingCutRole, static_cast<int>(Akonadi::EntityTreeModel::PendingCutRole), 78},
    {sipName_RemoteIdRole, static_cast<int>(Akonadi::EntityTreeModel::RemoteIdRole), 78},
    {sipName_SessionRole, static_cast<int>(Akonadi::EntityTreeModel::SessionRole), 78},
    {sipName_TerminalUserRole, static_cast<int>(Akonadi::EntityTreeModel::TerminalUserRole), 78},
    {sipName_UnreadCountRole, static_cast<int>(Akonadi::EntityTreeModel::UnreadCountRole), 78},
    {sipName_UserHeaders, static_cast<int>(Akonadi::EntityTreeModel::UserHeaders), 76},
    {sipName_UserRole, static_cast<int>(Akonadi::EntityTreeModel::UserRole), 78},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityTreeModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityTreeModel,
        {0}
    },
    {
        sipNameNr_EntityTreeModel,
        {0, 255, 0},
        39, methods_Akonadi_EntityTreeModel,
        37, enummembers_Akonadi_EntityTreeModel,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityTreeModel,
    0,
    init_type_Akonadi_EntityTreeModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityTreeModel,
    0,
    0,
    0,
    release_Akonadi_EntityTreeModel,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::EntityTreeModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entityrightsfiltermodel.sip"
#include <akonadi/entityrightsfiltermodel.h>
#line 5390 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5394 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5397 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5400 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5403 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5406 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5409 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 5412 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5415 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5418 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5421 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5424 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 5427 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 5430 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5433 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5436 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 169 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 5439 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 5442 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5445 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 5448 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5451 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 5454 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5457 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5460 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5463 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5466 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5469 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5472 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5475 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_EntityRightsFilterModel : public Akonadi::EntityRightsFilterModel
{
public:
    sipAkonadi_EntityRightsFilterModel(QObject*);
    virtual ~sipAkonadi_EntityRightsFilterModel();

    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();
    void setSourceModel(QAbstractItemModel*);
    Qt::DropActions supportedDropActions() const;
    QStringList mimeTypes() const;
    void sort(int,Qt::SortOrder);
    QSize span(const QModelIndex&) const;
    QModelIndex buddy(const QModelIndex&) const;
    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;
    QItemSelection mapSelectionFromSource(const QItemSelection&) const;
    QItemSelection mapSelectionToSource(const QItemSelection&) const;
    QModelIndex mapFromSource(const QModelIndex&) const;
    QModelIndex mapToSource(const QModelIndex&) const;
    bool acceptRow(int,const QModelIndex&) const;
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    Qt::ItemFlags flags(const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[44];
};

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

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

const QMetaObject *sipAkonadi_EntityRightsFilterModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_EntityRightsFilterModel);
}

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

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

    return _id;
}

void *sipAkonadi_EntityRightsFilterModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_EntityRightsFilterModel, _clname)) ? this : Akonadi::EntityRightsFilterModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QSize sipAkonadi_EntityRightsFilterModel::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::EntityRightsFilterModel::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_EntityRightsFilterModel::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::EntityRightsFilterModel::buddy(a0);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityRightsFilterModel::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_EntityRightsFilterModel::dropMimeData(const QMimeData*a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityRightsFilterModel::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_EntityRightsFilterModel::lessThan(const QModelIndex& a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityRightsFilterModel::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_EntityRightsFilterModel::mapSelectionToSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityRightsFilterModel::acceptRow(a0,a1);

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

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

QModelIndexList sipAkonadi_EntityRightsFilterModel::match(const QModelIndex& a0,int a1,const QVariant& a2,int a3,Qt::MatchFlags a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::EntityRightsFilterModel *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_EntityRightsFilterModel[] = {
    {SIP_MLNAME_CAST(sipName_acceptRow), meth_Akonadi_EntityRightsFilterModel_acceptRow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_accessRights), meth_Akonadi_EntityRightsFilterModel_accessRights, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flags), meth_Akonadi_EntityRightsFilterModel_flags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Akonadi_EntityRightsFilterModel_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAccessRights), meth_Akonadi_EntityRightsFilterModel_setAccessRights, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityRightsFilterModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityRightsFilterModel,
        {0}
    },
    {
        sipNameNr_EntityRightsFilterModel,
        {0, 255, 0},
        5, methods_Akonadi_EntityRightsFilterModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityRightsFilterModel,
    0,
    init_type_Akonadi_EntityRightsFilterModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityRightsFilterModel,
    0,
    0,
    0,
    release_Akonadi_EntityRightsFilterModel,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::EntityRightsFilterModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entityorderproxymodel.sip"
#include <akonadi/entityorderproxymodel.h>
#line 6525 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 6529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6532 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 6535 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6538 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6541 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6544 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 6547 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6550 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 6553 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6556 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6559 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 6562 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6565 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6568 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 169 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 6571 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 6574 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 6577 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6580 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 6583 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6586 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 6589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6592 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6595 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6598 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6601 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6604 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 6607 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6610 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_EntityOrderProxyModel : public Akonadi::EntityOrderProxyModel
{
public:
    sipAkonadi_EntityOrderProxyModel(QObject*);
    virtual ~sipAkonadi_EntityOrderProxyModel();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    void revert();
    bool submit();
    Qt::DropActions supportedDropActions() const;
    QStringList mimeTypes() const;
    void sort(int,Qt::SortOrder);
    QSize span(const QModelIndex&) const;
    QModelIndex buddy(const QModelIndex&) const;
    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&);
    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 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*);
    QString configString(const QModelIndex&) const;
    QString parentConfigString(const QModelIndex&) const;
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    bool lessThan(const QModelIndex&,const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[45];
};

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

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

const QMetaObject *sipAkonadi_EntityOrderProxyModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_EntityOrderProxyModel);
}

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

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

    return _id;
}

void *sipAkonadi_EntityOrderProxyModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_EntityOrderProxyModel, _clname)) ? this : Akonadi::EntityOrderProxyModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityOrderProxyModel::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_EntityOrderProxyModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityOrderProxyModel::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_EntityOrderProxyModel::mapSelectionFromSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityOrderProxyModel::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_EntityOrderProxyModel::mapSelectionToSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityOrderProxyModel::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_EntityOrderProxyModel::setSourceModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

QString sipAkonadi_EntityOrderProxyModel::configString(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityOrderProxyModel::configString(a0);

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

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

QString sipAkonadi_EntityOrderProxyModel::parentConfigString(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::EntityOrderProxyModel::parentConfigString(a0);

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        KConfigGroup* a0;
        Akonadi::EntityOrderProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_EntityOrderProxyModel, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOrderConfig(*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_EntityOrderProxyModel, sipName_setOrderConfig, NULL);

    return NULL;
}


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

    {
        Akonadi::EntityOrderProxyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_EntityOrderProxyModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearOrder(*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_EntityOrderProxyModel, sipName_clearOrder, NULL);

    return NULL;
}


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

    {
        Akonadi::EntityOrderProxyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QModelIndex* a0;
        const QModelIndex* a1;
        const Akonadi::EntityOrderProxyModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QMimeData* a0;
        Qt::DropAction a1;
        int a2;
        int a3;
        const QModelIndex* a4;
        Akonadi::EntityOrderProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8EiiJ9", &sipSelf, sipType_Akonadi_EntityOrderProxyModel, &sipCpp, sipType_QMimeData, &a0, sipType_Qt_DropAction, &a1, &a2, &a3, sipType_QModelIndex, &a4))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityOrderProxyModel::dropMimeData(a0,a1,a2,a3,*a4) : sipCpp->dropMimeData(a0,a1,a2,a3,*a4));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_EntityOrderProxyModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->Akonadi::EntityOrderProxyModel::parentConfigString(*a0) : sipCpp->parentConfigString(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_Akonadi_EntityOrderProxyModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->Akonadi::EntityOrderProxyModel::configString(*a0) : sipCpp->configString(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_EntityOrderProxyModel[] = {
    {SIP_MLNAME_CAST(sipName_clearOrder), meth_Akonadi_EntityOrderProxyModel_clearOrder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearTreeOrder), meth_Akonadi_EntityOrderProxyModel_clearTreeOrder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configString), meth_Akonadi_EntityOrderProxyModel_configString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropMimeData), meth_Akonadi_EntityOrderProxyModel_dropMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lessThan), meth_Akonadi_EntityOrderProxyModel_lessThan, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Akonadi_EntityOrderProxyModel_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentConfigString), meth_Akonadi_EntityOrderProxyModel_parentConfigString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveOrder), meth_Akonadi_EntityOrderProxyModel_saveOrder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOrderConfig), meth_Akonadi_EntityOrderProxyModel_setOrderConfig, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityOrderProxyModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityOrderProxyModel,
        {0}
    },
    {
        sipNameNr_EntityOrderProxyModel,
        {0, 255, 0},
        9, methods_Akonadi_EntityOrderProxyModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityOrderProxyModel,
    0,
    init_type_Akonadi_EntityOrderProxyModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityOrderProxyModel,
    0,
    0,
    0,
    release_Akonadi_EntityOrderProxyModel,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::EntityOrderProxyModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entitymimetypefiltermodel.sip"
#include <akonadi/entitymimetypefiltermodel.h>
#line 7808 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 7812 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 7815 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7818 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7821 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7824 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7827 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entitytreemodel.sip"
#include <akonadi/entitytreemodel.h>
#line 7830 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7833 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7836 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7839 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 7842 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7845 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 7848 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7851 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 169 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 7854 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 7857 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 7860 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7863 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 7866 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7869 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 7872 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7875 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7878 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7881 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7884 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 7887 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 7890 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7893 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_EntityMimeTypeFilterModel : public Akonadi::EntityMimeTypeFilterModel
{
public:
    sipAkonadi_EntityMimeTypeFilterModel(QObject*);
    virtual ~sipAkonadi_EntityMimeTypeFilterModel();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[43];
};

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

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

const QMetaObject *sipAkonadi_EntityMimeTypeFilterModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_EntityMimeTypeFilterModel);
}

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

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

    return _id;
}

void *sipAkonadi_EntityMimeTypeFilterModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_EntityMimeTypeFilterModel, _clname)) ? this : Akonadi::EntityMimeTypeFilterModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel::dropMimeData(const QMimeData*a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel::lessThan(const QModelIndex& a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel::mapSelectionToSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel::setSourceModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::EntityMimeTypeFilterModel::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);
}

bool sipAkonadi_EntityMimeTypeFilterModel::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::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel::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::EntityMimeTypeFilterModel::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);
}

int sipAkonadi_EntityMimeTypeFilterModel::columnCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,NULL,sipName_columnCount);

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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);
}

QModelIndexList sipAkonadi_EntityMimeTypeFilterModel::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[39]),sipPySelf,NULL,sipName_match);

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::match(a0,a1,a2,a3,a4);

    typedef QList<QModelIndex> (*sipVH_QtCore_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

    return ((sipVH_QtCore_48)(sipModuleAPI_akonadi_QtCore->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

bool sipAkonadi_EntityMimeTypeFilterModel::canFetchMore(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,NULL,sipName_canFetchMore);

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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);
}

bool sipAkonadi_EntityMimeTypeFilterModel::hasChildren(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[41]),sipPySelf,NULL,sipName_hasChildren);

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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);
}

QVariant sipAkonadi_EntityMimeTypeFilterModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[42]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return Akonadi::EntityMimeTypeFilterModel::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);
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeInclusionFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeInclusionFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addMimeTypeInclusionFilters(*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_EntityMimeTypeFilterModel, sipName_addMimeTypeInclusionFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeExclusionFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeExclusionFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addMimeTypeExclusionFilters(*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_EntityMimeTypeFilterModel, sipName_addMimeTypeExclusionFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_mimeTypeInclusionFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_mimeTypeInclusionFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->mimeTypeInclusionFilters());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityMimeTypeFilterModel, sipName_mimeTypeInclusionFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_mimeTypeExclusionFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_mimeTypeExclusionFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->mimeTypeExclusionFilters());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityMimeTypeFilterModel, sipName_mimeTypeExclusionFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeInclusionFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeInclusionFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addMimeTypeInclusionFilter(*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_EntityMimeTypeFilterModel, sipName_addMimeTypeInclusionFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeExclusionFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeExclusionFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addMimeTypeExclusionFilter(*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_EntityMimeTypeFilterModel, sipName_addMimeTypeExclusionFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_clearFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_clearFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &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_EntityMimeTypeFilterModel, sipName_clearFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_setHeaderGroup(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_setHeaderGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::EntityTreeModel::HeaderGroup a0;
        Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_Akonadi_EntityTreeModel_HeaderGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHeaderGroup(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_EntityMimeTypeFilterModel, sipName_setHeaderGroup, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_headerData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_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::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiE|i", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, &a2))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel, sipName_headerData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_hasChildren(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_hasChildren(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityMimeTypeFilterModel::hasChildren(*a0) : sipCpp->hasChildren(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityMimeTypeFilterModel, sipName_hasChildren, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_canFetchMore(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_canFetchMore(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        const Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityMimeTypeFilterModel::canFetchMore(*a0) : sipCpp->canFetchMore(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityMimeTypeFilterModel, sipName_canFetchMore, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_match(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_match(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        int a1;
        const QVariant* a2;
        int a2State = 0;
        int a3 = 1;
        Qt::MatchFlags a4def = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap);
        Qt::MatchFlags* a4 = &a4def;
        int a4State = 0;
        const Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9iJ1|iJ1", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_QModelIndex, &a0, &a1, sipType_QVariant,&a2, &a2State, &a3, sipType_Qt_MatchFlags, &a4, &a4State))
        {
            QModelIndexList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndexList((sipSelfWasArg ? sipCpp->Akonadi::EntityMimeTypeFilterModel::match(*a0,a1,*a2,a3,*a4) : sipCpp->match(*a0,a1,*a2,a3,*a4)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);
            sipReleaseType(a4,sipType_Qt_MatchFlags,a4State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityMimeTypeFilterModel, sipName_match, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_columnCount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_columnCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel, sipName_columnCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_filterAcceptsRow(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_filterAcceptsRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QModelIndex* a1;
        const Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "piJ9", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityMimeTypeFilterModel::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_EntityMimeTypeFilterModel, sipName_filterAcceptsRow, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_filterAcceptsColumn(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityMimeTypeFilterModel_filterAcceptsColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QModelIndex* a1;
        const Akonadi::EntityMimeTypeFilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "piJ9", &sipSelf, sipType_Akonadi_EntityMimeTypeFilterModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::EntityMimeTypeFilterModel::filterAcceptsColumn(a0,*a1) : sipCpp->filterAcceptsColumn(a0,*a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityMimeTypeFilterModel, sipName_filterAcceptsColumn, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_EntityMimeTypeFilterModel(void *, int);}
static void release_Akonadi_EntityMimeTypeFilterModel(void *sipCppV,int)
{
    Akonadi::EntityMimeTypeFilterModel *sipCpp = reinterpret_cast<Akonadi::EntityMimeTypeFilterModel *>(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_EntityMimeTypeFilterModel(sipSimpleWrapper *);}
static void dealloc_Akonadi_EntityMimeTypeFilterModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_EntityMimeTypeFilterModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_EntityMimeTypeFilterModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_EntityMimeTypeFilterModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_EntityMimeTypeFilterModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_EntityMimeTypeFilterModel *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_EntityMimeTypeFilterModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_EntityMimeTypeFilterModel[] = {{455, 2, 1}};


static PyMethodDef methods_Akonadi_EntityMimeTypeFilterModel[] = {
    {SIP_MLNAME_CAST(sipName_addMimeTypeExclusionFilter), meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeExclusionFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMimeTypeExclusionFilters), meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeExclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMimeTypeInclusionFilter), meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeInclusionFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMimeTypeInclusionFilters), meth_Akonadi_EntityMimeTypeFilterModel_addMimeTypeInclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_canFetchMore), meth_Akonadi_EntityMimeTypeFilterModel_canFetchMore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearFilters), meth_Akonadi_EntityMimeTypeFilterModel_clearFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_EntityMimeTypeFilterModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterAcceptsColumn), meth_Akonadi_EntityMimeTypeFilterModel_filterAcceptsColumn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterAcceptsRow), meth_Akonadi_EntityMimeTypeFilterModel_filterAcceptsRow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasChildren), meth_Akonadi_EntityMimeTypeFilterModel_hasChildren, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_headerData), meth_Akonadi_EntityMimeTypeFilterModel_headerData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Akonadi_EntityMimeTypeFilterModel_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeExclusionFilters), meth_Akonadi_EntityMimeTypeFilterModel_mimeTypeExclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeInclusionFilters), meth_Akonadi_EntityMimeTypeFilterModel_mimeTypeInclusionFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHeaderGroup), meth_Akonadi_EntityMimeTypeFilterModel_setHeaderGroup, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityMimeTypeFilterModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityMimeTypeFilterModel,
        {0}
    },
    {
        sipNameNr_EntityMimeTypeFilterModel,
        {0, 255, 0},
        15, methods_Akonadi_EntityMimeTypeFilterModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityMimeTypeFilterModel,
    0,
    init_type_Akonadi_EntityMimeTypeFilterModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityMimeTypeFilterModel,
    0,
    0,
    0,
    release_Akonadi_EntityMimeTypeFilterModel,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::EntityMimeTypeFilterModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entitylistview.sip"
#include <akonadi/entitylistview.h>
#line 9241 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 9245 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 9248 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9251 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9254 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9257 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9260 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 9263 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 9266 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 9269 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 169 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 9272 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 9275 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9278 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 9281 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 9284 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 89 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 9287 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 9290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 9293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9296 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9299 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 1130 "/usr/share/python3-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 9302 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9305 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9308 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9311 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9314 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9317 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlistview.sip"
#include <qlistview.h>
#line 9320 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 9323 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9326 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9329 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9332 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemdelegate.sip"
#include <qabstractitemdelegate.h>
#line 9335 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9338 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9341 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9344 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 9347 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9350 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 9353 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 89 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 9356 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9359 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9362 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qscrollbar.sip"
#include <qscrollbar.h>
#line 9365 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9368 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 9371 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 9374 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qframe.sip"
#include <qframe.h>
#line 9377 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9380 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9383 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 9386 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 9389 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 9392 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 9395 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 9398 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9401 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 9404 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 9407 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 9410 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9413 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 9416 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9419 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9422 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9425 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9428 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9431 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 9434 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 9437 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 9440 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 9443 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9446 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 9449 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 9452 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 9455 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9458 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 9461 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 9464 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 9467 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 9470 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 9473 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9476 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9479 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9482 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 9485 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9488 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9491 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_EntityListView : public Akonadi::EntityListView
{
public:
    sipAkonadi_EntityListView(QWidget*);
    sipAkonadi_EntityListView(KXMLGUIClient*,QWidget*);
    virtual ~sipAkonadi_EntityListView();

    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*);
    bool eventFilter(QObject*,QEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void closeEvent(QCloseEvent*);
    void moveEvent(QMoveEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void keyReleaseEvent(QKeyEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    void setVisible(bool);
    int devType() const;
    void changeEvent(QEvent*);
    void wheelEvent(QWheelEvent*);
    QSize sizeHint() const;
    QSize minimumSizeHint() const;
    void inputMethodEvent(QInputMethodEvent*);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void keyPressEvent(QKeyEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool viewportEvent(QEvent*);
    QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex&,const QEvent*) const;
    bool edit(const QModelIndex&,QAbstractItemView::EditTrigger,QEvent*);
    void editorDestroyed(QObject*);
    void commitData(QWidget*);
    void closeEditor(QWidget*,QAbstractItemDelegate::EndEditHint);
    void horizontalScrollbarValueChanged(int);
    void verticalScrollbarValueChanged(int);
    void horizontalScrollbarAction(int);
    void verticalScrollbarAction(int);
    void updateEditorGeometries();
    void updateEditorData();
    void selectAll();
    int sizeHintForColumn(int) const;
    int sizeHintForRow(int) const;
    void keyboardSearch(const QString&);
    void setSelectionModel(QItemSelectionModel*);
    void selectionChanged(const QItemSelection&,const QItemSelection&);
    bool isIndexHidden(const QModelIndex&) const;
    void updateGeometries();
    QModelIndexList selectedIndexes() const;
    QRegion visualRegionForSelection(const QItemSelection&) const;
    void setSelection(const QRect&,QItemSelectionModel::SelectionFlags);
    QModelIndex moveCursor(QAbstractItemView::CursorAction,Qt::KeyboardModifiers);
    int verticalOffset() const;
    int horizontalOffset() const;
    void paintEvent(QPaintEvent*);
    QStyleOptionViewItem viewOptions() const;
    void dragLeaveEvent(QDragLeaveEvent*);
    void resizeEvent(QResizeEvent*);
    void timerEvent(QTimerEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mouseMoveEvent(QMouseEvent*);
    bool event(QEvent*);
    void rowsAboutToBeRemoved(const QModelIndex&,int,int);
    void rowsInserted(const QModelIndex&,int,int);
    void dataChanged(const QModelIndex&,const QModelIndex&);
    void scrollContentsBy(int,int);
    void setRootIndex(const QModelIndex&);
    void reset();
    QModelIndex indexAt(const QPoint&) const;
    void scrollTo(const QModelIndex&,QAbstractItemView::ScrollHint);
    QRect visualRect(const QModelIndex&) const;
    void startDrag(Qt::DropActions);
    void contextMenuEvent(QContextMenuEvent*);
    void dropEvent(QDropEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void setModel(QAbstractItemModel*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_EntityListView(const sipAkonadi_EntityListView &);
    sipAkonadi_EntityListView &operator = (const sipAkonadi_EntityListView &);

    char sipPyMethods[85];
};

sipAkonadi_EntityListView::sipAkonadi_EntityListView(QWidget*a0): Akonadi::EntityListView(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_EntityListView::sipAkonadi_EntityListView(KXMLGUIClient*a0,QWidget*a1): Akonadi::EntityListView(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_EntityListView::~sipAkonadi_EntityListView()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_EntityListView::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_EntityListView);
}

int sipAkonadi_EntityListView::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::EntityListView::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_EntityListView,_c,_id,_a);

    return _id;
}

void *sipAkonadi_EntityListView::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_EntityListView, _clname)) ? this : Akonadi::EntityListView::qt_metacast(_clname);
}

void sipAkonadi_EntityListView::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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);
}

bool sipAkonadi_EntityListView::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::EntityListView::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_EntityListView::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_languageChange);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_windowActivationChange);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_fontChange);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_paletteChange);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_enabledChange);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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);
}

int sipAkonadi_EntityListView::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return Akonadi::EntityListView::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_EntityListView::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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);
}

QPaintEngine* sipAkonadi_EntityListView::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return Akonadi::EntityListView::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_EntityListView::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return Akonadi::EntityListView::heightForWidth(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_akonadi_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return Akonadi::EntityListView::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);
}

void sipAkonadi_EntityListView::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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);
}

QSize sipAkonadi_EntityListView::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return Akonadi::EntityListView::sizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

QSize sipAkonadi_EntityListView::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return Akonadi::EntityListView::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_EntityListView::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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);
}

bool sipAkonadi_EntityListView::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return Akonadi::EntityListView::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_EntityListView::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return Akonadi::EntityListView::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_EntityListView::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::viewportEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_viewportEvent);

    if (!sipMeth)
        return Akonadi::EntityListView::viewportEvent(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);
}

QItemSelectionModel::SelectionFlags sipAkonadi_EntityListView::selectionCommand(const QModelIndex& a0,const QEvent*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,NULL,sipName_selectionCommand);

    if (!sipMeth)
        return Akonadi::EntityListView::selectionCommand(a0,a1);

    typedef QItemSelectionModel::SelectionFlags (*sipVH_QtGui_233)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QEvent*);

    return ((sipVH_QtGui_233)(sipModuleAPI_akonadi_QtGui->em_virthandlers[233]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_EntityListView::edit(const QModelIndex& a0,QAbstractItemView::EditTrigger a1,QEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_edit);

    if (!sipMeth)
        return Akonadi::EntityListView::edit(a0,a1,a2);

    typedef bool (*sipVH_QtGui_234)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,QAbstractItemView::EditTrigger,QEvent*);

    return ((sipVH_QtGui_234)(sipModuleAPI_akonadi_QtGui->em_virthandlers[234]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_EntityListView::editorDestroyed(QObject*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_editorDestroyed);

    if (!sipMeth)
    {
        Akonadi::EntityListView::editorDestroyed(a0);
        return;
    }

    typedef void (*sipVH_QtGui_235)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*);

    ((sipVH_QtGui_235)(sipModuleAPI_akonadi_QtGui->em_virthandlers[235]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::commitData(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_commitData);

    if (!sipMeth)
    {
        Akonadi::EntityListView::commitData(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    ((sipVH_QtGui_7)(sipModuleAPI_akonadi_QtGui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::closeEditor(QWidget*a0,QAbstractItemDelegate::EndEditHint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_closeEditor);

    if (!sipMeth)
    {
        Akonadi::EntityListView::closeEditor(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_236)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,QAbstractItemDelegate::EndEditHint);

    ((sipVH_QtGui_236)(sipModuleAPI_akonadi_QtGui->em_virthandlers[236]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_EntityListView::horizontalScrollbarValueChanged(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_horizontalScrollbarValueChanged);

    if (!sipMeth)
    {
        Akonadi::EntityListView::horizontalScrollbarValueChanged(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::verticalScrollbarValueChanged(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_verticalScrollbarValueChanged);

    if (!sipMeth)
    {
        Akonadi::EntityListView::verticalScrollbarValueChanged(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::horizontalScrollbarAction(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_horizontalScrollbarAction);

    if (!sipMeth)
    {
        Akonadi::EntityListView::horizontalScrollbarAction(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::verticalScrollbarAction(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_verticalScrollbarAction);

    if (!sipMeth)
    {
        Akonadi::EntityListView::verticalScrollbarAction(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::updateEditorGeometries()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_updateEditorGeometries);

    if (!sipMeth)
    {
        Akonadi::EntityListView::updateEditorGeometries();
        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_EntityListView::updateEditorData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_updateEditorData);

    if (!sipMeth)
    {
        Akonadi::EntityListView::updateEditorData();
        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_EntityListView::selectAll()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_selectAll);

    if (!sipMeth)
    {
        Akonadi::EntityListView::selectAll();
        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);
}

int sipAkonadi_EntityListView::sizeHintForColumn(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[50]),sipPySelf,NULL,sipName_sizeHintForColumn);

    if (!sipMeth)
        return Akonadi::EntityListView::sizeHintForColumn(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_akonadi_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipAkonadi_EntityListView::sizeHintForRow(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[51]),sipPySelf,NULL,sipName_sizeHintForRow);

    if (!sipMeth)
        return Akonadi::EntityListView::sizeHintForRow(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_akonadi_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::keyboardSearch(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,NULL,sipName_keyboardSearch);

    if (!sipMeth)
    {
        Akonadi::EntityListView::keyboardSearch(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_akonadi_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::setSelectionModel(QItemSelectionModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,NULL,sipName_setSelectionModel);

    if (!sipMeth)
    {
        Akonadi::EntityListView::setSelectionModel(a0);
        return;
    }

    typedef void (*sipVH_QtGui_37)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QItemSelectionModel*);

    ((sipVH_QtGui_37)(sipModuleAPI_akonadi_QtGui->em_virthandlers[37]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::selectionChanged(const QItemSelection& a0,const QItemSelection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[54],sipPySelf,NULL,sipName_selectionChanged);

    if (!sipMeth)
    {
        Akonadi::EntityListView::selectionChanged(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QItemSelection&,const QItemSelection&);

    ((sipVH_QtGui_46)(sipModuleAPI_akonadi_QtGui->em_virthandlers[46]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_EntityListView::isIndexHidden(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[55]),sipPySelf,NULL,sipName_isIndexHidden);

    if (!sipMeth)
        return Akonadi::EntityListView::isIndexHidden(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_EntityListView::updateGeometries()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[56],sipPySelf,NULL,sipName_updateGeometries);

    if (!sipMeth)
    {
        Akonadi::EntityListView::updateGeometries();
        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);
}

QModelIndexList sipAkonadi_EntityListView::selectedIndexes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[57]),sipPySelf,NULL,sipName_selectedIndexes);

    if (!sipMeth)
        return Akonadi::EntityListView::selectedIndexes();

    typedef QList<QModelIndex> (*sipVH_QtGui_49)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_49)(sipModuleAPI_akonadi_QtGui->em_virthandlers[49]))(sipGILState, 0, sipPySelf, sipMeth);
}

QRegion sipAkonadi_EntityListView::visualRegionForSelection(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[58]),sipPySelf,NULL,sipName_visualRegionForSelection);

    if (!sipMeth)
        return Akonadi::EntityListView::visualRegionForSelection(a0);

    typedef QRegion (*sipVH_QtGui_50)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QItemSelection&);

    return ((sipVH_QtGui_50)(sipModuleAPI_akonadi_QtGui->em_virthandlers[50]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::setSelection(const QRect& a0,QItemSelectionModel::SelectionFlags a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[59],sipPySelf,NULL,sipName_setSelection);

    if (!sipMeth)
    {
        Akonadi::EntityListView::setSelection(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRect&,QItemSelectionModel::SelectionFlags);

    ((sipVH_QtGui_51)(sipModuleAPI_akonadi_QtGui->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QModelIndex sipAkonadi_EntityListView::moveCursor(QAbstractItemView::CursorAction a0,Qt::KeyboardModifiers a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[60],sipPySelf,NULL,sipName_moveCursor);

    if (!sipMeth)
        return Akonadi::EntityListView::moveCursor(a0,a1);

    typedef QModelIndex (*sipVH_QtGui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QAbstractItemView::CursorAction,Qt::KeyboardModifiers);

    return ((sipVH_QtGui_52)(sipModuleAPI_akonadi_QtGui->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipAkonadi_EntityListView::verticalOffset() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[61]),sipPySelf,NULL,sipName_verticalOffset);

    if (!sipMeth)
        return Akonadi::EntityListView::verticalOffset();

    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);
}

int sipAkonadi_EntityListView::horizontalOffset() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[62]),sipPySelf,NULL,sipName_horizontalOffset);

    if (!sipMeth)
        return Akonadi::EntityListView::horizontalOffset();

    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);
}

void sipAkonadi_EntityListView::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[63],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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);
}

QStyleOptionViewItem sipAkonadi_EntityListView::viewOptions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[64]),sipPySelf,NULL,sipName_viewOptions);

    if (!sipMeth)
        return Akonadi::EntityListView::viewOptions();

    typedef QStyleOptionViewItem (*sipVH_QtGui_71)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_71)(sipModuleAPI_akonadi_QtGui->em_virthandlers[71]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_EntityListView::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[65],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[66],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[67],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_akonadi_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[68],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[69],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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);
}

bool sipAkonadi_EntityListView::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[70],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::EntityListView::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_EntityListView::rowsAboutToBeRemoved(const QModelIndex& a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[71],sipPySelf,NULL,sipName_rowsAboutToBeRemoved);

    if (!sipMeth)
    {
        Akonadi::EntityListView::rowsAboutToBeRemoved(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,int);

    ((sipVH_QtGui_53)(sipModuleAPI_akonadi_QtGui->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_EntityListView::rowsInserted(const QModelIndex& a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[72],sipPySelf,NULL,sipName_rowsInserted);

    if (!sipMeth)
    {
        Akonadi::EntityListView::rowsInserted(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,int);

    ((sipVH_QtGui_53)(sipModuleAPI_akonadi_QtGui->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_EntityListView::dataChanged(const QModelIndex& a0,const QModelIndex& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[73],sipPySelf,NULL,sipName_dataChanged);

    if (!sipMeth)
    {
        Akonadi::EntityListView::dataChanged(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_45)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QModelIndex&);

    ((sipVH_QtGui_45)(sipModuleAPI_akonadi_QtGui->em_virthandlers[45]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_EntityListView::scrollContentsBy(int a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[74],sipPySelf,NULL,sipName_scrollContentsBy);

    if (!sipMeth)
    {
        Akonadi::EntityListView::scrollContentsBy(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);

    ((sipVH_QtGui_32)(sipModuleAPI_akonadi_QtGui->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_EntityListView::setRootIndex(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[75],sipPySelf,NULL,sipName_setRootIndex);

    if (!sipMeth)
    {
        Akonadi::EntityListView::setRootIndex(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);
}

void sipAkonadi_EntityListView::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[76],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
    {
        Akonadi::EntityListView::reset();
        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);
}

QModelIndex sipAkonadi_EntityListView::indexAt(const QPoint& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[77]),sipPySelf,NULL,sipName_indexAt);

    if (!sipMeth)
        return Akonadi::EntityListView::indexAt(a0);

    typedef QModelIndex (*sipVH_QtGui_54)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPoint&);

    return ((sipVH_QtGui_54)(sipModuleAPI_akonadi_QtGui->em_virthandlers[54]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::scrollTo(const QModelIndex& a0,QAbstractItemView::ScrollHint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[78],sipPySelf,NULL,sipName_scrollTo);

    if (!sipMeth)
    {
        Akonadi::EntityListView::scrollTo(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_55)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,QAbstractItemView::ScrollHint);

    ((sipVH_QtGui_55)(sipModuleAPI_akonadi_QtGui->em_virthandlers[55]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QRect sipAkonadi_EntityListView::visualRect(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[79]),sipPySelf,NULL,sipName_visualRect);

    if (!sipMeth)
        return Akonadi::EntityListView::visualRect(a0);

    typedef QRect (*sipVH_QtGui_56)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtGui_56)(sipModuleAPI_akonadi_QtGui->em_virthandlers[56]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::startDrag(Qt::DropActions a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[80],sipPySelf,NULL,sipName_startDrag);

    if (!sipMeth)
    {
        Akonadi::EntityListView::startDrag(a0);
        return;
    }

    typedef void (*sipVH_QtGui_153)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::DropActions);

    ((sipVH_QtGui_153)(sipModuleAPI_akonadi_QtGui->em_virthandlers[153]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_EntityListView::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[81],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[82],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[83],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        Akonadi::EntityListView::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_EntityListView::setModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[84],sipPySelf,NULL,sipName_setModel);

    if (!sipMeth)
    {
        Akonadi::EntityListView::setModel(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_EntityListView_setXmlGuiClient(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityListView_setXmlGuiClient(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KXMLGUIClient* a0;
        Akonadi::EntityListView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_EntityListView, &sipCpp, sipType_KXMLGUIClient, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setXmlGuiClient(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_EntityListView, sipName_setXmlGuiClient, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityListView_setModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityListView_setModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QAbstractItemModel* a0;
        Akonadi::EntityListView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_EntityListView, &sipCpp, sipType_QAbstractItemModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityListView::setModel(a0) : sipCpp->setModel(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_EntityListView, sipName_setModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityListView_dragMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityListView_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent* a0;
        Akonadi::EntityListView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_EntityListView, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityListView::dragMoveEvent(a0) : sipCpp->dragMoveEvent(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_EntityListView, sipName_dragMoveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityListView_dropEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityListView_dropEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent* a0;
        Akonadi::EntityListView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_EntityListView, &sipCpp, sipType_QDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityListView::dropEvent(a0) : sipCpp->dropEvent(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_EntityListView, sipName_dropEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityListView_contextMenuEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityListView_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent* a0;
        Akonadi::EntityListView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_EntityListView, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityListView::contextMenuEvent(a0) : sipCpp->contextMenuEvent(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_EntityListView, sipName_contextMenuEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityListView_startDrag(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityListView_startDrag(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Qt::DropActions* a0;
        int a0State = 0;
        Akonadi::EntityListView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_EntityListView, &sipCpp, sipType_Qt_DropActions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::EntityListView::startDrag(*a0) : sipCpp->startDrag(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityListView, sipName_startDrag, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityListView_setDropActionMenuEnabled(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityListView_setDropActionMenuEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Akonadi::EntityListView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_EntityListView, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDropActionMenuEnabled(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_EntityListView, sipName_setDropActionMenuEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityListView_isDropActionMenuEnabled(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityListView_isDropActionMenuEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityListView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityListView, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDropActionMenuEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityListView, sipName_isDropActionMenuEnabled, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_Akonadi_EntityListView(void *, const sipTypeDef *);}
static void *cast_Akonadi_EntityListView(void *sipCppV, const sipTypeDef *targetType)
{
    Akonadi::EntityListView *sipCpp = reinterpret_cast<Akonadi::EntityListView *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast<QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_EntityListView(void *, int);}
static void release_Akonadi_EntityListView(void *sipCppV,int)
{
    Akonadi::EntityListView *sipCpp = reinterpret_cast<Akonadi::EntityListView *>(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_EntityListView(sipSimpleWrapper *);}
static void dealloc_Akonadi_EntityListView(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_EntityListView *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_EntityListView(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_EntityListView(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_EntityListView(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_EntityListView *sipCpp = 0;

    {
        QWidget* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_EntityListView(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        KXMLGUIClient* a0;
        QWidget* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_KXMLGUIClient, &a0, sipType_QWidget, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_EntityListView(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_EntityListView[] = {{314, 2, 1}};


static PyMethodDef methods_Akonadi_EntityListView[] = {
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_Akonadi_EntityListView_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_Akonadi_EntityListView_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_Akonadi_EntityListView_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDropActionMenuEnabled), meth_Akonadi_EntityListView_isDropActionMenuEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDropActionMenuEnabled), meth_Akonadi_EntityListView_setDropActionMenuEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModel), meth_Akonadi_EntityListView_setModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXmlGuiClient), meth_Akonadi_EntityListView_setXmlGuiClient, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startDrag), meth_Akonadi_EntityListView_startDrag, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_EntityListView[] = {
    {"currentChanged(Akonadi::Collection)", 0, 0, 0},
    {"currentChanged(Akonadi::Item)", 0, 0, 0},
    {"doubleClicked(Akonadi::Collection)", 0, 0, 0},
    {"doubleClicked(Akonadi::Item)", 0, 0, 0},
    {"clicked(Akonadi::Collection)", 0, 0, 0},
    {"clicked(Akonadi::Item)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityListView = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityListView,
        {0}
    },
    {
        sipNameNr_EntityListView,
        {0, 255, 0},
        8, methods_Akonadi_EntityListView,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityListView,
    0,
    init_type_Akonadi_EntityListView,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityListView,
    0,
    0,
    0,
    release_Akonadi_EntityListView,
    cast_Akonadi_EntityListView,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::EntityListView::staticMetaObject,
    0,
    signals_Akonadi_EntityListView,
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entityhiddenattribute.sip"
#include <akonadi/entityhiddenattribute.h>
#line 11489 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11493 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


extern "C" {static PyObject *meth_Akonadi_EntityHiddenAttribute_type(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityHiddenAttribute_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityHiddenAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityHiddenAttribute, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->type());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityHiddenAttribute, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityHiddenAttribute_clone(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityHiddenAttribute_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityHiddenAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityHiddenAttribute, &sipCpp))
        {
            Akonadi::EntityHiddenAttribute*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->clone();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Akonadi_EntityHiddenAttribute,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityHiddenAttribute, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityHiddenAttribute_serialized(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityHiddenAttribute_serialized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityHiddenAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityHiddenAttribute, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->serialized());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityHiddenAttribute, sipName_serialized, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityHiddenAttribute_deserialize(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityHiddenAttribute_deserialize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        Akonadi::EntityHiddenAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityHiddenAttribute, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deserialize(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityHiddenAttribute, sipName_deserialize, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_EntityHiddenAttribute(void *, int);}
static void release_Akonadi_EntityHiddenAttribute(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Akonadi::EntityHiddenAttribute *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_EntityHiddenAttribute(sipSimpleWrapper *);}
static void dealloc_Akonadi_EntityHiddenAttribute(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_EntityHiddenAttribute(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_Akonadi_EntityHiddenAttribute(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_EntityHiddenAttribute(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::EntityHiddenAttribute *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::EntityHiddenAttribute();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_EntityHiddenAttribute[] = {{25, 255, 1}};


static PyMethodDef methods_Akonadi_EntityHiddenAttribute[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_Akonadi_EntityHiddenAttribute_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deserialize), meth_Akonadi_EntityHiddenAttribute_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_Akonadi_EntityHiddenAttribute_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_EntityHiddenAttribute_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityHiddenAttribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityHiddenAttribute,
        {0}
    },
    {
        sipNameNr_EntityHiddenAttribute,
        {0, 255, 0},
        4, methods_Akonadi_EntityHiddenAttribute,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityHiddenAttribute,
    0,
    init_type_Akonadi_EntityHiddenAttribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityHiddenAttribute,
    0,
    0,
    0,
    release_Akonadi_EntityHiddenAttribute,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entitydisplayattribute.sip"
#include <akonadi/entitydisplayattribute.h>
#line 11715 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcolor.sip"
#include <qcolor.h>
#line 11719 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11722 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 11725 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11728 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_setDisplayName(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_setDisplayName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDisplayName(*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_EntityDisplayAttribute, sipName_setDisplayName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_displayName(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_displayName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->displayName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_displayName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_setIconName(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_setIconName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIconName(*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_EntityDisplayAttribute, sipName_setIconName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_icon(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_icon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            KIcon*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIcon(sipCpp->icon());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_icon, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_iconName(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_iconName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->iconName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_iconName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_type(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->type());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_clone(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            Akonadi::EntityDisplayAttribute*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->clone();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Akonadi_EntityDisplayAttribute,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_serialized(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_serialized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->serialized());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_serialized, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_deserialize(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_deserialize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deserialize(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_deserialize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_setActiveIconName(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_setActiveIconName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setActiveIconName(*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_EntityDisplayAttribute, sipName_setActiveIconName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_activeIcon(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_activeIcon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            KIcon*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIcon(sipCpp->activeIcon());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_activeIcon, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_activeIconName(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_activeIconName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->activeIconName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_activeIconName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_backgroundColor(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_backgroundColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp))
        {
            QColor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QColor(sipCpp->backgroundColor());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_backgroundColor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_EntityDisplayAttribute_setBackgroundColor(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_EntityDisplayAttribute_setBackgroundColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;
        Akonadi::EntityDisplayAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_EntityDisplayAttribute, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBackgroundColor(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EntityDisplayAttribute, sipName_setBackgroundColor, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_EntityDisplayAttribute(void *, int);}
static void release_Akonadi_EntityDisplayAttribute(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Akonadi::EntityDisplayAttribute *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_EntityDisplayAttribute(sipSimpleWrapper *);}
static void dealloc_Akonadi_EntityDisplayAttribute(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_EntityDisplayAttribute(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_Akonadi_EntityDisplayAttribute(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_EntityDisplayAttribute(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::EntityDisplayAttribute *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::EntityDisplayAttribute();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_EntityDisplayAttribute[] = {{25, 255, 1}};


static PyMethodDef methods_Akonadi_EntityDisplayAttribute[] = {
    {SIP_MLNAME_CAST(sipName_activeIcon), meth_Akonadi_EntityDisplayAttribute_activeIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_activeIconName), meth_Akonadi_EntityDisplayAttribute_activeIconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backgroundColor), meth_Akonadi_EntityDisplayAttribute_backgroundColor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clone), meth_Akonadi_EntityDisplayAttribute_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deserialize), meth_Akonadi_EntityDisplayAttribute_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_displayName), meth_Akonadi_EntityDisplayAttribute_displayName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_Akonadi_EntityDisplayAttribute_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iconName), meth_Akonadi_EntityDisplayAttribute_iconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_Akonadi_EntityDisplayAttribute_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActiveIconName), meth_Akonadi_EntityDisplayAttribute_setActiveIconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBackgroundColor), meth_Akonadi_EntityDisplayAttribute_setBackgroundColor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDisplayName), meth_Akonadi_EntityDisplayAttribute_setDisplayName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIconName), meth_Akonadi_EntityDisplayAttribute_setIconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_EntityDisplayAttribute_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_EntityDisplayAttribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__EntityDisplayAttribute,
        {0}
    },
    {
        sipNameNr_EntityDisplayAttribute,
        {0, 255, 0},
        14, methods_Akonadi_EntityDisplayAttribute,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_EntityDisplayAttribute,
    0,
    init_type_Akonadi_EntityDisplayAttribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_EntityDisplayAttribute,
    0,
    0,
    0,
    release_Akonadi_EntityDisplayAttribute,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <qvector.h>
#line 12238 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"



extern "C" {static void assign_QVector_3800(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_3800(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<Akonadi::Entity::Id> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<Akonadi::Entity::Id> *>(sipSrc);
}


extern "C" {static void *array_QVector_3800(SIP_SSIZE_T);}
static void *array_QVector_3800(SIP_SSIZE_T sipNrElem)
{
    return new QVector<Akonadi::Entity::Id>[sipNrElem];
}


extern "C" {static void *copy_QVector_3800(const void *, SIP_SSIZE_T);}
static void *copy_QVector_3800(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<Akonadi::Entity::Id>(reinterpret_cast<const QVector<Akonadi::Entity::Id> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_3800(void *, int);}
static void release_QVector_3800(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QVector<Akonadi::Entity::Id> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QVector_3800(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_3800(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<Akonadi::Entity::Id> **sipCppPtr = reinterpret_cast<QVector<Akonadi::Entity::Id> **>(sipCppPtrV);

#line 153 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
        return PyList_Check(sipPy);

    QVector<Akonadi::Entity::Id> *ql = new QVector<Akonadi::Entity::Id>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
        ql->append((Akonadi::Entity::Id)PyLong_AsLongLong(PyList_GET_ITEM(sipPy, i)));
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 12292 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_3800(void *, PyObject *);}
static PyObject *convertFrom_QVector_3800(void *sipCppV, PyObject *)
{
   QVector<Akonadi::Entity::Id> *sipCpp = reinterpret_cast<QVector<Akonadi::Entity::Id> *>(sipCppV);

#line 128 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *pobj;

        if ((pobj = PyLong_FromLongLong (sipCpp->value(i))) == NULL)
        {
            Py_DECREF(l);

            return NULL;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
#line 12324 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
}


sipMappedTypeDef sipTypeDef_akonadi_QVector_3800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3658,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_3800,
    array_QVector_3800,
    copy_QVector_3800,
    release_QVector_3800,
    convertTo_QVector_3800,
    convertFrom_QVector_3800
};

#line 77 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <qlist.h>
#line 12355 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"



extern "C" {static void assign_QList_3800(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_3800(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<Akonadi::Entity::Id> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<Akonadi::Entity::Id> *>(sipSrc);
}


extern "C" {static void *array_QList_3800(SIP_SSIZE_T);}
static void *array_QList_3800(SIP_SSIZE_T sipNrElem)
{
    return new QList<Akonadi::Entity::Id>[sipNrElem];
}


extern "C" {static void *copy_QList_3800(const void *, SIP_SSIZE_T);}
static void *copy_QList_3800(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<Akonadi::Entity::Id>(reinterpret_cast<const QList<Akonadi::Entity::Id> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_3800(void *, int);}
static void release_QList_3800(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<Akonadi::Entity::Id> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QList_3800(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_3800(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<Akonadi::Entity::Id> **sipCppPtr = reinterpret_cast<QList<Akonadi::Entity::Id> **>(sipCppPtrV);

#line 106 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
        return PyList_Check(sipPy);

    QList<Akonadi::Entity::Id> *ql = new QList<Akonadi::Entity::Id>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
        ql->append((Akonadi::Entity::Id)PyLong_AsLongLong(PyList_GET_ITEM(sipPy, i)));
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 12409 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
}


extern "C" {static PyObject *convertFrom_QList_3800(void *, PyObject *);}
static PyObject *convertFrom_QList_3800(void *sipCppV, PyObject *)
{
   QList<Akonadi::Entity::Id> *sipCpp = reinterpret_cast<QList<Akonadi::Entity::Id> *>(sipCppV);

#line 81 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/entity.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *pobj;

        if ((pobj = PyLong_FromLongLong (sipCpp->value(i))) == NULL)
        {
            Py_DECREF(l);

            return NULL;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
#line 12441 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
}


sipMappedTypeDef sipTypeDef_akonadi_QList_3800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_4668,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_3800,
    array_QList_3800,
    copy_QList_3800,
    release_QList_3800,
    convertTo_QList_3800,
    convertFrom_QList_3800
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/control.sip"
#include <akonadi/control.h>
#line 12472 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 12476 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12479 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12482 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12485 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 12488 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12491 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12494 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12497 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12500 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 12503 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 12506 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 12509 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12512 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12515 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_Control : public Akonadi::Control
{
public:
    sipAkonadi_Control();
    virtual ~sipAkonadi_Control();

    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_Control(const sipAkonadi_Control &);
    sipAkonadi_Control &operator = (const sipAkonadi_Control &);

    char sipPyMethods[7];
};

sipAkonadi_Control::sipAkonadi_Control(): Akonadi::Control(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_Control::~sipAkonadi_Control()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_Control::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_Control);
}

int sipAkonadi_Control::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::Control::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_Control,_c,_id,_a);

    return _id;
}

void *sipAkonadi_Control::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_Control, _clname)) ? this : Akonadi::Control::qt_metacast(_clname);
}

void sipAkonadi_Control::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::Control::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_Control::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::Control::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_Control::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::Control::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_Control::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::Control::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_Control::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::Control::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_Control::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::Control::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_Control::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::Control::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_Control_start(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Control_start(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::Control::start();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QWidget* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:", sipType_QWidget, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::Control::start(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Control, sipName_start, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Control_stop(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Control_stop(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::Control::stop();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QWidget* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:", sipType_QWidget, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::Control::stop(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Control, sipName_stop, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Control_restart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Control_restart(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::Control::restart();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QWidget* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:", sipType_QWidget, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::Control::restart(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Control, sipName_restart, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Control_widgetNeedsAkonadi(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Control_widgetNeedsAkonadi(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWidget* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            Akonadi::Control::widgetNeedsAkonadi(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_Control, sipName_widgetNeedsAkonadi, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_Control(void *, int);}
static void release_Akonadi_Control(void *sipCppV,int)
{
    Akonadi::Control *sipCpp = reinterpret_cast<Akonadi::Control *>(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_Control(sipSimpleWrapper *);}
static void dealloc_Akonadi_Control(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_Control *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_Control(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_Control(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_Control(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipAkonadi_Control *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_Control();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_Control[] = {{141, 0, 1}};


static PyMethodDef methods_Akonadi_Control[] = {
    {SIP_MLNAME_CAST(sipName_restart), meth_Akonadi_Control_restart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_Control_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stop), meth_Akonadi_Control_stop, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_widgetNeedsAkonadi), meth_Akonadi_Control_widgetNeedsAkonadi, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_Control = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Control,
        {0}
    },
    {
        sipNameNr_Control,
        {0, 255, 0},
        4, methods_Akonadi_Control,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_Control,
    0,
    init_type_Akonadi_Control,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Control,
    0,
    0,
    0,
    release_Akonadi_Control,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::Control::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionview.sip"
#include <akonadi/collectionview.h>
#line 12967 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 12971 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiwindow.sip"
#include <kxmlguiwindow.h>
#line 12974 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 12977 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 12980 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 12983 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 12986 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 12989 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 12992 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 12995 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 169 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 12998 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 13001 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13004 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13007 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13010 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 13013 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 13016 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 13019 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 1130 "/usr/share/python3-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 13022 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13025 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13028 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13031 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 89 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 13034 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 13037 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13040 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13043 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 13046 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 13049 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qheaderview.sip"
#include <qheaderview.h>
#line 13052 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 89 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 13055 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13058 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13061 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemdelegate.sip"
#include <qabstractitemdelegate.h>
#line 13064 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13067 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13070 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13073 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13076 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 13079 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 13082 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 13085 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13088 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13091 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qscrollbar.sip"
#include <qscrollbar.h>
#line 13094 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13097 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 13100 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qframe.sip"
#include <qframe.h>
#line 13103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13106 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13109 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 13112 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 13115 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 13118 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 13121 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 13124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 13130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 13133 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 13136 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13139 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 13142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13145 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13148 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13151 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13154 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13157 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 13160 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 13163 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 13166 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 13169 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13172 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 13175 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 13178 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 13181 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13184 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 13187 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 13190 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 13193 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 13196 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 13199 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13202 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13205 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13208 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 13211 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13214 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13217 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_CollectionView : public Akonadi::CollectionView
{
public:
    sipAkonadi_CollectionView(QWidget*);
    sipAkonadi_CollectionView(KXmlGuiWindow*,QWidget*);
    sipAkonadi_CollectionView(KXMLGUIClient*,QWidget*);
    virtual ~sipAkonadi_CollectionView();

    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*);
    bool eventFilter(QObject*,QEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void closeEvent(QCloseEvent*);
    void moveEvent(QMoveEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void keyReleaseEvent(QKeyEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    void setVisible(bool);
    int devType() const;
    void changeEvent(QEvent*);
    void wheelEvent(QWheelEvent*);
    QSize sizeHint() const;
    QSize minimumSizeHint() const;
    void inputMethodEvent(QInputMethodEvent*);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void resizeEvent(QResizeEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    bool event(QEvent*);
    QStyleOptionViewItem viewOptions() const;
    void startDrag(Qt::DropActions);
    QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex&,const QEvent*) const;
    bool edit(const QModelIndex&,QAbstractItemView::EditTrigger,QEvent*);
    void editorDestroyed(QObject*);
    void commitData(QWidget*);
    void closeEditor(QWidget*,QAbstractItemDelegate::EndEditHint);
    void horizontalScrollbarValueChanged(int);
    void verticalScrollbarValueChanged(int);
    void verticalScrollbarAction(int);
    void updateEditorGeometries();
    void updateEditorData();
    int sizeHintForRow(int) const;
    void selectionChanged(const QItemSelection&,const QItemSelection&);
    bool viewportEvent(QEvent*);
    bool isIndexHidden(const QModelIndex&) const;
    void horizontalScrollbarAction(int);
    int sizeHintForColumn(int) const;
    void updateGeometries();
    void keyPressEvent(QKeyEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    void drawBranches(QPainter*,const QRect&,const QModelIndex&) const;
    void drawRow(QPainter*,const QStyleOptionViewItem&,const QModelIndex&) const;
    void mouseReleaseEvent(QMouseEvent*);
    void timerEvent(QTimerEvent*);
    void paintEvent(QPaintEvent*);
    QModelIndexList selectedIndexes() const;
    QRegion visualRegionForSelection(const QItemSelection&) const;
    void setSelection(const QRect&,QItemSelectionModel::SelectionFlags);
    int verticalOffset() const;
    int horizontalOffset() const;
    QModelIndex moveCursor(QAbstractItemView::CursorAction,Qt::KeyboardModifiers);
    void rowsAboutToBeRemoved(const QModelIndex&,int,int);
    void rowsInserted(const QModelIndex&,int,int);
    void scrollContentsBy(int,int);
    void selectAll();
    void dataChanged(const QModelIndex&,const QModelIndex&);
    void reset();
    QModelIndex indexAt(const QPoint&) const;
    void scrollTo(const QModelIndex&,QAbstractItemView::ScrollHint);
    QRect visualRect(const QModelIndex&) const;
    void keyboardSearch(const QString&);
    void setSelectionModel(QItemSelectionModel*);
    void setRootIndex(const QModelIndex&);
    void contextMenuEvent(QContextMenuEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void setModel(QAbstractItemModel*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionView(const sipAkonadi_CollectionView &);
    sipAkonadi_CollectionView &operator = (const sipAkonadi_CollectionView &);

    char sipPyMethods[87];
};

sipAkonadi_CollectionView::sipAkonadi_CollectionView(QWidget*a0): Akonadi::CollectionView(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionView::sipAkonadi_CollectionView(KXmlGuiWindow*a0,QWidget*a1): Akonadi::CollectionView(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionView::sipAkonadi_CollectionView(KXMLGUIClient*a0,QWidget*a1): Akonadi::CollectionView(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionView::~sipAkonadi_CollectionView()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionView::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionView);
}

int sipAkonadi_CollectionView::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionView::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionView,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionView::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionView, _clname)) ? this : Akonadi::CollectionView::qt_metacast(_clname);
}

void sipAkonadi_CollectionView::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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);
}

bool sipAkonadi_CollectionView::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionView::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_CollectionView::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_languageChange);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_windowActivationChange);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_fontChange);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_paletteChange);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_enabledChange);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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);
}

int sipAkonadi_CollectionView::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return Akonadi::CollectionView::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_CollectionView::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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);
}

QPaintEngine* sipAkonadi_CollectionView::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return Akonadi::CollectionView::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_CollectionView::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return Akonadi::CollectionView::heightForWidth(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_akonadi_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return Akonadi::CollectionView::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);
}

void sipAkonadi_CollectionView::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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);
}

QSize sipAkonadi_CollectionView::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return Akonadi::CollectionView::sizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

QSize sipAkonadi_CollectionView::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return Akonadi::CollectionView::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionView::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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);
}

bool sipAkonadi_CollectionView::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return Akonadi::CollectionView::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_CollectionView::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return Akonadi::CollectionView::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_CollectionView::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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);
}

bool sipAkonadi_CollectionView::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionView::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);
}

QStyleOptionViewItem sipAkonadi_CollectionView::viewOptions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_viewOptions);

    if (!sipMeth)
        return Akonadi::CollectionView::viewOptions();

    typedef QStyleOptionViewItem (*sipVH_QtGui_71)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_71)(sipModuleAPI_akonadi_QtGui->em_virthandlers[71]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionView::startDrag(Qt::DropActions a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_startDrag);

    if (!sipMeth)
    {
        Akonadi::CollectionView::startDrag(a0);
        return;
    }

    typedef void (*sipVH_QtGui_153)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::DropActions);

    ((sipVH_QtGui_153)(sipModuleAPI_akonadi_QtGui->em_virthandlers[153]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QItemSelectionModel::SelectionFlags sipAkonadi_CollectionView::selectionCommand(const QModelIndex& a0,const QEvent*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,NULL,sipName_selectionCommand);

    if (!sipMeth)
        return Akonadi::CollectionView::selectionCommand(a0,a1);

    typedef QItemSelectionModel::SelectionFlags (*sipVH_QtGui_233)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QEvent*);

    return ((sipVH_QtGui_233)(sipModuleAPI_akonadi_QtGui->em_virthandlers[233]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_CollectionView::edit(const QModelIndex& a0,QAbstractItemView::EditTrigger a1,QEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_edit);

    if (!sipMeth)
        return Akonadi::CollectionView::edit(a0,a1,a2);

    typedef bool (*sipVH_QtGui_234)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,QAbstractItemView::EditTrigger,QEvent*);

    return ((sipVH_QtGui_234)(sipModuleAPI_akonadi_QtGui->em_virthandlers[234]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionView::editorDestroyed(QObject*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_editorDestroyed);

    if (!sipMeth)
    {
        Akonadi::CollectionView::editorDestroyed(a0);
        return;
    }

    typedef void (*sipVH_QtGui_235)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*);

    ((sipVH_QtGui_235)(sipModuleAPI_akonadi_QtGui->em_virthandlers[235]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::commitData(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_commitData);

    if (!sipMeth)
    {
        Akonadi::CollectionView::commitData(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    ((sipVH_QtGui_7)(sipModuleAPI_akonadi_QtGui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::closeEditor(QWidget*a0,QAbstractItemDelegate::EndEditHint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_closeEditor);

    if (!sipMeth)
    {
        Akonadi::CollectionView::closeEditor(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_236)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,QAbstractItemDelegate::EndEditHint);

    ((sipVH_QtGui_236)(sipModuleAPI_akonadi_QtGui->em_virthandlers[236]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionView::horizontalScrollbarValueChanged(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_horizontalScrollbarValueChanged);

    if (!sipMeth)
    {
        Akonadi::CollectionView::horizontalScrollbarValueChanged(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::verticalScrollbarValueChanged(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_verticalScrollbarValueChanged);

    if (!sipMeth)
    {
        Akonadi::CollectionView::verticalScrollbarValueChanged(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::verticalScrollbarAction(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_verticalScrollbarAction);

    if (!sipMeth)
    {
        Akonadi::CollectionView::verticalScrollbarAction(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::updateEditorGeometries()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_updateEditorGeometries);

    if (!sipMeth)
    {
        Akonadi::CollectionView::updateEditorGeometries();
        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_CollectionView::updateEditorData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_updateEditorData);

    if (!sipMeth)
    {
        Akonadi::CollectionView::updateEditorData();
        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);
}

int sipAkonadi_CollectionView::sizeHintForRow(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[48]),sipPySelf,NULL,sipName_sizeHintForRow);

    if (!sipMeth)
        return Akonadi::CollectionView::sizeHintForRow(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_akonadi_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::selectionChanged(const QItemSelection& a0,const QItemSelection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_selectionChanged);

    if (!sipMeth)
    {
        Akonadi::CollectionView::selectionChanged(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QItemSelection&,const QItemSelection&);

    ((sipVH_QtGui_46)(sipModuleAPI_akonadi_QtGui->em_virthandlers[46]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_CollectionView::viewportEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_viewportEvent);

    if (!sipMeth)
        return Akonadi::CollectionView::viewportEvent(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_CollectionView::isIndexHidden(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[51]),sipPySelf,NULL,sipName_isIndexHidden);

    if (!sipMeth)
        return Akonadi::CollectionView::isIndexHidden(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_CollectionView::horizontalScrollbarAction(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,NULL,sipName_horizontalScrollbarAction);

    if (!sipMeth)
    {
        Akonadi::CollectionView::horizontalScrollbarAction(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipAkonadi_CollectionView::sizeHintForColumn(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[53]),sipPySelf,NULL,sipName_sizeHintForColumn);

    if (!sipMeth)
        return Akonadi::CollectionView::sizeHintForColumn(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_akonadi_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::updateGeometries()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[54],sipPySelf,NULL,sipName_updateGeometries);

    if (!sipMeth)
    {
        Akonadi::CollectionView::updateGeometries();
        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_CollectionView::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[55],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[56],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[57],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[58],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_akonadi_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::drawBranches(QPainter*a0,const QRect& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[59]),sipPySelf,NULL,sipName_drawBranches);

    if (!sipMeth)
    {
        Akonadi::CollectionView::drawBranches(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QRect&,const QModelIndex&);

    ((sipVH_QtGui_47)(sipModuleAPI_akonadi_QtGui->em_virthandlers[47]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionView::drawRow(QPainter*a0,const QStyleOptionViewItem& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[60]),sipPySelf,NULL,sipName_drawRow);

    if (!sipMeth)
    {
        Akonadi::CollectionView::drawRow(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QStyleOptionViewItem&,const QModelIndex&);

    ((sipVH_QtGui_48)(sipModuleAPI_akonadi_QtGui->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionView::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[61],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[62],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_akonadi_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[63],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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);
}

QModelIndexList sipAkonadi_CollectionView::selectedIndexes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[64]),sipPySelf,NULL,sipName_selectedIndexes);

    if (!sipMeth)
        return Akonadi::CollectionView::selectedIndexes();

    typedef QList<QModelIndex> (*sipVH_QtGui_49)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_49)(sipModuleAPI_akonadi_QtGui->em_virthandlers[49]))(sipGILState, 0, sipPySelf, sipMeth);
}

QRegion sipAkonadi_CollectionView::visualRegionForSelection(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[65]),sipPySelf,NULL,sipName_visualRegionForSelection);

    if (!sipMeth)
        return Akonadi::CollectionView::visualRegionForSelection(a0);

    typedef QRegion (*sipVH_QtGui_50)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QItemSelection&);

    return ((sipVH_QtGui_50)(sipModuleAPI_akonadi_QtGui->em_virthandlers[50]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::setSelection(const QRect& a0,QItemSelectionModel::SelectionFlags a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[66],sipPySelf,NULL,sipName_setSelection);

    if (!sipMeth)
    {
        Akonadi::CollectionView::setSelection(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRect&,QItemSelectionModel::SelectionFlags);

    ((sipVH_QtGui_51)(sipModuleAPI_akonadi_QtGui->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipAkonadi_CollectionView::verticalOffset() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[67]),sipPySelf,NULL,sipName_verticalOffset);

    if (!sipMeth)
        return Akonadi::CollectionView::verticalOffset();

    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);
}

int sipAkonadi_CollectionView::horizontalOffset() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[68]),sipPySelf,NULL,sipName_horizontalOffset);

    if (!sipMeth)
        return Akonadi::CollectionView::horizontalOffset();

    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);
}

QModelIndex sipAkonadi_CollectionView::moveCursor(QAbstractItemView::CursorAction a0,Qt::KeyboardModifiers a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[69],sipPySelf,NULL,sipName_moveCursor);

    if (!sipMeth)
        return Akonadi::CollectionView::moveCursor(a0,a1);

    typedef QModelIndex (*sipVH_QtGui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QAbstractItemView::CursorAction,Qt::KeyboardModifiers);

    return ((sipVH_QtGui_52)(sipModuleAPI_akonadi_QtGui->em_virthandlers[52]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionView::rowsAboutToBeRemoved(const QModelIndex& a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[70],sipPySelf,NULL,sipName_rowsAboutToBeRemoved);

    if (!sipMeth)
    {
        Akonadi::CollectionView::rowsAboutToBeRemoved(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,int);

    ((sipVH_QtGui_53)(sipModuleAPI_akonadi_QtGui->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionView::rowsInserted(const QModelIndex& a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[71],sipPySelf,NULL,sipName_rowsInserted);

    if (!sipMeth)
    {
        Akonadi::CollectionView::rowsInserted(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,int);

    ((sipVH_QtGui_53)(sipModuleAPI_akonadi_QtGui->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionView::scrollContentsBy(int a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[72],sipPySelf,NULL,sipName_scrollContentsBy);

    if (!sipMeth)
    {
        Akonadi::CollectionView::scrollContentsBy(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);

    ((sipVH_QtGui_32)(sipModuleAPI_akonadi_QtGui->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionView::selectAll()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[73],sipPySelf,NULL,sipName_selectAll);

    if (!sipMeth)
    {
        Akonadi::CollectionView::selectAll();
        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_CollectionView::dataChanged(const QModelIndex& a0,const QModelIndex& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[74],sipPySelf,NULL,sipName_dataChanged);

    if (!sipMeth)
    {
        Akonadi::CollectionView::dataChanged(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_45)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QModelIndex&);

    ((sipVH_QtGui_45)(sipModuleAPI_akonadi_QtGui->em_virthandlers[45]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionView::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[75],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
    {
        Akonadi::CollectionView::reset();
        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);
}

QModelIndex sipAkonadi_CollectionView::indexAt(const QPoint& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[76]),sipPySelf,NULL,sipName_indexAt);

    if (!sipMeth)
        return Akonadi::CollectionView::indexAt(a0);

    typedef QModelIndex (*sipVH_QtGui_54)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPoint&);

    return ((sipVH_QtGui_54)(sipModuleAPI_akonadi_QtGui->em_virthandlers[54]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::scrollTo(const QModelIndex& a0,QAbstractItemView::ScrollHint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[77],sipPySelf,NULL,sipName_scrollTo);

    if (!sipMeth)
    {
        Akonadi::CollectionView::scrollTo(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_55)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,QAbstractItemView::ScrollHint);

    ((sipVH_QtGui_55)(sipModuleAPI_akonadi_QtGui->em_virthandlers[55]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QRect sipAkonadi_CollectionView::visualRect(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[78]),sipPySelf,NULL,sipName_visualRect);

    if (!sipMeth)
        return Akonadi::CollectionView::visualRect(a0);

    typedef QRect (*sipVH_QtGui_56)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtGui_56)(sipModuleAPI_akonadi_QtGui->em_virthandlers[56]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::keyboardSearch(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[79],sipPySelf,NULL,sipName_keyboardSearch);

    if (!sipMeth)
    {
        Akonadi::CollectionView::keyboardSearch(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_akonadi_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::setSelectionModel(QItemSelectionModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[80],sipPySelf,NULL,sipName_setSelectionModel);

    if (!sipMeth)
    {
        Akonadi::CollectionView::setSelectionModel(a0);
        return;
    }

    typedef void (*sipVH_QtGui_37)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QItemSelectionModel*);

    ((sipVH_QtGui_37)(sipModuleAPI_akonadi_QtGui->em_virthandlers[37]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionView::setRootIndex(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[81],sipPySelf,NULL,sipName_setRootIndex);

    if (!sipMeth)
    {
        Akonadi::CollectionView::setRootIndex(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);
}

void sipAkonadi_CollectionView::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[82],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[83],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[84],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[85],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionView::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_CollectionView::setModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[86],sipPySelf,NULL,sipName_setModel);

    if (!sipMeth)
    {
        Akonadi::CollectionView::setModel(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_CollectionView_setXmlGuiWindow(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionView_setXmlGuiWindow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KXmlGuiWindow* a0;
        Akonadi::CollectionView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_CollectionView, &sipCpp, sipType_KXmlGuiWindow, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setXmlGuiWindow(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_CollectionView, sipName_setXmlGuiWindow, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionView_setXmlGuiClient(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionView_setXmlGuiClient(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KXMLGUIClient* a0;
        Akonadi::CollectionView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_CollectionView, &sipCpp, sipType_KXMLGUIClient, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setXmlGuiClient(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_CollectionView, sipName_setXmlGuiClient, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionView_setModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionView_setModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QAbstractItemModel* a0;
        Akonadi::CollectionView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_CollectionView, &sipCpp, sipType_QAbstractItemModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionView::setModel(a0) : sipCpp->setModel(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_CollectionView, sipName_setModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionView_dragMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionView_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent* a0;
        Akonadi::CollectionView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_CollectionView, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionView::dragMoveEvent(a0) : sipCpp->dragMoveEvent(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_CollectionView, sipName_dragMoveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionView_dragLeaveEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionView_dragLeaveEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent* a0;
        Akonadi::CollectionView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_CollectionView, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionView::dragLeaveEvent(a0) : sipCpp->dragLeaveEvent(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_CollectionView, sipName_dragLeaveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionView_dropEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionView_dropEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent* a0;
        Akonadi::CollectionView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_CollectionView, &sipCpp, sipType_QDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionView::dropEvent(a0) : sipCpp->dropEvent(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_CollectionView, sipName_dropEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionView_contextMenuEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionView_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent* a0;
        Akonadi::CollectionView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_CollectionView, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionView::contextMenuEvent(a0) : sipCpp->contextMenuEvent(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_CollectionView, sipName_contextMenuEvent, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionView(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionView(void *sipCppV, const sipTypeDef *targetType)
{
    Akonadi::CollectionView *sipCpp = reinterpret_cast<Akonadi::CollectionView *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast<QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionView(void *, int);}
static void release_Akonadi_CollectionView(void *sipCppV,int)
{
    Akonadi::CollectionView *sipCpp = reinterpret_cast<Akonadi::CollectionView *>(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_CollectionView(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionView(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionView *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionView(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionView(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionView(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionView *sipCpp = 0;

    {
        QWidget* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionView(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        KXmlGuiWindow* a0;
        QWidget* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_KXmlGuiWindow, &a0, sipType_QWidget, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionView(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        KXMLGUIClient* a0;
        QWidget* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_KXMLGUIClient, &a0, sipType_QWidget, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionView(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionView[] = {{723, 2, 1}};


static PyMethodDef methods_Akonadi_CollectionView[] = {
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_Akonadi_CollectionView_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_Akonadi_CollectionView_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_Akonadi_CollectionView_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_Akonadi_CollectionView_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModel), meth_Akonadi_CollectionView_setModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXmlGuiClient), meth_Akonadi_CollectionView_setXmlGuiClient, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXmlGuiWindow), meth_Akonadi_CollectionView_setXmlGuiWindow, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_CollectionView[] = {
    {"currentChanged(Akonadi::Collection)", 0, 0, 0},
    {"clicked(Akonadi::Collection)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionView = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionView,
        {0}
    },
    {
        sipNameNr_CollectionView,
        {0, 255, 0},
        7, methods_Akonadi_CollectionView,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionView,
    0,
    init_type_Akonadi_CollectionView,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionView,
    0,
    0,
    0,
    release_Akonadi_CollectionView,
    cast_Akonadi_CollectionView,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionView::staticMetaObject,
    0,
    signals_Akonadi_CollectionView,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionstatisticsmodel.sip"
#include <akonadi/collectionstatisticsmodel.h>
#line 15241 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 15245 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 15248 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15251 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 15254 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 15257 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 15260 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 15263 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 15266 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15269 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15272 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 15275 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 15278 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 15281 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 15284 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15287 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 15290 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 15293 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15296 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15299 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15302 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 15305 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 15308 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 15311 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 15314 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 15317 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 15320 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_CollectionStatisticsModel : public Akonadi::CollectionStatisticsModel
{
public:
    sipAkonadi_CollectionStatisticsModel(QObject*);
    virtual ~sipAkonadi_CollectionStatisticsModel();

    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&);
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    bool hasChildren(const QModelIndex&) const;
    QStringList mimeTypes() const;
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    QMimeData* mimeData(const QModelIndexList&) const;
    Qt::DropActions supportedDropActions() const;
    Qt::ItemFlags flags(const QModelIndex&) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    int rowCount(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 columnCount(const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionStatisticsModel(const sipAkonadi_CollectionStatisticsModel &);
    sipAkonadi_CollectionStatisticsModel &operator = (const sipAkonadi_CollectionStatisticsModel &);

    char sipPyMethods[35];
};

sipAkonadi_CollectionStatisticsModel::sipAkonadi_CollectionStatisticsModel(QObject*a0): Akonadi::CollectionStatisticsModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionStatisticsModel::~sipAkonadi_CollectionStatisticsModel()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionStatisticsModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionStatisticsModel);
}

int sipAkonadi_CollectionStatisticsModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionStatisticsModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionStatisticsModel,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionStatisticsModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionStatisticsModel, _clname)) ? this : Akonadi::CollectionStatisticsModel::qt_metacast(_clname);
}

void sipAkonadi_CollectionStatisticsModel::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel::sort(int a0,Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel::setItemData(const QModelIndex& a0,const QMap<int,QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_itemData);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::hasChildren(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_hasChildren);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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);
}

QStringList sipAkonadi_CollectionStatisticsModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_mimeTypes);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::dropMimeData(const QMimeData*a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_mimeData);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::mimeData(a0);

    typedef QMimeData* (*sipVH_QtGui_216)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList<QModelIndex>&);

    return ((sipVH_QtGui_216)(sipModuleAPI_akonadi_QtGui->em_virthandlers[216]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

Qt::DropActions sipAkonadi_CollectionStatisticsModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,NULL,sipName_supportedDropActions);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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);
}

Qt::ItemFlags sipAkonadi_CollectionStatisticsModel::flags(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::setData(a0,a1,a2);

    typedef bool (*sipVH_QtCore_59)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QVariant&,int);

    return ((sipVH_QtCore_59)(sipModuleAPI_akonadi_QtCore->em_virthandlers[59]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_CollectionStatisticsModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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);
}

int sipAkonadi_CollectionStatisticsModel::rowCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),sipPySelf,NULL,sipName_rowCount);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::parent(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,NULL,sipName_parent);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,NULL,sipName_index);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::data(const QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel::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::CollectionStatisticsModel::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_CollectionStatisticsModel_columnCount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsModel_columnCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const Akonadi::CollectionStatisticsModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_Akonadi_CollectionStatisticsModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel, sipName_columnCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsModel_data(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsModel_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        int a1 = Qt::DisplayRole;
        const Akonadi::CollectionStatisticsModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|i", &sipSelf, sipType_Akonadi_CollectionStatisticsModel, &sipCpp, sipType_QModelIndex, &a0, &a1))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel, sipName_data, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsModel_headerData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsModel_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::CollectionStatisticsModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiE|i", &sipSelf, sipType_Akonadi_CollectionStatisticsModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, &a2))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::CollectionStatisticsModel::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_CollectionStatisticsModel, sipName_headerData, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionStatisticsModel(void *, int);}
static void release_Akonadi_CollectionStatisticsModel(void *sipCppV,int)
{
    Akonadi::CollectionStatisticsModel *sipCpp = reinterpret_cast<Akonadi::CollectionStatisticsModel *>(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_CollectionStatisticsModel(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionStatisticsModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionStatisticsModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionStatisticsModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionStatisticsModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionStatisticsModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionStatisticsModel *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionStatisticsModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionStatisticsModel[] = {{46, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionStatisticsModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_CollectionStatisticsModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_Akonadi_CollectionStatisticsModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_headerData), meth_Akonadi_CollectionStatisticsModel_headerData, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_CollectionStatisticsModel[] = {
    {sipName_RecursiveSizeRole, static_cast<int>(Akonadi::CollectionStatisticsModel::RecursiveSizeRole), 60},
    {sipName_RecursiveStatisticsRole, static_cast<int>(Akonadi::CollectionStatisticsModel::RecursiveStatisticsRole), 60},
    {sipName_RecursiveTotalRole, static_cast<int>(Akonadi::CollectionStatisticsModel::RecursiveTotalRole), 60},
    {sipName_RecursiveUnreadRole, static_cast<int>(Akonadi::CollectionStatisticsModel::RecursiveUnreadRole), 60},
    {sipName_SizeRole, static_cast<int>(Akonadi::CollectionStatisticsModel::SizeRole), 60},
    {sipName_StatisticsRole, static_cast<int>(Akonadi::CollectionStatisticsModel::StatisticsRole), 60},
    {sipName_TotalRole, static_cast<int>(Akonadi::CollectionStatisticsModel::TotalRole), 60},
    {sipName_UnreadRole, static_cast<int>(Akonadi::CollectionStatisticsModel::UnreadRole), 60},
    {sipName_UserRole, static_cast<int>(Akonadi::CollectionStatisticsModel::UserRole), 60},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionStatisticsModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionStatisticsModel,
        {0}
    },
    {
        sipNameNr_CollectionStatisticsModel,
        {0, 255, 0},
        3, methods_Akonadi_CollectionStatisticsModel,
        9, enummembers_Akonadi_CollectionStatisticsModel,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionStatisticsModel,
    0,
    init_type_Akonadi_CollectionStatisticsModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionStatisticsModel,
    0,
    0,
    0,
    release_Akonadi_CollectionStatisticsModel,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionStatisticsModel::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionstatisticsjob.sip"
#include <akonadi/collectionstatisticsjob.h>
#line 16187 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 16191 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 16194 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16197 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionstatistics.sip"
#include <akonadi/collectionstatistics.h>
#line 16200 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 16203 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 16206 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16209 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 16212 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 16215 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16218 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 16221 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 16224 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16227 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16230 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 16236 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 16239 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 16242 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 16245 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 16248 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 16251 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 16254 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_CollectionStatisticsJob : public Akonadi::CollectionStatisticsJob
{
public:
    sipAkonadi_CollectionStatisticsJob(const Akonadi::Collection&,QObject*);
    virtual ~sipAkonadi_CollectionStatisticsJob();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool doResume();
    bool doSuspend();
    void start();
    void slotInfoMessage(KJob*,const QString&,const QString&);
    void slotResult(KJob*);
    bool doKill();
    bool removeSubjob(KJob*);
    bool addSubjob(KJob*);
    QString errorString() const;
    void doHandleResponse(const QByteArray&,const QByteArray&);
    void doStart();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionStatisticsJob(const sipAkonadi_CollectionStatisticsJob &);
    sipAkonadi_CollectionStatisticsJob &operator = (const sipAkonadi_CollectionStatisticsJob &);

    char sipPyMethods[18];
};

sipAkonadi_CollectionStatisticsJob::sipAkonadi_CollectionStatisticsJob(const Akonadi::Collection& a0,QObject*a1): Akonadi::CollectionStatisticsJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionStatisticsJob::~sipAkonadi_CollectionStatisticsJob()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionStatisticsJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionStatisticsJob);
}

int sipAkonadi_CollectionStatisticsJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionStatisticsJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionStatisticsJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionStatisticsJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionStatisticsJob, _clname)) ? this : Akonadi::CollectionStatisticsJob::qt_metacast(_clname);
}

void sipAkonadi_CollectionStatisticsJob::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::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_CollectionStatisticsJob::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::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_CollectionStatisticsJob::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::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_CollectionStatisticsJob::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::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_CollectionStatisticsJob::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::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_CollectionStatisticsJob::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsJob::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_CollectionStatisticsJob::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsJob::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_CollectionStatisticsJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsJob::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_CollectionStatisticsJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsJob::doSuspend();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionStatisticsJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::start();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionStatisticsJob::slotInfoMessage(KJob*a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_slotInfoMessage);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdecore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*,const QString&,const QString&);

    ((sipVH_kdecore_23)(sipModuleAPI_akonadi_kdecore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionStatisticsJob::slotResult(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_slotResult);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::slotResult(a0);
        return;
    }

    typedef void (*sipVH_kdecore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    ((sipVH_kdecore_27)(sipModuleAPI_akonadi_kdecore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionStatisticsJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsJob::doKill();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipAkonadi_CollectionStatisticsJob::removeSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_removeSubjob);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsJob::removeSubjob(a0);

    typedef bool (*sipVH_kdecore_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_53)(sipModuleAPI_akonadi_kdecore->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionStatisticsJob::addSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_addSubjob);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsJob::addSubjob(a0);

    typedef bool (*sipVH_kdecore_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_53)(sipModuleAPI_akonadi_kdecore->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipAkonadi_CollectionStatisticsJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsJob::errorString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_akonadi_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionStatisticsJob::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_doHandleResponse);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::doHandleResponse(a0,a1);
        return;
    }

    extern void sipVH_akonadi_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&,const QByteArray&);

    sipVH_akonadi_6(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionStatisticsJob::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_doStart);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsJob::doStart();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsJob_statistics(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsJob_statistics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionStatisticsJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionStatisticsJob, &sipCpp))
        {
            Akonadi::CollectionStatistics*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::CollectionStatistics(sipCpp->statistics());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Akonadi_CollectionStatistics,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionStatisticsJob, sipName_statistics, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsJob_collection(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsJob_collection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionStatisticsJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionStatisticsJob, &sipCpp))
        {
            Akonadi::Collection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->collection());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Akonadi_Collection,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionStatisticsJob, sipName_collection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsJob_doStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::CollectionStatisticsJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_CollectionStatisticsJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionStatisticsJob::doStart() : sipCpp->doStart());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionStatisticsJob, sipName_doStart, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsJob_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsJob_doHandleResponse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        Akonadi::CollectionStatisticsJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_Akonadi_CollectionStatisticsJob, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionStatisticsJob::doHandleResponse(*a0,*a1) : sipCpp->doHandleResponse(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionStatisticsJob, sipName_doHandleResponse, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionStatisticsJob(void *, int);}
static void release_Akonadi_CollectionStatisticsJob(void *sipCppV,int)
{
    Akonadi::CollectionStatisticsJob *sipCpp = reinterpret_cast<Akonadi::CollectionStatisticsJob *>(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_CollectionStatisticsJob(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionStatisticsJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionStatisticsJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionStatisticsJob(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionStatisticsJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionStatisticsJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionStatisticsJob *sipCpp = 0;

    {
        const Akonadi::Collection* a0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|JH", sipType_Akonadi_Collection, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionStatisticsJob(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionStatisticsJob[] = {{104, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionStatisticsJob[] = {
    {SIP_MLNAME_CAST(sipName_collection), meth_Akonadi_CollectionStatisticsJob_collection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_CollectionStatisticsJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionStatisticsJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statistics), meth_Akonadi_CollectionStatisticsJob_statistics, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionStatisticsJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionStatisticsJob,
        {0}
    },
    {
        sipNameNr_CollectionStatisticsJob,
        {0, 255, 0},
        4, methods_Akonadi_CollectionStatisticsJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionStatisticsJob,
    0,
    init_type_Akonadi_CollectionStatisticsJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionStatisticsJob,
    0,
    0,
    0,
    release_Akonadi_CollectionStatisticsJob,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionStatisticsJob::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/akonadi/collectionstatisticsdelegate.sip"
#include <akonadi/collectionstatisticsdelegate.h>
#line 16868 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"

#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qtreeview.sip"
#include <qtreeview.h>
#line 16872 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 16875 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 1130 "/usr/share/python3-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 16878 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 16881 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 16884 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16887 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 122 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 16890 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 16893 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16896 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 16899 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 16902 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 38 "/usr/share/python3-sip/PyQt4/QtGui/qitemeditorfactory.sip"
#include <qitemeditorfactory.h>
#line 16905 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 16908 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 16911 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemdelegate.sip"
#include <qabstractitemdelegate.h>
#line 16914 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 807 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 16917 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 16920 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 16923 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16926 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 16929 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 16932 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16935 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 16938 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 16941 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 16944 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 16947 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/akonadi/sipakonadipart4.cpp"


class sipAkonadi_CollectionStatisticsDelegate : public Akonadi::CollectionStatisticsDelegate
{
public:
    sipAkonadi_CollectionStatisticsDelegate(QTreeView*);
    sipAkonadi_CollectionStatisticsDelegate(QAbstractItemView*);
    virtual ~sipAkonadi_CollectionStatisticsDelegate();

    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 event(QEvent*);
    bool editorEvent(QEvent*,QAbstractItemModel*,const QStyleOptionViewItem&,const QModelIndex&);
    bool eventFilter(QObject*,QEvent*);
    QString displayText(const QVariant&,const QLocale&) const;
    void updateEditorGeometry(QWidget*,const QStyleOptionViewItem&,const QModelIndex&) const;
    void setModelData(QWidget*,QAbstractItemModel*,const QModelIndex&) const;
    void setEditorData(QWidget*,const QModelIndex&) const;
    QWidget* createEditor(QWidget*,const QStyleOptionViewItem&,const QModelIndex&) const;
    QSize sizeHint(const QStyleOptionViewItem&,const QModelIndex&) const;
    void initStyleOption(QStyleOptionViewItem*,const QModelIndex&) const;
    void paint(QPainter*,const QStyleOptionViewItem&,const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionStatisticsDelegate(const sipAkonadi_CollectionStatisticsDelegate &);
    sipAkonadi_CollectionStatisticsDelegate &operator = (const sipAkonadi_CollectionStatisticsDelegate &);

    char sipPyMethods[16];
};

sipAkonadi_CollectionStatisticsDelegate::sipAkonadi_CollectionStatisticsDelegate(QTreeView*a0): Akonadi::CollectionStatisticsDelegate(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionStatisticsDelegate::sipAkonadi_CollectionStatisticsDelegate(QAbstractItemView*a0): Akonadi::CollectionStatisticsDelegate(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionStatisticsDelegate::~sipAkonadi_CollectionStatisticsDelegate()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionStatisticsDelegate::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionStatisticsDelegate);
}

int sipAkonadi_CollectionStatisticsDelegate::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionStatisticsDelegate::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionStatisticsDelegate,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionStatisticsDelegate::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionStatisticsDelegate, _clname)) ? this : Akonadi::CollectionStatisticsDelegate::qt_metacast(_clname);
}

void sipAkonadi_CollectionStatisticsDelegate::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::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_CollectionStatisticsDelegate::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::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_CollectionStatisticsDelegate::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::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_CollectionStatisticsDelegate::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::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_CollectionStatisticsDelegate::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::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_CollectionStatisticsDelegate::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsDelegate::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_CollectionStatisticsDelegate::editorEvent(QEvent*a0,QAbstractItemModel*a1,const QStyleOptionViewItem& a2,const QModelIndex& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_editorEvent);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsDelegate::editorEvent(a0,a1,a2,a3);

    typedef bool (*sipVH_QtGui_73)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*,QAbstractItemModel*,const QStyleOptionViewItem&,const QModelIndex&);

    return ((sipVH_QtGui_73)(sipModuleAPI_akonadi_QtGui->em_virthandlers[73]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

bool sipAkonadi_CollectionStatisticsDelegate::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsDelegate::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);
}

QString sipAkonadi_CollectionStatisticsDelegate::displayText(const QVariant& a0,const QLocale& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_displayText);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsDelegate::displayText(a0,a1);

    typedef QString (*sipVH_QtGui_75)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QVariant&,const QLocale&);

    return ((sipVH_QtGui_75)(sipModuleAPI_akonadi_QtGui->em_virthandlers[75]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionStatisticsDelegate::updateEditorGeometry(QWidget*a0,const QStyleOptionViewItem& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_updateEditorGeometry);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::updateEditorGeometry(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_76)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,const QStyleOptionViewItem&,const QModelIndex&);

    ((sipVH_QtGui_76)(sipModuleAPI_akonadi_QtGui->em_virthandlers[76]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionStatisticsDelegate::setModelData(QWidget*a0,QAbstractItemModel*a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_setModelData);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::setModelData(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_77)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,QAbstractItemModel*,const QModelIndex&);

    ((sipVH_QtGui_77)(sipModuleAPI_akonadi_QtGui->em_virthandlers[77]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipAkonadi_CollectionStatisticsDelegate::setEditorData(QWidget*a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_setEditorData);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::setEditorData(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_78)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,const QModelIndex&);

    ((sipVH_QtGui_78)(sipModuleAPI_akonadi_QtGui->em_virthandlers[78]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QWidget* sipAkonadi_CollectionStatisticsDelegate::createEditor(QWidget*a0,const QStyleOptionViewItem& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_createEditor);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsDelegate::createEditor(a0,a1,a2);

    typedef QWidget* (*sipVH_QtGui_79)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,const QStyleOptionViewItem&,const QModelIndex&);

    return ((sipVH_QtGui_79)(sipModuleAPI_akonadi_QtGui->em_virthandlers[79]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

QSize sipAkonadi_CollectionStatisticsDelegate::sizeHint(const QStyleOptionViewItem& a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return Akonadi::CollectionStatisticsDelegate::sizeHint(a0,a1);

    typedef QSize (*sipVH_QtGui_80)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QStyleOptionViewItem&,const QModelIndex&);

    return ((sipVH_QtGui_80)(sipModuleAPI_akonadi_QtGui->em_virthandlers[80]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionStatisticsDelegate::initStyleOption(QStyleOptionViewItem*a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_initStyleOption);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::initStyleOption(a0,a1);
        return;
    }

    typedef void (*sipVH_QtGui_74)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QStyleOptionViewItem*,const QModelIndex&);

    ((sipVH_QtGui_74)(sipModuleAPI_akonadi_QtGui->em_virthandlers[74]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionStatisticsDelegate::paint(QPainter*a0,const QStyleOptionViewItem& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_paint);

    if (!sipMeth)
    {
        Akonadi::CollectionStatisticsDelegate::paint(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_QtGui_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QStyleOptionViewItem&,const QModelIndex&);

    ((sipVH_QtGui_48)(sipModuleAPI_akonadi_QtGui->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsDelegate_setUnreadCountShown(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsDelegate_setUnreadCountShown(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Akonadi::CollectionStatisticsDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_CollectionStatisticsDelegate, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUnreadCountShown(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_CollectionStatisticsDelegate, sipName_setUnreadCountShown, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsDelegate_unreadCountShown(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsDelegate_unreadCountShown(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionStatisticsDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionStatisticsDelegate, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->unreadCountShown();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionStatisticsDelegate, sipName_unreadCountShown, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsDelegate_paint(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsDelegate_paint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPainter* a0;
        const QStyleOptionViewItem* a1;
        const QModelIndex* a2;
        const Akonadi::CollectionStatisticsDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J9J9", &sipSelf, sipType_Akonadi_CollectionStatisticsDelegate, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QModelIndex, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionStatisticsDelegate::paint(a0,*a1,*a2) : sipCpp->paint(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_CollectionStatisticsDelegate, sipName_paint, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsDelegate_initStyleOption(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsDelegate_initStyleOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QStyleOptionViewItem* a0;
        const QModelIndex* a1;
        const Akonadi::CollectionStatisticsDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J9", &sipSelf, sipType_Akonadi_CollectionStatisticsDelegate, &sipCpp, sipType_QStyleOptionViewItem, &a0, sipType_QModelIndex, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionStatisticsDelegate::initStyleOption(a0,*a1) : sipCpp->initStyleOption(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_CollectionStatisticsDelegate, sipName_initStyleOption, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsDelegate_setProgressAnimationEnabled(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsDelegate_setProgressAnimationEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Akonadi::CollectionStatisticsDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_CollectionStatisticsDelegate, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProgressAnimationEnabled(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_CollectionStatisticsDelegate, sipName_setProgressAnimationEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionStatisticsDelegate_progressAnimationEnabled(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionStatisticsDelegate_progressAnimationEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionStatisticsDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionStatisticsDelegate, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->progressAnimationEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionStatisticsDelegate, sipName_progressAnimationEnabled, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionStatisticsDelegate(void *, int);}
static void release_Akonadi_CollectionStatisticsDelegate(void *sipCppV,int)
{
    Akonadi::CollectionStatisticsDelegate *sipCpp = reinterpret_cast<Akonadi::CollectionStatisticsDelegate *>(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_CollectionStatisticsDelegate(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionStatisticsDelegate(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionStatisticsDelegate *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionStatisticsDelegate(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionStatisticsDelegate(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionStatisticsDelegate(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipAkonadi_CollectionStatisticsDelegate *sipCpp = 0;

    {
        QTreeView* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTreeView, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionStatisticsDelegate(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QAbstractItemView* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QAbstractItemView, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionStatisticsDelegate(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionStatisticsDelegate[] = {{621, 2, 1}};


static PyMethodDef methods_Akonadi_CollectionStatisticsDelegate[] = {
    {SIP_MLNAME_CAST(sipName_initStyleOption), meth_Akonadi_CollectionStatisticsDelegate_initStyleOption, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paint), meth_Akonadi_CollectionStatisticsDelegate_paint, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_progressAnimationEnabled), meth_Akonadi_CollectionStatisticsDelegate_progressAnimationEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProgressAnimationEnabled), meth_Akonadi_CollectionStatisticsDelegate_setProgressAnimationEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUnreadCountShown), meth_Akonadi_CollectionStatisticsDelegate_setUnreadCountShown, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unreadCountShown), meth_Akonadi_CollectionStatisticsDelegate_unreadCountShown, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionStatisticsDelegate = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionStatisticsDelegate,
        {0}
    },
    {
        sipNameNr_CollectionStatisticsDelegate,
        {0, 255, 0},
        6, methods_Akonadi_CollectionStatisticsDelegate,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionStatisticsDelegate,
    0,
    init_type_Akonadi_CollectionStatisticsDelegate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionStatisticsDelegate,
    0,
    0,
    0,
    release_Akonadi_CollectionStatisticsDelegate,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionStatisticsDelegate::staticMetaObject,
    0,
    0
};
