/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:38:33 2011
 */

#include "sipAPIkparts.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/mainwindow.sip"
#include <kparts/mainwindow.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguiwindow.sip"
#include <kxmlguiwindow.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 426 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/ktoolbar.sip"
#include <ktoolbar.h>
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kmainwindow.sip"
#include <kmainwindow.h>
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kstatusbar.sip"
#include <kstatusbar.h>
#line 67 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kmenubar.sip"
#include <kmenubar.h>
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kmenu.sip"
#include <kmenu.h>
#line 73 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 76 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 82 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qtabwidget.sip"
#include <qtabwidget.h>
#line 85 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 88 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qtoolbar.sip"
#include <qtoolbar.h>
#line 91 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qmainwindow.sip"
#include <qmainwindow.h>
#line 94 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 97 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 470 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qmenu.sip"
#include <qmenu.h>
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qstatusbar.sip"
#include <qstatusbar.h>
#line 109 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qmenubar.sip"
#include <qmenubar.h>
#line 112 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 115 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 118 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 121 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 124 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 33 "/usr/local/share/py-sip/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 139 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 145 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 148 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 151 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 154 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 157 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 160 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 499 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 163 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 459 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 166 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 448 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 169 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 542 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 172 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 593 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 175 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 566 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 178 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 582 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 181 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 645 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 291 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 187 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 413 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 190 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 400 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 193 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 386 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 196 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 367 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 199 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 339 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 202 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 270 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 205 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 231 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 208 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 211 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 61 "/usr/local/share/py-sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 214 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 217 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 220 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qlayout.sip"
#include <qlayout.h>
#line 223 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 226 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 229 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 232 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 235 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 238 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 241 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 244 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 247 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 250 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 253 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 256 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 259 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 262 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 265 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 268 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 325 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 271 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 274 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 277 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 206 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 280 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 283 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 286 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 289 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 292 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"


class sipKParts_MainWindow : public KParts::MainWindow
{
public:
    sipKParts_MainWindow(QWidget *,Qt::WindowFlags);
    sipKParts_MainWindow(QWidget *,const char *,Qt::WindowFlags);
    virtual ~sipKParts_MainWindow();

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

    /* Expose this protected enum. */
    enum sipPluginLoadingMode {
        DoNotLoadPlugins = KParts::PartBase::DoNotLoadPlugins,
        LoadPlugins = KParts::PartBase::LoadPlugins,
        LoadPluginsIfEnabled = KParts::PartBase::LoadPluginsIfEnabled
    };

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_loadPlugins(QObject *,KXMLGUIClient *,const KComponentData&);
    void sipProtect_setPluginInterfaceVersion(int);
    void sipProtectVirt_setComponentData(bool,const KComponentData&);
    void sipProtectVirt_setXMLFile(bool,const QString&,bool,bool);
    void sipProtectVirt_setLocalXMLFile(bool,const QString&);
    void sipProtectVirt_setXML(bool,const QString&,bool);
    void sipProtectVirt_setDOMDocument(bool,const QDomDocument&,bool);
    void sipProtectVirt_stateChanged(bool,const QString&,KXMLGUIClient::ReverseStateChange);
    void sipProtect_loadStandardsXmlFile();
    QObject * sipProtect_sender() const;
    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 *);
    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_keyPressEvent(bool,QKeyEvent *);
    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_resizeEvent(bool,QResizeEvent *);
    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_showEvent(bool,QShowEvent *);
    void sipProtectVirt_hideEvent(bool,QHideEvent *);
    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_contextMenuEvent(bool,QContextMenuEvent *);
    void sipProtectVirt_closeEvent(bool,QCloseEvent *);
    bool sipProtectVirt_queryExit(bool);
    bool sipProtectVirt_queryClose(bool);
    void sipProtectVirt_saveProperties(bool,KConfigGroup&);
    void sipProtectVirt_readProperties(bool,const KConfigGroup&);
    void sipProtectVirt_saveGlobalProperties(bool,KConfig *);
    void sipProtectVirt_readGlobalProperties(bool,KConfig *);
    void sipProtect_savePropertiesInternal(KConfig *,int);
    bool sipProtect_readPropertiesInternal(KConfig *,int);
    bool sipProtect_settingsDirty() const;
    void sipProtect_saveWindowSize(const KConfigGroup&) const;
    void sipProtect_restoreWindowSize(const KConfigGroup&);
    void sipProtect_parseGeometry(bool);
    void sipProtectVirt_showAboutApplication(bool);
    void sipProtect_saveAutoSaveSettings();
    bool sipProtectVirt_event(bool,QEvent *);
    void sipProtect_createGUI(KParts::Part *);
    void sipProtectVirt_slotSetStatusBarText(bool,const QString&);
    void sipProtectVirt_saveNewToolbarConfig(bool);
    void sipProtectVirt_createShellGUI(bool,bool);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void configureToolbars();
    void slotSetStatusBarText(const QString&);
    void createShellGUI(bool);
    KXMLGUIFactory * guiFactory();
    void finalizeGUI(KXMLGUIClient *);
    void applyMainWindowSettings(const KConfigGroup&,bool);
    void slotStateChanged(const QString&);
    bool event(QEvent *);
    void saveNewToolbarConfig();
    void setCaption(const QString&);
    void setCaption(const QString&,bool);
    void setPlainCaption(const QString&);
    void closeEvent(QCloseEvent *);
    bool queryExit();
    bool queryClose();
    void saveProperties(KConfigGroup&);
    void readProperties(const KConfigGroup&);
    void saveGlobalProperties(KConfig *);
    void readGlobalProperties(KConfig *);
    void showAboutApplication();
    QMenu * createPopupMenu();
    void contextMenuEvent(QContextMenuEvent *);
    int devType() const;
    void setVisible(bool);
    QSize sizeHint() const;
    QSize minimumSizeHint() const;
    int heightForWidth(int) const;
    QPaintEngine * paintEngine() const;
    void mousePressEvent(QMouseEvent *);
    void mouseReleaseEvent(QMouseEvent *);
    void mouseDoubleClickEvent(QMouseEvent *);
    void mouseMoveEvent(QMouseEvent *);
    void wheelEvent(QWheelEvent *);
    void keyPressEvent(QKeyEvent *);
    void keyReleaseEvent(QKeyEvent *);
    void focusInEvent(QFocusEvent *);
    void focusOutEvent(QFocusEvent *);
    void enterEvent(QEvent *);
    void leaveEvent(QEvent *);
    void paintEvent(QPaintEvent *);
    void moveEvent(QMoveEvent *);
    void resizeEvent(QResizeEvent *);
    void tabletEvent(QTabletEvent *);
    void actionEvent(QActionEvent *);
    void dragEnterEvent(QDragEnterEvent *);
    void dragMoveEvent(QDragMoveEvent *);
    void dragLeaveEvent(QDragLeaveEvent *);
    void dropEvent(QDropEvent *);
    void showEvent(QShowEvent *);
    void hideEvent(QHideEvent *);
    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();
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    QStringList containerTags() const;
    QWidget * createContainer(QWidget *,int,const QDomElement&,QAction *&);
    void removeContainer(QWidget *,QWidget *,QDomElement&,QAction *);
    QStringList customTags() const;
    QAction * createCustomElement(QWidget *,int,const QDomElement&);
    void removeCustomElement(QWidget *,QAction *);
    QAction * action(const QDomElement&) const;
    KActionCollection * actionCollection() const;
    KComponentData componentData() const;
    QDomDocument domDocument() const;
    QString xmlFile() const;
    QString localXMLFile() const;
    void setComponentData(const KComponentData&);
    void setXMLFile(const QString&,bool,bool);
    void setLocalXMLFile(const QString&);
    void setXML(const QString&,bool);
    void setDOMDocument(const QDomDocument&,bool);
    void stateChanged(const QString&,KXMLGUIClient::ReverseStateChange);
    void setComponentData(const KComponentData&,bool);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[85];
};

sipKParts_MainWindow::sipKParts_MainWindow(QWidget *a0,Qt::WindowFlags a1): KParts::MainWindow(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_MainWindow::sipKParts_MainWindow(QWidget *a0,const char *a1,Qt::WindowFlags a2): KParts::MainWindow(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_MainWindow::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_MainWindow);
}

int sipKParts_MainWindow::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::MainWindow::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_MainWindow,_c,_id,_a);

    return _id;
}

void *sipKParts_MainWindow::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_MainWindow,_clname)) ? this : KParts::MainWindow::qt_metacast(_clname);
}

void sipKParts_MainWindow::configureToolbars()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::MainWindow::configureToolbars();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_kparts_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKParts_MainWindow::slotSetStatusBarText(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::MainWindow::slotSetStatusBarText(a0);
        return;
    }

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

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::createShellGUI(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::MainWindow::createShellGUI(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_kparts_QtNetwork->em_virthandlers[1]))(sipGILState,sipMeth,a0);
}

KXMLGUIFactory * sipKParts_MainWindow::guiFactory()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXmlGuiWindow::guiFactory();

    typedef KXMLGUIFactory * (*sipVH_kdeui_12)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_12)(sipModuleAPI_kparts_kdeui->em_virthandlers[12]))(sipGILState,sipMeth);
}

void sipKParts_MainWindow::finalizeGUI(KXMLGUIClient *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXmlGuiWindow::finalizeGUI(a0);
        return;
    }

    typedef void (*sipVH_kdeui_11)(sip_gilstate_t,PyObject *,KXMLGUIClient *);

    ((sipVH_kdeui_11)(sipModuleAPI_kparts_kdeui->em_virthandlers[11]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::applyMainWindowSettings(const KConfigGroup& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXmlGuiWindow::applyMainWindowSettings(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_10)(sip_gilstate_t,PyObject *,const KConfigGroup&,bool);

    ((sipVH_kdeui_10)(sipModuleAPI_kparts_kdeui->em_virthandlers[10]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_MainWindow::slotStateChanged(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXmlGuiWindow::slotStateChanged(a0);
        return;
    }

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

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return KXmlGuiWindow::event(a0);

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

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

void sipKParts_MainWindow::saveNewToolbarConfig()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::MainWindow::saveNewToolbarConfig();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_kparts_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

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

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

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

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

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

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

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

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

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

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

void sipKParts_MainWindow::setPlainCaption(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::closeEvent(QCloseEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KMainWindow::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_22)(sip_gilstate_t,PyObject *,QCloseEvent *);

    ((sipVH_QtGui_22)(sipModuleAPI_kparts_QtGui->em_virthandlers[22]))(sipGILState,sipMeth,a0);
}

bool sipKParts_MainWindow::queryExit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KMainWindow::queryExit();

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

    return ((sipVH_QtCore_7)(sipModuleAPI_kparts_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKParts_MainWindow::queryClose()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KMainWindow::queryClose();

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

    return ((sipVH_QtCore_7)(sipModuleAPI_kparts_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

void sipKParts_MainWindow::saveProperties(KConfigGroup& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KMainWindow::saveProperties(a0);
        return;
    }

    typedef void (*sipVH_kdeui_67)(sip_gilstate_t,PyObject *,KConfigGroup&);

    ((sipVH_kdeui_67)(sipModuleAPI_kparts_kdeui->em_virthandlers[67]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::readProperties(const KConfigGroup& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KMainWindow::readProperties(a0);
        return;
    }

    typedef void (*sipVH_kdeui_66)(sip_gilstate_t,PyObject *,const KConfigGroup&);

    ((sipVH_kdeui_66)(sipModuleAPI_kparts_kdeui->em_virthandlers[66]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::saveGlobalProperties(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KMainWindow::saveGlobalProperties(a0);
        return;
    }

    typedef void (*sipVH_kdecore_35)(sip_gilstate_t,PyObject *,KConfig *);

    ((sipVH_kdecore_35)(sipModuleAPI_kparts_kdecore->em_virthandlers[35]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::readGlobalProperties(KConfig *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KMainWindow::readGlobalProperties(a0);
        return;
    }

    typedef void (*sipVH_kdecore_35)(sip_gilstate_t,PyObject *,KConfig *);

    ((sipVH_kdecore_35)(sipModuleAPI_kparts_kdecore->em_virthandlers[35]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::showAboutApplication()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KMainWindow::showAboutApplication();
        return;
    }

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

    ((sipVH_QtCore_11)(sipModuleAPI_kparts_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

QMenu * sipKParts_MainWindow::createPopupMenu()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QMainWindow::createPopupMenu();

    typedef QMenu * (*sipVH_QtGui_147)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtGui_147)(sipModuleAPI_kparts_QtGui->em_virthandlers[147]))(sipGILState,sipMeth);
}

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

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

    if (!sipMeth)
    {
        QMainWindow::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_21)(sip_gilstate_t,PyObject *,QContextMenuEvent *);

    ((sipVH_QtGui_21)(sipModuleAPI_kparts_QtGui->em_virthandlers[21]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    return ((sipVH_QtCore_6)(sipModuleAPI_kparts_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

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

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

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

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

    ((sipVH_QtGui_6)(sipModuleAPI_kparts_QtGui->em_virthandlers[6]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return QWidget::sizeHint();

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

    return ((sipVH_QtGui_4)(sipModuleAPI_kparts_QtGui->em_virthandlers[4]))(sipGILState,sipMeth);
}

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

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

    if (!sipMeth)
        return QWidget::minimumSizeHint();

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

    return ((sipVH_QtGui_4)(sipModuleAPI_kparts_QtGui->em_virthandlers[4]))(sipGILState,sipMeth);
}

int sipKParts_MainWindow::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

    typedef QPaintEngine * (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtGui_27)(sipModuleAPI_kparts_QtGui->em_virthandlers[27]))(sipGILState,sipMeth);
}

void sipKParts_MainWindow::mousePressEvent(QMouseEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtGui_26)(sipModuleAPI_kparts_QtGui->em_virthandlers[26]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    ((sipVH_QtGui_26)(sipModuleAPI_kparts_QtGui->em_virthandlers[26]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::mouseDoubleClickEvent(QMouseEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtGui_26)(sipModuleAPI_kparts_QtGui->em_virthandlers[26]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    ((sipVH_QtGui_26)(sipModuleAPI_kparts_QtGui->em_virthandlers[26]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    ((sipVH_QtGui_5)(sipModuleAPI_kparts_QtGui->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        QWidget::keyPressEvent(a0);
        return;
    }

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

    ((sipVH_QtGui_25)(sipModuleAPI_kparts_QtGui->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::keyReleaseEvent(QKeyEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtGui_25)(sipModuleAPI_kparts_QtGui->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::focusInEvent(QFocusEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t,PyObject *,QFocusEvent *);

    ((sipVH_QtGui_24)(sipModuleAPI_kparts_QtGui->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::focusOutEvent(QFocusEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t,PyObject *,QFocusEvent *);

    ((sipVH_QtGui_24)(sipModuleAPI_kparts_QtGui->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::enterEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::paintEvent(QPaintEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtGui_3)(sipModuleAPI_kparts_QtGui->em_virthandlers[3]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::moveEvent(QMoveEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtGui_23)(sip_gilstate_t,PyObject *,QMoveEvent *);

    ((sipVH_QtGui_23)(sipModuleAPI_kparts_QtGui->em_virthandlers[23]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::resizeEvent(QResizeEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QWidget::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t,PyObject *,QResizeEvent *);

    ((sipVH_QtGui_2)(sipModuleAPI_kparts_QtGui->em_virthandlers[2]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::tabletEvent(QTabletEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtGui_20)(sip_gilstate_t,PyObject *,QTabletEvent *);

    ((sipVH_QtGui_20)(sipModuleAPI_kparts_QtGui->em_virthandlers[20]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtGui_19)(sip_gilstate_t,PyObject *,QActionEvent *);

    ((sipVH_QtGui_19)(sipModuleAPI_kparts_QtGui->em_virthandlers[19]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    ((sipVH_QtGui_18)(sipModuleAPI_kparts_QtGui->em_virthandlers[18]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    ((sipVH_QtGui_17)(sipModuleAPI_kparts_QtGui->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::dragLeaveEvent(QDragLeaveEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtGui_16)(sip_gilstate_t,PyObject *,QDragLeaveEvent *);

    ((sipVH_QtGui_16)(sipModuleAPI_kparts_QtGui->em_virthandlers[16]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::dropEvent(QDropEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtGui_15)(sip_gilstate_t,PyObject *,QDropEvent *);

    ((sipVH_QtGui_15)(sipModuleAPI_kparts_QtGui->em_virthandlers[15]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::showEvent(QShowEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QWidget::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_1)(sip_gilstate_t,PyObject *,QShowEvent *);

    ((sipVH_QtGui_1)(sipModuleAPI_kparts_QtGui->em_virthandlers[1]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::hideEvent(QHideEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QWidget::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t,PyObject *,QHideEvent *);

    ((sipVH_QtGui_0)(sipModuleAPI_kparts_QtGui->em_virthandlers[0]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef int (*sipVH_QtGui_14)(sip_gilstate_t,PyObject *,QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_14)(sipModuleAPI_kparts_QtGui->em_virthandlers[14]))(sipGILState,sipMeth,a0);
}

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

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

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

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

    ((sipVH_QtGui_13)(sipModuleAPI_kparts_QtGui->em_virthandlers[13]))(sipGILState,sipMeth,a0);
}

QVariant sipKParts_MainWindow::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef QVariant (*sipVH_QtGui_12)(sip_gilstate_t,PyObject *,Qt::InputMethodQuery);

    return ((sipVH_QtGui_12)(sipModuleAPI_kparts_QtGui->em_virthandlers[12]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef bool (*sipVH_QtGui_11)(sip_gilstate_t,PyObject *,bool);

    return ((sipVH_QtGui_11)(sipModuleAPI_kparts_QtGui->em_virthandlers[11]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtGui_6)(sipModuleAPI_kparts_QtGui->em_virthandlers[6]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtGui_10)(sip_gilstate_t,PyObject *,const QPalette&);

    ((sipVH_QtGui_10)(sipModuleAPI_kparts_QtGui->em_virthandlers[10]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t,PyObject *,const QFont&);

    ((sipVH_QtGui_9)(sipModuleAPI_kparts_QtGui->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtGui_6)(sipModuleAPI_kparts_QtGui->em_virthandlers[6]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_11)(sipModuleAPI_kparts_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

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

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

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_MainWindow::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_kparts_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_kparts_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QStringList sipKParts_MainWindow::containerTags() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIBuilder::containerTags();

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

    return ((sipVH_QtCore_27)(sipModuleAPI_kparts_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

QWidget * sipKParts_MainWindow::createContainer(QWidget *a0,int a1,const QDomElement& a2,QAction *&a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[67],sipPySelf,NULL,sipName_createContainer);

    if (!sipMeth)
        return KXMLGUIBuilder::createContainer(a0,a1,a2,a3);

    typedef QWidget * (*sipVH_kdeui_24)(sip_gilstate_t,PyObject *,QWidget *,int,const QDomElement&,QAction *&);

    return ((sipVH_kdeui_24)(sipModuleAPI_kparts_kdeui->em_virthandlers[24]))(sipGILState,sipMeth,a0,a1,a2,a3);
}

void sipKParts_MainWindow::removeContainer(QWidget *a0,QWidget *a1,QDomElement& a2,QAction *a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXMLGUIBuilder::removeContainer(a0,a1,a2,a3);
        return;
    }

    typedef void (*sipVH_kdeui_23)(sip_gilstate_t,PyObject *,QWidget *,QWidget *,QDomElement&,QAction *);

    ((sipVH_kdeui_23)(sipModuleAPI_kparts_kdeui->em_virthandlers[23]))(sipGILState,sipMeth,a0,a1,a2,a3);
}

QStringList sipKParts_MainWindow::customTags() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIBuilder::customTags();

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

    return ((sipVH_QtCore_27)(sipModuleAPI_kparts_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

QAction * sipKParts_MainWindow::createCustomElement(QWidget *a0,int a1,const QDomElement& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIBuilder::createCustomElement(a0,a1,a2);

    typedef QAction * (*sipVH_kdeui_22)(sip_gilstate_t,PyObject *,QWidget *,int,const QDomElement&);

    return ((sipVH_kdeui_22)(sipModuleAPI_kparts_kdeui->em_virthandlers[22]))(sipGILState,sipMeth,a0,a1,a2);
}

void sipKParts_MainWindow::removeCustomElement(QWidget *a0,QAction *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXMLGUIBuilder::removeCustomElement(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_21)(sip_gilstate_t,PyObject *,QWidget *,QAction *);

    ((sipVH_kdeui_21)(sipModuleAPI_kparts_kdeui->em_virthandlers[21]))(sipGILState,sipMeth,a0,a1);
}

QAction * sipKParts_MainWindow::action(const QDomElement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXmlGuiWindow::action(a0);

    typedef QAction * (*sipVH_kdeui_20)(sip_gilstate_t,PyObject *,const QDomElement&);

    return ((sipVH_kdeui_20)(sipModuleAPI_kparts_kdeui->em_virthandlers[20]))(sipGILState,sipMeth,a0);
}

KActionCollection * sipKParts_MainWindow::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXmlGuiWindow::actionCollection();

    typedef KActionCollection * (*sipVH_kdeui_19)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_19)(sipModuleAPI_kparts_kdeui->em_virthandlers[19]))(sipGILState,sipMeth);
}

KComponentData sipKParts_MainWindow::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXmlGuiWindow::componentData();

    typedef KComponentData (*sipVH_kdeui_18)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_18)(sipModuleAPI_kparts_kdeui->em_virthandlers[18]))(sipGILState,sipMeth);
}

QDomDocument sipKParts_MainWindow::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXmlGuiWindow::domDocument();

    typedef QDomDocument (*sipVH_kdeui_17)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_17)(sipModuleAPI_kparts_kdeui->em_virthandlers[17]))(sipGILState,sipMeth);
}

QString sipKParts_MainWindow::xmlFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXmlGuiWindow::xmlFile();

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

    return ((sipVH_QtCore_62)(sipModuleAPI_kparts_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

QString sipKParts_MainWindow::localXMLFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXmlGuiWindow::localXMLFile();

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

    return ((sipVH_QtCore_62)(sipModuleAPI_kparts_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

void sipKParts_MainWindow::setComponentData(const KComponentData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXmlGuiWindow::setComponentData(a0);
        return;
    }

    typedef void (*sipVH_kdeui_16)(sip_gilstate_t,PyObject *,const KComponentData&);

    ((sipVH_kdeui_16)(sipModuleAPI_kparts_kdeui->em_virthandlers[16]))(sipGILState,sipMeth,a0);
}

void sipKParts_MainWindow::setXMLFile(const QString& a0,bool a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXmlGuiWindow::setXMLFile(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdeui_15)(sip_gilstate_t,PyObject *,const QString&,bool,bool);

    ((sipVH_kdeui_15)(sipModuleAPI_kparts_kdeui->em_virthandlers[15]))(sipGILState,sipMeth,a0,a1,a2);
}

void sipKParts_MainWindow::setLocalXMLFile(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXmlGuiWindow::setLocalXMLFile(a0);
        return;
    }

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

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        KXmlGuiWindow::setXML(a0,a1);
        return;
    }

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

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

void sipKParts_MainWindow::setDOMDocument(const QDomDocument& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXmlGuiWindow::setDOMDocument(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_14)(sip_gilstate_t,PyObject *,const QDomDocument&,bool);

    ((sipVH_kdeui_14)(sipModuleAPI_kparts_kdeui->em_virthandlers[14]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_MainWindow::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXmlGuiWindow::stateChanged(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_13)(sip_gilstate_t,PyObject *,const QString&,KXMLGUIClient::ReverseStateChange);

    ((sipVH_kdeui_13)(sipModuleAPI_kparts_kdeui->em_virthandlers[13]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_MainWindow::setComponentData(const KComponentData& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::PartBase::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_kparts_22(sip_gilstate_t,PyObject *,const KComponentData&,bool);

    sipVH_kparts_22(sipGILState,sipMeth,a0,a1);
}

void sipKParts_MainWindow::sipProtect_loadPlugins(QObject *a0,KXMLGUIClient *a1,const KComponentData& a2)
{
    KParts::PartBase::loadPlugins(a0,a1,a2);
}

void sipKParts_MainWindow::sipProtect_setPluginInterfaceVersion(int a0)
{
    KParts::PartBase::setPluginInterfaceVersion(a0);
}

void sipKParts_MainWindow::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0)
{
    (sipSelfWasArg ? KXMLGUIClient::setComponentData(a0) : setComponentData(a0));
}

void sipKParts_MainWindow::sipProtectVirt_setXMLFile(bool sipSelfWasArg,const QString& a0,bool a1,bool a2)
{
    (sipSelfWasArg ? KXMLGUIClient::setXMLFile(a0,a1,a2) : setXMLFile(a0,a1,a2));
}

void sipKParts_MainWindow::sipProtectVirt_setLocalXMLFile(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KXMLGUIClient::setLocalXMLFile(a0) : setLocalXMLFile(a0));
}

void sipKParts_MainWindow::sipProtectVirt_setXML(bool sipSelfWasArg,const QString& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setXML(a0,a1) : setXML(a0,a1));
}

void sipKParts_MainWindow::sipProtectVirt_setDOMDocument(bool sipSelfWasArg,const QDomDocument& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setDOMDocument(a0,a1) : setDOMDocument(a0,a1));
}

void sipKParts_MainWindow::sipProtectVirt_stateChanged(bool sipSelfWasArg,const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    (sipSelfWasArg ? KXMLGUIClient::stateChanged(a0,a1) : stateChanged(a0,a1));
}

void sipKParts_MainWindow::sipProtect_loadStandardsXmlFile()
{
    KXMLGUIClient::loadStandardsXmlFile();
}

QObject * sipKParts_MainWindow::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

bool sipKParts_MainWindow::sipProtectVirt_queryExit(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KMainWindow::queryExit() : queryExit());
}

bool sipKParts_MainWindow::sipProtectVirt_queryClose(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KMainWindow::queryClose() : queryClose());
}

void sipKParts_MainWindow::sipProtectVirt_saveProperties(bool sipSelfWasArg,KConfigGroup& a0)
{
    (sipSelfWasArg ? KMainWindow::saveProperties(a0) : saveProperties(a0));
}

void sipKParts_MainWindow::sipProtectVirt_readProperties(bool sipSelfWasArg,const KConfigGroup& a0)
{
    (sipSelfWasArg ? KMainWindow::readProperties(a0) : readProperties(a0));
}

void sipKParts_MainWindow::sipProtectVirt_saveGlobalProperties(bool sipSelfWasArg,KConfig *a0)
{
    (sipSelfWasArg ? KMainWindow::saveGlobalProperties(a0) : saveGlobalProperties(a0));
}

void sipKParts_MainWindow::sipProtectVirt_readGlobalProperties(bool sipSelfWasArg,KConfig *a0)
{
    (sipSelfWasArg ? KMainWindow::readGlobalProperties(a0) : readGlobalProperties(a0));
}

void sipKParts_MainWindow::sipProtect_savePropertiesInternal(KConfig *a0,int a1)
{
    KMainWindow::savePropertiesInternal(a0,a1);
}

bool sipKParts_MainWindow::sipProtect_readPropertiesInternal(KConfig *a0,int a1)
{
    return KMainWindow::readPropertiesInternal(a0,a1);
}

bool sipKParts_MainWindow::sipProtect_settingsDirty() const
{
    return KMainWindow::settingsDirty();
}

void sipKParts_MainWindow::sipProtect_saveWindowSize(const KConfigGroup& a0) const
{
    KMainWindow::saveWindowSize(a0);
}

void sipKParts_MainWindow::sipProtect_restoreWindowSize(const KConfigGroup& a0)
{
    KMainWindow::restoreWindowSize(a0);
}

void sipKParts_MainWindow::sipProtect_parseGeometry(bool a0)
{
    KMainWindow::parseGeometry(a0);
}

void sipKParts_MainWindow::sipProtectVirt_showAboutApplication(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KMainWindow::showAboutApplication() : showAboutApplication());
}

void sipKParts_MainWindow::sipProtect_saveAutoSaveSettings()
{
    KMainWindow::saveAutoSaveSettings();
}

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

void sipKParts_MainWindow::sipProtect_createGUI(KParts::Part *a0)
{
    KParts::MainWindow::createGUI(a0);
}

void sipKParts_MainWindow::sipProtectVirt_slotSetStatusBarText(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KParts::MainWindow::slotSetStatusBarText(a0) : slotSetStatusBarText(a0));
}

void sipKParts_MainWindow::sipProtectVirt_saveNewToolbarConfig(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KParts::MainWindow::saveNewToolbarConfig() : saveNewToolbarConfig());
}

void sipKParts_MainWindow::sipProtectVirt_createShellGUI(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? KParts::MainWindow::createShellGUI(a0) : createShellGUI(a0));
}


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

    {
        QObject * a0;
        KXMLGUIClient * a1;
        const KComponentData * a2;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:J8J9", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_QObject, &a0, sipType_KXMLGUIClient, &a1, sipType_KComponentData, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_loadPlugins(a0,a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_MainWindow, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPluginInterfaceVersion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        bool a2 = 1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|bb", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_QString,&a0, &a0State, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXMLFile(sipSelfWasArg,*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXML(sipSelfWasArg,*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(sipParseErr, sipName_MainWindow, sipName_setXML, NULL);

    return NULL;
}


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

    {
        const QDomDocument * a0;
        bool a1 = 0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_QDomDocument, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setDOMDocument(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KXMLGUIClient::ReverseStateChange a1 = KXMLGUIClient::StateNoReverse;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_QString,&a0, &a0State, sipType_KXMLGUIClient_ReverseStateChange, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_stateChanged(sipSelfWasArg,*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(sipParseErr, sipName_MainWindow, sipName_stateChanged, NULL);

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 2646 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_MainWindow, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 2688 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_mousePressEvent, NULL);

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_mouseReleaseEvent, NULL);

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_mouseDoubleClickEvent, NULL);

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_mouseMoveEvent, NULL);

    return NULL;
}


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

    {
        QWheelEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_wheelEvent, NULL);

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_keyPressEvent, NULL);

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_keyReleaseEvent, NULL);

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_focusInEvent, NULL);

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_focusOutEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_enterEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_leaveEvent, NULL);

    return NULL;
}


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

    {
        QPaintEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_paintEvent, NULL);

    return NULL;
}


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

    {
        QMoveEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_moveEvent, NULL);

    return NULL;
}


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

    {
        QResizeEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_resizeEvent, NULL);

    return NULL;
}


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

    {
        QTabletEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_tabletEvent, NULL);

    return NULL;
}


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

    {
        QActionEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_actionEvent, NULL);

    return NULL;
}


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

    {
        QDragEnterEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_dragEnterEvent, NULL);

    return NULL;
}


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

    {
        QDragMoveEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_dragMoveEvent, NULL);

    return NULL;
}


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

    {
        QDragLeaveEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_dragLeaveEvent, NULL);

    return NULL;
}


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

    {
        QDropEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_dropEvent, NULL);

    return NULL;
}


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

    {
        QShowEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_showEvent, NULL);

    return NULL;
}


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

    {
        QHideEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_hideEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_changeEvent, NULL);

    return NULL;
}


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

    {
        QPaintDevice::PaintDeviceMetric a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_metric, NULL);

    return NULL;
}


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

    {
        QInputMethodEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_inputMethodEvent, NULL);

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_resetInputContext, NULL);

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_updateMicroFocus, NULL);

    return NULL;
}


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

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

        static const char *sipKwdList[] = {
            sipName_window,
            sipName_initializeWindow,
            sipName_destroyOldWindow,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|mbb", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_create, NULL);

    return NULL;
}


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

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

        static const char *sipKwdList[] = {
            sipName_destroyWindow,
            sipName_destroySubWindows,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_destroy, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_focusNextPrevChild, NULL);

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_focusNextChild, NULL);

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_focusPreviousChild, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_enabledChange, NULL);

    return NULL;
}


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

    {
        const QPalette * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_paletteChange, NULL);

    return NULL;
}


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

    {
        const QFont * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_fontChange, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_windowActivationChange, NULL);

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_languageChange, NULL);

    return NULL;
}


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

    {
        QContextMenuEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_contextMenuEvent, NULL);

    return NULL;
}


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

    {
        QCloseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_closeEvent, NULL);

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KConfigGroup * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_saveProperties(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KConfigGroup * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_readProperties(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KConfig * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_saveGlobalProperties(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KConfig * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KConfig, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_readGlobalProperties(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KConfig * a0;
        int a1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8i", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KConfig, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_savePropertiesInternal(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KConfig * a0;
        int a1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8i", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KConfig, &a0, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_settingsDirty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KConfigGroup * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_saveWindowSize(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KConfigGroup * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KConfigGroup, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_restoreWindowSize(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KParts_MainWindow, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_parseGeometry(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_showAboutApplication(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &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(sipParseErr, sipName_MainWindow, sipName_event, NULL);

    return NULL;
}


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

    {
        KParts::MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::MainWindow::configureToolbars() : sipCpp->configureToolbars());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::Part * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KParts_Part, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_createGUI(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_MainWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_saveNewToolbarConfig(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0 = 1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_KParts_MainWindow, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_createShellGUI(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_MainWindow)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KXmlGuiWindow)->ctd_cast((KXmlGuiWindow *)(KParts::MainWindow *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_PartBase)->ctd_cast((KParts::PartBase *)(KParts::MainWindow *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_MainWindow *>(sipCppV);
    else
        delete reinterpret_cast<KParts::MainWindow *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QWidget * a0 = 0;
        Qt::WindowFlags a1def = 0;
        Qt::WindowFlags * a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JHJ1", sipType_QWidget, &a0, sipOwner, sipType_Qt_WindowFlags, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_MainWindow(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_Qt_WindowFlags,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QWidget * a0;
        const char * a1 = 0;
        PyObject *a1Keep = 0;
        Qt::WindowFlags a2def = 0;
        Qt::WindowFlags * a2 = &a2def;
        int a2State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH|AAJ1", sipType_QWidget, &a0, sipOwner, &a1Keep, &a1, sipType_Qt_WindowFlags, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_MainWindow(a0,a1,*a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);
            sipReleaseType(a2,sipType_Qt_WindowFlags,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KParts_MainWindow[] = {{362, 7, 0}, {30, 255, 1}};


static PyMethodDef methods_KParts_MainWindow[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), meth_KParts_MainWindow_actionEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_KParts_MainWindow_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_MainWindow_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_KParts_MainWindow_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configureToolbars), meth_KParts_MainWindow_configureToolbars, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_MainWindow_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_KParts_MainWindow_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_KParts_MainWindow_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_createGUI), meth_KParts_MainWindow_createGUI, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createShellGUI), meth_KParts_MainWindow_createShellGUI, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_MainWindow_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_KParts_MainWindow_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_MainWindow_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_KParts_MainWindow_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_KParts_MainWindow_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_KParts_MainWindow_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_KParts_MainWindow_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enabledChange), meth_KParts_MainWindow_enabledChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), meth_KParts_MainWindow_enterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_KParts_MainWindow_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_KParts_MainWindow_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), meth_KParts_MainWindow_focusNextChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_KParts_MainWindow_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_KParts_MainWindow_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), meth_KParts_MainWindow_focusPreviousChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontChange), meth_KParts_MainWindow_fontChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_KParts_MainWindow_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_KParts_MainWindow_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_KParts_MainWindow_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_KParts_MainWindow_keyReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageChange), meth_KParts_MainWindow_languageChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), meth_KParts_MainWindow_leaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_MainWindow_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadStandardsXmlFile), meth_KParts_MainWindow_loadStandardsXmlFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), meth_KParts_MainWindow_metric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), meth_KParts_MainWindow_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_KParts_MainWindow_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_KParts_MainWindow_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_KParts_MainWindow_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_KParts_MainWindow_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), meth_KParts_MainWindow_paintEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paletteChange), meth_KParts_MainWindow_paletteChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseGeometry), meth_KParts_MainWindow_parseGeometry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryClose), meth_KParts_MainWindow_queryClose, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryExit), meth_KParts_MainWindow_queryExit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readGlobalProperties), meth_KParts_MainWindow_readGlobalProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readProperties), meth_KParts_MainWindow_readProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readPropertiesInternal), meth_KParts_MainWindow_readPropertiesInternal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_MainWindow_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetInputContext), meth_KParts_MainWindow_resetInputContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), meth_KParts_MainWindow_resizeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_restoreWindowSize), meth_KParts_MainWindow_restoreWindowSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveAutoSaveSettings), meth_KParts_MainWindow_saveAutoSaveSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveGlobalProperties), meth_KParts_MainWindow_saveGlobalProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveNewToolbarConfig), meth_KParts_MainWindow_saveNewToolbarConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveProperties), meth_KParts_MainWindow_saveProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_savePropertiesInternal), meth_KParts_MainWindow_savePropertiesInternal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveWindowSize), meth_KParts_MainWindow_saveWindowSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_MainWindow_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_MainWindow_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDOMDocument), meth_KParts_MainWindow_setDOMDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalXMLFile), meth_KParts_MainWindow_setLocalXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginInterfaceVersion), meth_KParts_MainWindow_setPluginInterfaceVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXML), meth_KParts_MainWindow_setXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXMLFile), meth_KParts_MainWindow_setXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_settingsDirty), meth_KParts_MainWindow_settingsDirty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showAboutApplication), meth_KParts_MainWindow_showAboutApplication, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_KParts_MainWindow_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotSetStatusBarText), meth_KParts_MainWindow_slotSetStatusBarText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateChanged), meth_KParts_MainWindow_stateChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), meth_KParts_MainWindow_tabletEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_MainWindow_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_KParts_MainWindow_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_KParts_MainWindow_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowActivationChange), meth_KParts_MainWindow_windowActivationChange, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_MainWindow = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__MainWindow,
        {0}
    },
    {
        sipNameNr_MainWindow,
        {0, 255, 0},
        75, methods_KParts_MainWindow,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_MainWindow,
    0,
    init_KParts_MainWindow,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_MainWindow,
    0,
    0,
    0,
    release_KParts_MainWindow,
    cast_KParts_MainWindow,
    0,
    0,
    0
},
    &KParts::MainWindow::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4726 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4730 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 4733 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 4736 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4739 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 206 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 4742 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 4745 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 4748 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4751 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4754 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 4757 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 4760 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4763 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 4766 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 4769 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 325 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 4772 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"


class sipKParts_PartBase : public KParts::PartBase
{
public:
    sipKParts_PartBase();
    virtual ~sipKParts_PartBase();

    /* Expose this protected enum. */
    enum sipPluginLoadingMode {
        DoNotLoadPlugins = KParts::PartBase::DoNotLoadPlugins,
        LoadPlugins = KParts::PartBase::LoadPlugins,
        LoadPluginsIfEnabled = KParts::PartBase::LoadPluginsIfEnabled
    };

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtectVirt_setXMLFile(bool,const QString&,bool,bool);
    void sipProtectVirt_setLocalXMLFile(bool,const QString&);
    void sipProtectVirt_setXML(bool,const QString&,bool);
    void sipProtectVirt_setDOMDocument(bool,const QDomDocument&,bool);
    void sipProtectVirt_stateChanged(bool,const QString&,KXMLGUIClient::ReverseStateChange);
    void sipProtect_loadStandardsXmlFile();
    void sipProtectVirt_setComponentData(bool,const KComponentData&);
    void sipProtectVirt_setComponentData(bool,const KComponentData&,bool);
    void sipProtect_loadPlugins(QObject *,KXMLGUIClient *,const KComponentData&);
    void sipProtect_setPluginInterfaceVersion(int);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setComponentData(const KComponentData&);
    void setComponentData(const KComponentData&,bool);
    QAction * action(const QDomElement&) const;
    KActionCollection * actionCollection() const;
    KComponentData componentData() const;
    QDomDocument domDocument() const;
    QString xmlFile() const;
    QString localXMLFile() const;
    void setXMLFile(const QString&,bool,bool);
    void setLocalXMLFile(const QString&);
    void setXML(const QString&,bool);
    void setDOMDocument(const QDomDocument&,bool);
    void stateChanged(const QString&,KXMLGUIClient::ReverseStateChange);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[13];
};

sipKParts_PartBase::sipKParts_PartBase(): KParts::PartBase(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKParts_PartBase::setComponentData(const KComponentData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::PartBase::setComponentData(a0);
        return;
    }

    typedef void (*sipVH_kdeui_16)(sip_gilstate_t,PyObject *,const KComponentData&);

    ((sipVH_kdeui_16)(sipModuleAPI_kparts_kdeui->em_virthandlers[16]))(sipGILState,sipMeth,a0);
}

void sipKParts_PartBase::setComponentData(const KComponentData& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KParts::PartBase::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_kparts_22(sip_gilstate_t,PyObject *,const KComponentData&,bool);

    sipVH_kparts_22(sipGILState,sipMeth,a0,a1);
}

QAction * sipKParts_PartBase::action(const QDomElement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIClient::action(a0);

    typedef QAction * (*sipVH_kdeui_20)(sip_gilstate_t,PyObject *,const QDomElement&);

    return ((sipVH_kdeui_20)(sipModuleAPI_kparts_kdeui->em_virthandlers[20]))(sipGILState,sipMeth,a0);
}

KActionCollection * sipKParts_PartBase::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIClient::actionCollection();

    typedef KActionCollection * (*sipVH_kdeui_19)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_19)(sipModuleAPI_kparts_kdeui->em_virthandlers[19]))(sipGILState,sipMeth);
}

KComponentData sipKParts_PartBase::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIClient::componentData();

    typedef KComponentData (*sipVH_kdeui_18)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_18)(sipModuleAPI_kparts_kdeui->em_virthandlers[18]))(sipGILState,sipMeth);
}

QDomDocument sipKParts_PartBase::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIClient::domDocument();

    typedef QDomDocument (*sipVH_kdeui_17)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_17)(sipModuleAPI_kparts_kdeui->em_virthandlers[17]))(sipGILState,sipMeth);
}

QString sipKParts_PartBase::xmlFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIClient::xmlFile();

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

    return ((sipVH_QtCore_62)(sipModuleAPI_kparts_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

QString sipKParts_PartBase::localXMLFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KXMLGUIClient::localXMLFile();

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

    return ((sipVH_QtCore_62)(sipModuleAPI_kparts_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

void sipKParts_PartBase::setXMLFile(const QString& a0,bool a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXMLGUIClient::setXMLFile(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdeui_15)(sip_gilstate_t,PyObject *,const QString&,bool,bool);

    ((sipVH_kdeui_15)(sipModuleAPI_kparts_kdeui->em_virthandlers[15]))(sipGILState,sipMeth,a0,a1,a2);
}

void sipKParts_PartBase::setLocalXMLFile(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXMLGUIClient::setLocalXMLFile(a0);
        return;
    }

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

    ((sipVH_QtCore_33)(sipModuleAPI_kparts_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
    {
        KXMLGUIClient::setXML(a0,a1);
        return;
    }

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

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

void sipKParts_PartBase::setDOMDocument(const QDomDocument& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXMLGUIClient::setDOMDocument(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_14)(sip_gilstate_t,PyObject *,const QDomDocument&,bool);

    ((sipVH_kdeui_14)(sipModuleAPI_kparts_kdeui->em_virthandlers[14]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_PartBase::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KXMLGUIClient::stateChanged(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_13)(sip_gilstate_t,PyObject *,const QString&,KXMLGUIClient::ReverseStateChange);

    ((sipVH_kdeui_13)(sipModuleAPI_kparts_kdeui->em_virthandlers[13]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_PartBase::sipProtectVirt_setXMLFile(bool sipSelfWasArg,const QString& a0,bool a1,bool a2)
{
    (sipSelfWasArg ? KXMLGUIClient::setXMLFile(a0,a1,a2) : setXMLFile(a0,a1,a2));
}

void sipKParts_PartBase::sipProtectVirt_setLocalXMLFile(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KXMLGUIClient::setLocalXMLFile(a0) : setLocalXMLFile(a0));
}

void sipKParts_PartBase::sipProtectVirt_setXML(bool sipSelfWasArg,const QString& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setXML(a0,a1) : setXML(a0,a1));
}

void sipKParts_PartBase::sipProtectVirt_setDOMDocument(bool sipSelfWasArg,const QDomDocument& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setDOMDocument(a0,a1) : setDOMDocument(a0,a1));
}

void sipKParts_PartBase::sipProtectVirt_stateChanged(bool sipSelfWasArg,const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    (sipSelfWasArg ? KXMLGUIClient::stateChanged(a0,a1) : stateChanged(a0,a1));
}

void sipKParts_PartBase::sipProtect_loadStandardsXmlFile()
{
    KXMLGUIClient::loadStandardsXmlFile();
}

void sipKParts_PartBase::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0)
{
    (sipSelfWasArg ? KParts::PartBase::setComponentData(a0) : setComponentData(a0));
}

void sipKParts_PartBase::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0,bool a1)
{
    (sipSelfWasArg ? KParts::PartBase::setComponentData(a0,a1) : setComponentData(a0,a1));
}

void sipKParts_PartBase::sipProtect_loadPlugins(QObject *a0,KXMLGUIClient *a1,const KComponentData& a2)
{
    KParts::PartBase::loadPlugins(a0,a1,a2);
}

void sipKParts_PartBase::sipProtect_setPluginInterfaceVersion(int a0)
{
    KParts::PartBase::setPluginInterfaceVersion(a0);
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        bool a2 = 1;
        sipKParts_PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|bb", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_QString,&a0, &a0State, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXMLFile(sipSelfWasArg,*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        sipKParts_PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXML(sipSelfWasArg,*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(sipParseErr, sipName_PartBase, sipName_setXML, NULL);

    return NULL;
}


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

    {
        const QDomDocument * a0;
        bool a1 = 0;
        sipKParts_PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_QDomDocument, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setDOMDocument(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KXMLGUIClient::ReverseStateChange a1 = KXMLGUIClient::StateNoReverse;
        sipKParts_PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_QString,&a0, &a0State, sipType_KXMLGUIClient_ReverseStateChange, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_stateChanged(sipSelfWasArg,*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(sipParseErr, sipName_PartBase, sipName_stateChanged, NULL);

    return NULL;
}


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

    {
        sipKParts_PartBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;
        KParts::PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_QObject, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPartObject(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::PartBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->partObject();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KComponentData * a0;
        sipKParts_PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KComponentData * a0;
        bool a1;
        sipKParts_PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_KComponentData, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QObject * a0;
        KXMLGUIClient * a1;
        const KComponentData * a2;
        sipKParts_PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:J8J9", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_QObject, &a0, sipType_KXMLGUIClient, &a1, sipType_KComponentData, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_loadPlugins(a0,a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        sipKParts_PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KParts_PartBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPluginInterfaceVersion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_PartBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KXMLGUIClient)->ctd_cast((KXMLGUIClient *)(KParts::PartBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_PartBase *>(sipCppV);
    else
        delete reinterpret_cast<KParts::PartBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_PartBase[] = {
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_PartBase_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadStandardsXmlFile), meth_KParts_PartBase_loadStandardsXmlFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partObject), meth_KParts_PartBase_partObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_PartBase_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDOMDocument), meth_KParts_PartBase_setDOMDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalXMLFile), meth_KParts_PartBase_setLocalXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPartObject), meth_KParts_PartBase_setPartObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginInterfaceVersion), meth_KParts_PartBase_setPluginInterfaceVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXML), meth_KParts_PartBase_setXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXMLFile), meth_KParts_PartBase_setXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateChanged), meth_KParts_PartBase_stateChanged, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_PartBase[] = {
    {sipName_DoNotLoadPlugins, sipKParts_PartBase::DoNotLoadPlugins, 31},
    {sipName_LoadPlugins, sipKParts_PartBase::LoadPlugins, 31},
    {sipName_LoadPluginsIfEnabled, sipKParts_PartBase::LoadPluginsIfEnabled, 31},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_PartBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__PartBase,
        {0}
    },
    {
        sipNameNr_PartBase,
        {0, 255, 0},
        11, methods_KParts_PartBase,
        3, enummembers_KParts_PartBase,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_PartBase,
    0,
    init_KParts_PartBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_PartBase,
    0,
    0,
    0,
    release_KParts_PartBase,
    cast_KParts_PartBase,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 5587 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5591 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5594 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"


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

    {
        KParts::SelectorInterface::Element *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KParts::SelectorInterface::Element *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::SelectorInterface::Element *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        KParts::SelectorInterface::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KParts_SelectorInterface_Element, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttribute(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KParts::SelectorInterface::Element *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KParts::SelectorInterface::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_KParts_SelectorInterface_Element, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->attribute(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KParts::SelectorInterface::Element *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KParts::SelectorInterface::Element * a0;
        KParts::SelectorInterface::Element *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KParts::SelectorInterface::Element *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KParts_SelectorInterface_Element(void *, SIP_SSIZE_T, const void *);}
static void assign_KParts_SelectorInterface_Element(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KParts::SelectorInterface::Element *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KParts::SelectorInterface::Element *>(sipSrc);
}


extern "C" {static void *array_KParts_SelectorInterface_Element(SIP_SSIZE_T);}
static void *array_KParts_SelectorInterface_Element(SIP_SSIZE_T sipNrElem)
{
    return new KParts::SelectorInterface::Element[sipNrElem];
}


extern "C" {static void *copy_KParts_SelectorInterface_Element(const void *, SIP_SSIZE_T);}
static void *copy_KParts_SelectorInterface_Element(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KParts::SelectorInterface::Element(reinterpret_cast<const KParts::SelectorInterface::Element *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_KParts_SelectorInterface_Element(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KParts_SelectorInterface_Element(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KParts::SelectorInterface::Element *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::SelectorInterface::Element();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KParts::SelectorInterface::Element * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KParts_SelectorInterface_Element, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::SelectorInterface::Element(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KParts_SelectorInterface_Element[] = {
    {SIP_MLNAME_CAST(sipName_attribute), meth_KParts_SelectorInterface_Element_attribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_attributeNames), meth_KParts_SelectorInterface_Element_attributeNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttribute), meth_KParts_SelectorInterface_Element_hasAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KParts_SelectorInterface_Element_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttribute), meth_KParts_SelectorInterface_Element_setAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTagName), meth_KParts_SelectorInterface_Element_setTagName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_swap), meth_KParts_SelectorInterface_Element_swap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagName), meth_KParts_SelectorInterface_Element_tagName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_SelectorInterface_Element = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__SelectorInterface__Element,
        {0}
    },
    {
        sipNameNr_Element,
        {42, 255, 0},
        8, methods_KParts_SelectorInterface_Element,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KParts_SelectorInterface_Element,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_SelectorInterface_Element,
    assign_KParts_SelectorInterface_Element,
    array_KParts_SelectorInterface_Element,
    copy_KParts_SelectorInterface_Element,
    release_KParts_SelectorInterface_Element,
    cast_KParts_SelectorInterface_Element,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 5981 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 5985 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"


extern "C" {static int slot_KParts_SelectorInterface_QueryMethods___bool__(PyObject *);}
static int slot_KParts_SelectorInterface_QueryMethods___bool__(PyObject *sipSelf)
{
    KParts::SelectorInterface::QueryMethods *sipCpp = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_SelectorInterface_QueryMethods));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 6003 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___ne__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KParts::SelectorInterface::QueryMethods *sipCpp = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_SelectorInterface_QueryMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State))
        {
            bool sipRes = 0;

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 6033 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
            sipReleaseType(const_cast<KParts::SelectorInterface::QueryMethods *>(a0),sipType_KParts_SelectorInterface_QueryMethods,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,ne_slot,sipType_KParts_SelectorInterface_QueryMethods,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___eq__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KParts::SelectorInterface::QueryMethods *sipCpp = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_SelectorInterface_QueryMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State))
        {
            bool sipRes = 0;

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 6069 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
            sipReleaseType(const_cast<KParts::SelectorInterface::QueryMethods *>(a0),sipType_KParts_SelectorInterface_QueryMethods,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,eq_slot,sipType_KParts_SelectorInterface_QueryMethods,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___invert__(PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___invert__(PyObject *sipSelf)
{
    KParts::SelectorInterface::QueryMethods *sipCpp = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_SelectorInterface_QueryMethods));

    if (!sipCpp)
        return 0;


    {
        {
            KParts::SelectorInterface::QueryMethods *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::SelectorInterface::QueryMethods(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___and__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State, &a1))
        {
            KParts::SelectorInterface::QueryMethods *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::SelectorInterface::QueryMethods((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_SelectorInterface_QueryMethods,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___xor__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;
        KParts::SelectorInterface::QueryMethods * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State, sipType_KParts_SelectorInterface_QueryMethods, &a1, &a1State))
        {
            KParts::SelectorInterface::QueryMethods *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::SelectorInterface::QueryMethods((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_SelectorInterface_QueryMethods,a0State);
            sipReleaseType(a1,sipType_KParts_SelectorInterface_QueryMethods,a1State);

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

    {
        KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State, &a1))
        {
            KParts::SelectorInterface::QueryMethods *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::SelectorInterface::QueryMethods(*a0 ^ a1);
#line 6178 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
            sipReleaseType(a0,sipType_KParts_SelectorInterface_QueryMethods,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___or__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;
        KParts::SelectorInterface::QueryMethods * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State, sipType_KParts_SelectorInterface_QueryMethods, &a1, &a1State))
        {
            KParts::SelectorInterface::QueryMethods *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::SelectorInterface::QueryMethods((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_SelectorInterface_QueryMethods,a0State);
            sipReleaseType(a1,sipType_KParts_SelectorInterface_QueryMethods,a1State);

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

    {
        KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State, &a1))
        {
            KParts::SelectorInterface::QueryMethods *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KParts::SelectorInterface::QueryMethods(*a0 | a1);
#line 6230 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
            sipReleaseType(a0,sipType_KParts_SelectorInterface_QueryMethods,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kparts,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___int__(PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___int__(PyObject *sipSelf)
{
    KParts::SelectorInterface::QueryMethods *sipCpp = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_SelectorInterface_QueryMethods));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KParts_SelectorInterface_QueryMethods)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KParts::SelectorInterface::QueryMethods *sipCpp = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_SelectorInterface_QueryMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::SelectorInterface::QueryMethods::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_SelectorInterface_QueryMethods,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___ior__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KParts_SelectorInterface_QueryMethods)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KParts::SelectorInterface::QueryMethods *sipCpp = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_SelectorInterface_QueryMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::SelectorInterface::QueryMethods::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KParts_SelectorInterface_QueryMethods,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KParts_SelectorInterface_QueryMethods___iand__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KParts_SelectorInterface_QueryMethods)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KParts::SelectorInterface::QueryMethods *sipCpp = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KParts_SelectorInterface_QueryMethods));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KParts::SelectorInterface::QueryMethods::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KParts_SelectorInterface_QueryMethods(void *, SIP_SSIZE_T, const void *);}
static void assign_KParts_SelectorInterface_QueryMethods(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KParts::SelectorInterface::QueryMethods *>(sipSrc);
}


extern "C" {static void *array_KParts_SelectorInterface_QueryMethods(SIP_SSIZE_T);}
static void *array_KParts_SelectorInterface_QueryMethods(SIP_SSIZE_T sipNrElem)
{
    return new KParts::SelectorInterface::QueryMethods[sipNrElem];
}


extern "C" {static void *copy_KParts_SelectorInterface_QueryMethods(const void *, SIP_SSIZE_T);}
static void *copy_KParts_SelectorInterface_QueryMethods(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KParts::SelectorInterface::QueryMethods(reinterpret_cast<const KParts::SelectorInterface::QueryMethods *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_KParts_SelectorInterface_QueryMethods(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KParts_SelectorInterface_QueryMethods(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KParts::SelectorInterface::QueryMethods *sipCpp = 0;

    {
        const KParts::SelectorInterface::QueryMethods * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KParts_SelectorInterface_QueryMethods, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::SelectorInterface::QueryMethods(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KParts::SelectorInterface::QueryMethods *>(a0),sipType_KParts_SelectorInterface_QueryMethods,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::SelectorInterface::QueryMethods(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KParts::SelectorInterface::QueryMethods();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KParts_SelectorInterface_QueryMethods(PyObject *, void **, int *, PyObject *);}
static int convertTo_KParts_SelectorInterface_QueryMethods(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KParts::SelectorInterface::QueryMethods **sipCppPtr = reinterpret_cast<KParts::SelectorInterface::QueryMethods **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KParts::SelectorInterface::QueryMethods is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KParts_SelectorInterface_QueryMethod)) ||
            sipCanConvertToType(sipPy, sipType_KParts_SelectorInterface_QueryMethods, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KParts_SelectorInterface_QueryMethod)))
{
    *sipCppPtr = new KParts::SelectorInterface::QueryMethods(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KParts::SelectorInterface::QueryMethods *>(sipConvertToType(sipPy, sipType_KParts_SelectorInterface_QueryMethods, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 6525 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KParts_SelectorInterface_QueryMethods[] = {
    {(void *)slot_KParts_SelectorInterface_QueryMethods___bool__, bool_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___ne__, ne_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___eq__, eq_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___invert__, invert_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___and__, and_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___xor__, xor_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___or__, or_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___int__, int_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___ixor__, ixor_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___ior__, ior_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_SelectorInterface_QueryMethods = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__SelectorInterface__QueryMethods,
        {0}
    },
    {
        sipNameNr_QueryMethods,
        {42, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KParts_SelectorInterface_QueryMethods,
    init_KParts_SelectorInterface_QueryMethods,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_SelectorInterface_QueryMethods,
    assign_KParts_SelectorInterface_QueryMethods,
    array_KParts_SelectorInterface_QueryMethods,
    copy_KParts_SelectorInterface_QueryMethods,
    release_KParts_SelectorInterface_QueryMethods,
    cast_KParts_SelectorInterface_QueryMethods,
    convertTo_KParts_SelectorInterface_QueryMethods,
    0,
    0
},
    0,
    1,
    0
};

#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 6598 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6602 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 6607 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6610 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 6613 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"


class sipKParts_SelectorInterface : public KParts::SelectorInterface
{
public:
    sipKParts_SelectorInterface();
    sipKParts_SelectorInterface(const KParts::SelectorInterface&);
    virtual ~sipKParts_SelectorInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KParts::SelectorInterface::QueryMethods supportedQueryMethods() const;
    KParts::SelectorInterface::Element querySelector(const QString&,KParts::SelectorInterface::QueryMethod) const;
    QList<KParts::SelectorInterface::Element> querySelectorAll(const QString&,KParts::SelectorInterface::QueryMethod) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[3];
};

sipKParts_SelectorInterface::sipKParts_SelectorInterface(): KParts::SelectorInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_SelectorInterface::sipKParts_SelectorInterface(const KParts::SelectorInterface& a0): KParts::SelectorInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

KParts::SelectorInterface::QueryMethods sipKParts_SelectorInterface::supportedQueryMethods() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::SelectorInterface::supportedQueryMethods();

    extern KParts::SelectorInterface::QueryMethods sipVH_kparts_25(sip_gilstate_t,PyObject *);

    return sipVH_kparts_25(sipGILState,sipMeth);
}

KParts::SelectorInterface::Element sipKParts_SelectorInterface::querySelector(const QString& a0,KParts::SelectorInterface::QueryMethod a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::SelectorInterface::Element();

    extern KParts::SelectorInterface::Element sipVH_kparts_24(sip_gilstate_t,PyObject *,const QString&,KParts::SelectorInterface::QueryMethod);

    return sipVH_kparts_24(sipGILState,sipMeth,a0,a1);
}

QList<KParts::SelectorInterface::Element> sipKParts_SelectorInterface::querySelectorAll(const QString& a0,KParts::SelectorInterface::QueryMethod a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QList<KParts::SelectorInterface::Element>();

    extern QList<KParts::SelectorInterface::Element> sipVH_kparts_23(sip_gilstate_t,PyObject *,const QString&,KParts::SelectorInterface::QueryMethod);

    return sipVH_kparts_23(sipGILState,sipMeth,a0,a1);
}


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

    {
        KParts::SelectorInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_SelectorInterface, &sipCpp))
        {
            KParts::SelectorInterface::QueryMethods *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::SelectorInterface::QueryMethods((sipSelfWasArg ? sipCpp->KParts::SelectorInterface::supportedQueryMethods() : sipCpp->supportedQueryMethods()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KParts::SelectorInterface::QueryMethod a1;
        KParts::SelectorInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_KParts_SelectorInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_KParts_SelectorInterface_QueryMethod, &a1))
        {
            KParts::SelectorInterface::Element *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_SelectorInterface, sipName_querySelector);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KParts::SelectorInterface::Element(sipCpp->querySelector(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KParts::SelectorInterface::QueryMethod a1;
        KParts::SelectorInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_KParts_SelectorInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_KParts_SelectorInterface_QueryMethod, &a1))
        {
            QList<KParts::SelectorInterface::Element> *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_SelectorInterface, sipName_querySelectorAll);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KParts::SelectorInterface::Element>(sipCpp->querySelectorAll(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_SelectorInterface *>(sipCppV);
    else
        delete reinterpret_cast<KParts::SelectorInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KParts::SelectorInterface * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KParts_SelectorInterface[] = {
    {SIP_MLNAME_CAST(sipName_querySelector), meth_KParts_SelectorInterface_querySelector, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_querySelectorAll), meth_KParts_SelectorInterface_querySelectorAll, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedQueryMethods), meth_KParts_SelectorInterface_supportedQueryMethods, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_SelectorInterface[] = {
    {sipName_EntireContent, KParts::SelectorInterface::EntireContent, 44},
    {sipName_None, KParts::SelectorInterface::None, 44},
    {sipName_SelectedContent, KParts::SelectorInterface::SelectedContent, 44},
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_SelectorInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KParts__SelectorInterface,
        {0}
    },
    {
        sipNameNr_SelectorInterface,
        {0, 255, 0},
        3, methods_KParts_SelectorInterface,
        3, enummembers_KParts_SelectorInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KParts_SelectorInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_SelectorInterface,
    0,
    0,
    0,
    release_KParts_SelectorInterface,
    cast_KParts_SelectorInterface,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 6948 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 6952 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 6955 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6958 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6961 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6964 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6967 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6970 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6973 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6976 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6979 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6982 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6985 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6988 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6991 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6994 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"


class sipKParts_HtmlExtension : public KParts::HtmlExtension
{
public:
    sipKParts_HtmlExtension(KParts::ReadOnlyPart *);
    virtual ~sipKParts_HtmlExtension();

    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.
     */
    QObject * sipProtect_sender() const;
    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:
    KUrl baseUrl() const;
    bool hasSelection() const;
    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:
    sipKParts_HtmlExtension(const sipKParts_HtmlExtension &);
    sipKParts_HtmlExtension &operator = (const sipKParts_HtmlExtension &);

    char sipPyMethods[9];
};

sipKParts_HtmlExtension::sipKParts_HtmlExtension(KParts::ReadOnlyPart *a0): KParts::HtmlExtension(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKParts_HtmlExtension::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_HtmlExtension);
}

int sipKParts_HtmlExtension::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::HtmlExtension::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_HtmlExtension,_c,_id,_a);

    return _id;
}

void *sipKParts_HtmlExtension::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_HtmlExtension,_clname)) ? this : KParts::HtmlExtension::qt_metacast(_clname);
}

KUrl sipKParts_HtmlExtension::baseUrl() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KUrl();

    typedef KUrl (*sipVH_kio_46)(sip_gilstate_t,PyObject *);

    return ((sipVH_kio_46)(sipModuleAPI_kparts_kio->em_virthandlers[46]))(sipGILState,sipMeth);
}

bool sipKParts_HtmlExtension::hasSelection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KParts::HtmlExtension::hasSelection();

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

    return ((sipVH_QtCore_7)(sipModuleAPI_kparts_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipKParts_HtmlExtension::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

    ((sipVH_QtCore_9)(sipModuleAPI_kparts_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipKParts_HtmlExtension::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_kparts_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKParts_HtmlExtension::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kparts_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKParts_HtmlExtension::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipKParts_HtmlExtension::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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


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

    {
        sipKParts_HtmlExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KParts_HtmlExtension, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 7286 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKParts_HtmlExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_HtmlExtension, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 7328 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kparts/sipkpartspart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKParts_HtmlExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_HtmlExtension, &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(sipParseErr, sipName_HtmlExtension, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKParts_HtmlExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_HtmlExtension, &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(sipParseErr, sipName_HtmlExtension, sipName_childEvent, NULL);

    return NULL;
}


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

    {
        QEvent * a0;
        sipKParts_HtmlExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KParts_HtmlExtension, &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(sipParseErr, sipName_HtmlExtension, sipName_customEvent, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_HtmlExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_HtmlExtension, &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(sipParseErr, sipName_HtmlExtension, sipName_connectNotify, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipKParts_HtmlExtension *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KParts_HtmlExtension, &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(sipParseErr, sipName_HtmlExtension, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        QObject * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QObject, &a0))
        {
            KParts::HtmlExtension *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::HtmlExtension::childObject(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::HtmlExtension *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HtmlExtension, sipName_baseUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->baseUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KParts::HtmlExtension *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::HtmlExtension::hasSelection() : sipCpp->hasSelection());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KParts_HtmlExtension)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_HtmlExtension *>(sipCppV);
    else
        delete reinterpret_cast<KParts::HtmlExtension *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KParts::ReadOnlyPart * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_HtmlExtension[] = {
    {SIP_MLNAME_CAST(sipName_baseUrl), meth_KParts_HtmlExtension_baseUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_HtmlExtension_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childObject), meth_KParts_HtmlExtension_childObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_HtmlExtension_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_HtmlExtension_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_HtmlExtension_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSelection), meth_KParts_HtmlExtension_hasSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_HtmlExtension_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KParts_HtmlExtension_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_HtmlExtension_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kparts_KParts_HtmlExtension = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__HtmlExtension,
        {0}
    },
    {
        sipNameNr_HtmlExtension,
        {0, 255, 0},
        10, methods_KParts_HtmlExtension,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KParts_HtmlExtension,
    0,
    init_KParts_HtmlExtension,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_HtmlExtension,
    0,
    0,
    0,
    release_KParts_HtmlExtension,
    cast_KParts_HtmlExtension,
    0,
    0,
    0
},
    &KParts::HtmlExtension::staticMetaObject,
    0,
    0
};
