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

#include "sipAPIkparts.h"

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/mainwindow.sip"
#include <kparts/mainwindow.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"

#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 32 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 31 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 37 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiwindow.sip"
#include <kxmlguiwindow.h>
#line 40 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 46 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 36 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 49 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 574 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/ktoolbar.sip"
#include <ktoolbar.h>
#line 58 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 61 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kmainwindow.sip"
#include <kmainwindow.h>
#line 64 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kstatusbar.sip"
#include <kstatusbar.h>
#line 67 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kmenubar.sip"
#include <kmenubar.h>
#line 70 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kmenu.sip"
#include <kmenu.h>
#line 73 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 76 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 79 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 82 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qtabwidget.sip"
#include <qtabwidget.h>
#line 85 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 88 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qtoolbar.sip"
#include <qtoolbar.h>
#line 91 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qmainwindow.sip"
#include <qmainwindow.h>
#line 94 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 97 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 618 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 100 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 103 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 106 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qstatusbar.sip"
#include <qstatusbar.h>
#line 109 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qmenubar.sip"
#include <qmenubar.h>
#line 112 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 115 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 118 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 121 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 124 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 130 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 133 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 136 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 139 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 142 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 145 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 148 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 151 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 154 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 157 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 160 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 647 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 163 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 607 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 166 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 596 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 169 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 739 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 172 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 792 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 175 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 765 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 178 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 781 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 181 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 854 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 184 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 403 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 187 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 561 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 190 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 548 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 193 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 524 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 196 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 505 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 199 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 474 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 202 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 347 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 205 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 252 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 208 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 211 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 52 "/usr/share/sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 214 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 34 "/usr/share/sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 217 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 220 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 223 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 226 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 229 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 232 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 235 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 238 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 241 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 244 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 247 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 250 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 253 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 256 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 259 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 262 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 265 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 268 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 336 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 271 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 274 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 277 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 207 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 280 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 283 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 286 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 289 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 292 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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;

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[97];
};

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()
{
    sipInstanceDestroyed(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(sipPySelf, sipType_KParts_MainWindow, _clname)) ? this :  ::KParts::MainWindow::qt_metacast(_clname);
}

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

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

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

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

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

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

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

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

    extern void sipVH_kparts_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KXMLGUIClient::ReverseStateChange);

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

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

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

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

    extern void sipVH_kparts_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomDocument&,bool);

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

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

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

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

    extern void sipVH_kparts_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool);

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

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

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

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

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

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

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

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

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

    extern void sipVH_kparts_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool,bool);

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

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

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

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

    extern void sipVH_kparts_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::localXMLFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::xmlFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::domDocument();

    extern  ::QDomDocument sipVH_kparts_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::componentData();

    extern  ::KComponentData sipVH_kparts_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::actionCollection();

    extern  ::KActionCollection* sipVH_kparts_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::action(a0);

    extern  ::QAction* sipVH_kparts_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomElement&);

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

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

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

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

    extern void sipVH_kparts_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&,bool);

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

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

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

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

    extern void sipVH_kparts_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_kparts_2(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_83(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfig*);

    sipVH_kparts_83(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::MainWindow::saveGlobalProperties(a0);
        return;
    }

    extern void sipVH_kparts_83(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfig*);

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

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

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

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

    extern void sipVH_kparts_82(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KConfigGroup&);

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

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

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

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

    extern void sipVH_kparts_81(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfigGroup&);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::queryClose();

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::queryExit();

    extern bool sipVH_kparts_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

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

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

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

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

    extern void sipVH_kparts_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool);

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

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

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

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

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

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

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

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

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

    extern void sipVH_kparts_80(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KConfigGroup&,bool);

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

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

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

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

    extern void sipVH_kparts_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_kparts_2(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

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

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

    extern void sipVH_kparts_79(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QFont&);

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

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

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

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

    extern void sipVH_kparts_78(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPalette&);

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

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

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

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

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::focusNextPrevChild(a0);

    extern bool sipVH_kparts_77(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::inputMethodQuery(a0);

    extern  ::QVariant sipVH_kparts_76(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::Qt::InputMethodQuery);

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

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

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

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

    extern void sipVH_kparts_75(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QInputMethodEvent*);

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

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_74(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QHideEvent*);

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

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

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

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

    extern void sipVH_kparts_73(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QShowEvent*);

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

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

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

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

    extern void sipVH_kparts_72(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDropEvent*);

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

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

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

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

    extern void sipVH_kparts_71(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragLeaveEvent*);

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

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

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

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

    extern void sipVH_kparts_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragMoveEvent*);

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

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

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

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

    extern void sipVH_kparts_69(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragEnterEvent*);

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

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

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

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

    extern void sipVH_kparts_68(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QActionEvent*);

    sipVH_kparts_68(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::MainWindow::tabletEvent(a0);
        return;
    }

    extern void sipVH_kparts_67(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTabletEvent*);

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

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

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

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

    extern void sipVH_kparts_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QContextMenuEvent*);

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

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

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

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

    extern void sipVH_kparts_65(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QCloseEvent*);

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

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

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

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

    extern void sipVH_kparts_64(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QResizeEvent*);

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

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

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

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

    extern void sipVH_kparts_63(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMoveEvent*);

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

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

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

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

    extern void sipVH_kparts_62(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintEvent*);

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

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_61(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

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

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

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

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

    extern void sipVH_kparts_61(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

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

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

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

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

    extern void sipVH_kparts_60(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

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

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

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

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

    extern void sipVH_kparts_60(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

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

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

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

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

    extern void sipVH_kparts_59(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWheelEvent*);

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

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

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

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

    extern void sipVH_kparts_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

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

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

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

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

    extern void sipVH_kparts_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

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

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

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

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

    extern void sipVH_kparts_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

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

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

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

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

    extern void sipVH_kparts_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::heightForWidth(a0);

    extern int sipVH_kparts_57(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::minimumSizeHint();

    extern  ::QSize sipVH_kparts_56(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::sizeHint();

    extern  ::QSize sipVH_kparts_56(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern void sipVH_kparts_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::devType();

    extern int sipVH_kparts_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::paintEngine();

    extern  ::QPaintEngine* sipVH_kparts_54(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::metric(a0);

    extern int sipVH_kparts_53(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::event(a0);

    extern bool sipVH_kparts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_kparts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

    extern void sipVH_kparts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

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

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

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

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

    extern void sipVH_kparts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

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

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

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

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

    extern void sipVH_kparts_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::createPopupMenu();

    extern  ::QMenu* sipVH_kparts_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern void sipVH_kparts_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KXMLGUIClient*);

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

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

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

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

    extern void sipVH_kparts_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*, ::QAction*);

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

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

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

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

    extern  ::QAction* sipVH_kparts_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,int,const  ::QDomElement&);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::customTags();

    extern  ::QStringList sipVH_kparts_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern void sipVH_kparts_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*, ::QWidget*, ::QDomElement&, ::QAction*);

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

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

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

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

    extern  ::QWidget* sipVH_kparts_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,int,const  ::QDomElement&, ::QAction*&);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::containerTags();

    extern  ::QStringList sipVH_kparts_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::MainWindow::guiFactory();

    extern  ::KXMLGUIFactory* sipVH_kparts_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern void sipVH_kparts_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_kparts_2(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

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

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

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

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

    extern void sipVH_kparts_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_kparts_2(sipGILState, 0, sipPySelf, sipMeth);
}


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 || sipIsDerivedClass((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;
         ::KParts::MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_KParts_Part, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KParts::MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KParts_MainWindow, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::MainWindow::slotSetStatusBarText(*a0) : sipCpp->slotSetStatusBarText(*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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::KParts::MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KParts_MainWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::MainWindow::saveNewToolbarConfig() : sipCpp->saveNewToolbarConfig());
            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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        bool a0 = 1;
         ::KParts::MainWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p|b", &sipSelf, sipType_KParts_MainWindow, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::MainWindow::createShellGUI(a0) : sipCpp->createShellGUI(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 inheritance hierarchy. */
extern "C" {static void *cast_KParts_MainWindow(void *, const sipTypeDef *);}
static void *cast_KParts_MainWindow(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::MainWindow *sipCpp = reinterpret_cast< ::KParts::MainWindow *>(sipCppV);

    if (targetType == sipType_KXmlGuiWindow)
        return static_cast< ::KXmlGuiWindow *>(sipCpp);

    if (targetType == sipType_KMainWindow)
        return static_cast< ::KMainWindow *>(sipCpp);

    if (targetType == sipType_QMainWindow)
        return static_cast< ::QMainWindow *>(sipCpp);

    if (targetType == sipType_QWidget)
        return static_cast< ::QWidget *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

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

    if (targetType == sipType_KXMLGUIBuilder)
        return static_cast< ::KXMLGUIBuilder *>(sipCpp);

    if (targetType == sipType_KParts_PartBase)
        return static_cast< ::KParts::PartBase *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KParts_MainWindow(void *, int);}
static void release_KParts_MainWindow(void *sipCppV, int)
{
     ::KParts::MainWindow *sipCpp = reinterpret_cast< ::KParts::MainWindow *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_MainWindow(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KParts_MainWindow(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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;
         ::Qt::WindowFlags a2def = 0;
         ::Qt::WindowFlags* a2 = &a2def;
        int a2State = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KParts_MainWindow[] = {
    {SIP_MLNAME_CAST(sipName_configureToolbars), meth_KParts_MainWindow_configureToolbars, METH_VARARGS, 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_saveNewToolbarConfig), meth_KParts_MainWindow_saveNewToolbarConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotSetStatusBarText), meth_KParts_MainWindow_slotSetStatusBarText, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KParts_MainWindow = {
    & ::KParts::MainWindow::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_MainWindow = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__MainWindow,
        {0},
        &plugin_KParts_MainWindow
    },
    {
        sipNameNr_MainWindow,
        {0, 255, 0},
        5, 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_type_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,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 2223 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2227 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 2230 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 2233 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2236 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 207 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 2239 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2242 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 2245 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2248 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2251 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 2254 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 2257 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2260 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 2263 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 2266 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 336 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 2269 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"


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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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 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);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

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

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

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

    extern void sipVH_kparts_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&,bool);

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

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

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

    if (!sipMeth)
        return  ::KParts::PartBase::action(a0);

    extern  ::QAction* sipVH_kparts_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomElement&);

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

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

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

    if (!sipMeth)
        return  ::KParts::PartBase::actionCollection();

    extern  ::KActionCollection* sipVH_kparts_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::PartBase::componentData();

    extern  ::KComponentData sipVH_kparts_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::PartBase::domDocument();

    extern  ::QDomDocument sipVH_kparts_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::PartBase::xmlFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

    if (!sipMeth)
        return  ::KParts::PartBase::localXMLFile();

    extern  ::QString sipVH_kparts_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

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

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

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

    extern void sipVH_kparts_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&);

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

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)
    {
         ::KParts::PartBase::setXMLFile(a0,a1,a2);
        return;
    }

    extern void sipVH_kparts_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool,bool);

    sipVH_kparts_39(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::PartBase::setLocalXMLFile(a0);
        return;
    }

    extern void sipVH_kparts_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_kparts_23(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::PartBase::setXML(a0,a1);
        return;
    }

    extern void sipVH_kparts_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool);

    sipVH_kparts_38(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::PartBase::setDOMDocument(a0,a1);
        return;
    }

    extern void sipVH_kparts_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomDocument&,bool);

    sipVH_kparts_37(sipGILState, 0, sipPySelf, 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)
    {
         ::KParts::PartBase::stateChanged(a0,a1);
        return;
    }

    extern void sipVH_kparts_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KXMLGUIClient::ReverseStateChange);

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


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;

    {
        const  ::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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KComponentData* a0;
         ::KParts::PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_KComponentData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::PartBase::setComponentData(*a0) : sipCpp->setComponentData(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::KComponentData* a0;
        bool a1;
         ::KParts::PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9b", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_KComponentData, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KParts::PartBase::setComponentData(*a0,a1) : sipCpp->setComponentData(*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;
         ::KParts::PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ:J8J9", &sipSelf, sipType_KParts_PartBase, &sipCpp, sipType_QObject, &a0, sipType_KXMLGUIClient, &a1, sipType_KComponentData, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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;
         ::KParts::PartBase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pi", &sipSelf, sipType_KParts_PartBase, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->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 inheritance hierarchy. */
extern "C" {static void *cast_KParts_PartBase(void *, const sipTypeDef *);}
static void *cast_KParts_PartBase(void *sipCppV, const sipTypeDef *targetType)
{
     ::KParts::PartBase *sipCpp = reinterpret_cast< ::KParts::PartBase *>(sipCppV);

    if (targetType == sipType_KXMLGUIClient)
        return static_cast< ::KXMLGUIClient *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_PartBase *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_PartBase(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KParts_PartBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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[] = {{6, 7, 1}};


static PyMethodDef methods_KParts_PartBase[] = {
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_PartBase_loadPlugins, 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_setPartObject), meth_KParts_PartBase_setPartObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginInterfaceVersion), meth_KParts_PartBase_setPluginInterfaceVersion, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_PartBase[] = {
    {sipName_DoNotLoadPlugins, static_cast<int>( ::KParts::PartBase::DoNotLoadPlugins), 39},
    {sipName_LoadPlugins, static_cast<int>( ::KParts::PartBase::LoadPlugins), 39},
    {sipName_LoadPluginsIfEnabled, static_cast<int>( ::KParts::PartBase::LoadPluginsIfEnabled), 39},
};


static pyqt4ClassPluginDef plugin_KParts_PartBase = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_PartBase = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__PartBase,
        {0},
        &plugin_KParts_PartBase
    },
    {
        sipNameNr_PartBase,
        {0, 255, 0},
        5, 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_type_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 76 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 2828 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2832 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2835 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"


class sipKParts_HtmlSettingsInterface : public  ::KParts::HtmlSettingsInterface
{
public:
    sipKParts_HtmlSettingsInterface();
    sipKParts_HtmlSettingsInterface(const  ::KParts::HtmlSettingsInterface&);
    virtual ~sipKParts_HtmlSettingsInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool setHtmlSettingsProperty( ::KParts::HtmlSettingsInterface::HtmlSettingsType,const  ::QVariant&);
     ::QVariant htmlSettingsProperty( ::KParts::HtmlSettingsInterface::HtmlSettingsType) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKParts_HtmlSettingsInterface::sipKParts_HtmlSettingsInterface():  ::KParts::HtmlSettingsInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_HtmlSettingsInterface::sipKParts_HtmlSettingsInterface(const  ::KParts::HtmlSettingsInterface& a0):  ::KParts::HtmlSettingsInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_HtmlSettingsInterface::~sipKParts_HtmlSettingsInterface()
{
    sipInstanceDestroyed(sipPySelf);
}

bool sipKParts_HtmlSettingsInterface::setHtmlSettingsProperty( ::KParts::HtmlSettingsInterface::HtmlSettingsType a0,const  ::QVariant& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_HtmlSettingsInterface,sipName_setHtmlSettingsProperty);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kparts_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::HtmlSettingsInterface::HtmlSettingsType,const  ::QVariant&);

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

 ::QVariant sipKParts_HtmlSettingsInterface::htmlSettingsProperty( ::KParts::HtmlSettingsInterface::HtmlSettingsType a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QVariant();

    extern  ::QVariant sipVH_kparts_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::HtmlSettingsInterface::HtmlSettingsType);

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


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

    {
         ::KParts::HtmlSettingsInterface::HtmlSettingsType a0;
        const  ::KParts::HtmlSettingsInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KParts_HtmlSettingsInterface, &sipCpp, sipType_KParts_HtmlSettingsInterface_HtmlSettingsType, &a0))
        {
             ::QVariant*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HtmlSettingsInterface, sipName_htmlSettingsProperty);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QVariant(sipCpp->htmlSettingsProperty(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
         ::KParts::HtmlSettingsInterface::HtmlSettingsType a0;
        const  ::QVariant* a1;
        int a1State = 0;
         ::KParts::HtmlSettingsInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_KParts_HtmlSettingsInterface, &sipCpp, sipType_KParts_HtmlSettingsInterface_HtmlSettingsType, &a0, sipType_QVariant,&a1, &a1State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HtmlSettingsInterface, sipName_setHtmlSettingsProperty);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setHtmlSettingsProperty(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QVariant *>(a1),sipType_QVariant,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::KParts::HtmlSettingsInterface::JavaScriptAdvice sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes =  ::KParts::HtmlSettingsInterface::textToJavascriptAdvice(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(sipRes,sipType_KParts_HtmlSettingsInterface_JavaScriptAdvice);
        }
    }

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

    return NULL;
}


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

    {
         ::KParts::HtmlSettingsInterface::JavaScriptAdvice a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_KParts_HtmlSettingsInterface_JavaScriptAdvice, &a0))
        {
            const char*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes =  ::KParts::HtmlSettingsInterface::javascriptAdviceToText(a0);
            Py_END_ALLOW_THREADS

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return SIPBytes_FromString(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QString* a1;
        int a1State = 0;
         ::KParts::HtmlSettingsInterface::JavaScriptAdvice a2;
         ::KParts::HtmlSettingsInterface::JavaScriptAdvice a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
             ::KParts::HtmlSettingsInterface::splitDomainAdvice(*a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);

            return sipBuildResult(0,"(FF)",a2,sipType_KParts_HtmlSettingsInterface_JavaScriptAdvice,a3,sipType_KParts_HtmlSettingsInterface_JavaScriptAdvice);
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_HtmlSettingsInterface(sipSimpleWrapper *);}
static void dealloc_KParts_HtmlSettingsInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_HtmlSettingsInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_HtmlSettingsInterface(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KParts::HtmlSettingsInterface* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KParts_HtmlSettingsInterface[] = {
    {SIP_MLNAME_CAST(sipName_htmlSettingsProperty), meth_KParts_HtmlSettingsInterface_htmlSettingsProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_javascriptAdviceToText), meth_KParts_HtmlSettingsInterface_javascriptAdviceToText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHtmlSettingsProperty), meth_KParts_HtmlSettingsInterface_setHtmlSettingsProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_splitDomainAdvice), meth_KParts_HtmlSettingsInterface_splitDomainAdvice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textToJavascriptAdvice), meth_KParts_HtmlSettingsInterface_textToJavascriptAdvice, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KParts_HtmlSettingsInterface[] = {
    {sipName_AutoLoadImages, static_cast<int>( ::KParts::HtmlSettingsInterface::AutoLoadImages), 24},
    {sipName_DnsPrefetchEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::DnsPrefetchEnabled), 24},
    {sipName_JSWindowFocusAllow, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowFocusAllow), 25},
    {sipName_JSWindowFocusIgnore, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowFocusIgnore), 25},
    {sipName_JSWindowMoveAllow, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowMoveAllow), 26},
    {sipName_JSWindowMoveIgnore, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowMoveIgnore), 26},
    {sipName_JSWindowOpenAllow, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowOpenAllow), 27},
    {sipName_JSWindowOpenAsk, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowOpenAsk), 27},
    {sipName_JSWindowOpenDeny, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowOpenDeny), 27},
    {sipName_JSWindowOpenSmart, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowOpenSmart), 27},
    {sipName_JSWindowResizeAllow, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowResizeAllow), 28},
    {sipName_JSWindowResizeIgnore, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowResizeIgnore), 28},
    {sipName_JSWindowStatusAllow, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowStatusAllow), 29},
    {sipName_JSWindowStatusIgnore, static_cast<int>( ::KParts::HtmlSettingsInterface::JSWindowStatusIgnore), 29},
    {sipName_JavaEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::JavaEnabled), 24},
    {sipName_JavaScriptAccept, static_cast<int>( ::KParts::HtmlSettingsInterface::JavaScriptAccept), 30},
    {sipName_JavaScriptDunno, static_cast<int>( ::KParts::HtmlSettingsInterface::JavaScriptDunno), 30},
    {sipName_JavaScriptReject, static_cast<int>( ::KParts::HtmlSettingsInterface::JavaScriptReject), 30},
    {sipName_JavascriptEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::JavascriptEnabled), 24},
    {sipName_LocalStorageEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::LocalStorageEnabled), 24},
    {sipName_MetaRefreshEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::MetaRefreshEnabled), 24},
    {sipName_OfflineStorageDatabaseEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::OfflineStorageDatabaseEnabled), 24},
    {sipName_OfflineWebApplicationCacheEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::OfflineWebApplicationCacheEnabled), 24},
    {sipName_PluginsEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::PluginsEnabled), 24},
    {sipName_PrivateBrowsingEnabled, static_cast<int>( ::KParts::HtmlSettingsInterface::PrivateBrowsingEnabled), 24},
    {sipName_UserDefinedStyleSheetURL, static_cast<int>( ::KParts::HtmlSettingsInterface::UserDefinedStyleSheetURL), 24},
};


static pyqt4ClassPluginDef plugin_KParts_HtmlSettingsInterface = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_HtmlSettingsInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KParts__HtmlSettingsInterface,
        {0},
        &plugin_KParts_HtmlSettingsInterface
    },
    {
        sipNameNr_HtmlSettingsInterface,
        {0, 255, 0},
        5, methods_KParts_HtmlSettingsInterface,
        26, enummembers_KParts_HtmlSettingsInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KParts_HtmlSettingsInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_HtmlSettingsInterface,
    0,
    0,
    0,
    release_KParts_HtmlSettingsInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 38 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 56 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 3239 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3243 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3246 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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;

    {
        const  ::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;

    {
        const  ::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;

    {
        const  ::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;
        const  ::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;
        const  ::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;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_SelectorInterface_Element(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KParts_SelectorInterface_Element(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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}
};


static pyqt4ClassPluginDef plugin_KParts_SelectorInterface_Element = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_SelectorInterface_Element = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__SelectorInterface__Element,
        {0},
        &plugin_KParts_SelectorInterface_Element
    },
    {
        sipNameNr_Element,
        {50, 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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 38 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 3628 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"

#line 38 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 3632 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 381 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::SelectorInterface::QueryMethods::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 3654 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 372 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::SelectorInterface::QueryMethods::Int() != a0->operator KParts::SelectorInterface::QueryMethods::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 3688 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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 363 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator KParts::SelectorInterface::QueryMethods::Int() == a0->operator KParts::SelectorInterface::QueryMethods::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 3728 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KParts::SelectorInterface::QueryMethods(*sipCpp ^ a0);
#line 3767 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/usr/share/sip/PyQt4/QtCore/qglobal.sip"
        *sipCpp = KParts::SelectorInterface::QueryMethods(*sipCpp | a0);
#line 3841 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_KParts_SelectorInterface_QueryMethods___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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


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


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_SelectorInterface_QueryMethods(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KParts_SelectorInterface_QueryMethods(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KParts_SelectorInterface_QueryMethods(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KParts::SelectorInterface::QueryMethods *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KParts::SelectorInterface::QueryMethods();
            Py_END_ALLOW_THREADS

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

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

    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 390 "/usr/share/sip/PyQt4/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(int(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 4129 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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___ixor__, ixor_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___xor__, xor_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___ior__, ior_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___or__, or_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___iand__, iand_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___and__, and_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___invert__, invert_slot},
    {(void *)slot_KParts_SelectorInterface_QueryMethods___int__, int_slot},
    {0, (sipPySlotType)0}
};


static pyqt4ClassPluginDef plugin_KParts_SelectorInterface_QueryMethods = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_SelectorInterface_QueryMethods = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KParts__SelectorInterface__QueryMethods,
        {0},
        &plugin_KParts_SelectorInterface_QueryMethods
    },
    {
        sipNameNr_QueryMethods,
        {50, 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_type_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,
    0,
    convertTo_KParts_SelectorInterface_QueryMethods,
    0,
    0,
    0,
    0,
    0
};

#line 38 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 4208 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"

#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4212 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 38 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 56 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 4217 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4220 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/kparts/sipkpartspart3.cpp"
#line 38 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/htmlextension.sip"
#include <kparts/htmlextension.h>
#line 4223 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/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:
    QList< ::KParts::SelectorInterface::Element> querySelectorAll(const  ::QString&, ::KParts::SelectorInterface::QueryMethod) const;
     ::KParts::SelectorInterface::Element querySelector(const  ::QString&, ::KParts::SelectorInterface::QueryMethod) const;
     ::KParts::SelectorInterface::QueryMethods supportedQueryMethods() 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()
{
    sipInstanceDestroyed(sipPySelf);
}

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[0]),sipPySelf,sipName_SelectorInterface,sipName_querySelectorAll);

    if (!sipMeth)
        return QList< ::KParts::SelectorInterface::Element>();

    extern QList< ::KParts::SelectorInterface::Element> sipVH_kparts_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KParts::SelectorInterface::QueryMethod);

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

 ::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_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KParts::SelectorInterface::QueryMethod);

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

 ::KParts::SelectorInterface::QueryMethods sipKParts_SelectorInterface::supportedQueryMethods() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KParts::SelectorInterface::supportedQueryMethods();

    extern  ::KParts::SelectorInterface::QueryMethods sipVH_kparts_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::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;
        const  ::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;
        const  ::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;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKParts_SelectorInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KParts_SelectorInterface(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KParts_SelectorInterface(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_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, static_cast<int>( ::KParts::SelectorInterface::EntireContent), 52},
    {sipName_None, static_cast<int>( ::KParts::SelectorInterface::None), 52},
    {sipName_SelectedContent, static_cast<int>( ::KParts::SelectorInterface::SelectedContent), 52},
};


static pyqt4ClassPluginDef plugin_KParts_SelectorInterface = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_kparts_KParts_SelectorInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KParts__SelectorInterface,
        {0},
        &plugin_KParts_SelectorInterface
    },
    {
        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_type_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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};
