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

#include "sipAPIakonadi.h"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/partfetcher.sip"
#include <akonadi/partfetcher.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

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


class sipAkonadi_PartFetcher : public Akonadi::PartFetcher
{
public:
    sipAkonadi_PartFetcher(const QModelIndex&,const QByteArray&,QObject*);
    virtual ~sipAkonadi_PartFetcher();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[12];
};

sipAkonadi_PartFetcher::sipAkonadi_PartFetcher(const QModelIndex& a0,const QByteArray& a1,QObject*a2): Akonadi::PartFetcher(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_PartFetcher::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_PartFetcher);
}

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

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

    return _id;
}

void *sipAkonadi_PartFetcher::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_PartFetcher, _clname)) ? this : Akonadi::PartFetcher::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        Akonadi::PartFetcher *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::PartFetcher *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex(sipCpp->index());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::PartFetcher *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::PartFetcher *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Item(sipCpp->item());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_PartFetcher)
        return ptr;

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

    return NULL;
}


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

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


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

    {
        const QModelIndex* a0;
        const QByteArray* a1;
        int a1State = 0;
        QObject* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1|JH", sipType_QModelIndex, &a0, sipType_QByteArray, &a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_PartFetcher(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_PartFetcher[] = {
    {SIP_MLNAME_CAST(sipName_index), meth_Akonadi_PartFetcher_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_Akonadi_PartFetcher_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partName), meth_Akonadi_PartFetcher_partName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_PartFetcher_start, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_PartFetcher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__PartFetcher,
        {0}
    },
    {
        sipNameNr_PartFetcher,
        {0, 255, 0},
        4, methods_Akonadi_PartFetcher,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_PartFetcher,
    0,
    init_type_Akonadi_PartFetcher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_PartFetcher,
    0,
    0,
    0,
    release_Akonadi_PartFetcher,
    cast_Akonadi_PartFetcher,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::PartFetcher::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/mimetypechecker.sip"
#include <akonadi/mimetypechecker.h>
#line 592 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 596 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 599 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 602 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 605 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


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

    {
        const Akonadi::MimeTypeChecker *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWantedMimeTypes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addWantedMimeType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MimeTypeChecker, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeWantedMimeType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::Item* a0;
        const Akonadi::MimeTypeChecker *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isWantedItem(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Akonadi::Item* a0;
        const QString* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1", sipType_Akonadi_Item, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::MimeTypeChecker::isWantedItem(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isWantedCollection(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Akonadi::Collection* a0;
        const QString* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1", sipType_Akonadi_Collection, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Akonadi::MimeTypeChecker::isWantedCollection(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->containsWantedMimeType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Akonadi::MimeTypeChecker* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Akonadi_MimeTypeChecker[] = {
    {SIP_MLNAME_CAST(sipName_addWantedMimeType), meth_Akonadi_MimeTypeChecker_addWantedMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsWantedMimeType), meth_Akonadi_MimeTypeChecker_containsWantedMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isWantedCollection), meth_Akonadi_MimeTypeChecker_isWantedCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isWantedItem), meth_Akonadi_MimeTypeChecker_isWantedItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isWantedMimeType), meth_Akonadi_MimeTypeChecker_isWantedMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeWantedMimeType), meth_Akonadi_MimeTypeChecker_removeWantedMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWantedMimeTypes), meth_Akonadi_MimeTypeChecker_setWantedMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wantedMimeTypes), meth_Akonadi_MimeTypeChecker_wantedMimeTypes, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MimeTypeChecker = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__MimeTypeChecker,
        {0}
    },
    {
        sipNameNr_MimeTypeChecker,
        {0, 255, 0},
        8, methods_Akonadi_MimeTypeChecker,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_Akonadi_MimeTypeChecker,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_MimeTypeChecker,
    assign_Akonadi_MimeTypeChecker,
    array_Akonadi_MimeTypeChecker,
    copy_Akonadi_MimeTypeChecker,
    release_Akonadi_MimeTypeChecker,
    cast_Akonadi_MimeTypeChecker,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/linkjob.sip"
#include <akonadi/linkjob.h>
#line 1028 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 1032 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1035 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 1038 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1041 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 1044 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1047 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 1050 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1053 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1056 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 1059 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1062 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 1065 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 1068 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1071 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1074 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1077 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1080 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1083 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1086 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1089 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1092 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1095 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1098 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_LinkJob : public Akonadi::LinkJob
{
public:
    sipAkonadi_LinkJob(const Akonadi::Collection&,const Akonadi::Item::List&,QObject*);
    virtual ~sipAkonadi_LinkJob();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

sipAkonadi_LinkJob::sipAkonadi_LinkJob(const Akonadi::Collection& a0,const Akonadi::Item::List& a1,QObject*a2): Akonadi::LinkJob(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_LinkJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_LinkJob);
}

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

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

    return _id;
}

void *sipAkonadi_LinkJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_LinkJob, _clname)) ? this : Akonadi::LinkJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        Akonadi::LinkJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_LinkJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::LinkJob::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_LinkJob, sipName_doStart, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_LinkJob)
        return ptr;

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

    return NULL;
}


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

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


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

    {
        const Akonadi::Collection* a0;
        const Akonadi::Item::List* a1;
        int a1State = 0;
        QObject* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1|JH", sipType_Akonadi_Collection, &a0, sipType_QList_0100Akonadi_Item,&a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_LinkJob(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Item::List *>(a1),sipType_QList_0100Akonadi_Item,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_LinkJob[] = {
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_LinkJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_LinkJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__LinkJob,
        {0}
    },
    {
        sipNameNr_LinkJob,
        {0, 255, 0},
        1, methods_Akonadi_LinkJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_LinkJob,
    0,
    init_type_Akonadi_LinkJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_LinkJob,
    0,
    0,
    0,
    release_Akonadi_LinkJob,
    cast_Akonadi_LinkJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::LinkJob::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/standardmailactionmanager.sip"
#include <akonadi/kmime/standardmailactionmanager.h>
#line 1641 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 1645 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1648 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/standardactionmanager.sip"
#include <akonadi/standardactionmanager.h>
#line 1651 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1654 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 94 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 1657 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/favoritecollectionsmodel.sip"
#include <akonadi/favoritecollectionsmodel.h>
#line 1660 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1663 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 1666 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1669 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 1672 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/klocalizedstring.sip"
#include <klocalizedstring.h>
#line 1675 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 1678 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1681 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1684 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1687 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1690 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1693 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1696 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1699 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1702 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1705 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1708 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1711 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1714 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1717 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_StandardMailActionManager : public Akonadi::StandardMailActionManager
{
public:
    sipAkonadi_StandardMailActionManager(KActionCollection*,QWidget*);
    virtual ~sipAkonadi_StandardMailActionManager();

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

    /*
     * There is a 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_StandardMailActionManager(const sipAkonadi_StandardMailActionManager &);
    sipAkonadi_StandardMailActionManager &operator = (const sipAkonadi_StandardMailActionManager &);

    char sipPyMethods[7];
};

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

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

const QMetaObject *sipAkonadi_StandardMailActionManager::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_StandardMailActionManager);
}

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

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

    return _id;
}

void *sipAkonadi_StandardMailActionManager::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_StandardMailActionManager, _clname)) ? this : Akonadi::StandardMailActionManager::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_QItemSelectionModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionSelectionModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_QItemSelectionModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setItemSelectionModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardMailActionManager_Type, &a0))
        {
            KAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createAction(a0);
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0))
        {
            KAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createAction(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::StandardMailActionManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardMailActionManager_Type, &a0))
        {
            KAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->action(a0);
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0))
        {
            KAction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->action(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ9", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0, sipType_KLocalizedString, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setActionText(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|b", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardMailActionManager_Type, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->interceptAction(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|b", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_StandardActionManager_Type, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->interceptAction(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::StandardMailActionManager *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::StandardMailActionManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Item::List(sipCpp->selectedItems());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_Akonadi_FavoriteCollectionsModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFavoriteCollectionsModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_QItemSelectionModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFavoriteSelectionModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_StandardMailActionManager, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionPropertiesPageNames(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::StandardMailActionManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->standardActionManager();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_StandardMailActionManager)
        return ptr;

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

    return NULL;
}


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

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


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

    {
        KActionCollection* a0;
        QWidget* a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_StandardMailActionManager[] = {
    {SIP_MLNAME_CAST(sipName_action), meth_Akonadi_StandardMailActionManager_action, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAction), meth_Akonadi_StandardMailActionManager_createAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAllActions), meth_Akonadi_StandardMailActionManager_createAllActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_interceptAction), meth_Akonadi_StandardMailActionManager_interceptAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedCollections), meth_Akonadi_StandardMailActionManager_selectedCollections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedItems), meth_Akonadi_StandardMailActionManager_selectedItems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setActionText), meth_Akonadi_StandardMailActionManager_setActionText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionPropertiesPageNames), meth_Akonadi_StandardMailActionManager_setCollectionPropertiesPageNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionSelectionModel), meth_Akonadi_StandardMailActionManager_setCollectionSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFavoriteCollectionsModel), meth_Akonadi_StandardMailActionManager_setFavoriteCollectionsModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFavoriteSelectionModel), meth_Akonadi_StandardMailActionManager_setFavoriteSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemSelectionModel), meth_Akonadi_StandardMailActionManager_setItemSelectionModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_standardActionManager), meth_Akonadi_StandardMailActionManager_standardActionManager, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_StandardMailActionManager[] = {
    {sipName_EmptyAllTrash, static_cast<int>(Akonadi::StandardMailActionManager::EmptyAllTrash), 142},
    {sipName_EmptyTrash, static_cast<int>(Akonadi::StandardMailActionManager::EmptyTrash), 142},
    {sipName_LastType, static_cast<int>(Akonadi::StandardMailActionManager::LastType), 142},
    {sipName_MarkAllMailAsActionItem, static_cast<int>(Akonadi::StandardMailActionManager::MarkAllMailAsActionItem), 142},
    {sipName_MarkAllMailAsImportant, static_cast<int>(Akonadi::StandardMailActionManager::MarkAllMailAsImportant), 142},
    {sipName_MarkAllMailAsRead, static_cast<int>(Akonadi::StandardMailActionManager::MarkAllMailAsRead), 142},
    {sipName_MarkAllMailAsUnread, static_cast<int>(Akonadi::StandardMailActionManager::MarkAllMailAsUnread), 142},
    {sipName_MarkMailAsActionItem, static_cast<int>(Akonadi::StandardMailActionManager::MarkMailAsActionItem), 142},
    {sipName_MarkMailAsImportant, static_cast<int>(Akonadi::StandardMailActionManager::MarkMailAsImportant), 142},
    {sipName_MarkMailAsRead, static_cast<int>(Akonadi::StandardMailActionManager::MarkMailAsRead), 142},
    {sipName_MarkMailAsUnread, static_cast<int>(Akonadi::StandardMailActionManager::MarkMailAsUnread), 142},
    {sipName_MoveAllToTrash, static_cast<int>(Akonadi::StandardMailActionManager::MoveAllToTrash), 142},
    {sipName_MoveToTrash, static_cast<int>(Akonadi::StandardMailActionManager::MoveToTrash), 142},
    {sipName_RemoveDuplicates, static_cast<int>(Akonadi::StandardMailActionManager::RemoveDuplicates), 142},
};


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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_StandardMailActionManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__StandardMailActionManager,
        {0}
    },
    {
        sipNameNr_StandardMailActionManager,
        {0, 255, 0},
        13, methods_Akonadi_StandardMailActionManager,
        14, enummembers_Akonadi_StandardMailActionManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_StandardMailActionManager,
    0,
    init_type_Akonadi_StandardMailActionManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_StandardMailActionManager,
    0,
    0,
    0,
    release_Akonadi_StandardMailActionManager,
    cast_Akonadi_StandardMailActionManager,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::StandardMailActionManager::staticMetaObject,
    0,
    signals_Akonadi_StandardMailActionManager,
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/specialmailcollectionsrequestjob.sip"
#include <akonadi/kmime/specialmailcollectionsrequestjob.h>
#line 2479 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2483 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/specialmailcollections.sip"
#include <akonadi/kmime/specialmailcollections.h>
#line 2486 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 2489 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2492 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 2495 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2498 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2501 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2504 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2507 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 2510 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2513 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2516 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 2519 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 2522 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2525 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 2528 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2531 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 2534 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2537 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2540 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2543 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2546 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2549 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2552 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2555 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2558 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_SpecialMailCollectionsRequestJob : public Akonadi::SpecialMailCollectionsRequestJob
{
public:
    sipAkonadi_SpecialMailCollectionsRequestJob(QObject*);
    virtual ~sipAkonadi_SpecialMailCollectionsRequestJob();

    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&);
    bool addSubjob(KJob*);
    bool doKill();
    bool removeSubjob(KJob*);
    void doHandleResponse(const QByteArray&,const QByteArray&);
    QString errorString() const;
    void slotResult(KJob*);
    void doStart();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[19];
};

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

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

const QMetaObject *sipAkonadi_SpecialMailCollectionsRequestJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_SpecialMailCollectionsRequestJob);
}

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

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

    return _id;
}

void *sipAkonadi_SpecialMailCollectionsRequestJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_SpecialMailCollectionsRequestJob, _clname)) ? this : Akonadi::SpecialMailCollectionsRequestJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    {
        Akonadi::SpecialMailCollections::Type a0;
        Akonadi::SpecialMailCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_SpecialMailCollectionsRequestJob, &sipCpp, sipType_Akonadi_SpecialMailCollections_Type, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->requestDefaultCollection(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_SpecialMailCollectionsRequestJob, sipName_requestDefaultCollection, NULL);

    return NULL;
}


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

    {
        Akonadi::SpecialMailCollections::Type a0;
        const Akonadi::AgentInstance* a1;
        Akonadi::SpecialMailCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ9", &sipSelf, sipType_Akonadi_SpecialMailCollectionsRequestJob, &sipCpp, sipType_Akonadi_SpecialMailCollections_Type, &a0, sipType_Akonadi_AgentInstance, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->requestCollection(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_SpecialMailCollectionsRequestJob, sipName_requestCollection, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_SpecialMailCollectionsRequestJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_SpecialCollectionsRequestJob)->ctd_cast((Akonadi::SpecialCollectionsRequestJob *)(Akonadi::SpecialMailCollectionsRequestJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_SpecialMailCollectionsRequestJob[] = {
    {SIP_MLNAME_CAST(sipName_requestCollection), meth_Akonadi_SpecialMailCollectionsRequestJob_requestCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestDefaultCollection), meth_Akonadi_SpecialMailCollectionsRequestJob_requestDefaultCollection, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_SpecialMailCollectionsRequestJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__SpecialMailCollectionsRequestJob,
        {0}
    },
    {
        sipNameNr_SpecialMailCollectionsRequestJob,
        {0, 255, 0},
        2, methods_Akonadi_SpecialMailCollectionsRequestJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_SpecialMailCollectionsRequestJob,
    0,
    init_type_Akonadi_SpecialMailCollectionsRequestJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_SpecialMailCollectionsRequestJob,
    0,
    0,
    0,
    release_Akonadi_SpecialMailCollectionsRequestJob,
    cast_Akonadi_SpecialMailCollectionsRequestJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::SpecialMailCollectionsRequestJob::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/specialcollectionsrequestjob.sip"
#include <akonadi/specialcollectionsrequestjob.h>
#line 3126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/specialcollections.sip"
#include <akonadi/specialcollections.h>
#line 3130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 3133 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 3136 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 3139 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 77 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3145 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3148 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3151 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 3154 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3157 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3160 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 3163 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 3166 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 3169 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3172 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 3175 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 3178 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 3181 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3184 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3187 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3190 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3193 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 3196 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 3199 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3202 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3205 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_SpecialCollectionsRequestJob : public Akonadi::SpecialCollectionsRequestJob
{
public:
    sipAkonadi_SpecialCollectionsRequestJob(Akonadi::SpecialCollections*,QObject*);
    virtual ~sipAkonadi_SpecialCollectionsRequestJob();

    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&);
    bool addSubjob(KJob*);
    bool doKill();
    bool removeSubjob(KJob*);
    void doHandleResponse(const QByteArray&,const QByteArray&);
    QString errorString() const;
    void slotResult(KJob*);
    void doStart();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[19];
};

sipAkonadi_SpecialCollectionsRequestJob::sipAkonadi_SpecialCollectionsRequestJob(Akonadi::SpecialCollections*a0,QObject*a1): Akonadi::SpecialCollectionsRequestJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_SpecialCollectionsRequestJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_SpecialCollectionsRequestJob);
}

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

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

    return _id;
}

void *sipAkonadi_SpecialCollectionsRequestJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_SpecialCollectionsRequestJob, _clname)) ? this : Akonadi::SpecialCollectionsRequestJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->requestDefaultCollection(*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_SpecialCollectionsRequestJob, sipName_requestDefaultCollection, NULL);

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const Akonadi::AgentInstance* a1;
        Akonadi::SpecialCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_Akonadi_AgentInstance, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->requestCollection(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::SpecialCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &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_SpecialCollectionsRequestJob, sipName_collection, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultResourceType(*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_SpecialCollectionsRequestJob, sipName_setDefaultResourceType, NULL);

    return NULL;
}


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

    {
        const QVariantMap* a0;
        int a0State = 0;
        Akonadi::SpecialCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp, sipType_QMap_0100QString_0100QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultResourceOptions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariantMap *>(a0),sipType_QMap_0100QString_0100QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<QByteArray>* a0;
        int a0State = 0;
        Akonadi::SpecialCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp, sipType_QList_0100QByteArray,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTypes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QByteArray> *>(a0),sipType_QList_0100QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QMap<QByteArray,QString>* a0;
        int a0State = 0;
        Akonadi::SpecialCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp, sipType_QMap_0100QByteArray_0100QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNameForTypeMap(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QMap<QByteArray,QString> *>(a0),sipType_QMap_0100QByteArray_0100QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QMap<QByteArray,QString>* a0;
        int a0State = 0;
        Akonadi::SpecialCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp, sipType_QMap_0100QByteArray_0100QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIconForTypeMap(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QMap<QByteArray,QString> *>(a0),sipType_QMap_0100QByteArray_0100QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::SpecialCollectionsRequestJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::SpecialCollectionsRequestJob::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_SpecialCollectionsRequestJob, sipName_doStart, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_SpecialCollectionsRequestJob, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::SpecialCollectionsRequestJob::slotResult(a0) : sipCpp->slotResult(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_SpecialCollectionsRequestJob)
        return ptr;

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

    return NULL;
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_SpecialCollectionsRequestJob[] = {
    {SIP_MLNAME_CAST(sipName_collection), meth_Akonadi_SpecialCollectionsRequestJob_collection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_SpecialCollectionsRequestJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestCollection), meth_Akonadi_SpecialCollectionsRequestJob_requestCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestDefaultCollection), meth_Akonadi_SpecialCollectionsRequestJob_requestDefaultCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultResourceOptions), meth_Akonadi_SpecialCollectionsRequestJob_setDefaultResourceOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultResourceType), meth_Akonadi_SpecialCollectionsRequestJob_setDefaultResourceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIconForTypeMap), meth_Akonadi_SpecialCollectionsRequestJob_setIconForTypeMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNameForTypeMap), meth_Akonadi_SpecialCollectionsRequestJob_setNameForTypeMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTypes), meth_Akonadi_SpecialCollectionsRequestJob_setTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_SpecialCollectionsRequestJob_slotResult, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_SpecialCollectionsRequestJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__SpecialCollectionsRequestJob,
        {0}
    },
    {
        sipNameNr_SpecialCollectionsRequestJob,
        {0, 255, 0},
        10, methods_Akonadi_SpecialCollectionsRequestJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_SpecialCollectionsRequestJob,
    0,
    init_type_Akonadi_SpecialCollectionsRequestJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_SpecialCollectionsRequestJob,
    0,
    0,
    0,
    release_Akonadi_SpecialCollectionsRequestJob,
    cast_Akonadi_SpecialCollectionsRequestJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::SpecialCollectionsRequestJob::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/specialmailcollections.sip"
#include <akonadi/kmime/specialmailcollections.h>
#line 4013 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 4017 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 4020 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4023 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4026 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4029 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4032 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4035 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4038 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4041 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4044 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4047 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4050 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4053 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4056 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4059 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


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

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::SpecialMailCollections::Type a0;
        const Akonadi::AgentInstance* a1;
        const Akonadi::SpecialMailCollections *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ9", &sipSelf, sipType_Akonadi_SpecialMailCollections, &sipCpp, sipType_Akonadi_SpecialMailCollections_Type, &a0, sipType_Akonadi_AgentInstance, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasCollection(a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::SpecialMailCollections::Type a0;
        const Akonadi::AgentInstance* a1;
        const Akonadi::SpecialMailCollections *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ9", &sipSelf, sipType_Akonadi_SpecialMailCollections, &sipCpp, sipType_Akonadi_SpecialMailCollections_Type, &a0, sipType_Akonadi_AgentInstance, &a1))
        {
            Akonadi::Collection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->collection(a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::SpecialMailCollections::Type a0;
        const Akonadi::Collection* a1;
        Akonadi::SpecialMailCollections *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ9", &sipSelf, sipType_Akonadi_SpecialMailCollections, &sipCpp, sipType_Akonadi_SpecialMailCollections_Type, &a0, sipType_Akonadi_Collection, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->registerCollection(a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_SpecialMailCollections, &sipCpp, sipType_Akonadi_SpecialMailCollections_Type, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasDefaultCollection(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_SpecialMailCollections, &sipCpp, sipType_Akonadi_SpecialMailCollections_Type, &a0))
        {
            Akonadi::Collection*sipRes;

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_SpecialMailCollections)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_SpecialCollections)->ctd_cast((Akonadi::SpecialCollections *)(Akonadi::SpecialMailCollections *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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


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


static PyMethodDef methods_Akonadi_SpecialMailCollections[] = {
    {SIP_MLNAME_CAST(sipName_collection), meth_Akonadi_SpecialMailCollections_collection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultCollection), meth_Akonadi_SpecialMailCollections_defaultCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasCollection), meth_Akonadi_SpecialMailCollections_hasCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasDefaultCollection), meth_Akonadi_SpecialMailCollections_hasDefaultCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerCollection), meth_Akonadi_SpecialMailCollections_registerCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_Akonadi_SpecialMailCollections_self, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_SpecialMailCollections[] = {
    {sipName_Drafts, static_cast<int>(Akonadi::SpecialMailCollections::Drafts), 136},
    {sipName_Inbox, static_cast<int>(Akonadi::SpecialMailCollections::Inbox), 136},
    {sipName_Invalid, static_cast<int>(Akonadi::SpecialMailCollections::Invalid), 136},
    {sipName_LastType, static_cast<int>(Akonadi::SpecialMailCollections::LastType), 136},
    {sipName_Outbox, static_cast<int>(Akonadi::SpecialMailCollections::Outbox), 136},
    {sipName_Root, static_cast<int>(Akonadi::SpecialMailCollections::Root), 136},
    {sipName_SentMail, static_cast<int>(Akonadi::SpecialMailCollections::SentMail), 136},
    {sipName_Templates, static_cast<int>(Akonadi::SpecialMailCollections::Templates), 136},
    {sipName_Trash, static_cast<int>(Akonadi::SpecialMailCollections::Trash), 136},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_SpecialMailCollections = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__SpecialMailCollections,
        {0}
    },
    {
        sipNameNr_SpecialMailCollections,
        {0, 255, 0},
        6, methods_Akonadi_SpecialMailCollections,
        9, enummembers_Akonadi_SpecialMailCollections,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_SpecialMailCollections,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_SpecialMailCollections,
    0,
    0,
    0,
    release_Akonadi_SpecialMailCollections,
    cast_Akonadi_SpecialMailCollections,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::SpecialMailCollections::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/specialcollections.sip"
#include <akonadi/specialcollections.h>
#line 4354 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 4358 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4361 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 4364 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 4367 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4370 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4373 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4376 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4379 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4382 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4385 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4388 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4391 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4394 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4397 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4400 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4403 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_SpecialCollections : public Akonadi::SpecialCollections
{
public:
    sipAkonadi_SpecialCollections(KCoreConfigSkeleton*,QObject*);
    virtual ~sipAkonadi_SpecialCollections();

    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_SpecialCollections(const sipAkonadi_SpecialCollections &);
    sipAkonadi_SpecialCollections &operator = (const sipAkonadi_SpecialCollections &);

    char sipPyMethods[7];
};

sipAkonadi_SpecialCollections::sipAkonadi_SpecialCollections(KCoreConfigSkeleton*a0,QObject*a1): Akonadi::SpecialCollections(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_SpecialCollections::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_SpecialCollections);
}

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

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

    return _id;
}

void *sipAkonadi_SpecialCollections::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_SpecialCollections, _clname)) ? this : Akonadi::SpecialCollections::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    {
        const QByteArray* a0;
        int a0State = 0;
        const Akonadi::AgentInstance* a1;
        const Akonadi::SpecialCollections *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Akonadi_SpecialCollections, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_Akonadi_AgentInstance, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const Akonadi::AgentInstance* a1;
        const Akonadi::SpecialCollections *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Akonadi_SpecialCollections, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_Akonadi_AgentInstance, &a1))
        {
            Akonadi::Collection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->collection(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

    {
        const QByteArray* a0;
        int a0State = 0;
        const Akonadi::Collection* a1;
        Akonadi::SpecialCollections *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Akonadi_SpecialCollections, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_Akonadi_Collection, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->defaultCollection(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_SpecialCollections)
        return ptr;

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

    return NULL;
}


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

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


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

    {
        KCoreConfigSkeleton* a0;
        QObject* a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_SpecialCollections[] = {
    {SIP_MLNAME_CAST(sipName_collection), meth_Akonadi_SpecialCollections_collection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultCollection), meth_Akonadi_SpecialCollections_defaultCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasCollection), meth_Akonadi_SpecialCollections_hasCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasDefaultCollection), meth_Akonadi_SpecialCollections_hasDefaultCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerCollection), meth_Akonadi_SpecialCollections_registerCollection, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_SpecialCollections = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__SpecialCollections,
        {0}
    },
    {
        sipNameNr_SpecialCollections,
        {0, 255, 0},
        5, methods_Akonadi_SpecialCollections,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_SpecialCollections,
    0,
    init_type_Akonadi_SpecialCollections,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_SpecialCollections,
    0,
    0,
    0,
    release_Akonadi_SpecialCollections,
    cast_Akonadi_SpecialCollections,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::SpecialCollections::staticMetaObject,
    0,
    signals_Akonadi_SpecialCollections,
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/messagethreadingattribute.sip"
#include <akonadi/kmime/messagethreadingattribute.h>
#line 4890 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 77 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/entity.sip"
#include <qlist.h>
#line 4894 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4897 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


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

    {
        const Akonadi::MessageThreadingAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageThreadingAttribute, &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_MessageThreadingAttribute, sipName_type, NULL);

    return NULL;
}


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

    {
        const Akonadi::MessageThreadingAttribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->clone();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::MessageThreadingAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageThreadingAttribute, &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_MessageThreadingAttribute, sipName_serialized, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MessageThreadingAttribute, &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_MessageThreadingAttribute, sipName_deserialize, NULL);

    return NULL;
}


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

    {
        const Akonadi::MessageThreadingAttribute *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::MessageThreadingAttribute *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::MessageThreadingAttribute *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QList<Akonadi::Entity::Id>* a0;
        int a0State = 0;
        Akonadi::MessageThreadingAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MessageThreadingAttribute, &sipCpp, sipType_QList_3800,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPerfectParents(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Akonadi::Entity::Id> *>(a0),sipType_QList_3800,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Akonadi::Entity::Id>* a0;
        int a0State = 0;
        Akonadi::MessageThreadingAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MessageThreadingAttribute, &sipCpp, sipType_QList_3800,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUnperfectParents(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Akonadi::Entity::Id> *>(a0),sipType_QList_3800,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Akonadi::Entity::Id>* a0;
        int a0State = 0;
        Akonadi::MessageThreadingAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MessageThreadingAttribute, &sipCpp, sipType_QList_3800,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSubjectParents(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Akonadi::Entity::Id> *>(a0),sipType_QList_3800,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_MessageThreadingAttribute)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Attribute)->ctd_cast((Akonadi::Attribute *)(Akonadi::MessageThreadingAttribute *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_MessageThreadingAttribute[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_Akonadi_MessageThreadingAttribute_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deserialize), meth_Akonadi_MessageThreadingAttribute_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_perfectParents), meth_Akonadi_MessageThreadingAttribute_perfectParents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_Akonadi_MessageThreadingAttribute_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPerfectParents), meth_Akonadi_MessageThreadingAttribute_setPerfectParents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSubjectParents), meth_Akonadi_MessageThreadingAttribute_setSubjectParents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUnperfectParents), meth_Akonadi_MessageThreadingAttribute_setUnperfectParents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjectParents), meth_Akonadi_MessageThreadingAttribute_subjectParents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_MessageThreadingAttribute_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unperfectParents), meth_Akonadi_MessageThreadingAttribute_unperfectParents, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MessageThreadingAttribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__MessageThreadingAttribute,
        {0}
    },
    {
        sipNameNr_MessageThreadingAttribute,
        {0, 255, 0},
        10, methods_Akonadi_MessageThreadingAttribute,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_MessageThreadingAttribute,
    0,
    init_type_Akonadi_MessageThreadingAttribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_MessageThreadingAttribute,
    0,
    0,
    0,
    release_Akonadi_MessageThreadingAttribute,
    cast_Akonadi_MessageThreadingAttribute,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/messagethreaderproxymodel.sip"
#include <akonadi/kmime/messagethreaderproxymodel.h>
#line 5309 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5313 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 127 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5316 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5319 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 5322 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5328 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5331 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 5334 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5337 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 5340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5343 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5346 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5349 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 174 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 5352 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 5355 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5358 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 5361 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5364 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5367 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5370 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5373 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5376 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5379 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5382 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5385 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5388 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5391 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_MessageThreaderProxyModel : public Akonadi::MessageThreaderProxyModel
{
public:
    sipAkonadi_MessageThreaderProxyModel(QObject*);
    virtual ~sipAkonadi_MessageThreaderProxyModel();

    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*);
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    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;
    QStringList mimeTypes() 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;
    Qt::DropActions supportedDropActions() const;
    QSize span(const QModelIndex&) const;
    void sort(int,Qt::SortOrder);
    void fetchMore(const QModelIndex&);
    bool canFetchMore(const QModelIndex&) const;
    QModelIndex buddy(const QModelIndex&) const;
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    Qt::ItemFlags flags(const QModelIndex&) const;
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    QVariant headerData(int,Qt::Orientation,int) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    QVariant data(const QModelIndex&,int) const;
    void revert();
    bool submit();
    QItemSelection mapSelectionFromSource(const QItemSelection&) const;
    QItemSelection mapSelectionToSource(const QItemSelection&) const;
    QModelIndex mapFromSource(const QModelIndex&) const;
    QModelIndex mapToSource(const QModelIndex&) const;
    void setSourceModel(QAbstractItemModel*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[43];
};

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

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

const QMetaObject *sipAkonadi_MessageThreaderProxyModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_MessageThreaderProxyModel);
}

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

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

    return _id;
}

void *sipAkonadi_MessageThreaderProxyModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_MessageThreaderProxyModel, _clname)) ? this : Akonadi::MessageThreaderProxyModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QItemSelection sipAkonadi_MessageThreaderProxyModel::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::MessageThreaderProxyModel::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_MessageThreaderProxyModel::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::MessageThreaderProxyModel::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_MessageThreaderProxyModel::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::MessageThreaderProxyModel::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_MessageThreaderProxyModel::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::MessageThreaderProxyModel::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_MessageThreaderProxyModel::setSourceModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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


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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        const QModelIndex* a2;
        const Akonadi::MessageThreaderProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9", &sipSelf, sipType_Akonadi_MessageThreaderProxyModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            QModelIndex*sipRes;

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::MessageThreaderProxyModel::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_MessageThreaderProxyModel, sipName_hasChildren, NULL);

    return NULL;
}


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

    {
        int a0;
        int a1;
        quint32 a2;
        const Akonadi::MessageThreaderProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiu", &sipSelf, sipType_Akonadi_MessageThreaderProxyModel, &sipCpp, &a0, &a1, &a2))
        {
            QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex(sipCpp->createIndex(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_MessageThreaderProxyModel, sipName_createIndex, NULL);

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::MessageThreaderProxyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Akonadi::MessageThreaderProxyModel::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_MessageThreaderProxyModel, sipName_mimeTypes, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::MessageThreaderProxyModel::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_MessageThreaderProxyModel, sipName_mimeData, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->Akonadi::MessageThreaderProxyModel::mapFromSource(*a0) : sipCpp->mapFromSource(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->Akonadi::MessageThreaderProxyModel::mapToSource(*a0) : sipCpp->mapToSource(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_MessageThreaderProxyModel, &sipCpp, sipType_QAbstractItemModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::MessageThreaderProxyModel::setSourceModel(a0) : sipCpp->setSourceModel(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_MessageThreaderProxyModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractProxyModel)->ctd_cast((QAbstractProxyModel *)(Akonadi::MessageThreaderProxyModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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


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

    {
        QObject* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_MessageThreaderProxyModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_MessageThreaderProxyModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createIndex), meth_Akonadi_MessageThreaderProxyModel_createIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasChildren), meth_Akonadi_MessageThreaderProxyModel_hasChildren, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Akonadi_MessageThreaderProxyModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mapFromSource), meth_Akonadi_MessageThreaderProxyModel_mapFromSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mapToSource), meth_Akonadi_MessageThreaderProxyModel_mapToSource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeData), meth_Akonadi_MessageThreaderProxyModel_mimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypes), meth_Akonadi_MessageThreaderProxyModel_mimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_Akonadi_MessageThreaderProxyModel_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_Akonadi_MessageThreaderProxyModel_rowCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSourceModel), meth_Akonadi_MessageThreaderProxyModel_setSourceModel, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MessageThreaderProxyModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__MessageThreaderProxyModel,
        {0}
    },
    {
        sipNameNr_MessageThreaderProxyModel,
        {0, 255, 0},
        11, methods_Akonadi_MessageThreaderProxyModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_MessageThreaderProxyModel,
    0,
    init_type_Akonadi_MessageThreaderProxyModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_MessageThreaderProxyModel,
    0,
    0,
    0,
    release_Akonadi_MessageThreaderProxyModel,
    cast_Akonadi_MessageThreaderProxyModel,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::MessageThreaderProxyModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/messagestatus.sip"
#include <akonadi/kmime/messagestatus.h>
#line 6584 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 513 "/usr/share/python3-sip/PyQt4/QtCore/qset.sip"
#include <qset.h>
#line 6588 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6591 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6594 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


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

    {
        Akonadi::MessageStatus *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, sipType_Akonadi_MessageStatus, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->set(*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_MessageStatus, sipName_set, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, sipType_Akonadi_MessageStatus, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->toggle(*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_MessageStatus, sipName_toggle, NULL);

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOfUnknownStatus();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRead();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDeleted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isReplied();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isForwarded();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isQueued();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSent();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isImportant();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isWatched();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isIgnored();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isToAct();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSpam();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isHam();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasAttachment();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasInvitation();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSigned();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEncrypted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRead(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_MessageStatus, sipName_setRead, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDeleted(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_MessageStatus, sipName_setDeleted, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReplied(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_MessageStatus, sipName_setReplied, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setForwarded(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_MessageStatus, sipName_setForwarded, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueued(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_MessageStatus, sipName_setQueued, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSent(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_MessageStatus, sipName_setSent, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setImportant(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_MessageStatus, sipName_setImportant, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWatched(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_MessageStatus, sipName_setWatched, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIgnored(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_MessageStatus, sipName_setIgnored, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setToAct(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_MessageStatus, sipName_setToAct, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSpam(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_MessageStatus, sipName_setSpam, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHam(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_MessageStatus, sipName_setHam, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHasAttachment(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_MessageStatus, sipName_setHasAttachment, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHasInvitation(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_MessageStatus, sipName_setHasInvitation, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSigned(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_MessageStatus, sipName_setSigned, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEncrypted(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_MessageStatus, sipName_setEncrypted, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHasError(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_MessageStatus, sipName_setHasError, NULL);

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp))
        {
            qint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toQInt32();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint32 a0;
        Akonadi::MessageStatus *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->fromQInt32(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_MessageStatus, sipName_fromQInt32, NULL);

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStatusFromStr(*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_MessageStatus, sipName_setStatusFromStr, NULL);

    return NULL;
}


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

    {
        const Akonadi::MessageStatus *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp))
        {
            QSet<QByteArray>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSet<QByteArray>(sipCpp->statusFlags());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QSet<QByteArray>* a0;
        int a0State = 0;
        Akonadi::MessageStatus *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MessageStatus, &sipCpp, sipType_QSet_0100QByteArray,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStatusFromFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QSet<QByteArray> *>(a0),sipType_QSet_0100QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusUnread());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusRead());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusDeleted());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusReplied());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusForwarded());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusQueued());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusSent());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusImportant());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusWatched());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusIgnored());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusToAct());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusSpam());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusHam());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusHasAttachment());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusHasInvitation());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusSigned());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusEncrypted());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::MessageStatus(Akonadi::MessageStatus::statusHasError());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Akonadi::MessageStatus* a0;
        const Akonadi::MessageStatus* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Akonadi_MessageStatus, &a0, sipType_Akonadi_MessageStatus, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (*a0 & *a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Akonadi_MessageStatus___ne__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_MessageStatus___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::MessageStatus *sipCpp = reinterpret_cast<Akonadi::MessageStatus *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_MessageStatus));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::MessageStatus* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Akonadi_MessageStatus___eq__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_MessageStatus___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::MessageStatus *sipCpp = reinterpret_cast<Akonadi::MessageStatus *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_MessageStatus));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::MessageStatus* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Akonadi_MessageStatus(SIP_SSIZE_T);}
static void *array_Akonadi_MessageStatus(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::MessageStatus[sipNrElem];
}


extern "C" {static void *copy_Akonadi_MessageStatus(const void *, SIP_SSIZE_T);}
static void *copy_Akonadi_MessageStatus(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Akonadi::MessageStatus(reinterpret_cast<const Akonadi::MessageStatus *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Akonadi_MessageStatus(sipSimpleWrapper *);}
static void dealloc_Akonadi_MessageStatus(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_MessageStatus(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_Akonadi_MessageStatus(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_MessageStatus(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::MessageStatus *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::MessageStatus();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Akonadi::MessageStatus* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_MessageStatus, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::MessageStatus(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Akonadi_MessageStatus[] = {
    {(void *)slot_Akonadi_MessageStatus___and__, and_slot},
    {(void *)slot_Akonadi_MessageStatus___ne__, ne_slot},
    {(void *)slot_Akonadi_MessageStatus___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Akonadi_MessageStatus[] = {
    {SIP_MLNAME_CAST(sipName_clear), meth_Akonadi_MessageStatus_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromQInt32), meth_Akonadi_MessageStatus_fromQInt32, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttachment), meth_Akonadi_MessageStatus_hasAttachment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasError), meth_Akonadi_MessageStatus_hasError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasInvitation), meth_Akonadi_MessageStatus_hasInvitation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDeleted), meth_Akonadi_MessageStatus_isDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEncrypted), meth_Akonadi_MessageStatus_isEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isForwarded), meth_Akonadi_MessageStatus_isForwarded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHam), meth_Akonadi_MessageStatus_isHam, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isIgnored), meth_Akonadi_MessageStatus_isIgnored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isImportant), meth_Akonadi_MessageStatus_isImportant, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOfUnknownStatus), meth_Akonadi_MessageStatus_isOfUnknownStatus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isQueued), meth_Akonadi_MessageStatus_isQueued, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRead), meth_Akonadi_MessageStatus_isRead, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isReplied), meth_Akonadi_MessageStatus_isReplied, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSent), meth_Akonadi_MessageStatus_isSent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSigned), meth_Akonadi_MessageStatus_isSigned, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSpam), meth_Akonadi_MessageStatus_isSpam, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isToAct), meth_Akonadi_MessageStatus_isToAct, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isWatched), meth_Akonadi_MessageStatus_isWatched, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_set), meth_Akonadi_MessageStatus_set, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDeleted), meth_Akonadi_MessageStatus_setDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEncrypted), meth_Akonadi_MessageStatus_setEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setForwarded), meth_Akonadi_MessageStatus_setForwarded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHam), meth_Akonadi_MessageStatus_setHam, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHasAttachment), meth_Akonadi_MessageStatus_setHasAttachment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHasError), meth_Akonadi_MessageStatus_setHasError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHasInvitation), meth_Akonadi_MessageStatus_setHasInvitation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIgnored), meth_Akonadi_MessageStatus_setIgnored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setImportant), meth_Akonadi_MessageStatus_setImportant, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQueued), meth_Akonadi_MessageStatus_setQueued, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRead), meth_Akonadi_MessageStatus_setRead, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setReplied), meth_Akonadi_MessageStatus_setReplied, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSent), meth_Akonadi_MessageStatus_setSent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSigned), meth_Akonadi_MessageStatus_setSigned, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSpam), meth_Akonadi_MessageStatus_setSpam, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStatusFromFlags), meth_Akonadi_MessageStatus_setStatusFromFlags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStatusFromStr), meth_Akonadi_MessageStatus_setStatusFromStr, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setToAct), meth_Akonadi_MessageStatus_setToAct, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWatched), meth_Akonadi_MessageStatus_setWatched, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusDeleted), meth_Akonadi_MessageStatus_statusDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusEncrypted), meth_Akonadi_MessageStatus_statusEncrypted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusFlags), meth_Akonadi_MessageStatus_statusFlags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusForwarded), meth_Akonadi_MessageStatus_statusForwarded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusHam), meth_Akonadi_MessageStatus_statusHam, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusHasAttachment), meth_Akonadi_MessageStatus_statusHasAttachment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusHasError), meth_Akonadi_MessageStatus_statusHasError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusHasInvitation), meth_Akonadi_MessageStatus_statusHasInvitation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusIgnored), meth_Akonadi_MessageStatus_statusIgnored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusImportant), meth_Akonadi_MessageStatus_statusImportant, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusQueued), meth_Akonadi_MessageStatus_statusQueued, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusRead), meth_Akonadi_MessageStatus_statusRead, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusReplied), meth_Akonadi_MessageStatus_statusReplied, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusSent), meth_Akonadi_MessageStatus_statusSent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusSigned), meth_Akonadi_MessageStatus_statusSigned, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusSpam), meth_Akonadi_MessageStatus_statusSpam, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusStr), meth_Akonadi_MessageStatus_statusStr, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusToAct), meth_Akonadi_MessageStatus_statusToAct, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusUnread), meth_Akonadi_MessageStatus_statusUnread, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statusWatched), meth_Akonadi_MessageStatus_statusWatched, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toQInt32), meth_Akonadi_MessageStatus_toQInt32, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toggle), meth_Akonadi_MessageStatus_toggle, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MessageStatus = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__MessageStatus,
        {0}
    },
    {
        sipNameNr_MessageStatus,
        {0, 255, 0},
        62, methods_Akonadi_MessageStatus,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Akonadi_MessageStatus,
    init_type_Akonadi_MessageStatus,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_MessageStatus,
    assign_Akonadi_MessageStatus,
    array_Akonadi_MessageStatus,
    copy_Akonadi_MessageStatus,
    release_Akonadi_MessageStatus,
    cast_Akonadi_MessageStatus,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};




extern "C" {static PyObject *varget_Akonadi_MessagePart_Body(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessagePart_Body(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessagePart::Body;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessagePart_Body(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessagePart_Body(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessagePart::Body = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessagePart_Envelope(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessagePart_Envelope(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessagePart::Envelope;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessagePart_Envelope(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessagePart_Envelope(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessagePart::Envelope = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessagePart_Header(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessagePart_Header(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessagePart::Header;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessagePart_Header(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessagePart_Header(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessagePart::Header = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}

sipVariableDef variables_Akonadi_MessagePart[] = {
    {ClassVariable, sipName_Body, (PyMethodDef *)varget_Akonadi_MessagePart_Body, (PyMethodDef *)varset_Akonadi_MessagePart_Body, NULL, NULL},
    {ClassVariable, sipName_Envelope, (PyMethodDef *)varget_Akonadi_MessagePart_Envelope, (PyMethodDef *)varset_Akonadi_MessagePart_Envelope, NULL, NULL},
    {ClassVariable, sipName_Header, (PyMethodDef *)varget_Akonadi_MessagePart_Header, (PyMethodDef *)varset_Akonadi_MessagePart_Header, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MessagePart = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Akonadi__MessagePart,
        {0}
    },
    {
        sipNameNr_MessagePart,
        {0, 255, 0},
        0, 0,
        0, 0,
        3, variables_Akonadi_MessagePart,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/messagemodel.sip"
#include <akonadi/kmime/messagemodel.h>
#line 8726 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 8730 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8733 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 8736 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8739 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8742 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8745 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/session.sip"
#include <akonadi/session.h>
#line 8748 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 8751 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 8754 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 8757 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 8760 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8763 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8766 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 8769 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8772 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 8775 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 8778 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8781 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 144 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 8784 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8787 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8790 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8793 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8796 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8799 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8802 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 8805 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8808 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 8811 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 8814 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_MessageModel : public Akonadi::MessageModel
{
public:
    sipAkonadi_MessageModel(QObject*);
    virtual ~sipAkonadi_MessageModel();

    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 dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    bool setData(const QModelIndex&,const QVariant&,int);
    QModelIndex index(int,int,const QModelIndex&) const;
    Qt::DropActions supportedDropActions() const;
    QMimeData* mimeData(const QModelIndexList&) const;
    Qt::ItemFlags flags(const QModelIndex&) const;
    QStringList mimeTypes() const;
    int rowCount(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_MessageModel(const sipAkonadi_MessageModel &);
    sipAkonadi_MessageModel &operator = (const sipAkonadi_MessageModel &);

    char sipPyMethods[34];
};

sipAkonadi_MessageModel::sipAkonadi_MessageModel(QObject*a0): Akonadi::MessageModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_MessageModel::~sipAkonadi_MessageModel()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_MessageModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_MessageModel);
}

int sipAkonadi_MessageModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::MessageModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_MessageModel,_c,_id,_a);

    return _id;
}

void *sipAkonadi_MessageModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_MessageModel, _clname)) ? this : Akonadi::MessageModel::qt_metacast(_clname);
}

void sipAkonadi_MessageModel::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::MessageModel::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_MessageModel::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::MessageModel::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_MessageModel::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::MessageModel::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_MessageModel::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::MessageModel::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_MessageModel::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::MessageModel::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_MessageModel::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
        Akonadi::MessageModel::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_MessageModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::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::MessageModel::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_MessageModel::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::MessageModel::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_MessageModel::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::MessageModel::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_MessageModel::sort(int a0,Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
        Akonadi::MessageModel::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_MessageModel::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::MessageModel::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_MessageModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
        Akonadi::MessageModel::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_MessageModel::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::MessageModel::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_MessageModel::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::MessageModel::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_MessageModel::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::MessageModel::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_MessageModel::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::MessageModel::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_MessageModel::dropMimeData(const QMimeData*a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::setItemData(const QModelIndex& a0,const QMap<int,QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_itemData);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::setData(const QModelIndex& a0,const QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
        return Akonadi::MessageModel::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);
}

QModelIndex sipAkonadi_MessageModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_index);

    if (!sipMeth)
        return Akonadi::MessageModel::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);
}

Qt::DropActions sipAkonadi_MessageModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,NULL,sipName_supportedDropActions);

    if (!sipMeth)
        return Akonadi::MessageModel::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);
}

QMimeData* sipAkonadi_MessageModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_mimeData);

    if (!sipMeth)
        return Akonadi::MessageModel::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::ItemFlags sipAkonadi_MessageModel::flags(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return Akonadi::MessageModel::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);
}

QStringList sipAkonadi_MessageModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,NULL,sipName_mimeTypes);

    if (!sipMeth)
        return Akonadi::MessageModel::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);
}

int sipAkonadi_MessageModel::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::MessageModel::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);
}

QVariant sipAkonadi_MessageModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::data(const QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel::columnCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,NULL,sipName_columnCount);

    if (!sipMeth)
        return Akonadi::MessageModel::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_MessageModel_columnCount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageModel_columnCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const Akonadi::MessageModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_Akonadi_MessageModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::MessageModel::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_MessageModel, sipName_columnCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageModel_data(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageModel_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        int a1 = Qt::DisplayRole;
        const Akonadi::MessageModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|i", &sipSelf, sipType_Akonadi_MessageModel, &sipCpp, sipType_QModelIndex, &a0, &a1))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::MessageModel::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_MessageModel, sipName_data, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageModel_headerData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageModel_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::MessageModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiE|i", &sipSelf, sipType_Akonadi_MessageModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, &a2))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->Akonadi::MessageModel::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_MessageModel, sipName_headerData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageModel_rowCount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageModel_rowCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const Akonadi::MessageModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_Akonadi_MessageModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::MessageModel::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_MessageModel, sipName_rowCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageModel_mimeTypes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageModel_mimeTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Akonadi::MessageModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageModel, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Akonadi::MessageModel::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_MessageModel, sipName_mimeTypes, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_MessageModel(void *, const sipTypeDef *);}
static void *cast_Akonadi_MessageModel(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_MessageModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_ItemModel)->ctd_cast((Akonadi::ItemModel *)(Akonadi::MessageModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_MessageModel(void *, int);}
static void release_Akonadi_MessageModel(void *sipCppV,int)
{
    Akonadi::MessageModel *sipCpp = reinterpret_cast<Akonadi::MessageModel *>(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_MessageModel(sipSimpleWrapper *);}
static void dealloc_Akonadi_MessageModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_MessageModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_MessageModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_MessageModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_MessageModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_MessageModel *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_MessageModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_MessageModel[] = {{92, 255, 1}};


static PyMethodDef methods_Akonadi_MessageModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_MessageModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_Akonadi_MessageModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_headerData), meth_Akonadi_MessageModel_headerData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypes), meth_Akonadi_MessageModel_mimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_Akonadi_MessageModel_rowCount, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_MessageModel[] = {
    {sipName_Date, static_cast<int>(Akonadi::MessageModel::Date), 110},
    {sipName_Receiver, static_cast<int>(Akonadi::MessageModel::Receiver), 110},
    {sipName_Sender, static_cast<int>(Akonadi::MessageModel::Sender), 110},
    {sipName_Size, static_cast<int>(Akonadi::MessageModel::Size), 110},
    {sipName_Subject, static_cast<int>(Akonadi::MessageModel::Subject), 110},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MessageModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__MessageModel,
        {0}
    },
    {
        sipNameNr_MessageModel,
        {0, 255, 0},
        5, methods_Akonadi_MessageModel,
        5, enummembers_Akonadi_MessageModel,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_MessageModel,
    0,
    init_type_Akonadi_MessageModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_MessageModel,
    0,
    0,
    0,
    release_Akonadi_MessageModel,
    cast_Akonadi_MessageModel,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::MessageModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/messagefolderattribute.sip"
#include <akonadi/kmime/messagefolderattribute.h>
#line 9721 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9725 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


extern "C" {static PyObject *meth_Akonadi_MessageFolderAttribute_isOutboundFolder(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageFolderAttribute_isOutboundFolder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::MessageFolderAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageFolderAttribute, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOutboundFolder();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MessageFolderAttribute, sipName_isOutboundFolder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageFolderAttribute_setOutboundFolder(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageFolderAttribute_setOutboundFolder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Akonadi::MessageFolderAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_MessageFolderAttribute, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOutboundFolder(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_MessageFolderAttribute, sipName_setOutboundFolder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageFolderAttribute_type(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageFolderAttribute_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::MessageFolderAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageFolderAttribute, &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_MessageFolderAttribute, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageFolderAttribute_clone(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageFolderAttribute_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::MessageFolderAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageFolderAttribute, &sipCpp))
        {
            Akonadi::MessageFolderAttribute*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->clone();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Akonadi_MessageFolderAttribute,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MessageFolderAttribute, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageFolderAttribute_serialized(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageFolderAttribute_serialized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::MessageFolderAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_MessageFolderAttribute, &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_MessageFolderAttribute, sipName_serialized, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_MessageFolderAttribute_deserialize(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_MessageFolderAttribute_deserialize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        Akonadi::MessageFolderAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_MessageFolderAttribute, &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_MessageFolderAttribute, sipName_deserialize, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_MessageFolderAttribute(void *, const sipTypeDef *);}
static void *cast_Akonadi_MessageFolderAttribute(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_MessageFolderAttribute)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Attribute)->ctd_cast((Akonadi::Attribute *)(Akonadi::MessageFolderAttribute *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_MessageFolderAttribute(void *, int);}
static void release_Akonadi_MessageFolderAttribute(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Akonadi::MessageFolderAttribute *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_MessageFolderAttribute(sipSimpleWrapper *);}
static void dealloc_Akonadi_MessageFolderAttribute(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_MessageFolderAttribute(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_Akonadi_MessageFolderAttribute(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_MessageFolderAttribute(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::MessageFolderAttribute *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::MessageFolderAttribute();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Akonadi::MessageFolderAttribute* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_MessageFolderAttribute, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::MessageFolderAttribute(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_MessageFolderAttribute[] = {{25, 255, 1}};


static PyMethodDef methods_Akonadi_MessageFolderAttribute[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_Akonadi_MessageFolderAttribute_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deserialize), meth_Akonadi_MessageFolderAttribute_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOutboundFolder), meth_Akonadi_MessageFolderAttribute_isOutboundFolder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_Akonadi_MessageFolderAttribute_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOutboundFolder), meth_Akonadi_MessageFolderAttribute_setOutboundFolder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_MessageFolderAttribute_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MessageFolderAttribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__MessageFolderAttribute,
        {0}
    },
    {
        sipNameNr_MessageFolderAttribute,
        {0, 255, 0},
        6, methods_Akonadi_MessageFolderAttribute,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_MessageFolderAttribute,
    0,
    init_type_Akonadi_MessageFolderAttribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_MessageFolderAttribute,
    0,
    0,
    0,
    release_Akonadi_MessageFolderAttribute,
    cast_Akonadi_MessageFolderAttribute,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};




extern "C" {static PyObject *varget_Akonadi_MessageFlags_Answered(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Answered(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Answered;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Answered(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Answered(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Answered = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Deleted(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Deleted(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Deleted;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Deleted(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Deleted(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Deleted = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Encrypted(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Encrypted(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Encrypted;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Encrypted(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Encrypted(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Encrypted = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Flagged(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Flagged(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Flagged;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Flagged(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Flagged(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Flagged = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Forwarded(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Forwarded(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Forwarded;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Forwarded(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Forwarded(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Forwarded = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Ham(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Ham(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Ham;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Ham(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Ham(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Ham = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_HasAttachment(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_HasAttachment(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::HasAttachment;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_HasAttachment(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_HasAttachment(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::HasAttachment = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_HasError(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_HasError(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::HasError;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_HasError(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_HasError(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::HasError = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_HasInvitation(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_HasInvitation(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::HasInvitation;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_HasInvitation(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_HasInvitation(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::HasInvitation = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Ignored(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Ignored(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Ignored;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Ignored(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Ignored(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Ignored = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Queued(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Queued(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Queued;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Queued(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Queued(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Queued = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Replied(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Replied(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Replied;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Replied(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Replied(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Replied = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Seen(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Seen(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Seen;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Seen(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Seen(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Seen = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Sent(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Sent(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Sent;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Sent(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Sent(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Sent = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Signed(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Signed(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Signed;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Signed(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Signed(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Signed = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Spam(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Spam(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Spam;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Spam(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Spam(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Spam = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_ToAct(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_ToAct(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::ToAct;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_ToAct(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_ToAct(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::ToAct = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}


extern "C" {static PyObject *varget_Akonadi_MessageFlags_Watched(void *, PyObject *, PyObject *);}
static PyObject *varget_Akonadi_MessageFlags_Watched(void *, PyObject *, PyObject *)
{
    const char*sipVal;
    sipVal = Akonadi::MessageFlags::Watched;

    if (sipVal == NULL)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    return PyUnicode_DecodeASCII(sipVal, strlen(sipVal), NULL);
}


extern "C" {static int varset_Akonadi_MessageFlags_Watched(void *, PyObject *, PyObject *);}
static int varset_Akonadi_MessageFlags_Watched(void *, PyObject *sipPy, PyObject *)
{
    const char*sipVal;
    sipVal = sipString_AsASCIIString(&sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    Akonadi::MessageFlags::Watched = sipVal;

    static PyObject *sipKeep = 0;

    Py_XDECREF(sipKeep);
    sipKeep = sipPy;
    Py_INCREF(sipKeep);

    return 0;
}

sipVariableDef variables_Akonadi_MessageFlags[] = {
    {ClassVariable, sipName_Answered, (PyMethodDef *)varget_Akonadi_MessageFlags_Answered, (PyMethodDef *)varset_Akonadi_MessageFlags_Answered, NULL, NULL},
    {ClassVariable, sipName_Deleted, (PyMethodDef *)varget_Akonadi_MessageFlags_Deleted, (PyMethodDef *)varset_Akonadi_MessageFlags_Deleted, NULL, NULL},
    {ClassVariable, sipName_Encrypted, (PyMethodDef *)varget_Akonadi_MessageFlags_Encrypted, (PyMethodDef *)varset_Akonadi_MessageFlags_Encrypted, NULL, NULL},
    {ClassVariable, sipName_Flagged, (PyMethodDef *)varget_Akonadi_MessageFlags_Flagged, (PyMethodDef *)varset_Akonadi_MessageFlags_Flagged, NULL, NULL},
    {ClassVariable, sipName_Forwarded, (PyMethodDef *)varget_Akonadi_MessageFlags_Forwarded, (PyMethodDef *)varset_Akonadi_MessageFlags_Forwarded, NULL, NULL},
    {ClassVariable, sipName_Ham, (PyMethodDef *)varget_Akonadi_MessageFlags_Ham, (PyMethodDef *)varset_Akonadi_MessageFlags_Ham, NULL, NULL},
    {ClassVariable, sipName_HasAttachment, (PyMethodDef *)varget_Akonadi_MessageFlags_HasAttachment, (PyMethodDef *)varset_Akonadi_MessageFlags_HasAttachment, NULL, NULL},
    {ClassVariable, sipName_HasError, (PyMethodDef *)varget_Akonadi_MessageFlags_HasError, (PyMethodDef *)varset_Akonadi_MessageFlags_HasError, NULL, NULL},
    {ClassVariable, sipName_HasInvitation, (PyMethodDef *)varget_Akonadi_MessageFlags_HasInvitation, (PyMethodDef *)varset_Akonadi_MessageFlags_HasInvitation, NULL, NULL},
    {ClassVariable, sipName_Ignored, (PyMethodDef *)varget_Akonadi_MessageFlags_Ignored, (PyMethodDef *)varset_Akonadi_MessageFlags_Ignored, NULL, NULL},
    {ClassVariable, sipName_Queued, (PyMethodDef *)varget_Akonadi_MessageFlags_Queued, (PyMethodDef *)varset_Akonadi_MessageFlags_Queued, NULL, NULL},
    {ClassVariable, sipName_Replied, (PyMethodDef *)varget_Akonadi_MessageFlags_Replied, (PyMethodDef *)varset_Akonadi_MessageFlags_Replied, NULL, NULL},
    {ClassVariable, sipName_Seen, (PyMethodDef *)varget_Akonadi_MessageFlags_Seen, (PyMethodDef *)varset_Akonadi_MessageFlags_Seen, NULL, NULL},
    {ClassVariable, sipName_Sent, (PyMethodDef *)varget_Akonadi_MessageFlags_Sent, (PyMethodDef *)varset_Akonadi_MessageFlags_Sent, NULL, NULL},
    {ClassVariable, sipName_Signed, (PyMethodDef *)varget_Akonadi_MessageFlags_Signed, (PyMethodDef *)varset_Akonadi_MessageFlags_Signed, NULL, NULL},
    {ClassVariable, sipName_Spam, (PyMethodDef *)varget_Akonadi_MessageFlags_Spam, (PyMethodDef *)varset_Akonadi_MessageFlags_Spam, NULL, NULL},
    {ClassVariable, sipName_ToAct, (PyMethodDef *)varget_Akonadi_MessageFlags_ToAct, (PyMethodDef *)varset_Akonadi_MessageFlags_ToAct, NULL, NULL},
    {ClassVariable, sipName_Watched, (PyMethodDef *)varget_Akonadi_MessageFlags_Watched, (PyMethodDef *)varset_Akonadi_MessageFlags_Watched, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_MessageFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Akonadi__MessageFlags,
        {0}
    },
    {
        sipNameNr_MessageFlags,
        {0, 255, 0},
        0, 0,
        0, 0,
        18, variables_Akonadi_MessageFlags,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/addressattribute.sip"
#include <akonadi/kmime/addressattribute.h>
#line 10775 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 10779 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10782 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10785 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_AddressAttribute : public Akonadi::AddressAttribute
{
public:
    sipAkonadi_AddressAttribute(const QString&,const QStringList&,const QStringList&,const QStringList&);
    sipAkonadi_AddressAttribute(const Akonadi::AddressAttribute&);
    virtual ~sipAkonadi_AddressAttribute();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void deserialize(const QByteArray&);
    QByteArray serialized() const;
    QByteArray type() const;
    Akonadi::AddressAttribute* clone() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_AddressAttribute(const sipAkonadi_AddressAttribute &);
    sipAkonadi_AddressAttribute &operator = (const sipAkonadi_AddressAttribute &);

    char sipPyMethods[4];
};

sipAkonadi_AddressAttribute::sipAkonadi_AddressAttribute(const QString& a0,const QStringList& a1,const QStringList& a2,const QStringList& a3): Akonadi::AddressAttribute(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_AddressAttribute::sipAkonadi_AddressAttribute(const Akonadi::AddressAttribute& a0): Akonadi::AddressAttribute(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_AddressAttribute::~sipAkonadi_AddressAttribute()
{
    sipCommonDtor(sipPySelf);
}

void sipAkonadi_AddressAttribute::deserialize(const QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_deserialize);

    if (!sipMeth)
    {
        Akonadi::AddressAttribute::deserialize(a0);
        return;
    }

    typedef void (*sipVH_QtXml_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&);

    ((sipVH_QtXml_29)(sipModuleAPI_akonadi_QtXml->em_virthandlers[29]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QByteArray sipAkonadi_AddressAttribute::serialized() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_serialized);

    if (!sipMeth)
        return Akonadi::AddressAttribute::serialized();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_akonadi_QtCore->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth);
}

QByteArray sipAkonadi_AddressAttribute::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_type);

    if (!sipMeth)
        return Akonadi::AddressAttribute::type();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_akonadi_QtCore->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth);
}

Akonadi::AddressAttribute* sipAkonadi_AddressAttribute::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_clone);

    if (!sipMeth)
        return Akonadi::AddressAttribute::clone();

    extern Akonadi::AddressAttribute* sipVH_akonadi_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_akonadi_5(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_clone(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp))
        {
            Akonadi::AddressAttribute*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::AddressAttribute::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Akonadi_AddressAttribute,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AddressAttribute, sipName_clone, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_type(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->Akonadi::AddressAttribute::type() : sipCpp->type()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AddressAttribute, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_serialized(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_serialized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->Akonadi::AddressAttribute::serialized() : sipCpp->serialized()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AddressAttribute, sipName_serialized, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_deserialize(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_deserialize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::AddressAttribute::deserialize(*a0) : sipCpp->deserialize(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AddressAttribute, sipName_deserialize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_from(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_from(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->from());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AddressAttribute, sipName_from, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_setFrom(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_setFrom(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFrom(*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_AddressAttribute, sipName_setFrom, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_to(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_to(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->to());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AddressAttribute, sipName_to, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_setTo(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_setTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTo(*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_AddressAttribute, sipName_setTo, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_cc(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_cc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->cc());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AddressAttribute, sipName_cc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_setCc(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_setCc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCc(*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_AddressAttribute, sipName_setCc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_bcc(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_bcc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->bcc());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AddressAttribute, sipName_bcc, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_AddressAttribute_setBcc(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_AddressAttribute_setBcc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::AddressAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_AddressAttribute, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBcc(*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_AddressAttribute, sipName_setBcc, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_AddressAttribute(void *, const sipTypeDef *);}
static void *cast_Akonadi_AddressAttribute(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_AddressAttribute)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Attribute)->ctd_cast((Akonadi::Attribute *)(Akonadi::AddressAttribute *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_AddressAttribute(void *, int);}
static void release_Akonadi_AddressAttribute(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_AddressAttribute *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::AddressAttribute *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_AddressAttribute(sipSimpleWrapper *);}
static void dealloc_Akonadi_AddressAttribute(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_AddressAttribute *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_AddressAttribute(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_AddressAttribute(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_AddressAttribute(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipAkonadi_AddressAttribute *sipCpp = 0;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList* a1 = &a1def;
        int a1State = 0;
        const QStringList& a2def = QStringList();
        const QStringList* a2 = &a2def;
        int a2State = 0;
        const QStringList& a3def = QStringList();
        const QStringList* a3 = &a3def;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1J1J1J1", sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State, sipType_QStringList,&a2, &a2State, sipType_QStringList,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_AddressAttribute(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);
            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);
            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::AddressAttribute* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_AddressAttribute, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_AddressAttribute(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_AddressAttribute[] = {{25, 255, 1}};


static PyMethodDef methods_Akonadi_AddressAttribute[] = {
    {SIP_MLNAME_CAST(sipName_bcc), meth_Akonadi_AddressAttribute_bcc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cc), meth_Akonadi_AddressAttribute_cc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clone), meth_Akonadi_AddressAttribute_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deserialize), meth_Akonadi_AddressAttribute_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_from), meth_Akonadi_AddressAttribute_from, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_Akonadi_AddressAttribute_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBcc), meth_Akonadi_AddressAttribute_setBcc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCc), meth_Akonadi_AddressAttribute_setCc, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFrom), meth_Akonadi_AddressAttribute_setFrom, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTo), meth_Akonadi_AddressAttribute_setTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_to), meth_Akonadi_AddressAttribute_to, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_AddressAttribute_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_AddressAttribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__AddressAttribute,
        {0}
    },
    {
        sipNameNr_AddressAttribute,
        {0, 255, 0},
        12, methods_Akonadi_AddressAttribute,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_AddressAttribute,
    0,
    init_type_Akonadi_AddressAttribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_AddressAttribute,
    0,
    0,
    0,
    release_Akonadi_AddressAttribute,
    cast_Akonadi_AddressAttribute,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/itemview.sip"
#include <akonadi/itemview.h>
#line 11405 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"

#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11409 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kxmlguiwindow.sip"
#include <kxmlguiwindow.h>
#line 11412 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 11415 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 627 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11418 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 11421 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 127 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 11424 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 174 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 11427 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 11430 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11433 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 774 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11436 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 483 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11439 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 261 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11442 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 11445 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 11448 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 11451 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 1135 "/usr/share/python3-sip/PyQt4/QtGui/qstyleoption.sip"
#include <qstyleoption.h>
#line 11454 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 338 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11457 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 533 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11460 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11463 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 94 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 11466 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 11469 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11472 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11475 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 11478 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 36 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11481 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qheaderview.sip"
#include <qheaderview.h>
#line 11484 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 94 "/usr/share/python3-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 11487 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 656 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11490 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 274 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11493 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemdelegate.sip"
#include <qabstractitemdelegate.h>
#line 11496 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 570 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11499 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 514 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11502 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 748 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11505 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 801 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11508 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 790 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11511 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11514 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11517 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 11520 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 11523 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11526 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qscrollbar.sip"
#include <qscrollbar.h>
#line 11532 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 356 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11535 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 39 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 11538 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qframe.sip"
#include <qframe.h>
#line 11541 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11544 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11547 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 39 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 11550 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 11553 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 11556 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 11559 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11562 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 37 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11565 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 11568 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 11571 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 11574 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11577 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 11580 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 616 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11583 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 605 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11586 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 863 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 412 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11592 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 583 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11595 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 557 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11598 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 11601 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 61 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 11604 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 39 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 11607 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11610 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 11613 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 11616 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 11619 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11622 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 11625 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 11628 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 11631 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 11634 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 11637 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 355 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11640 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 33 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11643 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 120 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11646 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11649 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 35 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11652 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11655 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/akonadi/sipakonadipart2.cpp"


class sipAkonadi_ItemView : public Akonadi::ItemView
{
public:
    sipAkonadi_ItemView(QWidget*);
    sipAkonadi_ItemView(KXmlGuiWindow*,QWidget*);
    sipAkonadi_ItemView(KXMLGUIClient*,QWidget*);
    virtual ~sipAkonadi_ItemView();

    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 contextMenuEvent(QContextMenuEvent*);
    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 dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    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*);
    void dragMoveEvent(QDragMoveEvent*);
    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 setModel(QAbstractItemModel*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_ItemView(const sipAkonadi_ItemView &);
    sipAkonadi_ItemView &operator = (const sipAkonadi_ItemView &);

    char sipPyMethods[88];
};

sipAkonadi_ItemView::sipAkonadi_ItemView(QWidget*a0): Akonadi::ItemView(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_ItemView::sipAkonadi_ItemView(KXmlGuiWindow*a0,QWidget*a1): Akonadi::ItemView(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_ItemView::sipAkonadi_ItemView(KXMLGUIClient*a0,QWidget*a1): Akonadi::ItemView(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_ItemView::~sipAkonadi_ItemView()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_ItemView::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_ItemView);
}

int sipAkonadi_ItemView::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::ItemView::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_ItemView,_c,_id,_a);

    return _id;
}

void *sipAkonadi_ItemView::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_ItemView, _clname)) ? this : Akonadi::ItemView::qt_metacast(_clname);
}

void sipAkonadi_ItemView::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_languageChange);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_windowActivationChange);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_fontChange);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_paletteChange);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_enabledChange);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::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::ItemView::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_ItemView::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::viewOptions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[39]),sipPySelf,NULL,sipName_viewOptions);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::startDrag(Qt::DropActions a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_startDrag);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::selectionCommand(const QModelIndex& a0,const QEvent*a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[41]),sipPySelf,NULL,sipName_selectionCommand);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::edit(const QModelIndex& a0,QAbstractItemView::EditTrigger a1,QEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_edit);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::editorDestroyed(QObject*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_editorDestroyed);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::commitData(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_commitData);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::closeEditor(QWidget*a0,QAbstractItemDelegate::EndEditHint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_closeEditor);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::horizontalScrollbarValueChanged(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_horizontalScrollbarValueChanged);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::verticalScrollbarValueChanged(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_verticalScrollbarValueChanged);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::verticalScrollbarAction(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_verticalScrollbarAction);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::updateEditorGeometries()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_updateEditorGeometries);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::updateEditorData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_updateEditorData);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::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::ItemView::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_ItemView::selectionChanged(const QItemSelection& a0,const QItemSelection& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,NULL,sipName_selectionChanged);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::viewportEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,NULL,sipName_viewportEvent);

    if (!sipMeth)
        return Akonadi::ItemView::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);
}

void sipAkonadi_ItemView::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[54],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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);
}

bool sipAkonadi_ItemView::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::ItemView::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_ItemView::horizontalScrollbarAction(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[56],sipPySelf,NULL,sipName_horizontalScrollbarAction);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::sizeHintForColumn(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[57]),sipPySelf,NULL,sipName_sizeHintForColumn);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::updateGeometries()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[58],sipPySelf,NULL,sipName_updateGeometries);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[59],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[60],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[61],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[62],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::drawBranches(QPainter*a0,const QRect& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[63]),sipPySelf,NULL,sipName_drawBranches);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::drawRow(QPainter*a0,const QStyleOptionViewItem& a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[64]),sipPySelf,NULL,sipName_drawRow);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[65],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[66],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[67],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::selectedIndexes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[68]),sipPySelf,NULL,sipName_selectedIndexes);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::visualRegionForSelection(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[69]),sipPySelf,NULL,sipName_visualRegionForSelection);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::setSelection(const QRect& a0,QItemSelectionModel::SelectionFlags a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[70],sipPySelf,NULL,sipName_setSelection);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::verticalOffset() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[71]),sipPySelf,NULL,sipName_verticalOffset);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::horizontalOffset() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[72]),sipPySelf,NULL,sipName_horizontalOffset);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::moveCursor(QAbstractItemView::CursorAction a0,Qt::KeyboardModifiers a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[73],sipPySelf,NULL,sipName_moveCursor);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::rowsAboutToBeRemoved(const QModelIndex& a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[74],sipPySelf,NULL,sipName_rowsAboutToBeRemoved);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::rowsInserted(const QModelIndex& a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[75],sipPySelf,NULL,sipName_rowsInserted);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::scrollContentsBy(int a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[76],sipPySelf,NULL,sipName_scrollContentsBy);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::selectAll()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[77],sipPySelf,NULL,sipName_selectAll);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::dataChanged(const QModelIndex& a0,const QModelIndex& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[78],sipPySelf,NULL,sipName_dataChanged);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[79],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::indexAt(const QPoint& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[80]),sipPySelf,NULL,sipName_indexAt);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::scrollTo(const QModelIndex& a0,QAbstractItemView::ScrollHint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[81],sipPySelf,NULL,sipName_scrollTo);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::visualRect(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[82]),sipPySelf,NULL,sipName_visualRect);

    if (!sipMeth)
        return Akonadi::ItemView::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_ItemView::keyboardSearch(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[83],sipPySelf,NULL,sipName_keyboardSearch);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::setSelectionModel(QItemSelectionModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[84],sipPySelf,NULL,sipName_setSelectionModel);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::setRootIndex(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[85],sipPySelf,NULL,sipName_setRootIndex);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView::setModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[86],sipPySelf,NULL,sipName_setModel);

    if (!sipMeth)
    {
        Akonadi::ItemView::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_ItemView_setXmlGuiWindow(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_ItemView_setXmlGuiWindow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KXmlGuiWindow* a0;
        Akonadi::ItemView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_ItemView, &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_ItemView, sipName_setXmlGuiWindow, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_ItemView_setXmlGuiClient(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_ItemView_setXmlGuiClient(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KXMLGUIClient* a0;
        Akonadi::ItemView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_ItemView, &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_ItemView, sipName_setXmlGuiClient, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_ItemView_setModel(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_ItemView_setModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QAbstractItemModel* a0;
        Akonadi::ItemView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Akonadi_ItemView, &sipCpp, sipType_QAbstractItemModel, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::ItemView::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_ItemView, sipName_setModel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_ItemView_contextMenuEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_ItemView_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent* a0;
        Akonadi::ItemView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_ItemView, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::ItemView::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_ItemView, sipName_contextMenuEvent, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_ItemView(void *, const sipTypeDef *);}
static void *cast_Akonadi_ItemView(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_ItemView)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTreeView)->ctd_cast((QTreeView *)(Akonadi::ItemView *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_ItemView(void *, int);}
static void release_Akonadi_ItemView(void *sipCppV,int)
{
    Akonadi::ItemView *sipCpp = reinterpret_cast<Akonadi::ItemView *>(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_ItemView(sipSimpleWrapper *);}
static void dealloc_Akonadi_ItemView(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_ItemView *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_ItemView(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_ItemView(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_ItemView(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_ItemView *sipCpp = 0;

    {
        QWidget* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_ItemView(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_ItemView(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_ItemView(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_ItemView[] = {{723, 2, 1}};


static PyMethodDef methods_Akonadi_ItemView[] = {
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_Akonadi_ItemView_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModel), meth_Akonadi_ItemView_setModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXmlGuiClient), meth_Akonadi_ItemView_setXmlGuiClient, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXmlGuiWindow), meth_Akonadi_ItemView_setXmlGuiWindow, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_ItemView[] = {
    {"doubleClicked(Akonadi::Item)", 0, 0, 0},
    {"clicked(Akonadi::Item)", 0, 0, 0},
    {"currentChanged(Akonadi::Item)", 0, 0, 0},
    {"activated(Akonadi::Item)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_ItemView = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__ItemView,
        {0}
    },
    {
        sipNameNr_ItemView,
        {0, 255, 0},
        4, methods_Akonadi_ItemView,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_ItemView,
    0,
    init_type_Akonadi_ItemView,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_ItemView,
    0,
    0,
    0,
    release_Akonadi_ItemView,
    cast_Akonadi_ItemView,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::ItemView::staticMetaObject,
    0,
    signals_Akonadi_ItemView,
};
