/*
 * Module code.
 *
 * Generated by SIP 4.16.4 on Thu Nov 20 23:29:33 2014
 */

#include "sipAPIakonadi.h"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionstatistics.sip"
#include <akonadi/collectionstatistics.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"



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

    {
        const Akonadi::CollectionStatistics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionStatistics, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->count();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        Akonadi::CollectionStatistics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_CollectionStatistics, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCount(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_CollectionStatistics, sipName_setCount, NULL);

    return NULL;
}


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

    {
        const Akonadi::CollectionStatistics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionStatistics, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->unreadCount();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        Akonadi::CollectionStatistics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_CollectionStatistics, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUnreadCount(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_CollectionStatistics, sipName_setUnreadCount, NULL);

    return NULL;
}


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

    {
        const Akonadi::CollectionStatistics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionStatistics, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->size();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        Akonadi::CollectionStatistics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_CollectionStatistics, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSize(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_CollectionStatistics, sipName_setSize, NULL);

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Akonadi::CollectionStatistics* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Akonadi_CollectionStatistics[] = {
    {SIP_MLNAME_CAST(sipName_count), meth_Akonadi_CollectionStatistics_count, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCount), meth_Akonadi_CollectionStatistics_setCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSize), meth_Akonadi_CollectionStatistics_setSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUnreadCount), meth_Akonadi_CollectionStatistics_setUnreadCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_size), meth_Akonadi_CollectionStatistics_size, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unreadCount), meth_Akonadi_CollectionStatistics_unreadCount, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionStatistics = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionStatistics,
        {0}
    },
    {
        sipNameNr_CollectionStatistics,
        {0, 255, 0},
        6, methods_Akonadi_CollectionStatistics,
        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_CollectionStatistics,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionStatistics,
    assign_Akonadi_CollectionStatistics,
    array_Akonadi_CollectionStatistics,
    copy_Akonadi_CollectionStatistics,
    release_Akonadi_CollectionStatistics,
    cast_Akonadi_CollectionStatistics,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionrequester.sip"
#include <akonadi/collectionrequester.h>
#line 330 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 334 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 337 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectiondialog.sip"
#include <akonadi/collectiondialog.h>
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 343 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 346 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 349 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 352 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 355 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 358 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 533 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 361 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 364 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qframe.sip"
#include <qframe.h>
#line 367 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 370 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 373 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 376 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 379 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 382 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 385 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 388 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 391 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 394 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 397 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 400 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 403 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 406 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 409 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 412 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 415 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 418 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 421 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 424 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 656 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 427 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 616 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 430 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 605 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 433 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 748 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 436 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 801 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 439 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 774 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 442 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 790 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 445 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 863 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 448 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 412 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 451 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 627 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 454 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 583 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 457 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 570 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 460 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 557 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 463 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 514 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 466 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 483 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 469 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 356 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 472 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 261 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 475 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 478 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 61 "/usr/share/python-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 481 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 484 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 487 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 490 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 493 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 496 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 499 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 502 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 505 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 508 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 511 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 514 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 517 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 520 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 523 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 526 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 529 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 532 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 535 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionRequester : public Akonadi::CollectionRequester
{
public:
    sipAkonadi_CollectionRequester(QWidget*);
    sipAkonadi_CollectionRequester(const Akonadi::Collection&,QWidget*);
    virtual ~sipAkonadi_CollectionRequester();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[47];
};

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

sipAkonadi_CollectionRequester::sipAkonadi_CollectionRequester(const Akonadi::Collection& a0,QWidget*a1): Akonadi::CollectionRequester(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_CollectionRequester::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionRequester);
}

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

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

    return _id;
}

void *sipAkonadi_CollectionRequester::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionRequester, _clname)) ? this : Akonadi::CollectionRequester::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipAkonadi_CollectionRequester::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        const Akonadi::CollectionRequester *sipCpp;

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::CollectionRequester *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_CollectionRequester, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollection(*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_CollectionRequester, sipName_setCollection, NULL);

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::CollectionRequester *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;
        Akonadi::CollectionRequester *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionRequester, &sipCpp, sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->changeCollectionDialogOptions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_CollectionRequester)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KHBox)->ctd_cast((KHBox *)(Akonadi::CollectionRequester *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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


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

    {
        QWidget* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CollectionRequester[] = {
    {SIP_MLNAME_CAST(sipName_accessRightsFilter), meth_Akonadi_CollectionRequester_accessRightsFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeCollectionDialogOptions), meth_Akonadi_CollectionRequester_changeCollectionDialogOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collection), meth_Akonadi_CollectionRequester_collection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeFilter), meth_Akonadi_CollectionRequester_mimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAccessRightsFilter), meth_Akonadi_CollectionRequester_setAccessRightsFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollection), meth_Akonadi_CollectionRequester_setCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeTypeFilter), meth_Akonadi_CollectionRequester_setMimeTypeFilter, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionRequester = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionRequester,
        {0}
    },
    {
        sipNameNr_CollectionRequester,
        {0, 255, 0},
        7, methods_Akonadi_CollectionRequester,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionRequester,
    0,
    init_type_Akonadi_CollectionRequester,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionRequester,
    0,
    0,
    0,
    release_Akonadi_CollectionRequester,
    cast_Akonadi_CollectionRequester,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionRequester::staticMetaObject,
    0,
    signals_Akonadi_CollectionRequester,
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionquotaattribute.sip"
#include <akonadi/collectionquotaattribute.h>
#line 1822 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1826 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 1829 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionQuotaAttribute : public Akonadi::CollectionQuotaAttribute
{
public:
    sipAkonadi_CollectionQuotaAttribute();
    sipAkonadi_CollectionQuotaAttribute(qint64,qint64);
    virtual ~sipAkonadi_CollectionQuotaAttribute();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void deserialize(const QByteArray&);
    QByteArray serialized() const;
    Akonadi::Attribute* clone() const;
    QByteArray type() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[4];
};

sipAkonadi_CollectionQuotaAttribute::sipAkonadi_CollectionQuotaAttribute(): Akonadi::CollectionQuotaAttribute(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionQuotaAttribute::sipAkonadi_CollectionQuotaAttribute(qint64 a0,qint64 a1): Akonadi::CollectionQuotaAttribute(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipAkonadi_CollectionQuotaAttribute::deserialize(const QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionQuotaAttribute::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_CollectionQuotaAttribute::serialized() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionQuotaAttribute::serialized();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

Akonadi::Attribute* sipAkonadi_CollectionQuotaAttribute::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionQuotaAttribute::clone();

    extern Akonadi::Attribute* sipVH_akonadi_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_akonadi_4(sipGILState, 0, sipPySelf, sipMeth);
}

QByteArray sipAkonadi_CollectionQuotaAttribute::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionQuotaAttribute::type();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


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

    {
        qint64 a0;
        Akonadi::CollectionQuotaAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_CollectionQuotaAttribute, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentValue(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_CollectionQuotaAttribute, sipName_setCurrentValue, NULL);

    return NULL;
}


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

    {
        qint64 a0;
        Akonadi::CollectionQuotaAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Akonadi_CollectionQuotaAttribute, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaximumValue(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_CollectionQuotaAttribute, sipName_setMaximumValue, NULL);

    return NULL;
}


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

    {
        const Akonadi::CollectionQuotaAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionQuotaAttribute, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentValue();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::CollectionQuotaAttribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionQuotaAttribute, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maximumValue();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Akonadi::CollectionQuotaAttribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->Akonadi::CollectionQuotaAttribute::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_CollectionQuotaAttribute, sipName_type, NULL);

    return NULL;
}


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

    {
        const Akonadi::CollectionQuotaAttribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::CollectionQuotaAttribute::clone() : sipCpp->clone());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Akonadi::CollectionQuotaAttribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->Akonadi::CollectionQuotaAttribute::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_CollectionQuotaAttribute, sipName_serialized, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionQuotaAttribute, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionQuotaAttribute::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_CollectionQuotaAttribute, sipName_deserialize, NULL);

    return NULL;
}


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

    if (targetType == sipType_Akonadi_CollectionQuotaAttribute)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_CollectionQuotaAttribute *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::CollectionQuotaAttribute *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        qint64 a0;
        qint64 a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "nn", &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionQuotaAttribute(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CollectionQuotaAttribute[] = {
    {SIP_MLNAME_CAST(sipName_clone), meth_Akonadi_CollectionQuotaAttribute_clone, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentValue), meth_Akonadi_CollectionQuotaAttribute_currentValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deserialize), meth_Akonadi_CollectionQuotaAttribute_deserialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maximumValue), meth_Akonadi_CollectionQuotaAttribute_maximumValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialized), meth_Akonadi_CollectionQuotaAttribute_serialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentValue), meth_Akonadi_CollectionQuotaAttribute_setCurrentValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaximumValue), meth_Akonadi_CollectionQuotaAttribute_setMaximumValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Akonadi_CollectionQuotaAttribute_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionQuotaAttribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionQuotaAttribute,
        {0}
    },
    {
        sipNameNr_CollectionQuotaAttribute,
        {0, 255, 0},
        8, methods_Akonadi_CollectionQuotaAttribute,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionQuotaAttribute,
    0,
    init_type_Akonadi_CollectionQuotaAttribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionQuotaAttribute,
    0,
    0,
    0,
    release_Akonadi_CollectionQuotaAttribute,
    cast_Akonadi_CollectionQuotaAttribute,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 45 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionpropertiespage.sip"
#include <akonadi/collectionpropertiespage.h>
#line 2313 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionpropertiespage.sip"
#include <akonadi/collectionpropertiespage.h>
#line 2317 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2320 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionPropertiesPageFactory : public Akonadi::CollectionPropertiesPageFactory
{
public:
    sipAkonadi_CollectionPropertiesPageFactory();
    sipAkonadi_CollectionPropertiesPageFactory(const Akonadi::CollectionPropertiesPageFactory&);
    virtual ~sipAkonadi_CollectionPropertiesPageFactory();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Akonadi::CollectionPropertiesPage* createWidget(QWidget*) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipAkonadi_CollectionPropertiesPageFactory::sipAkonadi_CollectionPropertiesPageFactory(): Akonadi::CollectionPropertiesPageFactory(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionPropertiesPageFactory::sipAkonadi_CollectionPropertiesPageFactory(const Akonadi::CollectionPropertiesPageFactory& a0): Akonadi::CollectionPropertiesPageFactory(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

Akonadi::CollectionPropertiesPage* sipAkonadi_CollectionPropertiesPageFactory::createWidget(QWidget*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_CollectionPropertiesPageFactory,sipName_createWidget);

    if (!sipMeth)
        return 0;

    extern Akonadi::CollectionPropertiesPage* sipVH_akonadi_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

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


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

    {
        QWidget* a0 = 0;
        const Akonadi::CollectionPropertiesPageFactory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J:", &sipSelf, sipType_Akonadi_CollectionPropertiesPageFactory, &sipCpp, sipType_QWidget, &a0))
        {
            Akonadi::CollectionPropertiesPage*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CollectionPropertiesPageFactory, sipName_createWidget);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_CollectionPropertiesPageFactory *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::CollectionPropertiesPageFactory *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::CollectionPropertiesPageFactory* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Akonadi_CollectionPropertiesPageFactory[] = {
    {SIP_MLNAME_CAST(sipName_createWidget), meth_Akonadi_CollectionPropertiesPageFactory_createWidget, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionPropertiesPageFactory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionPropertiesPageFactory,
        {0}
    },
    {
        sipNameNr_CollectionPropertiesPageFactory,
        {0, 255, 0},
        1, methods_Akonadi_CollectionPropertiesPageFactory,
        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_CollectionPropertiesPageFactory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionPropertiesPageFactory,
    0,
    0,
    0,
    release_Akonadi_CollectionPropertiesPageFactory,
    cast_Akonadi_CollectionPropertiesPageFactory,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionpropertiespage.sip"
#include <akonadi/collectionpropertiespage.h>
#line 2549 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2553 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2556 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 2559 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2562 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 2565 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2568 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2571 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 2574 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 2577 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2580 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 2583 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 2586 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 2589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2592 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 2595 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2598 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 2601 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 2604 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 2607 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 2610 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 2613 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2616 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 2619 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2622 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 656 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2625 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2628 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 616 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2631 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 605 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2634 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 748 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2637 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 801 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2640 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 774 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2643 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 790 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2646 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 863 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2649 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 412 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2652 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 627 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2655 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 583 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2658 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 570 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2661 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 557 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2664 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 533 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2667 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 514 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2670 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 483 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2673 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 356 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2676 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 261 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 2679 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 2682 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 61 "/usr/share/python-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 2685 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 2688 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2691 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 2694 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 2697 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 2700 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2703 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 2706 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 2709 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 2712 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 2715 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 2718 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2721 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2724 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2727 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2730 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2733 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2736 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2739 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2742 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionPropertiesPage : public Akonadi::CollectionPropertiesPage
{
public:
    sipAkonadi_CollectionPropertiesPage(QWidget*);
    virtual ~sipAkonadi_CollectionPropertiesPage();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void closeEvent(QCloseEvent*);
    void resizeEvent(QResizeEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    void setVisible(bool);
    int devType() const;
    bool canHandle(const Akonadi::Collection&) const;
    void save(Akonadi::Collection&);
    void load(const Akonadi::Collection&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[50];
};

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

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

const QMetaObject *sipAkonadi_CollectionPropertiesPage::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionPropertiesPage);
}

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

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

    return _id;
}

void *sipAkonadi_CollectionPropertiesPage::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionPropertiesPage, _clname)) ? this : Akonadi::CollectionPropertiesPage::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipAkonadi_CollectionPropertiesPage::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipAkonadi_CollectionPropertiesPage::canHandle(const Akonadi::Collection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Akonadi::CollectionPropertiesPage::canHandle(a0);

    extern bool sipVH_akonadi_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const Akonadi::Collection&);

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

void sipAkonadi_CollectionPropertiesPage::save(Akonadi::Collection& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,sipName_CollectionPropertiesPage,sipName_save);

    if (!sipMeth)
        return;

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,sipName_CollectionPropertiesPage,sipName_load);

    if (!sipMeth)
        return;

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

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


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_CollectionPropertiesPage, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CollectionPropertiesPage, sipName_load);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->load(*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_CollectionPropertiesPage, sipName_load, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_CollectionPropertiesPage, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CollectionPropertiesPage, sipName_save);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->save(*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_CollectionPropertiesPage, sipName_save, NULL);

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionPropertiesPage, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPageTitle(*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_CollectionPropertiesPage, sipName_setPageTitle, NULL);

    return NULL;
}


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

    {
        const Akonadi::CollectionPropertiesPage *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_CollectionPropertiesPage)
        return ptr;

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

    return NULL;
}


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

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


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

    {
        QWidget* a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CollectionPropertiesPage[] = {
    {SIP_MLNAME_CAST(sipName_canHandle), meth_Akonadi_CollectionPropertiesPage_canHandle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_load), meth_Akonadi_CollectionPropertiesPage_load, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pageTitle), meth_Akonadi_CollectionPropertiesPage_pageTitle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_Akonadi_CollectionPropertiesPage_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPageTitle), meth_Akonadi_CollectionPropertiesPage_setPageTitle, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionPropertiesPage = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionPropertiesPage,
        {0}
    },
    {
        sipNameNr_CollectionPropertiesPage,
        {0, 255, 0},
        5, methods_Akonadi_CollectionPropertiesPage,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionPropertiesPage,
    0,
    init_type_Akonadi_CollectionPropertiesPage,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionPropertiesPage,
    0,
    0,
    0,
    release_Akonadi_CollectionPropertiesPage,
    cast_Akonadi_CollectionPropertiesPage,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionPropertiesPage::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionpropertiesdialog.sip"
#include <akonadi/collectionpropertiesdialog.h>
#line 4004 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 4008 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 4011 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4014 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4017 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 45 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionpropertiespage.sip"
#include <akonadi/collectionpropertiespage.h>
#line 4020 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 483 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4023 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 583 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4026 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 616 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4029 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 4032 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 4035 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 4038 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 4041 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 4044 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kpushbutton.sip"
#include <kpushbutton.h>
#line 4047 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 32 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 4050 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 4053 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 4056 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kguiitem.sip"
#include <kguiitem.h>
#line 4059 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 4062 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4065 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 4068 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4071 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4074 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 627 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4077 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 570 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4080 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 605 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4083 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4086 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 4089 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4092 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 4095 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 4098 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 4101 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 4104 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 4107 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 4110 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 4113 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 4116 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4119 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 4122 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 4125 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 4128 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4131 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 4134 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4137 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 656 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4140 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 748 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4143 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 801 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4146 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 774 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4149 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 790 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4152 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 863 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4155 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 412 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4158 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 557 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4161 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 533 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4164 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 514 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4167 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 356 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4170 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 261 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 4173 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 4176 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 61 "/usr/share/python-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 4179 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 4182 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4185 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 4188 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 4191 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4194 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 4197 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 4200 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 4203 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 4206 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 4209 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4212 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4215 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4218 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4221 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4224 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4227 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4230 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionPropertiesDialog : public Akonadi::CollectionPropertiesDialog
{
public:
    sipAkonadi_CollectionPropertiesDialog(const Akonadi::Collection&,QWidget*);
    sipAkonadi_CollectionPropertiesDialog(const Akonadi::Collection&,const QStringList&,QWidget*);
    virtual ~sipAkonadi_CollectionPropertiesDialog();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    int devType() const;
    bool eventFilter(QObject*,QEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void resizeEvent(QResizeEvent*);
    void showEvent(QShowEvent*);
    void reject();
    void accept();
    void done(int);
    void setVisible(bool);
    void slotButtonClicked(int);
    void keyPressEvent(QKeyEvent*);
    void closeEvent(QCloseEvent*);
    void hideEvent(QHideEvent*);
    void setPlainCaption(const QString&);
    void setCaption(const QString&,bool);
    void setCaption(const QString&);
    QSize minimumSizeHint() const;
    QSize sizeHint() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[54];
};

sipAkonadi_CollectionPropertiesDialog::sipAkonadi_CollectionPropertiesDialog(const Akonadi::Collection& a0,QWidget*a1): Akonadi::CollectionPropertiesDialog(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionPropertiesDialog::sipAkonadi_CollectionPropertiesDialog(const Akonadi::Collection& a0,const QStringList& a1,QWidget*a2): Akonadi::CollectionPropertiesDialog(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipAkonadi_CollectionPropertiesDialog::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionPropertiesDialog);
}

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

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

    return _id;
}

void *sipAkonadi_CollectionPropertiesDialog::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionPropertiesDialog, _clname)) ? this : Akonadi::CollectionPropertiesDialog::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipAkonadi_CollectionPropertiesDialog::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::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_CollectionPropertiesDialog::reject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::reject();
        return;
    }

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

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

void sipAkonadi_CollectionPropertiesDialog::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::accept();
        return;
    }

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

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

void sipAkonadi_CollectionPropertiesDialog::done(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::done(a0);
        return;
    }

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

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

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

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

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

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

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

void sipAkonadi_CollectionPropertiesDialog::slotButtonClicked(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::slotButtonClicked(a0);
        return;
    }

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::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_CollectionPropertiesDialog::setPlainCaption(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::setPlainCaption(a0);
        return;
    }

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

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

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

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::setCaption(a0,a1);
        return;
    }

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

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

void sipAkonadi_CollectionPropertiesDialog::setCaption(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Akonadi::CollectionPropertiesDialog::setCaption(a0);
        return;
    }

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

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

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

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

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

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

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

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

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

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


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

    {
        Akonadi::CollectionPropertiesPageFactory* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_Akonadi_CollectionPropertiesPageFactory, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            Akonadi::CollectionPropertiesDialog::registerPage(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_CollectionPropertiesDialog, sipName_registerPage, NULL);

    return NULL;
}


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

    {
        bool a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "b", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            Akonadi::CollectionPropertiesDialog::useDefaultPage(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_CollectionPropertiesDialog, sipName_useDefaultPage, NULL);

    return NULL;
}


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

    {
        Akonadi::CollectionPropertiesDialog::DefaultPage a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Akonadi::CollectionPropertiesDialog::defaultPageObjectName(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_CollectionPropertiesDialog)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KDialog)->ctd_cast((KDialog *)(Akonadi::CollectionPropertiesDialog *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::Collection* a0;
        const QStringList* a1;
        int a1State = 0;
        QWidget* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1|JH", sipType_Akonadi_Collection, &a0, sipType_QStringList,&a1, &a1State, sipType_QWidget, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionPropertiesDialog(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CollectionPropertiesDialog[] = {
    {SIP_MLNAME_CAST(sipName_defaultPageObjectName), meth_Akonadi_CollectionPropertiesDialog_defaultPageObjectName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerPage), meth_Akonadi_CollectionPropertiesDialog_registerPage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_useDefaultPage), meth_Akonadi_CollectionPropertiesDialog_useDefaultPage, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_CollectionPropertiesDialog[] = {
    {sipName_CachePage, static_cast<int>(Akonadi::CollectionPropertiesDialog::CachePage), 51},
    {sipName_GeneralPage, static_cast<int>(Akonadi::CollectionPropertiesDialog::GeneralPage), 51},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionPropertiesDialog = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionPropertiesDialog,
        {0}
    },
    {
        sipNameNr_CollectionPropertiesDialog,
        {0, 255, 0},
        3, methods_Akonadi_CollectionPropertiesDialog,
        2, enummembers_Akonadi_CollectionPropertiesDialog,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionPropertiesDialog,
    0,
    init_type_Akonadi_CollectionPropertiesDialog,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionPropertiesDialog,
    0,
    0,
    0,
    release_Akonadi_CollectionPropertiesDialog,
    cast_Akonadi_CollectionPropertiesDialog,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionPropertiesDialog::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionmovejob.sip"
#include <akonadi/collectionmovejob.h>
#line 5532 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 5536 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 5539 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5542 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5545 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 5548 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5551 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5554 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 5557 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5560 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5563 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 5566 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5569 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5572 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5575 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5578 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5581 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5584 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 5587 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 5590 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5593 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5596 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

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

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

const QMetaObject *sipAkonadi_CollectionMoveJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionMoveJob);
}

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

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

    return _id;
}

void *sipAkonadi_CollectionMoveJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionMoveJob, _clname)) ? this : Akonadi::CollectionMoveJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipAkonadi_CollectionMoveJob::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::CollectionMoveJob::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_CollectionMoveJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

    {
        Akonadi::CollectionMoveJob *sipCpp;

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_CollectionMoveJob)
        return ptr;

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

    return NULL;
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CollectionMoveJob[] = {
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionMoveJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionMoveJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionMoveJob,
        {0}
    },
    {
        sipNameNr_CollectionMoveJob,
        {0, 255, 0},
        1, methods_Akonadi_CollectionMoveJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionMoveJob,
    0,
    init_type_Akonadi_CollectionMoveJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionMoveJob,
    0,
    0,
    0,
    release_Akonadi_CollectionMoveJob,
    cast_Akonadi_CollectionMoveJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionMoveJob::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionmodifyjob.sip"
#include <akonadi/collectionmodifyjob.h>
#line 6137 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 6141 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 6144 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 6147 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6150 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 6153 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6156 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6159 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 6162 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6165 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 6168 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 6171 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6174 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6177 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6180 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6183 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6186 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6189 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6192 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 6195 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6198 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6201 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

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

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

const QMetaObject *sipAkonadi_CollectionModifyJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionModifyJob);
}

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

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

    return _id;
}

void *sipAkonadi_CollectionModifyJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionModifyJob, _clname)) ? this : Akonadi::CollectionModifyJob::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipAkonadi_CollectionModifyJob::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::CollectionModifyJob::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_CollectionModifyJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

    {
        Akonadi::CollectionModifyJob *sipCpp;

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

    return NULL;
}


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

    {
        const Akonadi::CollectionModifyJob *sipCpp;

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_CollectionModifyJob)
        return ptr;

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

    return NULL;
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Akonadi_CollectionModifyJob[] = {
    {SIP_MLNAME_CAST(sipName_collection), meth_Akonadi_CollectionModifyJob_collection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionModifyJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionModifyJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionModifyJob,
        {0}
    },
    {
        sipNameNr_CollectionModifyJob,
        {0, 255, 0},
        2, methods_Akonadi_CollectionModifyJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionModifyJob,
    0,
    init_type_Akonadi_CollectionModifyJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionModifyJob,
    0,
    0,
    0,
    release_Akonadi_CollectionModifyJob,
    cast_Akonadi_CollectionModifyJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionModifyJob::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionmodel.sip"
#include <akonadi/collectionmodel.h>
#line 6769 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 6773 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 6776 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6779 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 6782 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6785 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 6788 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6791 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6794 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6797 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6800 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 144 "/usr/share/python-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 6803 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6806 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 6809 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 6812 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6815 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 144 "/usr/share/python-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 6818 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6821 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6824 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6827 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6830 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6833 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 6836 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 6839 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 6842 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6845 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6848 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionModel : public Akonadi::CollectionModel
{
public:
    sipAkonadi_CollectionModel(QObject*);
    virtual ~sipAkonadi_CollectionModel();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[35];
};

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

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

const QMetaObject *sipAkonadi_CollectionModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionModel);
}

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

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

    return _id;
}

void *sipAkonadi_CollectionModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionModel, _clname)) ? this : Akonadi::CollectionModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    {
        bool a0;
        Akonadi::CollectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_CollectionModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->fetchCollectionStatistics(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_CollectionModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->includeUnsubscribed(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_CollectionModel, sipName_includeUnsubscribed, NULL);

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionModel_headerData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionModel_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::CollectionModel *sipCpp;

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

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

    return NULL;
}


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

    {
        int a0;
        Qt::Orientation a1;
        const QVariant* a2;
        int a2State = 0;
        int a3 = Qt::EditRole;
        Akonadi::CollectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiEJ1|i", &sipSelf, sipType_Akonadi_CollectionModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, sipType_QVariant,&a2, &a2State, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::CollectionModel::setHeaderData(a0,a1,*a2,a3) : sipCpp->setHeaderData(a0,a1,*a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const Akonadi::CollectionModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QModelIndexList* a0;
        int a0State = 0;
        const Akonadi::CollectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionModel, &sipCpp, sipType_QList_0100QModelIndex,&a0, &a0State))
        {
            QMimeData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::CollectionModel::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_CollectionModel, sipName_mimeData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionModel_dropMimeData(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionModel_dropMimeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMimeData* a0;
        Qt::DropAction a1;
        int a2;
        int a3;
        const QModelIndex* a4;
        Akonadi::CollectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8EiiJ9", &sipSelf, sipType_Akonadi_CollectionModel, &sipCpp, sipType_QMimeData, &a0, sipType_Qt_DropAction, &a1, &a2, &a3, sipType_QModelIndex, &a4))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::CollectionModel::dropMimeData(a0,a1,a2,a3,*a4) : sipCpp->dropMimeData(a0,a1,a2,a3,*a4));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionModel, sipName_dropMimeData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionModel_mimeTypes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionModel_mimeTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Akonadi::CollectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionModel, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Akonadi::CollectionModel::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_CollectionModel, sipName_mimeTypes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionModel_collectionForId(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionModel_collectionForId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::Entity::Id a0;
        const Akonadi::CollectionModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pn", &sipSelf, sipType_Akonadi_CollectionModel, &sipCpp, &a0))
        {
            Akonadi::Collection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->collectionForId(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_CollectionModel, sipName_collectionForId, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionModel(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionModel(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_CollectionModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractItemModel)->ctd_cast((QAbstractItemModel *)(Akonadi::CollectionModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionModel(void *, int);}
static void release_Akonadi_CollectionModel(void *sipCppV,int)
{
    Akonadi::CollectionModel *sipCpp = reinterpret_cast<Akonadi::CollectionModel *>(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_CollectionModel(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionModel *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionModel[] = {{13, 0, 1}};


static PyMethodDef methods_Akonadi_CollectionModel[] = {
    {SIP_MLNAME_CAST(sipName_collectionForId), meth_Akonadi_CollectionModel_collectionForId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_columnCount), meth_Akonadi_CollectionModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_Akonadi_CollectionModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropMimeData), meth_Akonadi_CollectionModel_dropMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchCollectionStatistics), meth_Akonadi_CollectionModel_fetchCollectionStatistics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flags), meth_Akonadi_CollectionModel_flags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_headerData), meth_Akonadi_CollectionModel_headerData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeUnsubscribed), meth_Akonadi_CollectionModel_includeUnsubscribed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_Akonadi_CollectionModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeData), meth_Akonadi_CollectionModel_mimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypes), meth_Akonadi_CollectionModel_mimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_Akonadi_CollectionModel_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_Akonadi_CollectionModel_rowCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_Akonadi_CollectionModel_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHeaderData), meth_Akonadi_CollectionModel_setHeaderData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedDropActions), meth_Akonadi_CollectionModel_supportedDropActions, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_CollectionModel[] = {
    {sipName_CollectionIdRole, static_cast<int>(Akonadi::CollectionModel::CollectionIdRole), 47},
    {sipName_CollectionRole, static_cast<int>(Akonadi::CollectionModel::CollectionRole), 47},
    {sipName_OldCollectionIdRole, static_cast<int>(Akonadi::CollectionModel::OldCollectionIdRole), 47},
    {sipName_OldCollectionRole, static_cast<int>(Akonadi::CollectionModel::OldCollectionRole), 47},
    {sipName_UserRole, static_cast<int>(Akonadi::CollectionModel::UserRole), 47},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionModel,
        {0}
    },
    {
        sipNameNr_CollectionModel,
        {0, 255, 0},
        16, methods_Akonadi_CollectionModel,
        5, enummembers_Akonadi_CollectionModel,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionModel,
    0,
    init_type_Akonadi_CollectionModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionModel,
    0,
    0,
    0,
    release_Akonadi_CollectionModel,
    cast_Akonadi_CollectionModel,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionModel::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionfilterproxymodel.sip"
#include <akonadi/collectionfilterproxymodel.h>
#line 8129 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 8133 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8136 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 8139 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8142 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 8145 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8148 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8151 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8154 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8157 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8160 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 8163 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 8166 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 8169 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 174 "/usr/share/python-sip/PyQt4/QtGui/qitemselectionmodel.sip"
#include <qitemselectionmodel.h>
#line 8172 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 127 "/usr/share/python-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 8175 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 144 "/usr/share/python-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 8178 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8181 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 144 "/usr/share/python-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 8184 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8187 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 8190 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8193 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8196 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8199 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8202 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 8205 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 8208 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 8211 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionFilterProxyModel : public Akonadi::CollectionFilterProxyModel
{
public:
    sipAkonadi_CollectionFilterProxyModel(QObject*);
    virtual ~sipAkonadi_CollectionFilterProxyModel();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    void revert();
    bool submit();
    Qt::DropActions supportedDropActions() const;
    QStringList mimeTypes() const;
    void sort(int,Qt::SortOrder);
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    QSize span(const QModelIndex&) const;
    QModelIndex buddy(const QModelIndex&) const;
    bool canFetchMore(const QModelIndex&) const;
    void fetchMore(const QModelIndex&);
    bool removeColumns(int,int,const QModelIndex&);
    bool removeRows(int,int,const QModelIndex&);
    bool insertColumns(int,int,const QModelIndex&);
    bool insertRows(int,int,const QModelIndex&);
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    QMimeData* mimeData(const QModelIndexList&) const;
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    QVariant headerData(int,Qt::Orientation,int) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    QVariant data(const QModelIndex&,int) const;
    bool hasChildren(const QModelIndex&) const;
    int columnCount(const QModelIndex&) const;
    int rowCount(const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    QModelIndex index(int,int,const QModelIndex&) const;
    bool lessThan(const QModelIndex&,const QModelIndex&) const;
    bool filterAcceptsColumn(int,const QModelIndex&) const;
    QItemSelection mapSelectionFromSource(const QItemSelection&) const;
    QItemSelection mapSelectionToSource(const QItemSelection&) const;
    QModelIndex mapFromSource(const QModelIndex&) const;
    QModelIndex mapToSource(const QModelIndex&) const;
    void setSourceModel(QAbstractItemModel*);
    Qt::ItemFlags flags(const QModelIndex&) const;
    bool filterAcceptsRow(int,const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionFilterProxyModel(const sipAkonadi_CollectionFilterProxyModel &);
    sipAkonadi_CollectionFilterProxyModel &operator = (const sipAkonadi_CollectionFilterProxyModel &);

    char sipPyMethods[43];
};

sipAkonadi_CollectionFilterProxyModel::sipAkonadi_CollectionFilterProxyModel(QObject*a0): Akonadi::CollectionFilterProxyModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionFilterProxyModel::~sipAkonadi_CollectionFilterProxyModel()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionFilterProxyModel::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionFilterProxyModel);
}

int sipAkonadi_CollectionFilterProxyModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionFilterProxyModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionFilterProxyModel,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionFilterProxyModel::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionFilterProxyModel, _clname)) ? this : Akonadi::CollectionFilterProxyModel::qt_metacast(_clname);
}

void sipAkonadi_CollectionFilterProxyModel::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::setItemData(const QModelIndex& a0,const QMap<int,QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_itemData);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::itemData(a0);

    typedef QMap<int,QVariant> (*sipVH_QtCore_56)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_56)(sipModuleAPI_akonadi_QtCore->em_virthandlers[56]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionFilterProxyModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::submit();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_akonadi_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

Qt::DropActions sipAkonadi_CollectionFilterProxyModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_supportedDropActions);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::supportedDropActions();

    typedef Qt::DropActions (*sipVH_QtCore_53)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_53)(sipModuleAPI_akonadi_QtCore->em_virthandlers[53]))(sipGILState, 0, sipPySelf, sipMeth);
}

QStringList sipAkonadi_CollectionFilterProxyModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_mimeTypes);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::mimeTypes();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_akonadi_QtCore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionFilterProxyModel::sort(int a0,Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::sort(a0,a1);
        return;
    }

    typedef void (*sipVH_QtCore_49)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::SortOrder);

    ((sipVH_QtCore_49)(sipModuleAPI_akonadi_QtCore->em_virthandlers[49]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QModelIndexList sipAkonadi_CollectionFilterProxyModel::match(const QModelIndex& a0,int a1,const QVariant& a2,int a3,Qt::MatchFlags a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_match);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::match(a0,a1,a2,a3,a4);

    typedef QList<QModelIndex> (*sipVH_QtCore_48)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

    return ((sipVH_QtCore_48)(sipModuleAPI_akonadi_QtCore->em_virthandlers[48]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QSize sipAkonadi_CollectionFilterProxyModel::span(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_span);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::span(a0);

    typedef QSize (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_47)(sipModuleAPI_akonadi_QtCore->em_virthandlers[47]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QModelIndex sipAkonadi_CollectionFilterProxyModel::buddy(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_buddy);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::canFetchMore(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_canFetchMore);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::removeColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_removeColumns);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::removeRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_removeRows);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::insertColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_insertColumns);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::insertRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_insertRows);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::dropMimeData(const QMimeData*a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_mimeData);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::mimeData(a0);

    typedef QMimeData* (*sipVH_QtCore_54)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList<QModelIndex>&);

    return ((sipVH_QtCore_54)(sipModuleAPI_akonadi_QtCore->em_virthandlers[54]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionFilterProxyModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::setData(const QModelIndex& a0,const QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::data(const QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::data(a0,a1);

    typedef QVariant (*sipVH_QtCore_60)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int);

    return ((sipVH_QtCore_60)(sipModuleAPI_akonadi_QtCore->em_virthandlers[60]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_CollectionFilterProxyModel::hasChildren(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),sipPySelf,NULL,sipName_hasChildren);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::columnCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,NULL,sipName_columnCount);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::rowCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,NULL,sipName_rowCount);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::parent(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,NULL,sipName_parent);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,NULL,sipName_index);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::index(a0,a1,a2);

    typedef QModelIndex (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_46)(sipModuleAPI_akonadi_QtCore->em_virthandlers[46]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipAkonadi_CollectionFilterProxyModel::lessThan(const QModelIndex& a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_lessThan);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::lessThan(a0,a1);

    typedef bool (*sipVH_QtGui_113)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QModelIndex&);

    return ((sipVH_QtGui_113)(sipModuleAPI_akonadi_QtGui->em_virthandlers[113]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipAkonadi_CollectionFilterProxyModel::filterAcceptsColumn(int a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_filterAcceptsColumn);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::filterAcceptsColumn(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QItemSelection sipAkonadi_CollectionFilterProxyModel::mapSelectionFromSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_mapSelectionFromSource);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::mapSelectionToSource(const QItemSelection& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,NULL,sipName_mapSelectionToSource);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::mapFromSource(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,NULL,sipName_mapFromSource);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::mapToSource(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[39]),sipPySelf,NULL,sipName_mapToSource);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::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_CollectionFilterProxyModel::setSourceModel(QAbstractItemModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_setSourceModel);

    if (!sipMeth)
    {
        Akonadi::CollectionFilterProxyModel::setSourceModel(a0);
        return;
    }

    typedef void (*sipVH_QtGui_36)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QAbstractItemModel*);

    ((sipVH_QtGui_36)(sipModuleAPI_akonadi_QtGui->em_virthandlers[36]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

Qt::ItemFlags sipAkonadi_CollectionFilterProxyModel::flags(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[41]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::flags(a0);

    typedef Qt::ItemFlags (*sipVH_QtCore_50)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_50)(sipModuleAPI_akonadi_QtCore->em_virthandlers[50]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionFilterProxyModel::filterAcceptsRow(int a0,const QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[42]),sipPySelf,NULL,sipName_filterAcceptsRow);

    if (!sipMeth)
        return Akonadi::CollectionFilterProxyModel::filterAcceptsRow(a0,a1);

    typedef bool (*sipVH_QtGui_114)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QModelIndex&);

    return ((sipVH_QtGui_114)(sipModuleAPI_akonadi_QtGui->em_virthandlers[114]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


extern "C" {static PyObject *meth_Akonadi_CollectionFilterProxyModel_addMimeTypeFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFilterProxyModel_addMimeTypeFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::CollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionFilterProxyModel, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addMimeTypeFilters(*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_CollectionFilterProxyModel, sipName_addMimeTypeFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFilterProxyModel_addMimeTypeFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFilterProxyModel_addMimeTypeFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::CollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionFilterProxyModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addMimeTypeFilter(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFilterProxyModel, sipName_addMimeTypeFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFilterProxyModel_mimeTypeFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFilterProxyModel_mimeTypeFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFilterProxyModel, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->mimeTypeFilters());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFilterProxyModel, sipName_mimeTypeFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFilterProxyModel_clearFilters(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFilterProxyModel_clearFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFilterProxyModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearFilters();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFilterProxyModel, sipName_clearFilters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFilterProxyModel_filterAcceptsRow(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFilterProxyModel_filterAcceptsRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QModelIndex* a1;
        const Akonadi::CollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "piJ9", &sipSelf, sipType_Akonadi_CollectionFilterProxyModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Akonadi::CollectionFilterProxyModel::filterAcceptsRow(a0,*a1) : sipCpp->filterAcceptsRow(a0,*a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFilterProxyModel, sipName_filterAcceptsRow, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFilterProxyModel_flags(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFilterProxyModel_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        const Akonadi::CollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_CollectionFilterProxyModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            Qt::ItemFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Qt::ItemFlags((sipSelfWasArg ? sipCpp->Akonadi::CollectionFilterProxyModel::flags(*a0) : sipCpp->flags(*a0)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Qt_ItemFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFilterProxyModel, sipName_flags, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFilterProxyModel_setExcludeVirtualCollections(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFilterProxyModel_setExcludeVirtualCollections(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Akonadi::CollectionFilterProxyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_CollectionFilterProxyModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExcludeVirtualCollections(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_CollectionFilterProxyModel, sipName_setExcludeVirtualCollections, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionFilterProxyModel(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionFilterProxyModel(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_CollectionFilterProxyModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QSortFilterProxyModel)->ctd_cast((QSortFilterProxyModel *)(Akonadi::CollectionFilterProxyModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionFilterProxyModel(void *, int);}
static void release_Akonadi_CollectionFilterProxyModel(void *sipCppV,int)
{
    Akonadi::CollectionFilterProxyModel *sipCpp = reinterpret_cast<Akonadi::CollectionFilterProxyModel *>(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_CollectionFilterProxyModel(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionFilterProxyModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionFilterProxyModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionFilterProxyModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionFilterProxyModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionFilterProxyModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionFilterProxyModel *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionFilterProxyModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionFilterProxyModel[] = {{455, 2, 1}};


static PyMethodDef methods_Akonadi_CollectionFilterProxyModel[] = {
    {SIP_MLNAME_CAST(sipName_addMimeTypeFilter), meth_Akonadi_CollectionFilterProxyModel_addMimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addMimeTypeFilters), meth_Akonadi_CollectionFilterProxyModel_addMimeTypeFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearFilters), meth_Akonadi_CollectionFilterProxyModel_clearFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterAcceptsRow), meth_Akonadi_CollectionFilterProxyModel_filterAcceptsRow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_flags), meth_Akonadi_CollectionFilterProxyModel_flags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeFilters), meth_Akonadi_CollectionFilterProxyModel_mimeTypeFilters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setExcludeVirtualCollections), meth_Akonadi_CollectionFilterProxyModel_setExcludeVirtualCollections, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionFilterProxyModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionFilterProxyModel,
        {0}
    },
    {
        sipNameNr_CollectionFilterProxyModel,
        {0, 255, 0},
        7, methods_Akonadi_CollectionFilterProxyModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionFilterProxyModel,
    0,
    init_type_Akonadi_CollectionFilterProxyModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionFilterProxyModel,
    0,
    0,
    0,
    release_Akonadi_CollectionFilterProxyModel,
    cast_Akonadi_CollectionFilterProxyModel,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionFilterProxyModel::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionfetchscope.sip"
#include <akonadi/collectionfetchscope.h>
#line 9323 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9327 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9330 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_includeUnubscribed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_includeUnubscribed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->includeUnubscribed();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_includeUnubscribed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_setIncludeUnsubscribed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_setIncludeUnsubscribed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIncludeUnsubscribed(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_setIncludeUnsubscribed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_includeStatistics(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_includeStatistics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->includeStatistics();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_includeStatistics, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_setIncludeStatistics(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_setIncludeStatistics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIncludeStatistics(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_CollectionFetchScope, sipName_setIncludeStatistics, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_resource(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_resource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->resource());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_resource, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_setResource(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_setResource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResource(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_setResource, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_setContentMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_setContentMimeTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContentMimeTypes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_setContentMimeTypes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_contentMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_contentMimeTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->contentMimeTypes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_contentMimeTypes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_setAncestorRetrieval(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_setAncestorRetrieval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionFetchScope::AncestorRetrieval a0;
        Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp, sipType_Akonadi_CollectionFetchScope_AncestorRetrieval, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAncestorRetrieval(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_CollectionFetchScope, sipName_setAncestorRetrieval, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_ancestorRetrieval(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_ancestorRetrieval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp))
        {
            Akonadi::CollectionFetchScope::AncestorRetrieval sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ancestorRetrieval();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Akonadi_CollectionFetchScope_AncestorRetrieval);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_ancestorRetrieval, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_isEmpty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchScope_includeUnsubscribed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchScope_includeUnsubscribed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchScope *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchScope, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->includeUnsubscribed();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchScope, sipName_includeUnsubscribed, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionFetchScope(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionFetchScope(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Akonadi_CollectionFetchScope)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionFetchScope(void *, int);}
static void release_Akonadi_CollectionFetchScope(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Akonadi::CollectionFetchScope *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Akonadi_CollectionFetchScope(void *, SIP_SSIZE_T, const void *);}
static void assign_Akonadi_CollectionFetchScope(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Akonadi::CollectionFetchScope *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Akonadi::CollectionFetchScope *>(sipSrc);
}


extern "C" {static void *array_Akonadi_CollectionFetchScope(SIP_SSIZE_T);}
static void *array_Akonadi_CollectionFetchScope(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::CollectionFetchScope[sipNrElem];
}


extern "C" {static void *copy_Akonadi_CollectionFetchScope(const void *, SIP_SSIZE_T);}
static void *copy_Akonadi_CollectionFetchScope(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Akonadi::CollectionFetchScope(reinterpret_cast<const Akonadi::CollectionFetchScope *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Akonadi_CollectionFetchScope(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionFetchScope(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionFetchScope(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionFetchScope(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionFetchScope(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::CollectionFetchScope *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::CollectionFetchScope();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Akonadi::CollectionFetchScope* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Akonadi_CollectionFetchScope, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::CollectionFetchScope(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Akonadi_CollectionFetchScope[] = {
    {SIP_MLNAME_CAST(sipName_ancestorRetrieval), meth_Akonadi_CollectionFetchScope_ancestorRetrieval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contentMimeTypes), meth_Akonadi_CollectionFetchScope_contentMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeStatistics), meth_Akonadi_CollectionFetchScope_includeStatistics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeUnsubscribed), meth_Akonadi_CollectionFetchScope_includeUnsubscribed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeUnubscribed), meth_Akonadi_CollectionFetchScope_includeUnubscribed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Akonadi_CollectionFetchScope_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resource), meth_Akonadi_CollectionFetchScope_resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAncestorRetrieval), meth_Akonadi_CollectionFetchScope_setAncestorRetrieval, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContentMimeTypes), meth_Akonadi_CollectionFetchScope_setContentMimeTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIncludeStatistics), meth_Akonadi_CollectionFetchScope_setIncludeStatistics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIncludeUnsubscribed), meth_Akonadi_CollectionFetchScope_setIncludeUnsubscribed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResource), meth_Akonadi_CollectionFetchScope_setResource, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_CollectionFetchScope[] = {
    {sipName_All, static_cast<int>(Akonadi::CollectionFetchScope::All), 44},
    {sipName_None, static_cast<int>(Akonadi::CollectionFetchScope::None), 44},
    {sipName_Parent, static_cast<int>(Akonadi::CollectionFetchScope::Parent), 44},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionFetchScope = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionFetchScope,
        {0}
    },
    {
        sipNameNr_CollectionFetchScope,
        {0, 255, 0},
        12, methods_Akonadi_CollectionFetchScope,
        3, enummembers_Akonadi_CollectionFetchScope,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_Akonadi_CollectionFetchScope,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionFetchScope,
    assign_Akonadi_CollectionFetchScope,
    array_Akonadi_CollectionFetchScope,
    copy_Akonadi_CollectionFetchScope,
    release_Akonadi_CollectionFetchScope,
    cast_Akonadi_CollectionFetchScope,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionfetchjob.sip"
#include <akonadi/collectionfetchjob.h>
#line 9825 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 9829 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 9832 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9835 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectionfetchscope.sip"
#include <akonadi/collectionfetchscope.h>
#line 9838 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9841 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9844 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9847 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 9850 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9853 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 9856 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 9859 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9862 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 9865 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9868 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9871 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9874 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9877 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9880 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9883 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 9886 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 9889 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9892 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9895 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionFetchJob : public Akonadi::CollectionFetchJob
{
public:
    sipAkonadi_CollectionFetchJob(const Akonadi::Collection&,Akonadi::CollectionFetchJob::Type,QObject*);
    sipAkonadi_CollectionFetchJob(const Akonadi::Collection::List&,QObject*);
    sipAkonadi_CollectionFetchJob(const Akonadi::Collection::List&,Akonadi::CollectionFetchJob::Type,QObject*);
    virtual ~sipAkonadi_CollectionFetchJob();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool doResume();
    bool doSuspend();
    void start();
    void slotInfoMessage(KJob*,const QString&,const QString&);
    void slotResult(KJob*);
    bool doKill();
    bool removeSubjob(KJob*);
    bool addSubjob(KJob*);
    QString errorString() const;
    void doHandleResponse(const QByteArray&,const QByteArray&);
    void doStart();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionFetchJob(const sipAkonadi_CollectionFetchJob &);
    sipAkonadi_CollectionFetchJob &operator = (const sipAkonadi_CollectionFetchJob &);

    char sipPyMethods[19];
};

sipAkonadi_CollectionFetchJob::sipAkonadi_CollectionFetchJob(const Akonadi::Collection& a0,Akonadi::CollectionFetchJob::Type a1,QObject*a2): Akonadi::CollectionFetchJob(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionFetchJob::sipAkonadi_CollectionFetchJob(const Akonadi::Collection::List& a0,QObject*a1): Akonadi::CollectionFetchJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionFetchJob::sipAkonadi_CollectionFetchJob(const Akonadi::Collection::List& a0,Akonadi::CollectionFetchJob::Type a1,QObject*a2): Akonadi::CollectionFetchJob(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionFetchJob::~sipAkonadi_CollectionFetchJob()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionFetchJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionFetchJob);
}

int sipAkonadi_CollectionFetchJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionFetchJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionFetchJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionFetchJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionFetchJob, _clname)) ? this : Akonadi::CollectionFetchJob::qt_metacast(_clname);
}

void sipAkonadi_CollectionFetchJob::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionFetchJob::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_CollectionFetchJob::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionFetchJob::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_CollectionFetchJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return Akonadi::CollectionFetchJob::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_CollectionFetchJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return Akonadi::CollectionFetchJob::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_CollectionFetchJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob::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::CollectionFetchJob::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_CollectionFetchJob::slotResult(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_slotResult);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return Akonadi::CollectionFetchJob::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_CollectionFetchJob::removeSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_removeSubjob);

    if (!sipMeth)
        return Akonadi::CollectionFetchJob::removeSubjob(a0);

    typedef bool (*sipVH_kdecore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_51)(sipModuleAPI_akonadi_kdecore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionFetchJob::addSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_addSubjob);

    if (!sipMeth)
        return Akonadi::CollectionFetchJob::addSubjob(a0);

    typedef bool (*sipVH_kdecore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_51)(sipModuleAPI_akonadi_kdecore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipAkonadi_CollectionFetchJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return Akonadi::CollectionFetchJob::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_CollectionFetchJob::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_doHandleResponse);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_doStart);

    if (!sipMeth)
    {
        Akonadi::CollectionFetchJob::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_CollectionFetchJob_collections(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_collections(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp))
        {
            Akonadi::Collection::List*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::List(sipCpp->collections());
            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_CollectionFetchJob, sipName_collections, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchJob_setResource(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_setResource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResource(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchJob, sipName_setResource, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchJob_includeUnsubscribed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_includeUnsubscribed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->includeUnsubscribed(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_CollectionFetchJob, sipName_includeUnsubscribed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchJob_includeStatistics(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_includeStatistics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->includeStatistics(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_CollectionFetchJob, sipName_includeStatistics, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_doStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionFetchJob::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_CollectionFetchJob, sipName_doStart, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchJob_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_doHandleResponse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionFetchJob::doHandleResponse(*a0,*a1) : sipCpp->doHandleResponse(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchJob, sipName_doHandleResponse, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchJob_slotResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_slotResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob* a0;
        Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionFetchJob::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_CollectionFetchJob, sipName_slotResult, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchJob_setFetchScope(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_setFetchScope(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionFetchScope* a0;
        Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp, sipType_Akonadi_CollectionFetchScope, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFetchScope(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchJob, sipName_setFetchScope, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionFetchJob_fetchScope(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionFetchJob_fetchScope(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionFetchJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionFetchJob, &sipCpp))
        {
            Akonadi::CollectionFetchScope*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->fetchScope();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Akonadi_CollectionFetchScope,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionFetchJob, sipName_fetchScope, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionFetchJob(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionFetchJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_CollectionFetchJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Job)->ctd_cast((Akonadi::Job *)(Akonadi::CollectionFetchJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionFetchJob(void *, int);}
static void release_Akonadi_CollectionFetchJob(void *sipCppV,int)
{
    Akonadi::CollectionFetchJob *sipCpp = reinterpret_cast<Akonadi::CollectionFetchJob *>(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_CollectionFetchJob(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionFetchJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionFetchJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionFetchJob(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionFetchJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionFetchJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionFetchJob *sipCpp = 0;

    {
        const Akonadi::Collection* a0;
        Akonadi::CollectionFetchJob::Type a1 = Akonadi::CollectionFetchJob::FirstLevel;
        QObject* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|EJH", sipType_Akonadi_Collection, &a0, sipType_Akonadi_CollectionFetchJob_Type, &a1, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionFetchJob(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::Collection::List* a0;
        int a0State = 0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|JH", sipType_QList_0100Akonadi_Collection,&a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionFetchJob(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Collection::List *>(a0),sipType_QList_0100Akonadi_Collection,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Akonadi::Collection::List* a0;
        int a0State = 0;
        Akonadi::CollectionFetchJob::Type a1;
        QObject* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1E|JH", sipType_QList_0100Akonadi_Collection,&a0, &a0State, sipType_Akonadi_CollectionFetchJob_Type, &a1, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionFetchJob(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::Collection::List *>(a0),sipType_QList_0100Akonadi_Collection,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionFetchJob[] = {{104, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionFetchJob[] = {
    {SIP_MLNAME_CAST(sipName_collections), meth_Akonadi_CollectionFetchJob_collections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_CollectionFetchJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionFetchJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchScope), meth_Akonadi_CollectionFetchJob_fetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeStatistics), meth_Akonadi_CollectionFetchJob_includeStatistics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeUnsubscribed), meth_Akonadi_CollectionFetchJob_includeUnsubscribed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFetchScope), meth_Akonadi_CollectionFetchJob_setFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResource), meth_Akonadi_CollectionFetchJob_setResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_CollectionFetchJob_slotResult, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_CollectionFetchJob[] = {
    {sipName_Base, static_cast<int>(Akonadi::CollectionFetchJob::Base), 42},
    {sipName_FirstLevel, static_cast<int>(Akonadi::CollectionFetchJob::FirstLevel), 42},
    {sipName_NonOverlappingRoots, static_cast<int>(Akonadi::CollectionFetchJob::NonOverlappingRoots), 42},
    {sipName_Recursive, static_cast<int>(Akonadi::CollectionFetchJob::Recursive), 42},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_Akonadi_CollectionFetchJob[] = {
    {"collectionsReceived(Akonadi::Collection::List)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionFetchJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionFetchJob,
        {0}
    },
    {
        sipNameNr_CollectionFetchJob,
        {0, 255, 0},
        9, methods_Akonadi_CollectionFetchJob,
        4, enummembers_Akonadi_CollectionFetchJob,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionFetchJob,
    0,
    init_type_Akonadi_CollectionFetchJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionFetchJob,
    0,
    0,
    0,
    release_Akonadi_CollectionFetchJob,
    cast_Akonadi_CollectionFetchJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionFetchJob::staticMetaObject,
    0,
    signals_Akonadi_CollectionFetchJob,
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectiondialog.sip"
#include <akonadi/collectiondialog.h>
#line 10732 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectiondialog.sip"
#include <akonadi/collectiondialog.h>
#line 10736 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


extern "C" {static int slot_Akonadi_CollectionDialog_CollectionDialogOptions___bool__(PyObject *);}
static int slot_Akonadi_CollectionDialog_CollectionDialogOptions___bool__(PyObject *sipSelf)
{
    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CollectionDialog_CollectionDialogOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Akonadi::CollectionDialog::CollectionDialogOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 10758 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CollectionDialog_CollectionDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Akonadi::CollectionDialog::CollectionDialogOptions::Int() != a0->operator Akonadi::CollectionDialog::CollectionDialogOptions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 10792 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
            sipReleaseType(const_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(a0),sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,ne_slot,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CollectionDialog_CollectionDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator Akonadi::CollectionDialog::CollectionDialogOptions::Int() == a0->operator Akonadi::CollectionDialog::CollectionDialogOptions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 10832 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
            sipReleaseType(const_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(a0),sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,eq_slot,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___invert__(PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___invert__(PyObject *sipSelf)
{
    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CollectionDialog_CollectionDialogOptions));

    if (!sipCpp)
        return 0;


    {
        {
            Akonadi::CollectionDialog::CollectionDialogOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::CollectionDialog::CollectionDialogOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___and__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State, &a1))
        {
            Akonadi::CollectionDialog::CollectionDialogOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::CollectionDialog::CollectionDialogOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___xor__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;
        Akonadi::CollectionDialog::CollectionDialogOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State, sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a1, &a1State))
        {
            Akonadi::CollectionDialog::CollectionDialogOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::CollectionDialog::CollectionDialogOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);
            sipReleaseType(a1,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,NULL);
        }
    }

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State, &a1))
        {
            Akonadi::CollectionDialog::CollectionDialogOptions*sipRes = 0;

#line 346 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Akonadi::CollectionDialog::CollectionDialogOptions(*a0 ^ a1);
#line 10941 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___or__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;
        Akonadi::CollectionDialog::CollectionDialogOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State, sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a1, &a1State))
        {
            Akonadi::CollectionDialog::CollectionDialogOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::CollectionDialog::CollectionDialogOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);
            sipReleaseType(a1,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,NULL);
        }
    }

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State, &a1))
        {
            Akonadi::CollectionDialog::CollectionDialogOptions*sipRes = 0;

#line 341 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
        sipRes = new Akonadi::CollectionDialog::CollectionDialogOptions(*a0 | a1);
#line 10993 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_akonadi,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___int__(PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___int__(PyObject *sipSelf)
{
    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CollectionDialog_CollectionDialogOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Akonadi_CollectionDialog_CollectionDialogOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CollectionDialog_CollectionDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Akonadi::CollectionDialog::CollectionDialogOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___ior__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Akonadi_CollectionDialog_CollectionDialogOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CollectionDialog_CollectionDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Akonadi::CollectionDialog::CollectionDialogOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___iand__(PyObject *,PyObject *);}
static PyObject *slot_Akonadi_CollectionDialog_CollectionDialogOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Akonadi_CollectionDialog_CollectionDialogOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Akonadi_CollectionDialog_CollectionDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Akonadi::CollectionDialog::CollectionDialogOptions::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionDialog_CollectionDialogOptions(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionDialog_CollectionDialogOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Akonadi_CollectionDialog_CollectionDialogOptions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionDialog_CollectionDialogOptions(void *, int);}
static void release_Akonadi_CollectionDialog_CollectionDialogOptions(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Akonadi_CollectionDialog_CollectionDialogOptions(void *, SIP_SSIZE_T, const void *);}
static void assign_Akonadi_CollectionDialog_CollectionDialogOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Akonadi::CollectionDialog::CollectionDialogOptions *>(sipSrc);
}


extern "C" {static void *array_Akonadi_CollectionDialog_CollectionDialogOptions(SIP_SSIZE_T);}
static void *array_Akonadi_CollectionDialog_CollectionDialogOptions(SIP_SSIZE_T sipNrElem)
{
    return new Akonadi::CollectionDialog::CollectionDialogOptions[sipNrElem];
}


extern "C" {static void *copy_Akonadi_CollectionDialog_CollectionDialogOptions(const void *, SIP_SSIZE_T);}
static void *copy_Akonadi_CollectionDialog_CollectionDialogOptions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Akonadi::CollectionDialog::CollectionDialogOptions(reinterpret_cast<const Akonadi::CollectionDialog::CollectionDialogOptions *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Akonadi_CollectionDialog_CollectionDialogOptions(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionDialog_CollectionDialogOptions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionDialog_CollectionDialogOptions(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionDialog_CollectionDialogOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionDialog_CollectionDialogOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Akonadi::CollectionDialog::CollectionDialogOptions *sipCpp = 0;

    {
        const Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::CollectionDialog::CollectionDialogOptions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(a0),sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::CollectionDialog::CollectionDialogOptions(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::CollectionDialog::CollectionDialogOptions();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Akonadi_CollectionDialog_CollectionDialogOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_Akonadi_CollectionDialog_CollectionDialogOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Akonadi::CollectionDialog::CollectionDialogOptions **sipCppPtr = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions **>(sipCppPtrV);

#line 379 "/usr/share/python-sip/PyQt4/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Akonadi::CollectionDialog::CollectionDialogOptions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Akonadi_CollectionDialog_CollectionDialogOption)) ||
            sipCanConvertToType(sipPy, sipType_Akonadi_CollectionDialog_CollectionDialogOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Akonadi_CollectionDialog_CollectionDialogOption)))
{
    *sipCppPtr = new Akonadi::CollectionDialog::CollectionDialogOptions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Akonadi::CollectionDialog::CollectionDialogOptions *>(sipConvertToType(sipPy, sipType_Akonadi_CollectionDialog_CollectionDialogOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 11288 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Akonadi_CollectionDialog_CollectionDialogOptions[] = {
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___bool__, bool_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___ne__, ne_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___eq__, eq_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___invert__, invert_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___and__, and_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___xor__, xor_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___or__, or_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___int__, int_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___ixor__, ixor_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___ior__, ior_slot},
    {(void *)slot_Akonadi_CollectionDialog_CollectionDialogOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionDialog_CollectionDialogOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionDialog__CollectionDialogOptions,
        {0}
    },
    {
        sipNameNr_CollectionDialogOptions,
        {38, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Akonadi_CollectionDialog_CollectionDialogOptions,
    init_type_Akonadi_CollectionDialog_CollectionDialogOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionDialog_CollectionDialogOptions,
    assign_Akonadi_CollectionDialog_CollectionDialogOptions,
    array_Akonadi_CollectionDialog_CollectionDialogOptions,
    copy_Akonadi_CollectionDialog_CollectionDialogOptions,
    release_Akonadi_CollectionDialog_CollectionDialogOptions,
    cast_Akonadi_CollectionDialog_CollectionDialogOptions,
    convertTo_Akonadi_CollectionDialog_CollectionDialogOptions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectiondialog.sip"
#include <akonadi/collectiondialog.h>
#line 11364 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11368 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 127 "/usr/share/python-sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 11371 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectiondialog.sip"
#include <akonadi/collectiondialog.h>
#line 11374 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 11377 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 11380 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 11383 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 11386 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11389 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11392 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 483 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11395 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 583 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11398 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 616 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11401 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 11404 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 11407 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 11410 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 11413 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 11416 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kpushbutton.sip"
#include <kpushbutton.h>
#line 11419 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 32 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 11422 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 11425 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 11428 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kguiitem.sip"
#include <kguiitem.h>
#line 11431 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 11434 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11437 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 11440 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 11443 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11446 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 627 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11449 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 570 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11452 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 605 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11455 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11458 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 11461 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11464 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 11467 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 11470 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 11473 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 11476 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 11479 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 11482 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11485 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 11488 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11491 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 11494 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 11497 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 11500 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11503 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 11506 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11509 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 656 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11512 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 748 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11515 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 801 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11518 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 774 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11521 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 790 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11524 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 863 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11527 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 412 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11530 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 557 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11533 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 533 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11536 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 514 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11539 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 356 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11542 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 261 "/usr/share/python-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 11545 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 11548 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 61 "/usr/share/python-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 11551 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 39 "/usr/share/python-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 11554 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11557 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 11560 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 11563 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11566 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 11569 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 11572 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 11575 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 11578 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 11581 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11584 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11587 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11590 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 11593 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 11596 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11599 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11602 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionDialog : public Akonadi::CollectionDialog
{
public:
    sipAkonadi_CollectionDialog(QWidget*);
    sipAkonadi_CollectionDialog(QAbstractItemModel*,QWidget*);
    sipAkonadi_CollectionDialog(Akonadi::CollectionDialog::CollectionDialogOptions,QAbstractItemModel*,QWidget*);
    virtual ~sipAkonadi_CollectionDialog();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    int devType() const;
    bool eventFilter(QObject*,QEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void resizeEvent(QResizeEvent*);
    void showEvent(QShowEvent*);
    void reject();
    void accept();
    void done(int);
    void setVisible(bool);
    void slotButtonClicked(int);
    void keyPressEvent(QKeyEvent*);
    void closeEvent(QCloseEvent*);
    void hideEvent(QHideEvent*);
    void setPlainCaption(const QString&);
    void setCaption(const QString&,bool);
    void setCaption(const QString&);
    QSize minimumSizeHint() const;
    QSize sizeHint() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionDialog(const sipAkonadi_CollectionDialog &);
    sipAkonadi_CollectionDialog &operator = (const sipAkonadi_CollectionDialog &);

    char sipPyMethods[54];
};

sipAkonadi_CollectionDialog::sipAkonadi_CollectionDialog(QWidget*a0): Akonadi::CollectionDialog(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionDialog::sipAkonadi_CollectionDialog(QAbstractItemModel*a0,QWidget*a1): Akonadi::CollectionDialog(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionDialog::sipAkonadi_CollectionDialog(Akonadi::CollectionDialog::CollectionDialogOptions a0,QAbstractItemModel*a1,QWidget*a2): Akonadi::CollectionDialog(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionDialog::~sipAkonadi_CollectionDialog()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionDialog::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionDialog);
}

int sipAkonadi_CollectionDialog::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionDialog::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionDialog,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionDialog::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionDialog, _clname)) ? this : Akonadi::CollectionDialog::qt_metacast(_clname);
}

void sipAkonadi_CollectionDialog::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_languageChange);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_windowActivationChange);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_fontChange);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_paletteChange);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_enabledChange);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::enabledChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtGui_6)(sipModuleAPI_akonadi_QtGui->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionDialog::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return Akonadi::CollectionDialog::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_CollectionDialog::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return Akonadi::CollectionDialog::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_CollectionDialog::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtGui_13)(sipModuleAPI_akonadi_QtGui->em_virthandlers[13]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipAkonadi_CollectionDialog::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return Akonadi::CollectionDialog::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_CollectionDialog::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

    ((sipVH_QtGui_17)(sipModuleAPI_akonadi_QtGui->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

    ((sipVH_QtGui_18)(sipModuleAPI_akonadi_QtGui->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_akonadi_QtGui->em_virthandlers[3]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_25)(sipModuleAPI_akonadi_QtGui->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    ((sipVH_QtGui_5)(sipModuleAPI_akonadi_QtGui->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_akonadi_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionDialog::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionDialog::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QPaintEngine* sipAkonadi_CollectionDialog::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return Akonadi::CollectionDialog::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_CollectionDialog::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return Akonadi::CollectionDialog::heightForWidth(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_akonadi_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipAkonadi_CollectionDialog::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return Akonadi::CollectionDialog::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_akonadi_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipAkonadi_CollectionDialog::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionDialog::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_CollectionDialog::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::reject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_reject);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::reject();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionDialog::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_accept);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::accept();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_akonadi_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipAkonadi_CollectionDialog::done(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_done);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::done(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtGui_6)(sipModuleAPI_akonadi_QtGui->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::slotButtonClicked(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_slotButtonClicked);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::slotButtonClicked(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_akonadi_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::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_CollectionDialog::setPlainCaption(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_setPlainCaption);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::setPlainCaption(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_akonadi_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDialog::setCaption(const QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_setCaption);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::setCaption(a0,a1);
        return;
    }

    typedef void (*sipVH_QtXml_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,bool);

    ((sipVH_QtXml_24)(sipModuleAPI_akonadi_QtXml->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipAkonadi_CollectionDialog::setCaption(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[51],sipPySelf,NULL,sipName_setCaption);

    if (!sipMeth)
    {
        Akonadi::CollectionDialog::setCaption(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_akonadi_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QSize sipAkonadi_CollectionDialog::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[52]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return Akonadi::CollectionDialog::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

QSize sipAkonadi_CollectionDialog::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[53]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return Akonadi::CollectionDialog::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);
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_selectedCollection(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_selectedCollection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp))
        {
            Akonadi::Collection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection(sipCpp->selectedCollection());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Akonadi_Collection,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionDialog, sipName_selectedCollection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_selectedCollections(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_selectedCollections(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionDialog, &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_CollectionDialog, sipName_selectedCollections, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_setMimeTypeFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_setMimeTypeFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeTypeFilter(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionDialog, sipName_setMimeTypeFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_mimeTypeFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_mimeTypeFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->mimeTypeFilter());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionDialog, sipName_mimeTypeFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_setSelectionMode(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_setSelectionMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractItemView::SelectionMode a0;
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp, sipType_QAbstractItemView_SelectionMode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectionMode(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_CollectionDialog, sipName_setSelectionMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_selectionMode(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_selectionMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp))
        {
            QAbstractItemView::SelectionMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->selectionMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QAbstractItemView_SelectionMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionDialog, sipName_selectionMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_setAccessRightsFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_setAccessRightsFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::Collection::Rights* a0;
        int a0State = 0;
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp, sipType_Akonadi_Collection_Rights, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAccessRightsFilter(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionDialog, sipName_setAccessRightsFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_accessRightsFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_accessRightsFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp))
        {
            Akonadi::Collection::Rights*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::Rights(sipCpp->accessRightsFilter());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Akonadi_Collection_Rights,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionDialog, sipName_accessRightsFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_setDescription(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_setDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDescription(*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_CollectionDialog, sipName_setDescription, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_setDefaultCollection(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_setDefaultCollection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::Collection* a0;
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp, sipType_Akonadi_Collection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultCollection(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionDialog, sipName_setDefaultCollection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_changeCollectionDialogOptions(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_changeCollectionDialogOptions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Akonadi_CollectionDialog, &sipCpp, sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->changeCollectionDialogOptions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionDialog, sipName_changeCollectionDialogOptions, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionDialog(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionDialog(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_CollectionDialog)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KDialog)->ctd_cast((KDialog *)(Akonadi::CollectionDialog *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionDialog(void *, int);}
static void release_Akonadi_CollectionDialog(void *sipCppV,int)
{
    Akonadi::CollectionDialog *sipCpp = reinterpret_cast<Akonadi::CollectionDialog *>(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_CollectionDialog(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionDialog(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionDialog *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionDialog(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionDialog(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionDialog(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionDialog *sipCpp = 0;

    {
        QWidget* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionDialog(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QAbstractItemModel* a0;
        QWidget* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_QAbstractItemModel, &a0, sipType_QWidget, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionDialog(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Akonadi::CollectionDialog::CollectionDialogOptions* a0;
        int a0State = 0;
        QAbstractItemModel* a1 = 0;
        QWidget* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J8JH", sipType_Akonadi_CollectionDialog_CollectionDialogOptions, &a0, &a0State, sipType_QAbstractItemModel, &a1, sipType_QWidget, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionDialog(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Akonadi_CollectionDialog_CollectionDialogOptions,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionDialog[] = {{86, 7, 1}};


static PyMethodDef methods_Akonadi_CollectionDialog[] = {
    {SIP_MLNAME_CAST(sipName_accessRightsFilter), meth_Akonadi_CollectionDialog_accessRightsFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeCollectionDialogOptions), meth_Akonadi_CollectionDialog_changeCollectionDialogOptions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeFilter), meth_Akonadi_CollectionDialog_mimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedCollection), meth_Akonadi_CollectionDialog_selectedCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedCollections), meth_Akonadi_CollectionDialog_selectedCollections, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectionMode), meth_Akonadi_CollectionDialog_selectionMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAccessRightsFilter), meth_Akonadi_CollectionDialog_setAccessRightsFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultCollection), meth_Akonadi_CollectionDialog_setDefaultCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDescription), meth_Akonadi_CollectionDialog_setDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeTypeFilter), meth_Akonadi_CollectionDialog_setMimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectionMode), meth_Akonadi_CollectionDialog_setSelectionMode, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_CollectionDialog[] = {
    {sipName_AllowToCreateNewChildCollection, static_cast<int>(Akonadi::CollectionDialog::AllowToCreateNewChildCollection), 39},
    {sipName_None, static_cast<int>(Akonadi::CollectionDialog::None), 39},
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionDialog = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionDialog,
        {0}
    },
    {
        sipNameNr_CollectionDialog,
        {0, 255, 0},
        11, methods_Akonadi_CollectionDialog,
        2, enummembers_Akonadi_CollectionDialog,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionDialog,
    0,
    init_type_Akonadi_CollectionDialog,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionDialog,
    0,
    0,
    0,
    release_Akonadi_CollectionDialog,
    cast_Akonadi_CollectionDialog,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionDialog::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectiondeletejob.sip"
#include <akonadi/collectiondeletejob.h>
#line 13159 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 13163 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 13166 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 13169 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13172 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 13175 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 13178 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13181 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 13184 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 13187 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 13190 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 13193 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13196 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13199 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13202 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13205 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13208 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13211 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13214 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 13217 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13220 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13223 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionDeleteJob : public Akonadi::CollectionDeleteJob
{
public:
    sipAkonadi_CollectionDeleteJob(const Akonadi::Collection&,QObject*);
    virtual ~sipAkonadi_CollectionDeleteJob();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool doResume();
    bool doSuspend();
    void start();
    void slotInfoMessage(KJob*,const QString&,const QString&);
    void slotResult(KJob*);
    bool doKill();
    bool removeSubjob(KJob*);
    bool addSubjob(KJob*);
    void doHandleResponse(const QByteArray&,const QByteArray&);
    QString errorString() const;
    void doStart();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionDeleteJob(const sipAkonadi_CollectionDeleteJob &);
    sipAkonadi_CollectionDeleteJob &operator = (const sipAkonadi_CollectionDeleteJob &);

    char sipPyMethods[18];
};

sipAkonadi_CollectionDeleteJob::sipAkonadi_CollectionDeleteJob(const Akonadi::Collection& a0,QObject*a1): Akonadi::CollectionDeleteJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionDeleteJob::~sipAkonadi_CollectionDeleteJob()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionDeleteJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionDeleteJob);
}

int sipAkonadi_CollectionDeleteJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionDeleteJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionDeleteJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionDeleteJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionDeleteJob, _clname)) ? this : Akonadi::CollectionDeleteJob::qt_metacast(_clname);
}

void sipAkonadi_CollectionDeleteJob::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::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::CollectionDeleteJob::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_CollectionDeleteJob::slotResult(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_slotResult);

    if (!sipMeth)
    {
        Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::removeSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_removeSubjob);

    if (!sipMeth)
        return Akonadi::CollectionDeleteJob::removeSubjob(a0);

    typedef bool (*sipVH_kdecore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_51)(sipModuleAPI_akonadi_kdecore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionDeleteJob::addSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_addSubjob);

    if (!sipMeth)
        return Akonadi::CollectionDeleteJob::addSubjob(a0);

    typedef bool (*sipVH_kdecore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_51)(sipModuleAPI_akonadi_kdecore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionDeleteJob::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::CollectionDeleteJob::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_CollectionDeleteJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return Akonadi::CollectionDeleteJob::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_CollectionDeleteJob::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_doStart);

    if (!sipMeth)
    {
        Akonadi::CollectionDeleteJob::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_CollectionDeleteJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_doStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_CollectionDeleteJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionDeleteJob::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_CollectionDeleteJob, sipName_doStart, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionDeleteJob(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionDeleteJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_CollectionDeleteJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Job)->ctd_cast((Akonadi::Job *)(Akonadi::CollectionDeleteJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionDeleteJob(void *, int);}
static void release_Akonadi_CollectionDeleteJob(void *sipCppV,int)
{
    Akonadi::CollectionDeleteJob *sipCpp = reinterpret_cast<Akonadi::CollectionDeleteJob *>(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_CollectionDeleteJob(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionDeleteJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionDeleteJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionDeleteJob(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionDeleteJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionDeleteJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionDeleteJob *sipCpp = 0;

    {
        const Akonadi::Collection* a0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|JH", sipType_Akonadi_Collection, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionDeleteJob(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionDeleteJob[] = {{104, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionDeleteJob[] = {
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionDeleteJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionDeleteJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionDeleteJob,
        {0}
    },
    {
        sipNameNr_CollectionDeleteJob,
        {0, 255, 0},
        1, methods_Akonadi_CollectionDeleteJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionDeleteJob,
    0,
    init_type_Akonadi_CollectionDeleteJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionDeleteJob,
    0,
    0,
    0,
    release_Akonadi_CollectionDeleteJob,
    cast_Akonadi_CollectionDeleteJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionDeleteJob::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectioncreatejob.sip"
#include <akonadi/collectioncreatejob.h>
#line 13763 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 13767 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 13770 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13773 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 13776 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 13779 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 13782 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13785 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 13788 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 13791 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 13794 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 13797 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13800 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13803 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13806 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13809 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13812 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13815 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 13818 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 13821 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13824 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13827 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionCreateJob : public Akonadi::CollectionCreateJob
{
public:
    sipAkonadi_CollectionCreateJob(const Akonadi::Collection&,QObject*);
    virtual ~sipAkonadi_CollectionCreateJob();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool doResume();
    bool doSuspend();
    void start();
    void slotInfoMessage(KJob*,const QString&,const QString&);
    void slotResult(KJob*);
    bool doKill();
    bool removeSubjob(KJob*);
    bool addSubjob(KJob*);
    QString errorString() const;
    void doHandleResponse(const QByteArray&,const QByteArray&);
    void doStart();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_CollectionCreateJob(const sipAkonadi_CollectionCreateJob &);
    sipAkonadi_CollectionCreateJob &operator = (const sipAkonadi_CollectionCreateJob &);

    char sipPyMethods[18];
};

sipAkonadi_CollectionCreateJob::sipAkonadi_CollectionCreateJob(const Akonadi::Collection& a0,QObject*a1): Akonadi::CollectionCreateJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionCreateJob::~sipAkonadi_CollectionCreateJob()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionCreateJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionCreateJob);
}

int sipAkonadi_CollectionCreateJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionCreateJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionCreateJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionCreateJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionCreateJob, _clname)) ? this : Akonadi::CollectionCreateJob::qt_metacast(_clname);
}

void sipAkonadi_CollectionCreateJob::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionCreateJob::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_CollectionCreateJob::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionCreateJob::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_CollectionCreateJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return Akonadi::CollectionCreateJob::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_CollectionCreateJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return Akonadi::CollectionCreateJob::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_CollectionCreateJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob::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::CollectionCreateJob::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_CollectionCreateJob::slotResult(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_slotResult);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return Akonadi::CollectionCreateJob::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_CollectionCreateJob::removeSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_removeSubjob);

    if (!sipMeth)
        return Akonadi::CollectionCreateJob::removeSubjob(a0);

    typedef bool (*sipVH_kdecore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_51)(sipModuleAPI_akonadi_kdecore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionCreateJob::addSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_addSubjob);

    if (!sipMeth)
        return Akonadi::CollectionCreateJob::addSubjob(a0);

    typedef bool (*sipVH_kdecore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_51)(sipModuleAPI_akonadi_kdecore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipAkonadi_CollectionCreateJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return Akonadi::CollectionCreateJob::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_CollectionCreateJob::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_doHandleResponse);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_doStart);

    if (!sipMeth)
    {
        Akonadi::CollectionCreateJob::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_CollectionCreateJob_collection(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_collection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Akonadi::CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Akonadi_CollectionCreateJob, &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_CollectionCreateJob, sipName_collection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_doStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_CollectionCreateJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionCreateJob::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_CollectionCreateJob, sipName_doStart, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_doHandleResponse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        Akonadi::CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_Akonadi_CollectionCreateJob, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionCreateJob::doHandleResponse(*a0,*a1) : sipCpp->doHandleResponse(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CollectionCreateJob, sipName_doHandleResponse, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionCreateJob(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionCreateJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_CollectionCreateJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Job)->ctd_cast((Akonadi::Job *)(Akonadi::CollectionCreateJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionCreateJob(void *, int);}
static void release_Akonadi_CollectionCreateJob(void *sipCppV,int)
{
    Akonadi::CollectionCreateJob *sipCpp = reinterpret_cast<Akonadi::CollectionCreateJob *>(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_CollectionCreateJob(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionCreateJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionCreateJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionCreateJob(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionCreateJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionCreateJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionCreateJob *sipCpp = 0;

    {
        const Akonadi::Collection* a0;
        QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|JH", sipType_Akonadi_Collection, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionCreateJob(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionCreateJob[] = {{104, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionCreateJob[] = {
    {SIP_MLNAME_CAST(sipName_collection), meth_Akonadi_CollectionCreateJob_collection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_CollectionCreateJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionCreateJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionCreateJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionCreateJob,
        {0}
    },
    {
        sipNameNr_CollectionCreateJob,
        {0, 255, 0},
        3, methods_Akonadi_CollectionCreateJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionCreateJob,
    0,
    init_type_Akonadi_CollectionCreateJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionCreateJob,
    0,
    0,
    0,
    release_Akonadi_CollectionCreateJob,
    cast_Akonadi_CollectionCreateJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionCreateJob::staticMetaObject,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collectioncopyjob.sip"
#include <akonadi/collectioncopyjob.h>
#line 14429 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 14433 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 34 "/usr/share/python-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 14436 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14439 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 37 "/usr/share/python-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14442 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 14445 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 36 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 14448 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14451 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 589 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 14454 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 77 "/usr/share/python-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 14457 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14460 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/src/pykde4-4.14.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 14463 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14466 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 355 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14469 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 338 "/usr/share/python-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14472 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 274 "/usr/share/python-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14475 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 33 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14478 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14481 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 120 "/usr/share/python-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 14484 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 14487 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 35 "/usr/share/python-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14490 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"
#line 31 "/usr/share/python-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14493 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-1.x86_64/build/sip/akonadi/sipakonadipart5.cpp"


class sipAkonadi_CollectionCopyJob : public Akonadi::CollectionCopyJob
{
public:
    sipAkonadi_CollectionCopyJob(const Akonadi::Collection&,const Akonadi::Collection&,QObject*);
    virtual ~sipAkonadi_CollectionCopyJob();

    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_CollectionCopyJob(const sipAkonadi_CollectionCopyJob &);
    sipAkonadi_CollectionCopyJob &operator = (const sipAkonadi_CollectionCopyJob &);

    char sipPyMethods[18];
};

sipAkonadi_CollectionCopyJob::sipAkonadi_CollectionCopyJob(const Akonadi::Collection& a0,const Akonadi::Collection& a1,QObject*a2): Akonadi::CollectionCopyJob(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipAkonadi_CollectionCopyJob::~sipAkonadi_CollectionCopyJob()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipAkonadi_CollectionCopyJob::metaObject() const
{
    return sip_akonadi_qt_metaobject(sipPySelf,sipType_Akonadi_CollectionCopyJob);
}

int sipAkonadi_CollectionCopyJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Akonadi::CollectionCopyJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_akonadi_qt_metacall(sipPySelf,sipType_Akonadi_CollectionCopyJob,_c,_id,_a);

    return _id;
}

void *sipAkonadi_CollectionCopyJob::qt_metacast(const char *_clname)
{
    return (sip_akonadi_qt_metacast(sipPySelf, sipType_Akonadi_CollectionCopyJob, _clname)) ? this : Akonadi::CollectionCopyJob::qt_metacast(_clname);
}

void sipAkonadi_CollectionCopyJob::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionCopyJob::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_CollectionCopyJob::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        Akonadi::CollectionCopyJob::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_CollectionCopyJob::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionCopyJob::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_CollectionCopyJob::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionCopyJob::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_CollectionCopyJob::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        Akonadi::CollectionCopyJob::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_CollectionCopyJob::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return Akonadi::CollectionCopyJob::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_CollectionCopyJob::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return Akonadi::CollectionCopyJob::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_CollectionCopyJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return Akonadi::CollectionCopyJob::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_CollectionCopyJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return Akonadi::CollectionCopyJob::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_CollectionCopyJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        Akonadi::CollectionCopyJob::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_CollectionCopyJob::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::CollectionCopyJob::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_CollectionCopyJob::slotResult(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_slotResult);

    if (!sipMeth)
    {
        Akonadi::CollectionCopyJob::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_CollectionCopyJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return Akonadi::CollectionCopyJob::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_CollectionCopyJob::removeSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_removeSubjob);

    if (!sipMeth)
        return Akonadi::CollectionCopyJob::removeSubjob(a0);

    typedef bool (*sipVH_kdecore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_51)(sipModuleAPI_akonadi_kdecore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipAkonadi_CollectionCopyJob::addSubjob(KJob*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_addSubjob);

    if (!sipMeth)
        return Akonadi::CollectionCopyJob::addSubjob(a0);

    typedef bool (*sipVH_kdecore_51)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KJob*);

    return ((sipVH_kdecore_51)(sipModuleAPI_akonadi_kdecore->em_virthandlers[51]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipAkonadi_CollectionCopyJob::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::CollectionCopyJob::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_CollectionCopyJob::doStart()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_doStart);

    if (!sipMeth)
    {
        Akonadi::CollectionCopyJob::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_CollectionCopyJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return Akonadi::CollectionCopyJob::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_CollectionCopyJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_doStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_Akonadi_CollectionCopyJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::CollectionCopyJob::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_CollectionCopyJob, sipName_doStart, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Akonadi_CollectionCopyJob(void *, const sipTypeDef *);}
static void *cast_Akonadi_CollectionCopyJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Akonadi_CollectionCopyJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Job)->ctd_cast((Akonadi::Job *)(Akonadi::CollectionCopyJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Akonadi_CollectionCopyJob(void *, int);}
static void release_Akonadi_CollectionCopyJob(void *sipCppV,int)
{
    Akonadi::CollectionCopyJob *sipCpp = reinterpret_cast<Akonadi::CollectionCopyJob *>(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_CollectionCopyJob(sipSimpleWrapper *);}
static void dealloc_Akonadi_CollectionCopyJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_CollectionCopyJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionCopyJob(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_Akonadi_CollectionCopyJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Akonadi_CollectionCopyJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipAkonadi_CollectionCopyJob *sipCpp = 0;

    {
        const Akonadi::Collection* a0;
        const Akonadi::Collection* a1;
        QObject* a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9|JH", sipType_Akonadi_Collection, &a0, sipType_Akonadi_Collection, &a1, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionCopyJob(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Akonadi_CollectionCopyJob[] = {{104, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionCopyJob[] = {
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionCopyJob_doStart, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_akonadi_Akonadi_CollectionCopyJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionCopyJob,
        {0}
    },
    {
        sipNameNr_CollectionCopyJob,
        {0, 255, 0},
        1, methods_Akonadi_CollectionCopyJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Akonadi_CollectionCopyJob,
    0,
    init_type_Akonadi_CollectionCopyJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionCopyJob,
    0,
    0,
    0,
    release_Akonadi_CollectionCopyJob,
    cast_Akonadi_CollectionCopyJob,
    0,
    0,
    0,
    0,
    0,
    0
},
    &Akonadi::CollectionCopyJob::staticMetaObject,
    0,
    0
};
