/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 19:55:58 2009
 */

#include "sipAPIakonadi.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collectiondialog.sip"
#include <akonadi/collectiondialog.h>
#line 12 "sipakonadipart5.cpp"

#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 16 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 19 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 22 "sipakonadipart5.cpp"
#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/entity.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 40 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 43 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 46 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 49 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 52 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 55 "sipakonadipart5.cpp"
#line 296 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 58 "sipakonadipart5.cpp"
#line 388 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 61 "sipakonadipart5.cpp"
#line 424 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 64 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 67 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 70 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 73 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 76 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qlayout.sip"
#include <qlayout.h>
#line 79 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 82 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kpushbutton.sip"
#include <kpushbutton.h>
#line 85 "sipakonadipart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 88 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfigbase.sip"
#include <kconfigbase.h>
#line 91 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qmenu.sip"
#include <qmenu.h>
#line 94 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kguiitem.sip"
#include <kguiitem.h>
#line 97 "sipakonadipart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 100 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 103 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kdialog.sip"
#include <kdialog.h>
#line 106 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 109 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 112 "sipakonadipart5.cpp"
#line 436 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 115 "sipakonadipart5.cpp"
#line 374 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 118 "sipakonadipart5.cpp"
#line 412 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 121 "sipakonadipart5.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 124 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 127 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 130 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 133 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 136 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 139 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 142 "sipakonadipart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 145 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 148 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 151 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 154 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 157 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 160 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 163 "sipakonadipart5.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 168 "sipakonadipart5.cpp"
#line 508 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 171 "sipakonadipart5.cpp"
#line 562 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 174 "sipakonadipart5.cpp"
#line 533 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 177 "sipakonadipart5.cpp"
#line 550 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 180 "sipakonadipart5.cpp"
#line 618 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 183 "sipakonadipart5.cpp"
#line 247 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 186 "sipakonadipart5.cpp"
#line 360 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 189 "sipakonadipart5.cpp"
#line 345 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 192 "sipakonadipart5.cpp"
#line 325 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 195 "sipakonadipart5.cpp"
#line 225 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 198 "sipakonadipart5.cpp"
#line 184 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 201 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 204 "sipakonadipart5.cpp"
#line 74 "/usr/local/share/py-sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 207 "sipakonadipart5.cpp"
#line 47 "/usr/local/share/py-sip/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 210 "sipakonadipart5.cpp"
#line 136 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#include <qlist.h>
#line 66 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qlist.h>
#line 229 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 520 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 271 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 274 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 277 "sipakonadipart5.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 280 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qabstractbutton.sip"
#include <qabstractbutton.h>
#line 283 "sipakonadipart5.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 288 "sipakonadipart5.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 291 "sipakonadipart5.cpp"
#line 99 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 294 "sipakonadipart5.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 297 "sipakonadipart5.cpp"
#line 165 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 300 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qlistwidget.sip"
#include <qlistwidget.h>
#line 303 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 306 "sipakonadipart5.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qmdisubwindow.sip"
#include <qmdisubwindow.h>
#line 309 "sipakonadipart5.cpp"
#line 334 "/usr/local/share/py-sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 312 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 56 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 317 "sipakonadipart5.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 320 "sipakonadipart5.cpp"
#line 202 "/usr/local/share/py-sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 323 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 326 "sipakonadipart5.cpp"
#line 66 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 329 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 114 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 334 "sipakonadipart5.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 88 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 339 "sipakonadipart5.cpp"
#line 149 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 175 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 344 "sipakonadipart5.cpp"
#line 83 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 101 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 349 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 352 "sipakonadipart5.cpp"
#line 75 "/usr/local/share/py-sip/QtGui/qundostack.sip"
#include <qundostack.h>
#line 355 "sipakonadipart5.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 358 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qprinter.sip"
#include <qprinter.h>
#line 361 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 364 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 367 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 370 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 373 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 376 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 379 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 382 "sipakonadipart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 385 "sipakonadipart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 388 "sipakonadipart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 419 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 422 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 425 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 428 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 431 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 434 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 437 "sipakonadipart5.cpp"


class sipAkonadi_CollectionDialog : public Akonadi::CollectionDialog
{
public:
    sipAkonadi_CollectionDialog(QWidget *);
    virtual ~sipAkonadi_CollectionDialog();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_event(bool,QEvent *);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent *);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent *);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent *);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent *);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent *);
    void sipProtectVirt_enterEvent(bool,QEvent *);
    void sipProtectVirt_leaveEvent(bool,QEvent *);
    void sipProtectVirt_paintEvent(bool,QPaintEvent *);
    void sipProtectVirt_moveEvent(bool,QMoveEvent *);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent *);
    void sipProtectVirt_actionEvent(bool,QActionEvent *);
    void sipProtectVirt_dragEnterEvent(bool,QDragEnterEvent *);
    void sipProtectVirt_dragMoveEvent(bool,QDragMoveEvent *);
    void sipProtectVirt_dragLeaveEvent(bool,QDragLeaveEvent *);
    void sipProtectVirt_dropEvent(bool,QDropEvent *);
    void sipProtectVirt_changeEvent(bool,QEvent *);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent *);
    void sipProtect_resetInputContext();
    void sipProtect_updateMicroFocus();
    void sipProtect_create(WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    void sipProtectVirt_enabledChange(bool,bool);
    void sipProtectVirt_paletteChange(bool,const QPalette&);
    void sipProtectVirt_fontChange(bool,const QFont&);
    void sipProtectVirt_windowActivationChange(bool,bool);
    void sipProtectVirt_languageChange(bool);
    void sipProtectVirt_showEvent(bool,QShowEvent *);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent *);
    void sipProtectVirt_contextMenuEvent(bool,QContextMenuEvent *);
    bool sipProtectVirt_eventFilter(bool,QObject *,QEvent *);
    void sipProtectVirt_hideEvent(bool,QHideEvent *);
    void sipProtectVirt_closeEvent(bool,QCloseEvent *);
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent *);
    void sipProtectVirt_slotButtonClicked(bool,int);
    void sipProtect_updateGeometry();

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

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()
{
    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 && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_CollectionDialog,_clname)) ? this : Akonadi::CollectionDialog::qt_metacast(_clname);
}

QSize sipAkonadi_CollectionDialog::sizeHint() const
{
    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KDialog::sizeHint();

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState,meth);
}

QSize sipAkonadi_CollectionDialog::minimumSizeHint() const
{
    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KDialog::minimumSizeHint();

    return ((sipVH_QtGui_4)(sipModuleAPI_akonadi_QtGui->em_virthandlers[4]))(sipGILState,meth);
}

void sipAkonadi_CollectionDialog::setCaption(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setCaption);

    if (!meth)
    {
        KDialog::setCaption(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_akonadi_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::setCaption(const QString& a0,bool a1)
{
    typedef void (*sipVH_QtXml_24)(sip_gilstate_t,PyObject *,const QString&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_setCaption);

    if (!meth)
    {
        KDialog::setCaption(a0,a1);
        return;
    }

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

void sipAkonadi_CollectionDialog::setPlainCaption(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_setPlainCaption);

    if (!meth)
    {
        KDialog::setPlainCaption(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_akonadi_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::hideEvent(QHideEvent *a0)
{
    typedef void (*sipVH_QtGui_0)(sip_gilstate_t,PyObject *,QHideEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_hideEvent);

    if (!meth)
    {
        KDialog::hideEvent(a0);
        return;
    }

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

void sipAkonadi_CollectionDialog::closeEvent(QCloseEvent *a0)
{
    typedef void (*sipVH_QtGui_23)(sip_gilstate_t,PyObject *,QCloseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_closeEvent);

    if (!meth)
    {
        KDialog::closeEvent(a0);
        return;
    }

    ((sipVH_QtGui_23)(sipModuleAPI_akonadi_QtGui->em_virthandlers[23]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::keyPressEvent(QKeyEvent *a0)
{
    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QKeyEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_keyPressEvent);

    if (!meth)
    {
        KDialog::keyPressEvent(a0);
        return;
    }

    ((sipVH_QtGui_26)(sipModuleAPI_akonadi_QtGui->em_virthandlers[26]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::slotButtonClicked(int a0)
{
    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_slotButtonClicked);

    if (!meth)
    {
        KDialog::slotButtonClicked(a0);
        return;
    }

    ((sipVH_QtNetwork_1)(sipModuleAPI_akonadi_QtNetwork->em_virthandlers[1]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::setVisible(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_setVisible);

    if (!meth)
    {
        QDialog::setVisible(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_akonadi_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::done(int a0)
{
    typedef void (*sipVH_QtGui_6)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_done);

    if (!meth)
    {
        QDialog::done(a0);
        return;
    }

    ((sipVH_QtGui_6)(sipModuleAPI_akonadi_QtGui->em_virthandlers[6]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::accept()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_accept);

    if (!meth)
    {
        QDialog::accept();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipAkonadi_CollectionDialog::reject()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_reject);

    if (!meth)
    {
        QDialog::reject();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipAkonadi_CollectionDialog::showEvent(QShowEvent *a0)
{
    typedef void (*sipVH_QtGui_1)(sip_gilstate_t,PyObject *,QShowEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_showEvent);

    if (!meth)
    {
        QDialog::showEvent(a0);
        return;
    }

    ((sipVH_QtGui_1)(sipModuleAPI_akonadi_QtGui->em_virthandlers[1]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::resizeEvent(QResizeEvent *a0)
{
    typedef void (*sipVH_QtGui_2)(sip_gilstate_t,PyObject *,QResizeEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_resizeEvent);

    if (!meth)
    {
        QDialog::resizeEvent(a0);
        return;
    }

    ((sipVH_QtGui_2)(sipModuleAPI_akonadi_QtGui->em_virthandlers[2]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::contextMenuEvent(QContextMenuEvent *a0)
{
    typedef void (*sipVH_QtGui_22)(sip_gilstate_t,PyObject *,QContextMenuEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!meth)
    {
        QDialog::contextMenuEvent(a0);
        return;
    }

    ((sipVH_QtGui_22)(sipModuleAPI_akonadi_QtGui->em_virthandlers[22]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionDialog::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QDialog::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_akonadi_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

int sipAkonadi_CollectionDialog::devType() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::devType();

    return ((sipVH_QtCore_8)(sipModuleAPI_akonadi_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

int sipAkonadi_CollectionDialog::heightForWidth(int a0) const
{
    typedef int (*sipVH_QtGui_29)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::heightForWidth(a0);

    return ((sipVH_QtGui_29)(sipModuleAPI_akonadi_QtGui->em_virthandlers[29]))(sipGILState,meth,a0);
}

QPaintEngine * sipAkonadi_CollectionDialog::paintEngine() const
{
    typedef QPaintEngine * (*sipVH_QtGui_28)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::paintEngine();

    return ((sipVH_QtGui_28)(sipModuleAPI_akonadi_QtGui->em_virthandlers[28]))(sipGILState,meth);
}

bool sipAkonadi_CollectionDialog::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QWidget::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_akonadi_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::mousePressEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_mousePressEvent);

    if (!meth)
    {
        QWidget::mousePressEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_akonadi_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::mouseReleaseEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!meth)
    {
        QWidget::mouseReleaseEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_akonadi_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::mouseDoubleClickEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!meth)
    {
        QWidget::mouseDoubleClickEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_akonadi_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::mouseMoveEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!meth)
    {
        QWidget::mouseMoveEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_akonadi_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::wheelEvent(QWheelEvent *a0)
{
    typedef void (*sipVH_QtGui_5)(sip_gilstate_t,PyObject *,QWheelEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QWidget::wheelEvent(a0);
        return;
    }

    ((sipVH_QtGui_5)(sipModuleAPI_akonadi_QtGui->em_virthandlers[5]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::keyReleaseEvent(QKeyEvent *a0)
{
    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QKeyEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!meth)
    {
        QWidget::keyReleaseEvent(a0);
        return;
    }

    ((sipVH_QtGui_26)(sipModuleAPI_akonadi_QtGui->em_virthandlers[26]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::focusInEvent(QFocusEvent *a0)
{
    typedef void (*sipVH_QtGui_25)(sip_gilstate_t,PyObject *,QFocusEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_focusInEvent);

    if (!meth)
    {
        QWidget::focusInEvent(a0);
        return;
    }

    ((sipVH_QtGui_25)(sipModuleAPI_akonadi_QtGui->em_virthandlers[25]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::focusOutEvent(QFocusEvent *a0)
{
    typedef void (*sipVH_QtGui_25)(sip_gilstate_t,PyObject *,QFocusEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QWidget::focusOutEvent(a0);
        return;
    }

    ((sipVH_QtGui_25)(sipModuleAPI_akonadi_QtGui->em_virthandlers[25]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::enterEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_enterEvent);

    if (!meth)
    {
        QWidget::enterEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::leaveEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_leaveEvent);

    if (!meth)
    {
        QWidget::leaveEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::paintEvent(QPaintEvent *a0)
{
    typedef void (*sipVH_QtGui_3)(sip_gilstate_t,PyObject *,QPaintEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_paintEvent);

    if (!meth)
    {
        QWidget::paintEvent(a0);
        return;
    }

    ((sipVH_QtGui_3)(sipModuleAPI_akonadi_QtGui->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::moveEvent(QMoveEvent *a0)
{
    typedef void (*sipVH_QtGui_24)(sip_gilstate_t,PyObject *,QMoveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_moveEvent);

    if (!meth)
    {
        QWidget::moveEvent(a0);
        return;
    }

    ((sipVH_QtGui_24)(sipModuleAPI_akonadi_QtGui->em_virthandlers[24]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::tabletEvent(QTabletEvent *a0)
{
    typedef void (*sipVH_QtGui_21)(sip_gilstate_t,PyObject *,QTabletEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_tabletEvent);

    if (!meth)
    {
        QWidget::tabletEvent(a0);
        return;
    }

    ((sipVH_QtGui_21)(sipModuleAPI_akonadi_QtGui->em_virthandlers[21]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::actionEvent(QActionEvent *a0)
{
    typedef void (*sipVH_QtGui_20)(sip_gilstate_t,PyObject *,QActionEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_actionEvent);

    if (!meth)
    {
        QWidget::actionEvent(a0);
        return;
    }

    ((sipVH_QtGui_20)(sipModuleAPI_akonadi_QtGui->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::dragEnterEvent(QDragEnterEvent *a0)
{
    typedef void (*sipVH_QtGui_19)(sip_gilstate_t,PyObject *,QDragEnterEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QWidget::dragEnterEvent(a0);
        return;
    }

    ((sipVH_QtGui_19)(sipModuleAPI_akonadi_QtGui->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::dragMoveEvent(QDragMoveEvent *a0)
{
    typedef void (*sipVH_QtGui_18)(sip_gilstate_t,PyObject *,QDragMoveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!meth)
    {
        QWidget::dragMoveEvent(a0);
        return;
    }

    ((sipVH_QtGui_18)(sipModuleAPI_akonadi_QtGui->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::dragLeaveEvent(QDragLeaveEvent *a0)
{
    typedef void (*sipVH_QtGui_17)(sip_gilstate_t,PyObject *,QDragLeaveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!meth)
    {
        QWidget::dragLeaveEvent(a0);
        return;
    }

    ((sipVH_QtGui_17)(sipModuleAPI_akonadi_QtGui->em_virthandlers[17]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::dropEvent(QDropEvent *a0)
{
    typedef void (*sipVH_QtGui_16)(sip_gilstate_t,PyObject *,QDropEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_dropEvent);

    if (!meth)
    {
        QWidget::dropEvent(a0);
        return;
    }

    ((sipVH_QtGui_16)(sipModuleAPI_akonadi_QtGui->em_virthandlers[16]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::changeEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_changeEvent);

    if (!meth)
    {
        QWidget::changeEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

int sipAkonadi_CollectionDialog::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    typedef int (*sipVH_QtGui_15)(sip_gilstate_t,PyObject *,QPaintDevice::PaintDeviceMetric);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::metric(a0);

    return ((sipVH_QtGui_15)(sipModuleAPI_akonadi_QtGui->em_virthandlers[15]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::inputMethodEvent(QInputMethodEvent *a0)
{
    typedef void (*sipVH_QtGui_14)(sip_gilstate_t,PyObject *,QInputMethodEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!meth)
    {
        QWidget::inputMethodEvent(a0);
        return;
    }

    ((sipVH_QtGui_14)(sipModuleAPI_akonadi_QtGui->em_virthandlers[14]))(sipGILState,meth,a0);
}

QVariant sipAkonadi_CollectionDialog::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    typedef QVariant (*sipVH_QtGui_13)(sip_gilstate_t,PyObject *,Qt::InputMethodQuery);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::inputMethodQuery(a0);

    return ((sipVH_QtGui_13)(sipModuleAPI_akonadi_QtGui->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionDialog::focusNextPrevChild(bool a0)
{
    typedef bool (*sipVH_QtGui_12)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!meth)
        return QWidget::focusNextPrevChild(a0);

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

void sipAkonadi_CollectionDialog::enabledChange(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_enabledChange);

    if (!meth)
    {
        QWidget::enabledChange(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_akonadi_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::paletteChange(const QPalette& a0)
{
    typedef void (*sipVH_QtGui_11)(sip_gilstate_t,PyObject *,const QPalette&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_paletteChange);

    if (!meth)
    {
        QWidget::paletteChange(a0);
        return;
    }

    ((sipVH_QtGui_11)(sipModuleAPI_akonadi_QtGui->em_virthandlers[11]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::fontChange(const QFont& a0)
{
    typedef void (*sipVH_QtGui_10)(sip_gilstate_t,PyObject *,const QFont&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_fontChange);

    if (!meth)
    {
        QWidget::fontChange(a0);
        return;
    }

    ((sipVH_QtGui_10)(sipModuleAPI_akonadi_QtGui->em_virthandlers[10]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::windowActivationChange(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_windowActivationChange);

    if (!meth)
    {
        QWidget::windowActivationChange(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_akonadi_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::languageChange()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_languageChange);

    if (!meth)
    {
        QWidget::languageChange();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipAkonadi_CollectionDialog::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_akonadi_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_akonadi_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[51],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDialog::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipAkonadi_CollectionDialog::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_CollectionDialog::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipAkonadi_CollectionDialog::sipProtectVirt_event(bool sipSelfWasArg,QEvent *a0)
{
    return (sipSelfWasArg ? QWidget::event(a0) : event(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent *a0)
{
    (sipSelfWasArg ? QWidget::wheelEvent(a0) : wheelEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent *a0)
{
    (sipSelfWasArg ? QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent *a0)
{
    (sipSelfWasArg ? QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent *a0)
{
    (sipSelfWasArg ? QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_enterEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_leaveEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent *a0)
{
    (sipSelfWasArg ? QWidget::paintEvent(a0) : paintEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent *a0)
{
    (sipSelfWasArg ? QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent *a0)
{
    (sipSelfWasArg ? QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_actionEvent(bool sipSelfWasArg,QActionEvent *a0)
{
    (sipSelfWasArg ? QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QDragEnterEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QDragMoveEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QDragLeaveEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_dropEvent(bool sipSelfWasArg,QDropEvent *a0)
{
    (sipSelfWasArg ? QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::changeEvent(a0) : changeEvent(a0));
}

int sipAkonadi_CollectionDialog::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QWidget::metric(a0) : metric(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent *a0)
{
    (sipSelfWasArg ? QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtect_resetInputContext()
{
    QWidget::resetInputContext();
}

void sipAkonadi_CollectionDialog::sipProtect_updateMicroFocus()
{
    QWidget::updateMicroFocus();
}

void sipAkonadi_CollectionDialog::sipProtect_create(WId a0,bool a1,bool a2)
{
    QWidget::create(a0,a1,a2);
}

void sipAkonadi_CollectionDialog::sipProtect_destroy(bool a0,bool a1)
{
    QWidget::destroy(a0,a1);
}

bool sipAkonadi_CollectionDialog::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipAkonadi_CollectionDialog::sipProtect_focusNextChild()
{
    return QWidget::focusNextChild();
}

bool sipAkonadi_CollectionDialog::sipProtect_focusPreviousChild()
{
    return QWidget::focusPreviousChild();
}

void sipAkonadi_CollectionDialog::sipProtectVirt_enabledChange(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? QWidget::enabledChange(a0) : enabledChange(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_paletteChange(bool sipSelfWasArg,const QPalette& a0)
{
    (sipSelfWasArg ? QWidget::paletteChange(a0) : paletteChange(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_fontChange(bool sipSelfWasArg,const QFont& a0)
{
    (sipSelfWasArg ? QWidget::fontChange(a0) : fontChange(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_windowActivationChange(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? QWidget::windowActivationChange(a0) : windowActivationChange(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_languageChange(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QWidget::languageChange() : languageChange());
}

void sipAkonadi_CollectionDialog::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent *a0)
{
    (sipSelfWasArg ? QDialog::showEvent(a0) : showEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent *a0)
{
    (sipSelfWasArg ? QDialog::resizeEvent(a0) : resizeEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QContextMenuEvent *a0)
{
    (sipSelfWasArg ? QDialog::contextMenuEvent(a0) : contextMenuEvent(a0));
}

bool sipAkonadi_CollectionDialog::sipProtectVirt_eventFilter(bool sipSelfWasArg,QObject *a0,QEvent *a1)
{
    return (sipSelfWasArg ? QDialog::eventFilter(a0,a1) : eventFilter(a0,a1));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent *a0)
{
    (sipSelfWasArg ? KDialog::hideEvent(a0) : hideEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent *a0)
{
    (sipSelfWasArg ? KDialog::closeEvent(a0) : closeEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent *a0)
{
    (sipSelfWasArg ? KDialog::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipAkonadi_CollectionDialog::sipProtectVirt_slotButtonClicked(bool sipSelfWasArg,int a0)
{
    (sipSelfWasArg ? KDialog::slotButtonClicked(a0) : slotButtonClicked(a0));
}

void sipAkonadi_CollectionDialog::sipProtect_updateGeometry()
{
    KDialog::updateGeometry();
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 1817 "sipakonadipart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_event(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_event(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QEvent,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_event);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_mousePressEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_mousePressEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_mousePressEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_mouseReleaseEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_mouseReleaseEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_mouseReleaseEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_mouseDoubleClickEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_mouseDoubleClickEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_mouseDoubleClickEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_mouseMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_mouseMoveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_mouseMoveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_wheelEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_wheelEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QWheelEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_wheelEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_keyReleaseEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_keyReleaseEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QKeyEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_keyReleaseEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_focusInEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_focusInEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QFocusEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_focusInEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_focusOutEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_focusOutEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QFocusEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_focusOutEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_enterEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_enterEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_enterEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_leaveEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_leaveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_leaveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_paintEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_paintEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QPaintEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_paintEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_moveEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_moveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QMoveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_moveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_tabletEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_tabletEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QTabletEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_tabletEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_actionEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_actionEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QActionEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_actionEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_dragEnterEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_dragEnterEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QDragEnterEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_dragEnterEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_dragMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_dragMoveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QDragMoveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_dragMoveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_dragLeaveEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_dragLeaveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QDragLeaveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_dragLeaveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_dropEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_dropEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QDropEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_dropEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_changeEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_changeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_changeEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_metric(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_metric(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pE",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QPaintDevice_PaintDeviceMetric,&a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_metric);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_inputMethodEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_inputMethodEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QInputMethodEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_inputMethodEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_resetInputContext(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_resetInputContext(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_resetInputContext();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_resetInputContext);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_updateMicroFocus(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_updateMicroFocus(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_updateMicroFocus();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_updateMicroFocus);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_create(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_create(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        WId a0 = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|mbb",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_create(a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_create);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_destroy(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_destroy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|bb",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_destroy(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_destroy);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_focusNextPrevChild(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_focusNextPrevChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_focusNextPrevChild);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_focusNextChild(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_focusNextChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusNextChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_focusNextChild);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_focusPreviousChild(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_focusPreviousChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusPreviousChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_focusPreviousChild);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_enabledChange(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_enabledChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enabledChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_enabledChange);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_paletteChange(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_paletteChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPalette * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QPalette,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paletteChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_paletteChange);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_fontChange(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_fontChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QFont * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QFont,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_fontChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_fontChange);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_windowActivationChange(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_windowActivationChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_windowActivationChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_windowActivationChange);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_languageChange(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_languageChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_languageChange(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_languageChange);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_showEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_showEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QShowEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_showEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_resizeEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_resizeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QResizeEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_resizeEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_contextMenuEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_contextMenuEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QContextMenuEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_contextMenuEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_eventFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_eventFilter(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject * a0;
        QEvent * a1;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8J8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QObject,&a0,sipType_QEvent,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_eventFilter(sipSelfWasArg,a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_eventFilter);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_hideEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_hideEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QHideEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_hideEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_closeEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_closeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QCloseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_closeEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_keyPressEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_keyPressEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent * a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,sipType_QKeyEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_keyPressEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_slotButtonClicked(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_slotButtonClicked(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotButtonClicked(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_slotButtonClicked);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_updateGeometry(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_updateGeometry(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDialog,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_updateGeometry();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDialog,sipName_updateGeometry);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_selectedCollection(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_selectedCollection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CollectionDialog,sipName_selectedCollection);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_selectedCollections(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_selectedCollections(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Akonadi_Collection,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_setMimeTypeFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_setMimeTypeFilter(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CollectionDialog,sipName_setMimeTypeFilter);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_mimeTypeFilter(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_mimeTypeFilter(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CollectionDialog,sipName_mimeTypeFilter);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_setSelectionMode(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_setSelectionMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QAbstractItemView::SelectionMode a0;
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CollectionDialog,sipName_setSelectionMode);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDialog_selectionMode(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDialog_selectionMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::CollectionDialog *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CollectionDialog,sipName_selectionMode);

    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 state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_CollectionDialog *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::CollectionDialog *>(sipCppV);

    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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionDialog(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_CollectionDialog(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_CollectionDialog(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipAkonadi_CollectionDialog *sipCpp = 0;

    if (!sipCpp)
    {
        QWidget * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QWidget,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionDialog(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Akonadi_CollectionDialog[] = {{72, 6, 1}};


static PyMethodDef methods_Akonadi_CollectionDialog[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), meth_Akonadi_CollectionDialog_actionEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_Akonadi_CollectionDialog_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_CollectionDialog_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_Akonadi_CollectionDialog_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_CollectionDialog_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_Akonadi_CollectionDialog_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_Akonadi_CollectionDialog_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_CollectionDialog_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_Akonadi_CollectionDialog_destroy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_CollectionDialog_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_Akonadi_CollectionDialog_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_Akonadi_CollectionDialog_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_Akonadi_CollectionDialog_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_Akonadi_CollectionDialog_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enabledChange), meth_Akonadi_CollectionDialog_enabledChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), meth_Akonadi_CollectionDialog_enterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_Akonadi_CollectionDialog_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), meth_Akonadi_CollectionDialog_eventFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_Akonadi_CollectionDialog_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), meth_Akonadi_CollectionDialog_focusNextChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_Akonadi_CollectionDialog_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_Akonadi_CollectionDialog_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), meth_Akonadi_CollectionDialog_focusPreviousChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontChange), meth_Akonadi_CollectionDialog_fontChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_Akonadi_CollectionDialog_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_Akonadi_CollectionDialog_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_Akonadi_CollectionDialog_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_Akonadi_CollectionDialog_keyReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageChange), meth_Akonadi_CollectionDialog_languageChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), meth_Akonadi_CollectionDialog_leaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), meth_Akonadi_CollectionDialog_metric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeFilter), meth_Akonadi_CollectionDialog_mimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), meth_Akonadi_CollectionDialog_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_Akonadi_CollectionDialog_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_Akonadi_CollectionDialog_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_Akonadi_CollectionDialog_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_Akonadi_CollectionDialog_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), meth_Akonadi_CollectionDialog_paintEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paletteChange), meth_Akonadi_CollectionDialog_paletteChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_CollectionDialog_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetInputContext), meth_Akonadi_CollectionDialog_resetInputContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), meth_Akonadi_CollectionDialog_resizeEvent, 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_setMimeTypeFilter), meth_Akonadi_CollectionDialog_setMimeTypeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectionMode), meth_Akonadi_CollectionDialog_setSelectionMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_Akonadi_CollectionDialog_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotButtonClicked), meth_Akonadi_CollectionDialog_slotButtonClicked, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), meth_Akonadi_CollectionDialog_tabletEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_CollectionDialog_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateGeometry), meth_Akonadi_CollectionDialog_updateGeometry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_Akonadi_CollectionDialog_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_Akonadi_CollectionDialog_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowActivationChange), meth_Akonadi_CollectionDialog_windowActivationChange, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_CollectionDialog = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionDialog,
        {0}
    },
    sipNameNr_CollectionDialog,
    -1,
    -1,
    {0, 255, 0},
    supers_Akonadi_CollectionDialog,
    0,
    55, methods_Akonadi_CollectionDialog,
    0, 0,
    0, 0,
    init_Akonadi_CollectionDialog,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionDialog,
    release_Akonadi_CollectionDialog,
    cast_Akonadi_CollectionDialog,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Akonadi::CollectionDialog::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collectiondeletejob.sip"
#include <akonadi/collectiondeletejob.h>
#line 3517 "sipakonadipart5.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 3521 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3524 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 3527 "sipakonadipart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3530 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 3533 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3536 "sipakonadipart5.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3589 "sipakonadipart5.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 3592 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 3595 "sipakonadipart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 3598 "sipakonadipart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 3601 "sipakonadipart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 3604 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 3607 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3610 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3613 "sipakonadipart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3616 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 3619 "sipakonadipart5.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 3622 "sipakonadipart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3625 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 3628 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3631 "sipakonadipart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 3634 "sipakonadipart5.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 3637 "sipakonadipart5.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 3640 "sipakonadipart5.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 3643 "sipakonadipart5.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 3646 "sipakonadipart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 3661 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 3664 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 3667 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 3670 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 3673 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 3676 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 3679 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 3682 "sipakonadipart5.cpp"
#line 642 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 3685 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 3688 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 3691 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3694 "sipakonadipart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3697 "sipakonadipart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3700 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3703 "sipakonadipart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 3734 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 3737 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3740 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3743 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3746 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3749 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3752 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3755 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3758 "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 public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doResume(bool);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);
    bool sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);
    void sipProtectVirt_doHandleResponse(bool,const QByteArray&,const QByteArray&);
    bool sipProtectVirt_addSubjob(bool,KJob *);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtectVirt_doKill(bool);
    void sipProtect_emitWriteFinished();
    void sipProtectVirt_slotResult(bool,KJob *);
    void sipProtectVirt_doStart(bool);

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

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 && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_CollectionDeleteJob,_clname)) ? this : Akonadi::CollectionDeleteJob::qt_metacast(_clname);
}

void sipAkonadi_CollectionDeleteJob::doStart()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_doStart);

    if (!meth)
    {
        Akonadi::CollectionDeleteJob::doStart();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

QString sipAkonadi_CollectionDeleteJob::errorString() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Akonadi::Job::errorString();

    return ((sipVH_QtCore_58)(sipModuleAPI_akonadi_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

void sipAkonadi_CollectionDeleteJob::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    extern void sipVH_akonadi_0(sip_gilstate_t,PyObject *,const QByteArray&,const QByteArray&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_doHandleResponse);

    if (!meth)
    {
        Akonadi::Job::doHandleResponse(a0,a1);
        return;
    }

    sipVH_akonadi_0(sipGILState,meth,a0,a1);
}

bool sipAkonadi_CollectionDeleteJob::addSubjob(KJob *a0)
{
    typedef bool (*sipVH_kdecore_19)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_addSubjob);

    if (!meth)
        return Akonadi::Job::addSubjob(a0);

    return ((sipVH_kdecore_19)(sipModuleAPI_akonadi_kdecore->em_virthandlers[19]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionDeleteJob::removeSubjob(KJob *a0)
{
    typedef bool (*sipVH_kdecore_19)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_removeSubjob);

    if (!meth)
        return Akonadi::Job::removeSubjob(a0);

    return ((sipVH_kdecore_19)(sipModuleAPI_akonadi_kdecore->em_virthandlers[19]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionDeleteJob::doKill()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_doKill);

    if (!meth)
        return Akonadi::Job::doKill();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipAkonadi_CollectionDeleteJob::slotResult(KJob *a0)
{
    typedef void (*sipVH_kdecore_18)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_slotResult);

    if (!meth)
    {
        Akonadi::Job::slotResult(a0);
        return;
    }

    ((sipVH_kdecore_18)(sipModuleAPI_akonadi_kdecore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDeleteJob::slotInfoMessage(KJob *a0,const QString& a1,const QString& a2)
{
    typedef void (*sipVH_kdecore_14)(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_slotInfoMessage);

    if (!meth)
    {
        KCompositeJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    ((sipVH_kdecore_14)(sipModuleAPI_akonadi_kdecore->em_virthandlers[14]))(sipGILState,meth,a0,a1,a2);
}

void sipAkonadi_CollectionDeleteJob::start()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_start);

    if (!meth)
    {
        Akonadi::Job::start();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipAkonadi_CollectionDeleteJob::doSuspend()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KJob::doSuspend();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipAkonadi_CollectionDeleteJob::doResume()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_doResume);

    if (!meth)
        return KJob::doResume();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipAkonadi_CollectionDeleteJob::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_akonadi_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionDeleteJob::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_akonadi_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipAkonadi_CollectionDeleteJob::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_akonadi_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDeleteJob::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_akonadi_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDeleteJob::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDeleteJob::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionDeleteJob::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipAkonadi_CollectionDeleteJob::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipAkonadi_CollectionDeleteJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipAkonadi_CollectionDeleteJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipAkonadi_CollectionDeleteJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipAkonadi_CollectionDeleteJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipAkonadi_CollectionDeleteJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipAkonadi_CollectionDeleteJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipAkonadi_CollectionDeleteJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipAkonadi_CollectionDeleteJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipAkonadi_CollectionDeleteJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipAkonadi_CollectionDeleteJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipAkonadi_CollectionDeleteJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

bool sipAkonadi_CollectionDeleteJob::sipProtect_hasSubjobs()
{
    return KCompositeJob::hasSubjobs();
}

const QList<KJob *>& sipAkonadi_CollectionDeleteJob::sipProtect_subjobs() const
{
    return KCompositeJob::subjobs();
}

void sipAkonadi_CollectionDeleteJob::sipProtect_clearSubjobs()
{
    KCompositeJob::clearSubjobs();
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_slotInfoMessage(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KCompositeJob::slotInfoMessage(a0,a1,a2) : slotInfoMessage(a0,a1,a2));
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_doHandleResponse(bool sipSelfWasArg,const QByteArray& a0,const QByteArray& a1)
{
    (sipSelfWasArg ? Akonadi::Job::doHandleResponse(a0,a1) : doHandleResponse(a0,a1));
}

bool sipAkonadi_CollectionDeleteJob::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::addSubjob(a0) : addSubjob(a0));
}

bool sipAkonadi_CollectionDeleteJob::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::removeSubjob(a0) : removeSubjob(a0));
}

bool sipAkonadi_CollectionDeleteJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Akonadi::Job::doKill() : doKill());
}

void sipAkonadi_CollectionDeleteJob::sipProtect_emitWriteFinished()
{
    Akonadi::Job::emitWriteFinished();
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? Akonadi::Job::slotResult(a0) : slotResult(a0));
}

void sipAkonadi_CollectionDeleteJob::sipProtectVirt_doStart(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Akonadi::CollectionDeleteJob::doStart() : doStart());
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 4334 "sipakonadipart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_doSuspend(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_doSuspend(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_doSuspend);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_doResume(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_doResume(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_doResume);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_setCapabilities(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_KJob_Capabilities,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setCapabilities(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_setCapabilities);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_setError(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_setError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_setError);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_setErrorText(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_setErrorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorText(*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(sipArgsParsed,sipName_CollectionDeleteJob,sipName_setErrorText);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_setProcessedAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_setProcessedAmount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEo",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_KJob_Unit,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessedAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_setProcessedAmount);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_setTotalAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_setTotalAmount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEo",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_KJob_Unit,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTotalAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_setTotalAmount);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_setPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_setPercent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pm",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPercent(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_setPercent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_emitResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_emitResult(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitResult();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_emitResult);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_emitPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_emitPercent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"poo",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitPercent(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_emitPercent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_emitSpeed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_emitSpeed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pm",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitSpeed(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_emitSpeed);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_hasSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_hasSubjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hasSubjobs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_hasSubjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_subjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_subjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            QList<KJob *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KJob *>(sipCpp->sipProtect_subjobs());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KJob,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_subjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_clearSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_clearSubjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearSubjobs();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_clearSubjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_slotInfoMessage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_slotInfoMessage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8J1J1",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_KJob,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotInfoMessage(sipSelfWasArg,a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_slotInfoMessage);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_doHandleResponse(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1J1",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_QByteArray,&a0,&a0State,sipType_QByteArray,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doHandleResponse(sipSelfWasArg,*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(sipArgsParsed,sipName_CollectionDeleteJob,sipName_doHandleResponse);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_addSubjob(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_addSubjob(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_addSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_addSubjob);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_removeSubjob(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_removeSubjob(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_removeSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_doKill(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_doKill(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_emitWriteFinished(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_emitWriteFinished(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitWriteFinished();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_slotResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_slotResult(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotResult(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionDeleteJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionDeleteJob_doStart(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionDeleteJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionDeleteJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doStart(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionDeleteJob,sipName_doStart);

    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 state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_CollectionDeleteJob *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::CollectionDeleteJob *>(sipCppV);

    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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionDeleteJob(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_CollectionDeleteJob(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_CollectionDeleteJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipAkonadi_CollectionDeleteJob *sipCpp = 0;

    if (!sipCpp)
    {
        const Akonadi::Collection * a0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|JH",sipType_Akonadi_Collection,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionDeleteJob(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Akonadi_CollectionDeleteJob[] = {{61, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionDeleteJob[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_CollectionDeleteJob_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_CollectionDeleteJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_Akonadi_CollectionDeleteJob_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_CollectionDeleteJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_CollectionDeleteJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_CollectionDeleteJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_CollectionDeleteJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_CollectionDeleteJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_CollectionDeleteJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionDeleteJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_CollectionDeleteJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_CollectionDeleteJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_CollectionDeleteJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_CollectionDeleteJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitWriteFinished), meth_Akonadi_CollectionDeleteJob_emitWriteFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_Akonadi_CollectionDeleteJob_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_CollectionDeleteJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_Akonadi_CollectionDeleteJob_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_CollectionDeleteJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_CollectionDeleteJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_CollectionDeleteJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_CollectionDeleteJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_CollectionDeleteJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_CollectionDeleteJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_Akonadi_CollectionDeleteJob_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_CollectionDeleteJob_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_Akonadi_CollectionDeleteJob_subjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_CollectionDeleteJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_CollectionDeleteJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionDeleteJob,
        {0}
    },
    sipNameNr_CollectionDeleteJob,
    -1,
    -1,
    {0, 255, 0},
    supers_Akonadi_CollectionDeleteJob,
    0,
    28, methods_Akonadi_CollectionDeleteJob,
    0, 0,
    0, 0,
    init_Akonadi_CollectionDeleteJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionDeleteJob,
    release_Akonadi_CollectionDeleteJob,
    cast_Akonadi_CollectionDeleteJob,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Akonadi::CollectionDeleteJob::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collectioncreatejob.sip"
#include <akonadi/collectioncreatejob.h>
#line 5265 "sipakonadipart5.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 5269 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5272 "sipakonadipart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5275 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5278 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 5281 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5284 "sipakonadipart5.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5337 "sipakonadipart5.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5340 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 5343 "sipakonadipart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 5346 "sipakonadipart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5349 "sipakonadipart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 5352 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 5355 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5358 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5361 "sipakonadipart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5364 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 5367 "sipakonadipart5.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 5370 "sipakonadipart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5373 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 5376 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5379 "sipakonadipart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 5382 "sipakonadipart5.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 5385 "sipakonadipart5.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 5388 "sipakonadipart5.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 5391 "sipakonadipart5.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 5394 "sipakonadipart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 5409 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 5412 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 5415 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 5418 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 5421 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 5424 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 5427 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 5430 "sipakonadipart5.cpp"
#line 642 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 5433 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 5436 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 5439 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5442 "sipakonadipart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5445 "sipakonadipart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5448 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5451 "sipakonadipart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 5482 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 5485 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5488 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5491 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5494 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5497 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5500 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5503 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5506 "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 public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doResume(bool);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);
    bool sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);
    bool sipProtectVirt_addSubjob(bool,KJob *);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtectVirt_doKill(bool);
    void sipProtect_emitWriteFinished();
    void sipProtectVirt_slotResult(bool,KJob *);
    void sipProtectVirt_doStart(bool);
    void sipProtectVirt_doHandleResponse(bool,const QByteArray&,const QByteArray&);

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

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 && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_CollectionCreateJob,_clname)) ? this : Akonadi::CollectionCreateJob::qt_metacast(_clname);
}

void sipAkonadi_CollectionCreateJob::doStart()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_doStart);

    if (!meth)
    {
        Akonadi::CollectionCreateJob::doStart();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipAkonadi_CollectionCreateJob::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    extern void sipVH_akonadi_0(sip_gilstate_t,PyObject *,const QByteArray&,const QByteArray&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_doHandleResponse);

    if (!meth)
    {
        Akonadi::CollectionCreateJob::doHandleResponse(a0,a1);
        return;
    }

    sipVH_akonadi_0(sipGILState,meth,a0,a1);
}

QString sipAkonadi_CollectionCreateJob::errorString() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Akonadi::Job::errorString();

    return ((sipVH_QtCore_58)(sipModuleAPI_akonadi_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

bool sipAkonadi_CollectionCreateJob::addSubjob(KJob *a0)
{
    typedef bool (*sipVH_kdecore_19)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_addSubjob);

    if (!meth)
        return Akonadi::Job::addSubjob(a0);

    return ((sipVH_kdecore_19)(sipModuleAPI_akonadi_kdecore->em_virthandlers[19]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionCreateJob::removeSubjob(KJob *a0)
{
    typedef bool (*sipVH_kdecore_19)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_removeSubjob);

    if (!meth)
        return Akonadi::Job::removeSubjob(a0);

    return ((sipVH_kdecore_19)(sipModuleAPI_akonadi_kdecore->em_virthandlers[19]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionCreateJob::doKill()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_doKill);

    if (!meth)
        return Akonadi::Job::doKill();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipAkonadi_CollectionCreateJob::slotResult(KJob *a0)
{
    typedef void (*sipVH_kdecore_18)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_slotResult);

    if (!meth)
    {
        Akonadi::Job::slotResult(a0);
        return;
    }

    ((sipVH_kdecore_18)(sipModuleAPI_akonadi_kdecore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCreateJob::slotInfoMessage(KJob *a0,const QString& a1,const QString& a2)
{
    typedef void (*sipVH_kdecore_14)(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_slotInfoMessage);

    if (!meth)
    {
        KCompositeJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    ((sipVH_kdecore_14)(sipModuleAPI_akonadi_kdecore->em_virthandlers[14]))(sipGILState,meth,a0,a1,a2);
}

void sipAkonadi_CollectionCreateJob::start()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_start);

    if (!meth)
    {
        Akonadi::Job::start();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipAkonadi_CollectionCreateJob::doSuspend()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KJob::doSuspend();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipAkonadi_CollectionCreateJob::doResume()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_doResume);

    if (!meth)
        return KJob::doResume();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipAkonadi_CollectionCreateJob::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_akonadi_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionCreateJob::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_akonadi_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipAkonadi_CollectionCreateJob::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_akonadi_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCreateJob::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_akonadi_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCreateJob::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCreateJob::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCreateJob::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipAkonadi_CollectionCreateJob::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipAkonadi_CollectionCreateJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipAkonadi_CollectionCreateJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipAkonadi_CollectionCreateJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipAkonadi_CollectionCreateJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipAkonadi_CollectionCreateJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipAkonadi_CollectionCreateJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipAkonadi_CollectionCreateJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipAkonadi_CollectionCreateJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipAkonadi_CollectionCreateJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipAkonadi_CollectionCreateJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipAkonadi_CollectionCreateJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

bool sipAkonadi_CollectionCreateJob::sipProtect_hasSubjobs()
{
    return KCompositeJob::hasSubjobs();
}

const QList<KJob *>& sipAkonadi_CollectionCreateJob::sipProtect_subjobs() const
{
    return KCompositeJob::subjobs();
}

void sipAkonadi_CollectionCreateJob::sipProtect_clearSubjobs()
{
    KCompositeJob::clearSubjobs();
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_slotInfoMessage(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KCompositeJob::slotInfoMessage(a0,a1,a2) : slotInfoMessage(a0,a1,a2));
}

bool sipAkonadi_CollectionCreateJob::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::addSubjob(a0) : addSubjob(a0));
}

bool sipAkonadi_CollectionCreateJob::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::removeSubjob(a0) : removeSubjob(a0));
}

bool sipAkonadi_CollectionCreateJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Akonadi::Job::doKill() : doKill());
}

void sipAkonadi_CollectionCreateJob::sipProtect_emitWriteFinished()
{
    Akonadi::Job::emitWriteFinished();
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? Akonadi::Job::slotResult(a0) : slotResult(a0));
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_doStart(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Akonadi::CollectionCreateJob::doStart() : doStart());
}

void sipAkonadi_CollectionCreateJob::sipProtectVirt_doHandleResponse(bool sipSelfWasArg,const QByteArray& a0,const QByteArray& a1)
{
    (sipSelfWasArg ? Akonadi::CollectionCreateJob::doHandleResponse(a0,a1) : doHandleResponse(a0,a1));
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 6082 "sipakonadipart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_doSuspend(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_doSuspend(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_doSuspend);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_doResume(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_doResume(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_doResume);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_setCapabilities(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_KJob_Capabilities,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setCapabilities(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_setCapabilities);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_setError(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_setError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_setError);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_setErrorText(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_setErrorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorText(*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(sipArgsParsed,sipName_CollectionCreateJob,sipName_setErrorText);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_setProcessedAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_setProcessedAmount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEo",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_KJob_Unit,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessedAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_setProcessedAmount);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_setTotalAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_setTotalAmount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEo",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_KJob_Unit,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTotalAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_setTotalAmount);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_setPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_setPercent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pm",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPercent(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_setPercent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_emitResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_emitResult(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitResult();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_emitResult);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_emitPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_emitPercent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"poo",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitPercent(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_emitPercent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_emitSpeed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_emitSpeed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pm",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitSpeed(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_emitSpeed);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_hasSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_hasSubjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hasSubjobs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_hasSubjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_subjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_subjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            QList<KJob *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KJob *>(sipCpp->sipProtect_subjobs());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KJob,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_subjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_clearSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_clearSubjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearSubjobs();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_clearSubjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_slotInfoMessage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_slotInfoMessage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8J1J1",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_KJob,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotInfoMessage(sipSelfWasArg,a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_slotInfoMessage);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_addSubjob(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_addSubjob(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_addSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_addSubjob);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_removeSubjob(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_removeSubjob(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_removeSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_doKill(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_doKill(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_emitWriteFinished(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_emitWriteFinished(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitWriteFinished();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_slotResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_slotResult(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotResult(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_collection(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_collection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CollectionCreateJob,sipName_collection);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_doStart(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doStart(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCreateJob,sipName_doStart);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCreateJob_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCreateJob_doHandleResponse(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        sipAkonadi_CollectionCreateJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1J1",&sipSelf,sipType_Akonadi_CollectionCreateJob,&sipCpp,sipType_QByteArray,&a0,&a0State,sipType_QByteArray,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doHandleResponse(sipSelfWasArg,*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(sipArgsParsed,sipName_CollectionCreateJob,sipName_doHandleResponse);

    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 state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_CollectionCreateJob *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::CollectionCreateJob *>(sipCppV);

    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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionCreateJob(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_CollectionCreateJob(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_CollectionCreateJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipAkonadi_CollectionCreateJob *sipCpp = 0;

    if (!sipCpp)
    {
        const Akonadi::Collection * a0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|JH",sipType_Akonadi_Collection,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_CollectionCreateJob(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Akonadi_CollectionCreateJob[] = {{61, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionCreateJob[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_CollectionCreateJob_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_CollectionCreateJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_Akonadi_CollectionCreateJob_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collection), meth_Akonadi_CollectionCreateJob_collection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_CollectionCreateJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_CollectionCreateJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_CollectionCreateJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_CollectionCreateJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_CollectionCreateJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_CollectionCreateJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionCreateJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_CollectionCreateJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_CollectionCreateJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_CollectionCreateJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_CollectionCreateJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitWriteFinished), meth_Akonadi_CollectionCreateJob_emitWriteFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_Akonadi_CollectionCreateJob_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_CollectionCreateJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_Akonadi_CollectionCreateJob_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_CollectionCreateJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_CollectionCreateJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_CollectionCreateJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_CollectionCreateJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_CollectionCreateJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_CollectionCreateJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_Akonadi_CollectionCreateJob_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_CollectionCreateJob_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_Akonadi_CollectionCreateJob_subjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_CollectionCreateJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_CollectionCreateJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionCreateJob,
        {0}
    },
    sipNameNr_CollectionCreateJob,
    -1,
    -1,
    {0, 255, 0},
    supers_Akonadi_CollectionCreateJob,
    0,
    29, methods_Akonadi_CollectionCreateJob,
    0, 0,
    0, 0,
    init_Akonadi_CollectionCreateJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionCreateJob,
    release_Akonadi_CollectionCreateJob,
    cast_Akonadi_CollectionCreateJob,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Akonadi::CollectionCreateJob::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 7041 "sipakonadipart5.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 7045 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 7048 "sipakonadipart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7051 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7054 "sipakonadipart5.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7107 "sipakonadipart5.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7110 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 7113 "sipakonadipart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 7116 "sipakonadipart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7119 "sipakonadipart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 7122 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 7125 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7128 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7131 "sipakonadipart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 7134 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 7137 "sipakonadipart5.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 7140 "sipakonadipart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7143 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 7146 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7149 "sipakonadipart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 7152 "sipakonadipart5.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7155 "sipakonadipart5.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 7158 "sipakonadipart5.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 7161 "sipakonadipart5.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 7164 "sipakonadipart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7179 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 7182 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 7185 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 7188 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 7191 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 7194 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 7197 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 7200 "sipakonadipart5.cpp"
#line 642 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 7203 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 7206 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 7209 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7212 "sipakonadipart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7215 "sipakonadipart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7218 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7221 "sipakonadipart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 7252 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 7255 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 7258 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 7261 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 7264 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7267 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 7270 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7273 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7276 "sipakonadipart5.cpp"


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

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doResume(bool);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);
    bool sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);
    void sipProtect_doStart();
    void sipProtectVirt_doHandleResponse(bool,const QByteArray&,const QByteArray&);
    bool sipProtectVirt_addSubjob(bool,KJob *);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtectVirt_doKill(bool);
    void sipProtect_emitWriteFinished();
    void sipProtectVirt_slotResult(bool,KJob *);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

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

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

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

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

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

    return _id;
}

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

QString sipAkonadi_Job::errorString() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Akonadi::Job::errorString();

    return ((sipVH_QtCore_58)(sipModuleAPI_akonadi_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

void sipAkonadi_Job::doStart()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_Job,sipName_doStart);

    if (!meth)
        return;

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipAkonadi_Job::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    extern void sipVH_akonadi_0(sip_gilstate_t,PyObject *,const QByteArray&,const QByteArray&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_doHandleResponse);

    if (!meth)
    {
        Akonadi::Job::doHandleResponse(a0,a1);
        return;
    }

    sipVH_akonadi_0(sipGILState,meth,a0,a1);
}

bool sipAkonadi_Job::addSubjob(KJob *a0)
{
    typedef bool (*sipVH_kdecore_19)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_addSubjob);

    if (!meth)
        return Akonadi::Job::addSubjob(a0);

    return ((sipVH_kdecore_19)(sipModuleAPI_akonadi_kdecore->em_virthandlers[19]))(sipGILState,meth,a0);
}

bool sipAkonadi_Job::removeSubjob(KJob *a0)
{
    typedef bool (*sipVH_kdecore_19)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_removeSubjob);

    if (!meth)
        return Akonadi::Job::removeSubjob(a0);

    return ((sipVH_kdecore_19)(sipModuleAPI_akonadi_kdecore->em_virthandlers[19]))(sipGILState,meth,a0);
}

bool sipAkonadi_Job::doKill()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_doKill);

    if (!meth)
        return Akonadi::Job::doKill();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipAkonadi_Job::slotResult(KJob *a0)
{
    typedef void (*sipVH_kdecore_18)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_slotResult);

    if (!meth)
    {
        Akonadi::Job::slotResult(a0);
        return;
    }

    ((sipVH_kdecore_18)(sipModuleAPI_akonadi_kdecore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_Job::slotInfoMessage(KJob *a0,const QString& a1,const QString& a2)
{
    typedef void (*sipVH_kdecore_14)(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_slotInfoMessage);

    if (!meth)
    {
        KCompositeJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    ((sipVH_kdecore_14)(sipModuleAPI_akonadi_kdecore->em_virthandlers[14]))(sipGILState,meth,a0,a1,a2);
}

void sipAkonadi_Job::start()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_start);

    if (!meth)
    {
        Akonadi::Job::start();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipAkonadi_Job::doSuspend()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KJob::doSuspend();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipAkonadi_Job::doResume()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_doResume);

    if (!meth)
        return KJob::doResume();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipAkonadi_Job::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_akonadi_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipAkonadi_Job::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_akonadi_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipAkonadi_Job::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_akonadi_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipAkonadi_Job::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_akonadi_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipAkonadi_Job::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_Job::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_Job::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipAkonadi_Job::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_Job::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_Job::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_Job::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_Job::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_Job::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipAkonadi_Job::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipAkonadi_Job::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipAkonadi_Job::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipAkonadi_Job::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipAkonadi_Job::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipAkonadi_Job::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipAkonadi_Job::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipAkonadi_Job::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipAkonadi_Job::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipAkonadi_Job::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipAkonadi_Job::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

bool sipAkonadi_Job::sipProtect_hasSubjobs()
{
    return KCompositeJob::hasSubjobs();
}

const QList<KJob *>& sipAkonadi_Job::sipProtect_subjobs() const
{
    return KCompositeJob::subjobs();
}

void sipAkonadi_Job::sipProtect_clearSubjobs()
{
    KCompositeJob::clearSubjobs();
}

void sipAkonadi_Job::sipProtectVirt_slotInfoMessage(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KCompositeJob::slotInfoMessage(a0,a1,a2) : slotInfoMessage(a0,a1,a2));
}

void sipAkonadi_Job::sipProtect_doStart()
{
    doStart();
}

void sipAkonadi_Job::sipProtectVirt_doHandleResponse(bool sipSelfWasArg,const QByteArray& a0,const QByteArray& a1)
{
    (sipSelfWasArg ? Akonadi::Job::doHandleResponse(a0,a1) : doHandleResponse(a0,a1));
}

bool sipAkonadi_Job::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::addSubjob(a0) : addSubjob(a0));
}

bool sipAkonadi_Job::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::removeSubjob(a0) : removeSubjob(a0));
}

bool sipAkonadi_Job::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Akonadi::Job::doKill() : doKill());
}

void sipAkonadi_Job::sipProtect_emitWriteFinished()
{
    Akonadi::Job::emitWriteFinished();
}

void sipAkonadi_Job::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? Akonadi::Job::slotResult(a0) : slotResult(a0));
}


extern "C" {static PyObject *meth_Akonadi_Job_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_Job,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 7849 "sipakonadipart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_Job,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_Job,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_doSuspend(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_doSuspend(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_Job *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_doResume(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_doResume(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_Job *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_setCapabilities(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_KJob_Capabilities,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setCapabilities(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_setError(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_setError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_Akonadi_Job,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_setErrorText(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_setErrorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorText(*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(sipArgsParsed,sipName_Job,sipName_setErrorText);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_setProcessedAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_setProcessedAmount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEo",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_KJob_Unit,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessedAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_setTotalAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_setTotalAmount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEo",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_KJob_Unit,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTotalAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_setPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_setPercent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pm",&sipSelf,sipType_Akonadi_Job,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPercent(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_emitResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_emitResult(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_Job *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_emitPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_emitPercent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"poo",&sipSelf,sipType_Akonadi_Job,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitPercent(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_emitSpeed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_emitSpeed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pm",&sipSelf,sipType_Akonadi_Job,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitSpeed(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_hasSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_hasSubjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_Job *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hasSubjobs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_subjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_subjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_Job,&sipCpp))
        {
            QList<KJob *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KJob *>(sipCpp->sipProtect_subjobs());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KJob,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_clearSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_clearSubjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_Job *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_slotInfoMessage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_slotInfoMessage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8J1J1",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_KJob,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotInfoMessage(sipSelfWasArg,a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_start(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_start(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Akonadi::Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Akonadi_Job,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Akonadi::Job::start() : sipCpp->start());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Akonadi::Job *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_doStart(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_Job *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_doStart();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_doHandleResponse(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1J1",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_QByteArray,&a0,&a0State,sipType_QByteArray,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doHandleResponse(sipSelfWasArg,*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(sipArgsParsed,sipName_Job,sipName_doHandleResponse);

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_Job *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_addSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_Job *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_removeSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipAkonadi_Job *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Job_emitWriteFinished(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Job_emitWriteFinished(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_Job *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob * a0;
        sipAkonadi_Job *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_Job,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotResult(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_Job)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_Job *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::Job *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_Job(sipSimpleWrapper *);}
static void dealloc_Akonadi_Job(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_Job *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_Job(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_Job(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_Job(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipAkonadi_Job *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_Job(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Akonadi_Job[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_Job_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_Job_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_Akonadi_Job_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_Job_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_Job_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_Job_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_Job_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_Job_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_Job_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_Job_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_Job_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_Job_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_Job_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_Job_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitWriteFinished), meth_Akonadi_Job_emitWriteFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_Akonadi_Job_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_Akonadi_Job_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_Job_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_Akonadi_Job_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_Job_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_Job_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_Job_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_Job_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_Job_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_Job_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_Akonadi_Job_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_Job_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Akonadi_Job_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_Akonadi_Job_subjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_Job_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Akonadi_Job[] = {
    {sipName_ConnectionFailed, Akonadi::Job::ConnectionFailed, 62},
    {sipName_ProtocolVersionMismatch, Akonadi::Job::ProtocolVersionMismatch, 62},
    {sipName_Unknown, Akonadi::Job::Unknown, 62},
    {sipName_UserCanceled, Akonadi::Job::UserCanceled, 62},
    {sipName_UserError, Akonadi::Job::UserError, 62},
};


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


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_Job = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Job,
        {0}
    },
    sipNameNr_Job,
    -1,
    -1,
    {0, 255, 0},
    supers_Akonadi_Job,
    0,
    30, methods_Akonadi_Job,
    5, enummembers_Akonadi_Job,
    0, 0,
    init_Akonadi_Job,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Job,
    release_Akonadi_Job,
    cast_Akonadi_Job,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Akonadi::Job::staticMetaObject,
    0,
    pyqt4_signals_Akonadi_Job
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collectioncopyjob.sip"
#include <akonadi/collectioncopyjob.h>
#line 8858 "sipakonadipart5.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 8862 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 8865 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 8868 "sipakonadipart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8871 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 8874 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8877 "sipakonadipart5.cpp"
#line 708 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <qlist.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <qlist.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8930 "sipakonadipart5.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 8933 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kplugininfo.sip"
#include <kplugininfo.h>
#line 8936 "sipakonadipart5.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kprotocolinfo.sip"
#include <kprotocolinfo.h>
#line 8939 "sipakonadipart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 8942 "sipakonadipart5.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 8945 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kserviceaction.sip"
#include <kserviceaction.h>
#line 8948 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 8951 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 8954 "sipakonadipart5.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 8957 "sipakonadipart5.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktimezone.sip"
#include <ktimezone.h>
#line 8960 "sipakonadipart5.cpp"
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kautosavefile.sip"
#include <kautosavefile.h>
#line 8963 "sipakonadipart5.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 8966 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 8969 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8972 "sipakonadipart5.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klocale.sip"
#include <klocale.h>
#line 8975 "sipakonadipart5.cpp"
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 8978 "sipakonadipart5.cpp"
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ktcpsocket.sip"
#include <ktcpsocket.h>
#line 8981 "sipakonadipart5.cpp"
#line 83 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 8984 "sipakonadipart5.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kuser.sip"
#include <kuser.h>
#line 8987 "sipakonadipart5.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 9002 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 9005 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 9008 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 9011 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 9014 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 9017 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 9020 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 9023 "sipakonadipart5.cpp"
#line 642 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 9026 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 9029 "sipakonadipart5.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 9032 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9035 "sipakonadipart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9038 "sipakonadipart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9041 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9044 "sipakonadipart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 9075 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 9078 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 9081 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 9084 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 9087 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9090 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 9093 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9096 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9099 "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 public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doResume(bool);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);
    bool sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);
    void sipProtectVirt_doHandleResponse(bool,const QByteArray&,const QByteArray&);
    bool sipProtectVirt_addSubjob(bool,KJob *);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtectVirt_doKill(bool);
    void sipProtect_emitWriteFinished();
    void sipProtectVirt_slotResult(bool,KJob *);
    void sipProtectVirt_doStart(bool);

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

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 && sip_akonadi_qt_metacast(sipPySelf,sipType_Akonadi_CollectionCopyJob,_clname)) ? this : Akonadi::CollectionCopyJob::qt_metacast(_clname);
}

QString sipAkonadi_CollectionCopyJob::errorString() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Akonadi::Job::errorString();

    return ((sipVH_QtCore_58)(sipModuleAPI_akonadi_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

void sipAkonadi_CollectionCopyJob::doStart()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_doStart);

    if (!meth)
    {
        Akonadi::CollectionCopyJob::doStart();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipAkonadi_CollectionCopyJob::doHandleResponse(const QByteArray& a0,const QByteArray& a1)
{
    extern void sipVH_akonadi_0(sip_gilstate_t,PyObject *,const QByteArray&,const QByteArray&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_doHandleResponse);

    if (!meth)
    {
        Akonadi::Job::doHandleResponse(a0,a1);
        return;
    }

    sipVH_akonadi_0(sipGILState,meth,a0,a1);
}

bool sipAkonadi_CollectionCopyJob::addSubjob(KJob *a0)
{
    typedef bool (*sipVH_kdecore_19)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_addSubjob);

    if (!meth)
        return Akonadi::Job::addSubjob(a0);

    return ((sipVH_kdecore_19)(sipModuleAPI_akonadi_kdecore->em_virthandlers[19]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionCopyJob::removeSubjob(KJob *a0)
{
    typedef bool (*sipVH_kdecore_19)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_removeSubjob);

    if (!meth)
        return Akonadi::Job::removeSubjob(a0);

    return ((sipVH_kdecore_19)(sipModuleAPI_akonadi_kdecore->em_virthandlers[19]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionCopyJob::doKill()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_doKill);

    if (!meth)
        return Akonadi::Job::doKill();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipAkonadi_CollectionCopyJob::slotResult(KJob *a0)
{
    typedef void (*sipVH_kdecore_18)(sip_gilstate_t,PyObject *,KJob *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_slotResult);

    if (!meth)
    {
        Akonadi::Job::slotResult(a0);
        return;
    }

    ((sipVH_kdecore_18)(sipModuleAPI_akonadi_kdecore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCopyJob::slotInfoMessage(KJob *a0,const QString& a1,const QString& a2)
{
    typedef void (*sipVH_kdecore_14)(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_slotInfoMessage);

    if (!meth)
    {
        KCompositeJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    ((sipVH_kdecore_14)(sipModuleAPI_akonadi_kdecore->em_virthandlers[14]))(sipGILState,meth,a0,a1,a2);
}

void sipAkonadi_CollectionCopyJob::start()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_start);

    if (!meth)
    {
        Akonadi::Job::start();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_akonadi_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipAkonadi_CollectionCopyJob::doSuspend()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KJob::doSuspend();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipAkonadi_CollectionCopyJob::doResume()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_doResume);

    if (!meth)
        return KJob::doResume();

    return ((sipVH_QtCore_1)(sipModuleAPI_akonadi_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipAkonadi_CollectionCopyJob::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_akonadi_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipAkonadi_CollectionCopyJob::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_akonadi_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipAkonadi_CollectionCopyJob::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_akonadi_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCopyJob::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_akonadi_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCopyJob::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCopyJob::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_CollectionCopyJob::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipAkonadi_CollectionCopyJob::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipAkonadi_CollectionCopyJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doSuspend() : doSuspend());
}

bool sipAkonadi_CollectionCopyJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KJob::doResume() : doResume());
}

void sipAkonadi_CollectionCopyJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipAkonadi_CollectionCopyJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipAkonadi_CollectionCopyJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipAkonadi_CollectionCopyJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipAkonadi_CollectionCopyJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipAkonadi_CollectionCopyJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipAkonadi_CollectionCopyJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipAkonadi_CollectionCopyJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipAkonadi_CollectionCopyJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

bool sipAkonadi_CollectionCopyJob::sipProtect_hasSubjobs()
{
    return KCompositeJob::hasSubjobs();
}

const QList<KJob *>& sipAkonadi_CollectionCopyJob::sipProtect_subjobs() const
{
    return KCompositeJob::subjobs();
}

void sipAkonadi_CollectionCopyJob::sipProtect_clearSubjobs()
{
    KCompositeJob::clearSubjobs();
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_slotInfoMessage(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KCompositeJob::slotInfoMessage(a0,a1,a2) : slotInfoMessage(a0,a1,a2));
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_doHandleResponse(bool sipSelfWasArg,const QByteArray& a0,const QByteArray& a1)
{
    (sipSelfWasArg ? Akonadi::Job::doHandleResponse(a0,a1) : doHandleResponse(a0,a1));
}

bool sipAkonadi_CollectionCopyJob::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::addSubjob(a0) : addSubjob(a0));
}

bool sipAkonadi_CollectionCopyJob::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? Akonadi::Job::removeSubjob(a0) : removeSubjob(a0));
}

bool sipAkonadi_CollectionCopyJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Akonadi::Job::doKill() : doKill());
}

void sipAkonadi_CollectionCopyJob::sipProtect_emitWriteFinished()
{
    Akonadi::Job::emitWriteFinished();
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? Akonadi::Job::slotResult(a0) : slotResult(a0));
}

void sipAkonadi_CollectionCopyJob::sipProtectVirt_doStart(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Akonadi::CollectionCopyJob::doStart() : doStart());
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 9675 "sipakonadipart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_doSuspend(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_doSuspend(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_doSuspend);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_doResume(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_doResume(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_doResume);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_setCapabilities(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_KJob_Capabilities,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setCapabilities(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_setCapabilities);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_setError(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_setError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_setError);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_setErrorText(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_setErrorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorText(*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(sipArgsParsed,sipName_CollectionCopyJob,sipName_setErrorText);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_setProcessedAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_setProcessedAmount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEo",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_KJob_Unit,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessedAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_setProcessedAmount);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_setTotalAmount(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_setTotalAmount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pEo",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_KJob_Unit,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTotalAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_setTotalAmount);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_setPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_setPercent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pm",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPercent(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_setPercent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_emitResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_emitResult(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitResult();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_emitResult);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_emitPercent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_emitPercent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        qulonglong a0;
        qulonglong a1;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"poo",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitPercent(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_emitPercent);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_emitSpeed(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_emitSpeed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pm",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitSpeed(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_emitSpeed);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_hasSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_hasSubjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hasSubjobs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_hasSubjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_subjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_subjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            QList<KJob *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KJob *>(sipCpp->sipProtect_subjobs());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KJob,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_subjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_clearSubjobs(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_clearSubjobs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearSubjobs();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_clearSubjobs);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_slotInfoMessage(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_slotInfoMessage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8J1J1",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_KJob,&a0,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotInfoMessage(sipSelfWasArg,a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_slotInfoMessage);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_doHandleResponse(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_doHandleResponse(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        const QByteArray * a1;
        int a1State = 0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1J1",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_QByteArray,&a0,&a0State,sipType_QByteArray,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doHandleResponse(sipSelfWasArg,*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(sipArgsParsed,sipName_CollectionCopyJob,sipName_doHandleResponse);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_addSubjob(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_addSubjob(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_addSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_addSubjob);

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_removeSubjob(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_removeSubjob(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_removeSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_doKill(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_doKill(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_emitWriteFinished(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_emitWriteFinished(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitWriteFinished();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_slotResult(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_slotResult(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp,sipType_KJob,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotResult(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_CollectionCopyJob_doStart(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_CollectionCopyJob_doStart(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipAkonadi_CollectionCopyJob *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Akonadi_CollectionCopyJob,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_doStart(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CollectionCopyJob,sipName_doStart);

    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 state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_CollectionCopyJob *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::CollectionCopyJob *>(sipCppV);

    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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_CollectionCopyJob(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_CollectionCopyJob(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_CollectionCopyJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipAkonadi_CollectionCopyJob *sipCpp = 0;

    if (!sipCpp)
    {
        const Akonadi::Collection * a0;
        const Akonadi::Collection * a1;
        QObject * a2 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Akonadi_CollectionCopyJob[] = {{61, 255, 1}};


static PyMethodDef methods_Akonadi_CollectionCopyJob[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_Akonadi_CollectionCopyJob_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_CollectionCopyJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_Akonadi_CollectionCopyJob_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_CollectionCopyJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_CollectionCopyJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_CollectionCopyJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doHandleResponse), meth_Akonadi_CollectionCopyJob_doHandleResponse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Akonadi_CollectionCopyJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Akonadi_CollectionCopyJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doStart), meth_Akonadi_CollectionCopyJob_doStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Akonadi_CollectionCopyJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Akonadi_CollectionCopyJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Akonadi_CollectionCopyJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Akonadi_CollectionCopyJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitWriteFinished), meth_Akonadi_CollectionCopyJob_emitWriteFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_Akonadi_CollectionCopyJob_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_CollectionCopyJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_Akonadi_CollectionCopyJob_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Akonadi_CollectionCopyJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Akonadi_CollectionCopyJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Akonadi_CollectionCopyJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Akonadi_CollectionCopyJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Akonadi_CollectionCopyJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Akonadi_CollectionCopyJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_Akonadi_CollectionCopyJob_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_Akonadi_CollectionCopyJob_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_Akonadi_CollectionCopyJob_subjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_CollectionCopyJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_CollectionCopyJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__CollectionCopyJob,
        {0}
    },
    sipNameNr_CollectionCopyJob,
    -1,
    -1,
    {0, 255, 0},
    supers_Akonadi_CollectionCopyJob,
    0,
    28, methods_Akonadi_CollectionCopyJob,
    0, 0,
    0, 0,
    init_Akonadi_CollectionCopyJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_CollectionCopyJob,
    release_Akonadi_CollectionCopyJob,
    cast_Akonadi_CollectionCopyJob,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Akonadi::CollectionCopyJob::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 10607 "sipakonadipart5.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 10611 "sipakonadipart5.cpp"


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 10629 "sipakonadipart5.cpp"

            return sipRes;
        }
    }
}


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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 10657 "sipakonadipart5.cpp"

            sipReleaseType(const_cast<Akonadi::Collection::Rights *>(a0),sipType_Akonadi_Collection_Rights,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 10689 "sipakonadipart5.cpp"

            sipReleaseType(const_cast<Akonadi::Collection::Rights *>(a0),sipType_Akonadi_Collection_Rights,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    if (!sipCpp)
        return 0;


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

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

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


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Akonadi_Collection_Rights___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

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

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

            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

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

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


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Akonadi_Collection_Rights___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::Rights((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);
            sipReleaseType(a1,sipType_Akonadi_Collection_Rights,a1State);

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

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


extern "C" {static PyObject *slot_Akonadi_Collection_Rights___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Akonadi_Collection_Rights___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Akonadi::Collection::Rights((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);
            sipReleaseType(a1,sipType_Akonadi_Collection_Rights,a1State);

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

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


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

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

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

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

            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    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_Collection_Rights(void *, const sipTypeDef *);}
static void *cast_Akonadi_Collection_Rights(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_Akonadi_Collection_Rights)
        return ptr;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_Akonadi_Collection_Rights(sipSimpleWrapper *);}
static void dealloc_Akonadi_Collection_Rights(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_Collection_Rights(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Akonadi_Collection_Rights(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_Collection_Rights(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Akonadi::Collection::Rights *sipCpp = 0;

    if (!sipCpp)
    {
        const Akonadi::Collection::Rights * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_Akonadi_Collection_Rights,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::Collection::Rights(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<Akonadi::Collection::Rights *>(a0),sipType_Akonadi_Collection_Rights,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::Collection::Rights(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Akonadi::Collection::Rights();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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

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

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

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

    return sipGetState(sipTransferObj);
}

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

return 0;
#line 11060 "sipakonadipart5.cpp"
}


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


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_Collection_Rights = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Collection__Rights,
        {0}
    },
    sipNameNr_Rights,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {18, 255, 0},
    0,
    slots_Akonadi_Collection_Rights,
    0, 0,
    0, 0,
    0, 0,
    init_Akonadi_Collection_Rights,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Collection_Rights,
    release_Akonadi_Collection_Rights,
    cast_Akonadi_Collection_Rights,
    convertTo_Akonadi_Collection_Rights,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Akonadi_Collection_Rights,
    0,
    1,
    0
};

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/entity.sip"
#include <akonadi/entity.h>
#line 11128 "sipakonadipart5.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 11132 "sipakonadipart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11135 "sipakonadipart5.cpp"
#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/entity.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11150 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 11153 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 11156 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 11159 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 11162 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 11165 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11168 "sipakonadipart5.cpp"


class sipAkonadi_Entity : public Akonadi::Entity
{
public:
    sipAkonadi_Entity(const Akonadi::Entity&);
    ~sipAkonadi_Entity();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_Entity(const sipAkonadi_Entity &);
    sipAkonadi_Entity &operator = (const sipAkonadi_Entity &);
};

sipAkonadi_Entity::sipAkonadi_Entity(const Akonadi::Entity& a0): Akonadi::Entity(a0), sipPySelf(0)
{
}

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


extern "C" {static PyObject *meth_Akonadi_Entity_setId(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_setId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bn",&sipSelf,sipType_Akonadi_Entity,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setId(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_id(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_id(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Entity *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->id();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_setRemoteId(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_setRemoteId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Akonadi_Entity,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRemoteId(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_remoteId(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_remoteId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Entity *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_isValid(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_isValid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Entity *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_addAttribute(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_addAttribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_Akonadi_Entity,&sipCpp,sipType_Akonadi_Attribute,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addAttribute(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_removeAttribute(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_removeAttribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Akonadi_Entity,&sipCpp,sipType_QByteArray,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAttribute(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_hasAttribute(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_hasAttribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

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

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_attributes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_attributes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Entity *sipCpp;

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

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201Akonadi_Attribute,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_clearAttributes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_clearAttributes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Entity *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Entity_attribute(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Entity_attribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

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

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Akonadi::Entity * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Akonadi::Entity * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_Entity *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::Entity *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_Entity(sipSimpleWrapper *);}
static void dealloc_Akonadi_Entity(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_Entity *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_Entity(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_Entity(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_Entity(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipAkonadi_Entity *sipCpp = 0;

    if (!sipCpp)
    {
        const Akonadi::Entity * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Akonadi_Entity,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_Entity(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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

static sipEnumMemberDef enummembers_Akonadi_Entity[] = {
    {sipName_AddIfMissing, Akonadi::Entity::AddIfMissing, 43},
};


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_Entity = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Entity,
        {0}
    },
    sipNameNr_Entity,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    slots_Akonadi_Entity,
    11, methods_Akonadi_Entity,
    1, enummembers_Akonadi_Entity,
    0, 0,
    init_Akonadi_Entity,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Entity,
    release_Akonadi_Entity,
    cast_Akonadi_Entity,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 11703 "sipakonadipart5.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 11707 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collectionstatistics.sip"
#include <akonadi/collectionstatistics.h>
#line 11710 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/cachepolicy.sip"
#include <akonadi/cachepolicy.h>
#line 11713 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11716 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11719 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 11722 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 11725 "sipakonadipart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11728 "sipakonadipart5.cpp"
#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/entity.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11743 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 11746 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 11749 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 11752 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 11755 "sipakonadipart5.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/entity.sip"
#include <akonadi/entity.h>
#line 11758 "sipakonadipart5.cpp"


class sipAkonadi_Collection : public Akonadi::Collection
{
public:
    sipAkonadi_Collection();
    sipAkonadi_Collection(Akonadi::Entity::Id);
    sipAkonadi_Collection(const Akonadi::Collection&);
    ~sipAkonadi_Collection();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipAkonadi_Collection(const sipAkonadi_Collection &);
    sipAkonadi_Collection &operator = (const sipAkonadi_Collection &);
};

sipAkonadi_Collection::sipAkonadi_Collection(): Akonadi::Collection(), sipPySelf(0)
{
}

sipAkonadi_Collection::sipAkonadi_Collection(Akonadi::Entity::Id a0): Akonadi::Collection(a0), sipPySelf(0)
{
}

sipAkonadi_Collection::sipAkonadi_Collection(const Akonadi::Collection& a0): Akonadi::Collection(a0), sipPySelf(0)
{
}

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


extern "C" {static PyObject *meth_Akonadi_Collection_fromUrl(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_fromUrl(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KUrl * a0;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_name(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_name(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_setName(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_setName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Akonadi_Collection,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setName(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_rights(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_rights(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_setRights(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_setRights(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            sipReleaseType(a0,sipType_Akonadi_Collection_Rights,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_contentMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_contentMimeTypes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_setContentMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_setContentMimeTypes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Akonadi_Collection,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContentMimeTypes(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_parent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_parent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parent();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_setParent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_setParent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bn",&sipSelf,sipType_Akonadi_Collection,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setParent(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_parentRemoteId(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_parentRemoteId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_setParentRemoteId(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_setParentRemoteId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Akonadi_Collection,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setParentRemoteId(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_root(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_root(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_mimeType(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_mimeType(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_resource(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_resource(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_setResource(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_setResource(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Akonadi_Collection,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResource(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_cachePolicy(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_cachePolicy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_setCachePolicy(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_setCachePolicy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_statistics(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_statistics(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_setStatistics(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_setStatistics(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Collection_url(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Collection_url(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Collection *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_Collection)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Akonadi_Entity)->ctd_cast((Akonadi::Entity *)(Akonadi::Collection *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_Collection *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::Collection *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_Akonadi_Collection(sipSimpleWrapper *);}
static void dealloc_Akonadi_Collection(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_Collection *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_Collection(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_Collection(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_Collection(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipAkonadi_Collection *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_Collection();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        Akonadi::Entity::Id a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"n",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_Collection(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Akonadi::Collection * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Akonadi_Collection,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_Collection(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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

static sipEnumMemberDef enummembers_Akonadi_Collection[] = {
    {sipName_AllRights, Akonadi::Collection::AllRights, 19},
    {sipName_CanChangeCollection, Akonadi::Collection::CanChangeCollection, 19},
    {sipName_CanChangeItem, Akonadi::Collection::CanChangeItem, 19},
    {sipName_CanCreateCollection, Akonadi::Collection::CanCreateCollection, 19},
    {sipName_CanCreateItem, Akonadi::Collection::CanCreateItem, 19},
    {sipName_CanDeleteCollection, Akonadi::Collection::CanDeleteCollection, 19},
    {sipName_CanDeleteItem, Akonadi::Collection::CanDeleteItem, 19},
    {sipName_ReadOnly, Akonadi::Collection::ReadOnly, 19},
};


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_Collection = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Collection,
        {0}
    },
    sipNameNr_Collection,
    -1,
    -1,
    {0, 255, 0},
    supers_Akonadi_Collection,
    0,
    20, methods_Akonadi_Collection,
    8, enummembers_Akonadi_Collection,
    0, 0,
    init_Akonadi_Collection,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Collection,
    release_Akonadi_Collection,
    cast_Akonadi_Collection,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Akonadi_Collection,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/monitor.sip"
#include <akonadi/monitor.h>
#line 12544 "sipakonadipart5.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12548 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12551 "sipakonadipart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12554 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/item.sip"
#include <akonadi/item.h>
#line 12557 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collection.sip"
#include <akonadi/collection.h>
#line 12560 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/collectionstatistics.sip"
#include <akonadi/collectionstatistics.h>
#line 12563 "sipakonadipart5.cpp"
#line 558 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qset.h>
#line 12566 "sipakonadipart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 12597 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 12600 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 12603 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12606 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 12609 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 12612 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 12615 "sipakonadipart5.cpp"
#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/entity.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12630 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/agentinstance.sip"
#include <akonadi/agentinstance.h>
#line 12633 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/agenttype.sip"
#include <akonadi/agenttype.h>
#line 12636 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/attribute.sip"
#include <akonadi/attribute.h>
#line 12639 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/job.sip"
#include <akonadi/job.h>
#line 12642 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/itemfetchscope.sip"
#include <akonadi/itemfetchscope.h>
#line 12645 "sipakonadipart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/akonadi/session.sip"
#include <akonadi/session.h>
#line 12648 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12651 "sipakonadipart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12654 "sipakonadipart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12657 "sipakonadipart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12660 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12663 "sipakonadipart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12666 "sipakonadipart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12669 "sipakonadipart5.cpp"


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

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

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

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

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

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

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

    return _id;
}

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

bool sipAkonadi_Monitor::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_akonadi_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipAkonadi_Monitor::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_akonadi_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipAkonadi_Monitor::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_akonadi_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipAkonadi_Monitor::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_akonadi_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipAkonadi_Monitor::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_akonadi_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipAkonadi_Monitor::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipAkonadi_Monitor::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_akonadi_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipAkonadi_Monitor::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipAkonadi_Monitor::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipAkonadi_Monitor::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipAkonadi_Monitor::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipAkonadi_Monitor::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipAkonadi_Monitor::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


extern "C" {static PyObject *meth_Akonadi_Monitor_receivers(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipAkonadi_Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 12922 "sipakonadipart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipAkonadi_Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipAkonadi_Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipAkonadi_Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipAkonadi_Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_setCollectionMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_setCollectionMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|b",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_Akonadi_Collection,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCollectionMonitored(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_setItemMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_setItemMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|b",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_Akonadi_Item,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setItemMonitored(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_setResourceMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_setResourceMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|b",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_QByteArray,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResourceMonitored(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_setMimeTypeMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_setMimeTypeMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|b",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeTypeMonitored(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_setAllMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_setAllMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|b",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAllMonitored(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_ignoreSession(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_ignoreSession(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_Akonadi_Session,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->ignoreSession(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_fetchCollection(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_fetchCollection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->fetchCollection(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_fetchCollectionStatistics(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_fetchCollectionStatistics(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->fetchCollectionStatistics(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_setItemFetchScope(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_setItemFetchScope(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Akonadi_Monitor,&sipCpp,sipType_Akonadi_ItemFetchScope,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setItemFetchScope(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_itemFetchScope(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_itemFetchScope(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Monitor *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_collectionsMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_collectionsMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Monitor *sipCpp;

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

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Akonadi_Collection,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_mimeTypesMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_mimeTypesMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Monitor *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_resourcesMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_resourcesMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Akonadi_Monitor,&sipCpp))
        {
            QList<QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->resourcesMonitored());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200QByteArray,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Akonadi_Monitor_isAllMonitored(PyObject *, PyObject *);}
static PyObject *meth_Akonadi_Monitor_isAllMonitored(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Akonadi::Monitor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Akonadi_Monitor,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAllMonitored();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Akonadi_Monitor)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipAkonadi_Monitor *>(sipCppV);
    else
        delete reinterpret_cast<Akonadi::Monitor *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Akonadi_Monitor(sipSimpleWrapper *);}
static void dealloc_Akonadi_Monitor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipAkonadi_Monitor *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Akonadi_Monitor(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Akonadi_Monitor(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Akonadi_Monitor(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipAkonadi_Monitor *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipAkonadi_Monitor(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Akonadi_Monitor[] = {{111, 0, 1}};


static PyMethodDef methods_Akonadi_Monitor[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Akonadi_Monitor_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collectionsMonitored), meth_Akonadi_Monitor_collectionsMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Akonadi_Monitor_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Akonadi_Monitor_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Akonadi_Monitor_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchCollection), meth_Akonadi_Monitor_fetchCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fetchCollectionStatistics), meth_Akonadi_Monitor_fetchCollectionStatistics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoreSession), meth_Akonadi_Monitor_ignoreSession, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAllMonitored), meth_Akonadi_Monitor_isAllMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_itemFetchScope), meth_Akonadi_Monitor_itemFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypesMonitored), meth_Akonadi_Monitor_mimeTypesMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Akonadi_Monitor_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourcesMonitored), meth_Akonadi_Monitor_resourcesMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllMonitored), meth_Akonadi_Monitor_setAllMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCollectionMonitored), meth_Akonadi_Monitor_setCollectionMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemFetchScope), meth_Akonadi_Monitor_setItemFetchScope, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItemMonitored), meth_Akonadi_Monitor_setItemMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeTypeMonitored), meth_Akonadi_Monitor_setMimeTypeMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResourceMonitored), meth_Akonadi_Monitor_setResourceMonitored, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Akonadi_Monitor_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Akonadi_Monitor[] = {
    {"allMonitored(bool)", 0},
    {"mimeTypeMonitored(const QString&,bool)", 0},
    {"resourceMonitored(const QByteArray&,bool)", 0},
    {"itemMonitored(const Akonadi::Item&,bool)", 0},
    {"collectionMonitored(const Akonadi::Collection&,bool)", 0},
    {"collectionStatisticsChanged(Akonadi::Entity::Id,const Akonadi::CollectionStatistics&)", 0},
    {"collectionRemoved(const Akonadi::Collection&)", 0},
    {"collectionChanged(const Akonadi::Collection&)", 0},
    {"collectionAdded(const Akonadi::Collection&,const Akonadi::Collection&)", 0},
    {"itemUnlinked(const Akonadi::Item&,const Akonadi::Collection&)", 0},
    {"itemLinked(const Akonadi::Item&,const Akonadi::Collection&)", 0},
    {"itemRemoved(const Akonadi::Item&)", 0},
    {"itemAdded(const Akonadi::Item&,const Akonadi::Collection&)", 0},
    {"itemMoved(const Akonadi::Item&,const Akonadi::Collection&,const Akonadi::Collection&)", 0},
    {"itemChanged(const Akonadi::Item&,const QSet<QByteArray>&)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_akonadi_Akonadi_Monitor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Akonadi__Monitor,
        {0}
    },
    sipNameNr_Monitor,
    -1,
    -1,
    {0, 255, 0},
    supers_Akonadi_Monitor,
    0,
    20, methods_Akonadi_Monitor,
    0, 0,
    0, 0,
    init_Akonadi_Monitor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Akonadi_Monitor,
    release_Akonadi_Monitor,
    cast_Akonadi_Monitor,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Akonadi::Monitor::staticMetaObject,
    0,
    pyqt4_signals_Akonadi_Monitor
};
