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

#include "sipAPInepomuk.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/kmetadatatagcloud.sip"
#include <nepomuk/kmetadatatagcloud.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 222 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qmap.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 413 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 55 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 67 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 73 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 76 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 82 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 85 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 88 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 91 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 94 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 499 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 97 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 459 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 448 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 542 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 109 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 593 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 112 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 566 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 115 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 582 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 118 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 645 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 121 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 291 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 124 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 470 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 426 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 400 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 386 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 367 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 139 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 339 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 270 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 145 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 231 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 148 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 151 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 61 "/usr/local/share/py-sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 154 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 157 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 160 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 163 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qlayout.sip"
#include <qlayout.h>
#line 166 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 169 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 172 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 175 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 178 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 181 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 187 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 190 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 193 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 196 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 199 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 202 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 205 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 208 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 211 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


class sipNepomuk_TagCloud : public Nepomuk::TagCloud
{
public:
    sipNepomuk_TagCloud(QWidget *);
    virtual ~sipNepomuk_TagCloud();

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[47];
};

sipNepomuk_TagCloud::sipNepomuk_TagCloud(QWidget *a0): Nepomuk::TagCloud(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipNepomuk_TagCloud::metaObject() const
{
    return sip_nepomuk_qt_metaobject(sipPySelf,sipType_Nepomuk_TagCloud);
}

int sipNepomuk_TagCloud::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Nepomuk::TagCloud::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_nepomuk_qt_metacall(sipPySelf,sipType_Nepomuk_TagCloud,_c,_id,_a);

    return _id;
}

void *sipNepomuk_TagCloud::qt_metacast(const char *_clname)
{
    return (sip_nepomuk_qt_metacast && sip_nepomuk_qt_metacast(sipPySelf,sipType_Nepomuk_TagCloud,_clname)) ? this : Nepomuk::TagCloud::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipNepomuk_TagCloud *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_TagCloud *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 1489 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QWheelEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QWheelEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QKeyEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QKeyEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QFocusEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QFocusEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QPaintEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QPaintEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMoveEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QMoveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QCloseEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QCloseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QContextMenuEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QTabletEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QTabletEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QActionEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QActionEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDragEnterEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QDragEnterEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDragMoveEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDragLeaveEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDropEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QShowEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QShowEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QHideEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QHideEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QPaintDevice::PaintDeviceMetric a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QInputMethodEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipNepomuk_TagCloud *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipNepomuk_TagCloud *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|mbb", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_create(a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_destroy(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipNepomuk_TagCloud *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusNextChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipNepomuk_TagCloud *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusPreviousChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enabledChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QPalette * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QPalette, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paletteChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QFont * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QFont, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_fontChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_windowActivationChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipNepomuk_TagCloud *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QResizeEvent * a0;
        sipNepomuk_TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, sipType_QResizeEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::TagCloud *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoUpdate();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::TagCloud *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Nepomuk::TagCloud *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Nepomuk_TagCloud, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoUpdate(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_TagCloud, sipName_setAutoUpdate, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_TagCloud)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KTagCloudWidget)->ctd_cast((KTagCloudWidget *)(Nepomuk::TagCloud *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_TagCloud *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::TagCloud *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QWidget * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_TagCloud[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), meth_Nepomuk_TagCloud_actionEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_autoUpdate), meth_Nepomuk_TagCloud_autoUpdate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_Nepomuk_TagCloud_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Nepomuk_TagCloud_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_Nepomuk_TagCloud_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Nepomuk_TagCloud_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_Nepomuk_TagCloud_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_Nepomuk_TagCloud_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Nepomuk_TagCloud_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_Nepomuk_TagCloud_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Nepomuk_TagCloud_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_Nepomuk_TagCloud_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_Nepomuk_TagCloud_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_Nepomuk_TagCloud_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_Nepomuk_TagCloud_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enabledChange), meth_Nepomuk_TagCloud_enabledChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), meth_Nepomuk_TagCloud_enterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_Nepomuk_TagCloud_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_Nepomuk_TagCloud_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), meth_Nepomuk_TagCloud_focusNextChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_Nepomuk_TagCloud_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_Nepomuk_TagCloud_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), meth_Nepomuk_TagCloud_focusPreviousChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontChange), meth_Nepomuk_TagCloud_fontChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_Nepomuk_TagCloud_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_Nepomuk_TagCloud_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_Nepomuk_TagCloud_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_Nepomuk_TagCloud_keyReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageChange), meth_Nepomuk_TagCloud_languageChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), meth_Nepomuk_TagCloud_leaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), meth_Nepomuk_TagCloud_metric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), meth_Nepomuk_TagCloud_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_Nepomuk_TagCloud_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_Nepomuk_TagCloud_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_Nepomuk_TagCloud_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_Nepomuk_TagCloud_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), meth_Nepomuk_TagCloud_paintEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paletteChange), meth_Nepomuk_TagCloud_paletteChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Nepomuk_TagCloud_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetInputContext), meth_Nepomuk_TagCloud_resetInputContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), meth_Nepomuk_TagCloud_resizeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Nepomuk_TagCloud_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoUpdate), meth_Nepomuk_TagCloud_setAutoUpdate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_Nepomuk_TagCloud_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), meth_Nepomuk_TagCloud_tabletEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Nepomuk_TagCloud_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_Nepomuk_TagCloud_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateTags), meth_Nepomuk_TagCloud_updateTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_Nepomuk_TagCloud_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowActivationChange), meth_Nepomuk_TagCloud_windowActivationChange, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Nepomuk_TagCloud[] = {
    {"tagClicked(Nepomuk::Tag)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_TagCloud = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__TagCloud,
        {0}
    },
    {
        sipNameNr_TagCloud,
        {2, 255, 0},
        50, methods_Nepomuk_TagCloud,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_TagCloud,
    0,
    init_Nepomuk_TagCloud,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_TagCloud,
    0,
    0,
    0,
    release_Nepomuk_TagCloud,
    cast_Nepomuk_TagCloud,
    0,
    0,
    0
},
    &Nepomuk::TagCloud::staticMetaObject,
    0,
    pyqt4_signals_Nepomuk_TagCloud
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/ktagcloudwidget.sip"
#include <nepomuk/ktagcloudwidget.h>
#line 3035 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3039 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 222 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qmap.h>
#line 3042 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3045 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3048 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 413 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3051 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3054 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 3057 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3060 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3063 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 3066 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 3069 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3072 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 3075 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 3078 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 3081 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3084 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 3087 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3090 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 3093 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 3096 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 3099 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 3102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 3105 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3108 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 3111 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 499 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3117 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 459 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 448 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 542 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 593 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3132 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 566 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 582 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3138 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 645 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 291 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 470 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3147 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 426 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3150 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 400 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3153 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 386 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3156 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 367 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3159 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 339 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3162 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 270 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3165 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 231 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3168 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 3171 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 61 "/usr/local/share/py-sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 3174 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 3177 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3180 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 3183 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qlayout.sip"
#include <qlayout.h>
#line 3186 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 3189 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3192 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 3195 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 3198 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 3201 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 3204 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 3207 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3213 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3216 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3222 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3225 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3228 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3231 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


class sipKTagCloudWidget : public KTagCloudWidget
{
public:
    sipKTagCloudWidget(QWidget *);
    virtual ~sipKTagCloudWidget();

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[47];
};

sipKTagCloudWidget::sipKTagCloudWidget(QWidget *a0): KTagCloudWidget(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKTagCloudWidget::metaObject() const
{
    return sip_nepomuk_qt_metaobject(sipPySelf,sipType_KTagCloudWidget);
}

int sipKTagCloudWidget::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KTagCloudWidget::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_nepomuk_qt_metacall(sipPySelf,sipType_KTagCloudWidget,_c,_id,_a);

    return _id;
}

void *sipKTagCloudWidget::qt_metacast(const char *_clname)
{
    return (sip_nepomuk_qt_metacast && sip_nepomuk_qt_metacast(sipPySelf,sipType_KTagCloudWidget,_clname)) ? this : KTagCloudWidget::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKTagCloudWidget *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKTagCloudWidget *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 4509 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QMouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QWheelEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QWheelEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QKeyEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QKeyEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QFocusEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QFocusEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QPaintEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QPaintEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMoveEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QMoveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QCloseEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QCloseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QContextMenuEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QTabletEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QTabletEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QActionEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QActionEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDragEnterEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QDragEnterEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDragMoveEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDragLeaveEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QDropEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QDropEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QShowEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QShowEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QHideEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QHideEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QPaintDevice::PaintDeviceMetric a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QInputMethodEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKTagCloudWidget *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKTagCloudWidget *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|mbb", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_create(a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_destroy(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKTagCloudWidget *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusNextChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKTagCloudWidget *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusPreviousChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enabledChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QPalette * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QPalette, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paletteChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_fontChange(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_fontChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QFont * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QFont, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_fontChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTagCloudWidget, sipName_fontChange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_windowActivationChange(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_windowActivationChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_windowActivationChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTagCloudWidget, sipName_windowActivationChange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_languageChange(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_languageChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTagCloudWidget, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_languageChange(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTagCloudWidget, sipName_languageChange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_tagWeight(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_tagWeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        KTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->tagWeight(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTagCloudWidget, sipName_tagWeight, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_addTag(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_addTag(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        int a1;
        KTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addTag(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTagCloudWidget, sipName_addTag, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_clear(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTagCloudWidget, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTagCloudWidget, sipName_clear, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_setMaxFontSize(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_setMaxFontSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        KTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaxFontSize(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_KTagCloudWidget, sipName_setMaxFontSize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_setMinFontSize(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_setMinFontSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        KTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTagCloudWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMinFontSize(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_KTagCloudWidget, sipName_setMinFontSize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_resizeEvent(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_resizeEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent * a0;
        sipKTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QResizeEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTagCloudWidget, sipName_resizeEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTagCloudWidget_addTags(PyObject *, PyObject *);}
static PyObject *meth_KTagCloudWidget_addTags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMap<QString,int> * a0;
        int a0State = 0;
        KTagCloudWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTagCloudWidget, &sipCpp, sipType_QMap_0100QString_1800,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addTags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QMap<QString,int> *>(a0),sipType_QMap_0100QString_1800,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KTagCloudWidget, sipName_addTags, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTagCloudWidget(void *, const sipTypeDef *);}
static void *cast_KTagCloudWidget(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KTagCloudWidget)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QWidget)->ctd_cast((QWidget *)(KTagCloudWidget *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTagCloudWidget(void *, int);}
static void release_KTagCloudWidget(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTagCloudWidget *>(sipCppV);
    else
        delete reinterpret_cast<KTagCloudWidget *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTagCloudWidget(sipSimpleWrapper *);}
static void dealloc_KTagCloudWidget(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTagCloudWidget *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTagCloudWidget(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KTagCloudWidget(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KTagCloudWidget(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTagCloudWidget *sipCpp = 0;

    {
        QWidget * a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTagCloudWidget(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTagCloudWidget[] = {{748, 2, 1}};


static PyMethodDef methods_KTagCloudWidget[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), meth_KTagCloudWidget_actionEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTag), meth_KTagCloudWidget_addTag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTags), meth_KTagCloudWidget_addTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_KTagCloudWidget_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTagCloudWidget_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KTagCloudWidget_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_KTagCloudWidget_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTagCloudWidget_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_KTagCloudWidget_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_KTagCloudWidget_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTagCloudWidget_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_KTagCloudWidget_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTagCloudWidget_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_KTagCloudWidget_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_KTagCloudWidget_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_KTagCloudWidget_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_KTagCloudWidget_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enabledChange), meth_KTagCloudWidget_enabledChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), meth_KTagCloudWidget_enterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_KTagCloudWidget_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_KTagCloudWidget_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), meth_KTagCloudWidget_focusNextChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_KTagCloudWidget_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_KTagCloudWidget_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), meth_KTagCloudWidget_focusPreviousChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontChange), meth_KTagCloudWidget_fontChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_KTagCloudWidget_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_KTagCloudWidget_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_KTagCloudWidget_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_KTagCloudWidget_keyReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageChange), meth_KTagCloudWidget_languageChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), meth_KTagCloudWidget_leaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), meth_KTagCloudWidget_metric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), meth_KTagCloudWidget_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_KTagCloudWidget_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_KTagCloudWidget_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_KTagCloudWidget_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_KTagCloudWidget_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), meth_KTagCloudWidget_paintEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paletteChange), meth_KTagCloudWidget_paletteChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTagCloudWidget_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetInputContext), meth_KTagCloudWidget_resetInputContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), meth_KTagCloudWidget_resizeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KTagCloudWidget_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxFontSize), meth_KTagCloudWidget_setMaxFontSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMinFontSize), meth_KTagCloudWidget_setMinFontSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_KTagCloudWidget_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), meth_KTagCloudWidget_tabletEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagWeight), meth_KTagCloudWidget_tagWeight, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTagCloudWidget_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_KTagCloudWidget_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_KTagCloudWidget_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowActivationChange), meth_KTagCloudWidget_windowActivationChange, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KTagCloudWidget[] = {
    {"tagClicked(QString)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_KTagCloudWidget = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTagCloudWidget,
        {0}
    },
    {
        sipNameNr_KTagCloudWidget,
        {0, 0, 1},
        53, methods_KTagCloudWidget,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTagCloudWidget,
    0,
    init_KTagCloudWidget,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTagCloudWidget,
    0,
    0,
    0,
    release_KTagCloudWidget,
    cast_KTagCloudWidget,
    0,
    0,
    0
},
    &KTagCloudWidget::staticMetaObject,
    0,
    pyqt4_signals_KTagCloudWidget
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 6147 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 6151 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 6154 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6157 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 6160 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 6163 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 6166 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 6169 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 6172 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 6175 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 6178 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 6181 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isValid(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_type(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::Term::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Nepomuk_Query_Term_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isLiteralTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isLiteralTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLiteralTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isLiteralTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isResourceTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isResourceTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResourceTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isResourceTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isNegationTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isNegationTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNegationTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isNegationTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isAndTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isAndTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAndTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isAndTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isOrTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isOrTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOrTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isOrTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isComparisonTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isComparisonTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isComparisonTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isComparisonTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isResourceTypeTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isResourceTypeTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResourceTypeTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isResourceTypeTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toLiteralTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toLiteralTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::LiteralTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::LiteralTerm(sipCpp->toLiteralTerm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_LiteralTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toLiteralTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toResourceTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toResourceTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::ResourceTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ResourceTerm(sipCpp->toResourceTerm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_ResourceTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toResourceTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toNegationTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toNegationTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::NegationTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::NegationTerm(sipCpp->toNegationTerm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_NegationTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toNegationTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toAndTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toAndTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::AndTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::AndTerm(sipCpp->toAndTerm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_AndTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toAndTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toOrTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toOrTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::OrTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::OrTerm(sipCpp->toOrTerm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_OrTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toOrTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toComparisonTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toComparisonTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::ComparisonTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(sipCpp->toComparisonTerm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_ComparisonTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toComparisonTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toResourceTypeTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toResourceTypeTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::ResourceTypeTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ResourceTypeTerm(sipCpp->toResourceTypeTerm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_ResourceTypeTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toResourceTypeTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_isOptionalTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_isOptionalTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOptionalTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_isOptionalTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toOptionalTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toOptionalTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::OptionalTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::OptionalTerm(sipCpp->toOptionalTerm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_OptionalTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toOptionalTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_toString(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_toString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_fromString(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_fromString(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(Nepomuk::Query::Term::fromString(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Term,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_fromString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_optimized(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_optimized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &sipCpp))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(sipCpp->optimized());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Term,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_optimized, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_fromVariant(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_fromVariant(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Variant, &a0))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(Nepomuk::Query::Term::fromVariant(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Term,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_fromVariant, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Term_fromProperty(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Term_fromProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Types::Property * a0;
        const Nepomuk::Variant * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_Nepomuk_Types_Property, &a0, sipType_Nepomuk_Variant, &a1))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(Nepomuk::Query::Term::fromProperty(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Term,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Term, sipName_fromProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Query_Term___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Term___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Term *sipCpp = reinterpret_cast<Nepomuk::Query::Term *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Term));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Term, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Term::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ne_slot,sipType_Nepomuk_Query_Term,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Query_Term___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Term___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Term *sipCpp = reinterpret_cast<Nepomuk::Query::Term *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Term));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Term, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Term::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,eq_slot,sipType_Nepomuk_Query_Term,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Nepomuk_Query_Term(void *, const sipTypeDef *);}
static void *cast_Nepomuk_Query_Term(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Nepomuk_Query_Term)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Nepomuk_Query_Term(void *, int);}
static void release_Nepomuk_Query_Term(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Nepomuk::Query::Term *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_Term(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_Term(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::Term *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::Term *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_Term(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_Term(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::Term[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_Term(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_Term(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::Term(reinterpret_cast<const Nepomuk::Query::Term *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Nepomuk_Query_Term(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Query_Term(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_Term(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_Nepomuk_Query_Term(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_Term(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::Term *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Term();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Term(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_Term[] = {
    {(void *)slot_Nepomuk_Query_Term___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_Term___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Query_Term[] = {
    {SIP_MLNAME_CAST(sipName_fromProperty), meth_Nepomuk_Query_Term_fromProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_Nepomuk_Query_Term_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromVariant), meth_Nepomuk_Query_Term_fromVariant, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAndTerm), meth_Nepomuk_Query_Term_isAndTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isComparisonTerm), meth_Nepomuk_Query_Term_isComparisonTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLiteralTerm), meth_Nepomuk_Query_Term_isLiteralTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNegationTerm), meth_Nepomuk_Query_Term_isNegationTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOptionalTerm), meth_Nepomuk_Query_Term_isOptionalTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOrTerm), meth_Nepomuk_Query_Term_isOrTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResourceTerm), meth_Nepomuk_Query_Term_isResourceTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResourceTypeTerm), meth_Nepomuk_Query_Term_isResourceTypeTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Query_Term_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_optimized), meth_Nepomuk_Query_Term_optimized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toAndTerm), meth_Nepomuk_Query_Term_toAndTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toComparisonTerm), meth_Nepomuk_Query_Term_toComparisonTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toLiteralTerm), meth_Nepomuk_Query_Term_toLiteralTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toNegationTerm), meth_Nepomuk_Query_Term_toNegationTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toOptionalTerm), meth_Nepomuk_Query_Term_toOptionalTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toOrTerm), meth_Nepomuk_Query_Term_toOrTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toResourceTerm), meth_Nepomuk_Query_Term_toResourceTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toResourceTypeTerm), meth_Nepomuk_Query_Term_toResourceTypeTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Nepomuk_Query_Term_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Nepomuk_Query_Term_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_Term[] = {
    {sipName_And, Nepomuk::Query::Term::And, 37},
    {sipName_Comparison, Nepomuk::Query::Term::Comparison, 37},
    {sipName_Invalid, Nepomuk::Query::Term::Invalid, 37},
    {sipName_Literal, Nepomuk::Query::Term::Literal, 37},
    {sipName_Negation, Nepomuk::Query::Term::Negation, 37},
    {sipName_Optional, Nepomuk::Query::Term::Optional, 37},
    {sipName_Or, Nepomuk::Query::Term::Or, 37},
    {sipName_Resource, Nepomuk::Query::Term::Resource, 37},
    {sipName_ResourceType, Nepomuk::Query::Term::ResourceType, 37},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Term = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Term,
        {0}
    },
    {
        sipNameNr_Term,
        {6, 255, 0},
        23, methods_Nepomuk_Query_Term,
        9, enummembers_Nepomuk_Query_Term,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Term,
    init_Nepomuk_Query_Term,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Term,
    assign_Nepomuk_Query_Term,
    array_Nepomuk_Query_Term,
    copy_Nepomuk_Query_Term,
    release_Nepomuk_Query_Term,
    cast_Nepomuk_Query_Term,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/filequery.sip"
#include <nepomuk/filequery.h>
#line 7062 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/filequery.sip"
#include <nepomuk/filequery.h>
#line 7066 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


extern "C" {static int slot_Nepomuk_Query_FileQuery_FileMode___bool__(PyObject *);}
static int slot_Nepomuk_Query_FileQuery_FileMode___bool__(PyObject *sipSelf)
{
    Nepomuk::Query::FileQuery::FileMode *sipCpp = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_FileQuery_FileMode));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 7084 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::FileQuery::FileMode *sipCpp = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_FileQuery_FileMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State))
        {
            bool sipRes = 0;

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 7114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::FileQuery::FileMode *>(a0),sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ne_slot,sipType_Nepomuk_Query_FileQuery_FileMode,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::FileQuery::FileMode *sipCpp = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_FileQuery_FileMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State))
        {
            bool sipRes = 0;

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 7150 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::FileQuery::FileMode *>(a0),sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,eq_slot,sipType_Nepomuk_Query_FileQuery_FileMode,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___invert__(PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___invert__(PyObject *sipSelf)
{
    Nepomuk::Query::FileQuery::FileMode *sipCpp = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_FileQuery_FileMode));

    if (!sipCpp)
        return 0;


    {
        {
            Nepomuk::Query::FileQuery::FileMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::FileQuery::FileMode(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_FileQuery_FileMode,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___and__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State, &a1))
        {
            Nepomuk::Query::FileQuery::FileMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::FileQuery::FileMode((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_FileQuery_FileMode,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___xor__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;
        Nepomuk::Query::FileQuery::FileMode * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State, sipType_Nepomuk_Query_FileQuery_FileMode, &a1, &a1State))
        {
            Nepomuk::Query::FileQuery::FileMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::FileQuery::FileMode((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_FileQuery_FileMode,a1State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_FileQuery_FileMode,NULL);
        }
    }

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State, &a1))
        {
            Nepomuk::Query::FileQuery::FileMode *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::FileQuery::FileMode(*a0 ^ a1);
#line 7259 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_FileQuery_FileMode,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___or__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;
        Nepomuk::Query::FileQuery::FileMode * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State, sipType_Nepomuk_Query_FileQuery_FileMode, &a1, &a1State))
        {
            Nepomuk::Query::FileQuery::FileMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::FileQuery::FileMode((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_FileQuery_FileMode,a1State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_FileQuery_FileMode,NULL);
        }
    }

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State, &a1))
        {
            Nepomuk::Query::FileQuery::FileMode *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::FileQuery::FileMode(*a0 | a1);
#line 7311 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_FileQuery_FileMode,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___int__(PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___int__(PyObject *sipSelf)
{
    Nepomuk::Query::FileQuery::FileMode *sipCpp = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_FileQuery_FileMode));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_FileQuery_FileMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Nepomuk::Query::FileQuery::FileMode *sipCpp = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_FileQuery_FileMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::FileQuery::FileMode::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___ior__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_FileQuery_FileMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Nepomuk::Query::FileQuery::FileMode *sipCpp = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_FileQuery_FileMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::FileQuery::FileMode::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___iand__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_FileQuery_FileMode___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_FileQuery_FileMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Nepomuk::Query::FileQuery::FileMode *sipCpp = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_FileQuery_FileMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::FileQuery::FileMode::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Nepomuk_Query_FileQuery_FileMode(void *, const sipTypeDef *);}
static void *cast_Nepomuk_Query_FileQuery_FileMode(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Nepomuk_Query_FileQuery_FileMode)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Nepomuk_Query_FileQuery_FileMode(void *, int);}
static void release_Nepomuk_Query_FileQuery_FileMode(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_FileQuery_FileMode(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_FileQuery_FileMode(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::FileQuery::FileMode *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_FileQuery_FileMode(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_FileQuery_FileMode(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::FileQuery::FileMode[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_FileQuery_FileMode(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_FileQuery_FileMode(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::FileQuery::FileMode(reinterpret_cast<const Nepomuk::Query::FileQuery::FileMode *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Nepomuk_Query_FileQuery_FileMode(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Query_FileQuery_FileMode(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_FileQuery_FileMode(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_Nepomuk_Query_FileQuery_FileMode(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_FileQuery_FileMode(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::FileQuery::FileMode *sipCpp = 0;

    {
        const Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery::FileMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Nepomuk::Query::FileQuery::FileMode *>(a0),sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery::FileMode(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery::FileMode();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Nepomuk_Query_FileQuery_FileMode(PyObject *, void **, int *, PyObject *);}
static int convertTo_Nepomuk_Query_FileQuery_FileMode(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Nepomuk::Query::FileQuery::FileMode **sipCppPtr = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Nepomuk::Query::FileQuery::FileMode is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_FileQuery_FileModeFlags)) ||
            sipCanConvertToType(sipPy, sipType_Nepomuk_Query_FileQuery_FileMode, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_FileQuery_FileModeFlags)))
{
    *sipCppPtr = new Nepomuk::Query::FileQuery::FileMode(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Nepomuk::Query::FileQuery::FileMode *>(sipConvertToType(sipPy, sipType_Nepomuk_Query_FileQuery_FileMode, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7606 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_FileQuery_FileMode[] = {
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___bool__, bool_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___eq__, eq_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___invert__, invert_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___and__, and_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___xor__, xor_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___or__, or_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___int__, int_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___ixor__, ixor_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___ior__, ior_slot},
    {(void *)slot_Nepomuk_Query_FileQuery_FileMode___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_FileQuery_FileMode = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__FileQuery__FileMode,
        {0}
    },
    {
        sipNameNr_FileMode,
        {13, 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_Nepomuk_Query_FileQuery_FileMode,
    init_Nepomuk_Query_FileQuery_FileMode,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_FileQuery_FileMode,
    assign_Nepomuk_Query_FileQuery_FileMode,
    array_Nepomuk_Query_FileQuery_FileMode,
    copy_Nepomuk_Query_FileQuery_FileMode,
    release_Nepomuk_Query_FileQuery_FileMode,
    cast_Nepomuk_Query_FileQuery_FileMode,
    convertTo_Nepomuk_Query_FileQuery_FileMode,
    0,
    0
},
    0,
    1,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/filequery.sip"
#include <nepomuk/filequery.h>
#line 7679 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 7683 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 7686 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 845 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 7689 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7692 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/filequery.sip"
#include <nepomuk/filequery.h>
#line 7695 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7698 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 7701 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7704 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7707 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 7710 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7713 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 7716 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 7719 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7722 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 7727 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_addIncludeFolder(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_addIncludeFolder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl * a0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIncludeFolder(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KUrl * a0;
        bool a1;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIncludeFolder(*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_FileQuery, sipName_addIncludeFolder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_setIncludeFolders(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_setIncludeFolders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl::List * a0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIncludeFolders(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QHash<KUrl,bool> * a0;
        int a0State = 0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_QHash_0100KUrl_2600,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIncludeFolders(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHash<KUrl,bool> *>(a0),sipType_QHash_0100KUrl_2600,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileQuery, sipName_setIncludeFolders, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_includeFolders(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_includeFolders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp))
        {
            KUrl::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(sipCpp->includeFolders());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl_List,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileQuery, sipName_includeFolders, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_addExcludeFolder(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_addExcludeFolder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl * a0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addExcludeFolder(*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_FileQuery, sipName_addExcludeFolder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_setExcludeFolders(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_setExcludeFolders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl::List * a0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExcludeFolders(*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_FileQuery, sipName_setExcludeFolders, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_excludeFolders(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_excludeFolders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp))
        {
            KUrl::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(sipCpp->excludeFolders());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl_List,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileQuery, sipName_excludeFolders, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_setFileMode(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_setFileMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFileMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileQuery, sipName_setFileMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_fileMode(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_fileMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp))
        {
            Nepomuk::Query::FileQuery::FileMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::FileQuery::FileMode(sipCpp->fileMode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_FileQuery_FileMode,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileQuery, sipName_fileMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_FileQuery_allIncludeFolders(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_FileQuery_allIncludeFolders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp))
        {
            QHash<KUrl,bool> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<KUrl,bool>(sipCpp->allIncludeFolders());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHash_0100KUrl_2600,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileQuery, sipName_allIncludeFolders, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Nepomuk_Query_FileQuery(void *, const sipTypeDef *);}
static void *cast_Nepomuk_Query_FileQuery(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Nepomuk_Query_FileQuery)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_Query)->ctd_cast((Nepomuk::Query::Query *)(Nepomuk::Query::FileQuery *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Nepomuk_Query_FileQuery(void *, int);}
static void release_Nepomuk_Query_FileQuery(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Nepomuk::Query::FileQuery *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_FileQuery(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_FileQuery(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::FileQuery *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::FileQuery *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_FileQuery(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_FileQuery(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::FileQuery[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_FileQuery(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_FileQuery(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::FileQuery(reinterpret_cast<const Nepomuk::Query::FileQuery *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Nepomuk_Query_FileQuery(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Query_FileQuery(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_FileQuery(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_Nepomuk_Query_FileQuery(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_FileQuery(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::FileQuery *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Query * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Query, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::FileQuery * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_FileQuery, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Nepomuk_Query_FileQuery[] = {{21, 255, 1}};


static PyMethodDef methods_Nepomuk_Query_FileQuery[] = {
    {SIP_MLNAME_CAST(sipName_addExcludeFolder), meth_Nepomuk_Query_FileQuery_addExcludeFolder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIncludeFolder), meth_Nepomuk_Query_FileQuery_addIncludeFolder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allIncludeFolders), meth_Nepomuk_Query_FileQuery_allIncludeFolders, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_excludeFolders), meth_Nepomuk_Query_FileQuery_excludeFolders, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileMode), meth_Nepomuk_Query_FileQuery_fileMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeFolders), meth_Nepomuk_Query_FileQuery_includeFolders, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setExcludeFolders), meth_Nepomuk_Query_FileQuery_setExcludeFolders, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileMode), meth_Nepomuk_Query_FileQuery_setFileMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIncludeFolders), meth_Nepomuk_Query_FileQuery_setIncludeFolders, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_FileQuery[] = {
    {sipName_QueryFiles, Nepomuk::Query::FileQuery::QueryFiles, 15},
    {sipName_QueryFilesAndFolders, Nepomuk::Query::FileQuery::QueryFilesAndFolders, 15},
    {sipName_QueryFolders, Nepomuk::Query::FileQuery::QueryFolders, 15},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_FileQuery = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__FileQuery,
        {0}
    },
    {
        sipNameNr_FileQuery,
        {6, 255, 0},
        9, methods_Nepomuk_Query_FileQuery,
        3, enummembers_Nepomuk_Query_FileQuery,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_FileQuery,
    0,
    init_Nepomuk_Query_FileQuery,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_FileQuery,
    assign_Nepomuk_Query_FileQuery,
    array_Nepomuk_Query_FileQuery,
    copy_Nepomuk_Query_FileQuery,
    release_Nepomuk_Query_FileQuery,
    cast_Nepomuk_Query_FileQuery,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 8201 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 8205 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 8208 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8211 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/filequery.sip"
#include <nepomuk/filequery.h>
#line 8214 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8217 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 8220 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 8223 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8226 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 8229 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 8232 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8235 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 8240 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


extern "C" {static PyObject *meth_Nepomuk_Query_Query_isValid(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_term(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_term(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(sipCpp->term());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Term,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_term, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_limit(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_limit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->limit();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_limit, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_setTerm(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_setTerm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Term * a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTerm(*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_Query, sipName_setTerm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_setLimit(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_setLimit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLimit(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_Query, sipName_setLimit, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_addRequestProperty(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_addRequestProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query::RequestProperty * a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Query_RequestProperty, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addRequestProperty(*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_Query, sipName_addRequestProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_setRequestProperties(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_setRequestProperties(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<Nepomuk::Query::Query::RequestProperty> * a0;
        int a0State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_QList_0100Nepomuk_Query_Query_RequestProperty,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRequestProperties(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Query::Query::RequestProperty> *>(a0),sipType_QList_0100Nepomuk_Query_Query_RequestProperty,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_setRequestProperties, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_requestProperties(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_requestProperties(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            QList<Nepomuk::Query::Query::RequestProperty> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Query::Query::RequestProperty>(sipCpp->requestProperties());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Query_Query_RequestProperty,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_requestProperties, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_toSparqlQuery(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_toSparqlQuery(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query::SparqlFlags a0def = Nepomuk::Query::Query::NoFlags;
        Nepomuk::Query::Query::SparqlFlags * a0 = &a0def;
        int a0State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toSparqlQuery(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_toSparqlQuery, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_toSearchUrl(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_toSearchUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query::SparqlFlags a0def = Nepomuk::Query::Query::NoFlags;
        Nepomuk::Query::Query::SparqlFlags * a0 = &a0def;
        int a0State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->toSearchUrl(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Query::Query::SparqlFlags a1def = Nepomuk::Query::Query::NoFlags;
        Nepomuk::Query::Query::SparqlFlags * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_QString,&a0, &a0State, sipType_Nepomuk_Query_Query_SparqlFlags, &a1, &a1State))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->toSearchUrl(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_Query_SparqlFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_toSearchUrl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_requestPropertyMap(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_requestPropertyMap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            Nepomuk::Query::RequestPropertyMap *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::RequestPropertyMap(sipCpp->requestPropertyMap());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHash_0100QString_0100Nepomuk_Types_Property,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_requestPropertyMap, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_offset(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->offset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_offset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_setOffset(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_setOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOffset(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_Query, sipName_setOffset, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_isFileQuery(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_isFileQuery(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isFileQuery();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_isFileQuery, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_toString(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_toString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_fromString(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_fromString(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(Nepomuk::Query::Query::fromString(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Query,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_fromString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_fromQueryUrl(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_fromQueryUrl(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(Nepomuk::Query::Query::fromQueryUrl(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Query,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_fromQueryUrl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_sparqlFromQueryUrl(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_sparqlFromQueryUrl(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Query::Query::sparqlFromQueryUrl(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_sparqlFromQueryUrl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_titleFromQueryUrl(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_titleFromQueryUrl(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Query::Query::titleFromQueryUrl(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_titleFromQueryUrl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_toFileQuery(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_toFileQuery(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            Nepomuk::Query::FileQuery *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::FileQuery(sipCpp->toFileQuery());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_FileQuery,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_toFileQuery, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_setFullTextScoringEnabled(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_setFullTextScoringEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFullTextScoringEnabled(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_Query, sipName_setFullTextScoringEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_setFullTextScoringSortOrder(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_setFullTextScoringSortOrder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::SortOrder a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Qt_SortOrder, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFullTextScoringSortOrder(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_Query, sipName_setFullTextScoringSortOrder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_fullTextScoringEnabled(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_fullTextScoringEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fullTextScoringEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_fullTextScoringEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_fullTextScoringSortOrder(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_fullTextScoringSortOrder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            Qt::SortOrder sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fullTextScoringSortOrder();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Qt_SortOrder);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_fullTextScoringSortOrder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_setQueryFlags(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_setQueryFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query::QueryFlags * a0;
        int a0State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Query_QueryFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueryFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_QueryFlags,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_setQueryFlags, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_queryFlags(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_queryFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            Nepomuk::Query::Query::QueryFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query::QueryFlags(sipCpp->queryFlags());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Query_QueryFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_queryFlags, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_Query_optimized(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_Query_optimized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(sipCpp->optimized());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Query,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Query, sipName_optimized, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Query_Query___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Query *sipCpp = reinterpret_cast<Nepomuk::Query::Query *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Query, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Query::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ne_slot,sipType_Nepomuk_Query_Query,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Query_Query___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Query *sipCpp = reinterpret_cast<Nepomuk::Query::Query *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Query, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Query::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,eq_slot,sipType_Nepomuk_Query_Query,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Nepomuk_Query_Query(void *, const sipTypeDef *);}
static void *cast_Nepomuk_Query_Query(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Nepomuk_Query_Query)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Nepomuk_Query_Query(void *, int);}
static void release_Nepomuk_Query_Query(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Nepomuk::Query::Query *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_Query(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_Query(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::Query *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::Query *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_Query(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_Query(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::Query[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_Query(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_Query(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::Query(reinterpret_cast<const Nepomuk::Query::Query *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Nepomuk_Query_Query(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Query_Query(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_Query(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_Nepomuk_Query_Query(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_Query(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::Query *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Query();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Query(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Query * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Query, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Query(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_Query[] = {
    {(void *)slot_Nepomuk_Query_Query___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_Query___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Query_Query[] = {
    {SIP_MLNAME_CAST(sipName_addRequestProperty), meth_Nepomuk_Query_Query_addRequestProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromQueryUrl), meth_Nepomuk_Query_Query_fromQueryUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_Nepomuk_Query_Query_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fullTextScoringEnabled), meth_Nepomuk_Query_Query_fullTextScoringEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fullTextScoringSortOrder), meth_Nepomuk_Query_Query_fullTextScoringSortOrder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFileQuery), meth_Nepomuk_Query_Query_isFileQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Query_Query_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_limit), meth_Nepomuk_Query_Query_limit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_Nepomuk_Query_Query_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_optimized), meth_Nepomuk_Query_Query_optimized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryFlags), meth_Nepomuk_Query_Query_queryFlags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestProperties), meth_Nepomuk_Query_Query_requestProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestPropertyMap), meth_Nepomuk_Query_Query_requestPropertyMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFullTextScoringEnabled), meth_Nepomuk_Query_Query_setFullTextScoringEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFullTextScoringSortOrder), meth_Nepomuk_Query_Query_setFullTextScoringSortOrder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLimit), meth_Nepomuk_Query_Query_setLimit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOffset), meth_Nepomuk_Query_Query_setOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setQueryFlags), meth_Nepomuk_Query_Query_setQueryFlags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRequestProperties), meth_Nepomuk_Query_Query_setRequestProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTerm), meth_Nepomuk_Query_Query_setTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sparqlFromQueryUrl), meth_Nepomuk_Query_Query_sparqlFromQueryUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_term), meth_Nepomuk_Query_Query_term, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_titleFromQueryUrl), meth_Nepomuk_Query_Query_titleFromQueryUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toFileQuery), meth_Nepomuk_Query_Query_toFileQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toSearchUrl), meth_Nepomuk_Query_Query_toSearchUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toSparqlQuery), meth_Nepomuk_Query_Query_toSparqlQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Nepomuk_Query_Query_toString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_Query[] = {
    {sipName_CreateAskQuery, Nepomuk::Query::Query::CreateAskQuery, 25},
    {sipName_CreateCountQuery, Nepomuk::Query::Query::CreateCountQuery, 25},
    {sipName_HandleInverseProperties, Nepomuk::Query::Query::HandleInverseProperties, 25},
    {sipName_NoFlags, Nepomuk::Query::Query::NoFlags, 25},
    {sipName_NoQueryFlags, Nepomuk::Query::Query::NoQueryFlags, 22},
    {sipName_NoResultRestrictions, Nepomuk::Query::Query::NoResultRestrictions, 22},
    {sipName_WithoutFullTextExcerpt, Nepomuk::Query::Query::WithoutFullTextExcerpt, 22},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Query = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Query,
        {0}
    },
    {
        sipNameNr_Query,
        {6, 255, 0},
        27, methods_Nepomuk_Query_Query,
        7, enummembers_Nepomuk_Query_Query,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Query,
    init_Nepomuk_Query_Query,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Query,
    assign_Nepomuk_Query_Query,
    array_Nepomuk_Query_Query,
    copy_Nepomuk_Query_Query,
    release_Nepomuk_Query_Query,
    cast_Nepomuk_Query_Query,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/file.sip"
#include <nepomuk/file.h>
#line 9277 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 9281 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 9284 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 9287 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 9290 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9293 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9296 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9299 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 9302 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9305 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 9308 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 9311 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 9314 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 9317 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 9320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 9323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9326 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9329 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


class sipNepomuk_File : public Nepomuk::File
{
public:
    sipNepomuk_File(const KUrl&,Nepomuk::ResourceManager *);
    sipNepomuk_File(const Nepomuk::Resource&);
    sipNepomuk_File(const Nepomuk::File&);
    ~sipNepomuk_File();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_File(const sipNepomuk_File &);
    sipNepomuk_File &operator = (const sipNepomuk_File &);
};

sipNepomuk_File::sipNepomuk_File(const KUrl& a0,Nepomuk::ResourceManager *a1): Nepomuk::File(a0,a1), sipPySelf(0)
{
}

sipNepomuk_File::sipNepomuk_File(const Nepomuk::Resource& a0): Nepomuk::File(a0), sipPySelf(0)
{
}

sipNepomuk_File::sipNepomuk_File(const Nepomuk::File& a0): Nepomuk::File(a0), sipPySelf(0)
{
}

sipNepomuk_File::~sipNepomuk_File()
{
    sipCommonDtor(sipPySelf);
}


extern "C" {static PyObject *meth_Nepomuk_File_url(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_File_url(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::File *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_File, &sipCpp))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_File, sipName_url, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_File_dirResource(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_File_dirResource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::File *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_File, &sipCpp))
        {
            Nepomuk::File *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::File(sipCpp->dirResource());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_File,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_File, sipName_dirResource, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Nepomuk_File(void *, const sipTypeDef *);}
static void *cast_Nepomuk_File(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Nepomuk_File)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Resource)->ctd_cast((Nepomuk::Resource *)(Nepomuk::File *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Nepomuk_File(void *, int);}
static void release_Nepomuk_File(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_File *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::File *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_File(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_File(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::File *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::File *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_File(SIP_SSIZE_T);}
static void *array_Nepomuk_File(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::File[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_File(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_File(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::File(reinterpret_cast<const Nepomuk::File *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Nepomuk_File(sipSimpleWrapper *);}
static void dealloc_Nepomuk_File(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipNepomuk_File *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_File(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Nepomuk_File(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_File(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipNepomuk_File *sipCpp = 0;

    {
        const KUrl& a0def = KUrl();
        const KUrl * a0 = &a0def;
        Nepomuk::ResourceManager * a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J9J8", sipType_KUrl, &a0, sipType_Nepomuk_ResourceManager, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_File(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_File(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::File * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_File, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_File(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Nepomuk_File[] = {{38, 255, 1}};


static PyMethodDef methods_Nepomuk_File[] = {
    {SIP_MLNAME_CAST(sipName_dirResource), meth_Nepomuk_File_dirResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_Nepomuk_File_url, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_File = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__File,
        {0}
    },
    {
        sipNameNr_File,
        {2, 255, 0},
        2, methods_Nepomuk_File,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_File,
    0,
    init_Nepomuk_File,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_File,
    assign_Nepomuk_File,
    array_Nepomuk_File,
    copy_Nepomuk_File,
    release_Nepomuk_File,
    cast_Nepomuk_File,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 9603 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 9607 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9610 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 9613 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/file.sip"
#include <nepomuk/file.h>
#line 9616 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 9619 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 9622 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9625 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9628 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 9631 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9634 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 9637 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 9640 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 9643 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 9646 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 9649 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9652 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9655 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


class sipNepomuk_Resource : public Nepomuk::Resource
{
public:
    sipNepomuk_Resource();
    sipNepomuk_Resource(Nepomuk::ResourceManager *);
    sipNepomuk_Resource(const Nepomuk::Resource&);
    sipNepomuk_Resource(const QString&,const QUrl&);
    sipNepomuk_Resource(const QString&,const QUrl&,Nepomuk::ResourceManager *);
    sipNepomuk_Resource(const QString&,const QString&);
    sipNepomuk_Resource(const QUrl&,const QUrl&);
    sipNepomuk_Resource(const QUrl&,const QUrl&,Nepomuk::ResourceManager *);
    ~sipNepomuk_Resource();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_Resource(const sipNepomuk_Resource &);
    sipNepomuk_Resource &operator = (const sipNepomuk_Resource &);
};

sipNepomuk_Resource::sipNepomuk_Resource(): Nepomuk::Resource(), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(Nepomuk::ResourceManager *a0): Nepomuk::Resource(a0), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(const Nepomuk::Resource& a0): Nepomuk::Resource(a0), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(const QString& a0,const QUrl& a1): Nepomuk::Resource(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(const QString& a0,const QUrl& a1,Nepomuk::ResourceManager *a2): Nepomuk::Resource(a0,a1,a2), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(const QString& a0,const QString& a1): Nepomuk::Resource(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(const QUrl& a0,const QUrl& a1): Nepomuk::Resource(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(const QUrl& a0,const QUrl& a1,Nepomuk::ResourceManager *a2): Nepomuk::Resource(a0,a1,a2), sipPySelf(0)
{
}

sipNepomuk_Resource::~sipNepomuk_Resource()
{
    sipCommonDtor(sipPySelf);
}


extern "C" {static PyObject *meth_Nepomuk_Resource_manager(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_manager(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            Nepomuk::ResourceManager *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->manager();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Nepomuk_ResourceManager,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_manager, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_uri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_uri(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->uri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_uri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_resourceUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_resourceUri(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->resourceUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_resourceUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_type(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->type());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_resourceType(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_resourceType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->resourceType());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_resourceType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_types(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_types(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QList<QUrl> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QUrl>(sipCpp->types());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_types, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setTypes(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QUrl> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100QUrl,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTypes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QUrl> *>(a0),sipType_QList_0100QUrl,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setTypes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addType(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addType(*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_Resource, sipName_addType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_hasType(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_hasType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasType(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_hasType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_className(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_className(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->className());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_className, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_allProperties(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_allProperties(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QHash<QString,Nepomuk::Variant> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QString,Nepomuk::Variant>(sipCpp->allProperties());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHash_0100QString_0100Nepomuk_Variant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_allProperties, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_properties(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_properties(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QHash<QUrl,Nepomuk::Variant> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QUrl,Nepomuk::Variant>(sipCpp->properties());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHash_0100QUrl_0100Nepomuk_Variant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_properties, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_hasProperty(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_hasProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasProperty(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasProperty(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Nepomuk::Types::Property * a0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_Nepomuk_Types_Property, &a0, sipType_Nepomuk_Variant, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_hasProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_property(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_property(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Variant,NULL);
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Variant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_property, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setProperty(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0, sipType_Nepomuk_Variant, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State, sipType_Nepomuk_Variant, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addProperty(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0, sipType_Nepomuk_Variant, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addProperty(*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_Resource, sipName_addProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_removeProperty(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_removeProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeProperty(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QUrl * a0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0, sipType_Nepomuk_Variant, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeProperty(*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_Resource, sipName_removeProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_remove(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->remove();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_remove, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_exists(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_exists(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exists();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_exists, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_isValid(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_genericLabel(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_genericLabel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->genericLabel());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_genericLabel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_genericDescription(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_genericDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->genericDescription());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_genericDescription, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_genericIcon(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_genericIcon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->genericIcon());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_genericIcon, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_pimoThing(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_pimoThing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            Nepomuk::Thing *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Thing(sipCpp->pimoThing());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Thing,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_pimoThing, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_description(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_description(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->description());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_description, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setDescription(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDescription(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setDescription, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_descriptionUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_descriptionUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::descriptionUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_descriptionUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_identifiers(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_identifiers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->identifiers());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_identifiers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setIdentifiers(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setIdentifiers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIdentifiers(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setIdentifiers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addIdentifier(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addIdentifier(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIdentifier(*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_Resource, sipName_addIdentifier, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_identifierUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_identifierUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::identifierUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_identifierUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_altLabels(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_altLabels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->altLabels());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_altLabels, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setAltLabels(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setAltLabels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAltLabels(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setAltLabels, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addAltLabel(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addAltLabel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addAltLabel(*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_Resource, sipName_addAltLabel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_altLabelUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_altLabelUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::altLabelUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_altLabelUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_annotations(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_annotations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->annotations());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Resource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_annotations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setAnnotations(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setAnnotations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAnnotations(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setAnnotations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addAnnotation(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addAnnotation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addAnnotation(*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_Resource, sipName_addAnnotation, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_annotationUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_annotationUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::annotationUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_annotationUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_tags(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_tags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QList<Nepomuk::Tag> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Tag>(sipCpp->tags());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Tag,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_tags, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setTags(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setTags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<Nepomuk::Tag> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Tag,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Tag> *>(a0),sipType_QList_0100Nepomuk_Tag,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setTags, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addTag(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addTag(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Tag * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_Nepomuk_Tag, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addTag(*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_Resource, sipName_addTag, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_tagUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_tagUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::tagUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_tagUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_topics(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_topics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->topics());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Resource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_topics, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setTopics(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setTopics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTopics(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setTopics, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addTopic(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addTopic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addTopic(*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_Resource, sipName_addTopic, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_topicUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_topicUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::topicUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_topicUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_isTopicOfs(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_isTopicOfs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isTopicOfs());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Resource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_isTopicOfs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setIsTopicOfs(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setIsTopicOfs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIsTopicOfs(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setIsTopicOfs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addIsTopicOf(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addIsTopicOf(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIsTopicOf(*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_Resource, sipName_addIsTopicOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_isTopicOfUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_isTopicOfUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::isTopicOfUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_isTopicOfUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_isRelateds(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_isRelateds(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isRelateds());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Resource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_isRelateds, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setIsRelateds(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setIsRelateds(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIsRelateds(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setIsRelateds, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addIsRelated(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addIsRelated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIsRelated(*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_Resource, sipName_addIsRelated, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_isRelatedUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_isRelatedUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::isRelatedUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_isRelatedUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_label(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_label(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->label());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_label, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setLabel(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setLabel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLabel(*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_Resource, sipName_setLabel, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_labelUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_labelUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::labelUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_labelUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_rating(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_rating(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->rating();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_rating, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setRating(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setRating(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        quint32 a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRating(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_Resource, sipName_setRating, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_ratingUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_ratingUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::ratingUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_ratingUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_symbols(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_symbols(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->symbols());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_symbols, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_setSymbols(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_setSymbols(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSymbols(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_setSymbols, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_addSymbol(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_addSymbol(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addSymbol(*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_Resource, sipName_addSymbol, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_symbolUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_symbolUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::symbolUri());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_symbolUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_annotationOf(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_annotationOf(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->annotationOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Resource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_annotationOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_isRelatedOf(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_isRelatedOf(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isRelatedOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Resource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_isRelatedOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_allResources(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_allResources(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(Nepomuk::Resource::allResources());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Resource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_allResources, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_usageCount(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_usageCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->usageCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_usageCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_increaseUsageCount(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_increaseUsageCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->increaseUsageCount();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_increaseUsageCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_fromResourceUri(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_fromResourceUri(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl * a0;
        const Nepomuk::Types::Class& a1def = Nepomuk::Types::Class();
        const Nepomuk::Types::Class * a1 = &a1def;
        Nepomuk::ResourceManager * a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J9J8", sipType_KUrl, &a0, sipType_Nepomuk_Types_Class, &a1, sipType_Nepomuk_ResourceManager, &a2))
        {
            Nepomuk::Resource *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Resource(Nepomuk::Resource::fromResourceUri(*a0,*a1,a2));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Resource,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_fromResourceUri, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_isFile(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_isFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_isFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Resource_toFile(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Resource_toFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            Nepomuk::File *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::File(sipCpp->toFile());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_File,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Resource, sipName_toFile, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Resource___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Resource___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Resource *sipCpp = reinterpret_cast<Nepomuk::Resource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Resource));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Resource * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Resource, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Resource::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ne_slot,sipType_Nepomuk_Resource,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Resource___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Resource___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Resource *sipCpp = reinterpret_cast<Nepomuk::Resource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Resource));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Resource * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Resource, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Resource::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,eq_slot,sipType_Nepomuk_Resource,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Nepomuk_Resource(void *, const sipTypeDef *);}
static void *cast_Nepomuk_Resource(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Nepomuk_Resource)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Nepomuk_Resource(void *, int);}
static void release_Nepomuk_Resource(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Resource *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Resource *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Resource(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Resource(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Resource *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Resource *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Resource(SIP_SSIZE_T);}
static void *array_Nepomuk_Resource(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Resource[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Resource(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Resource(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Resource(reinterpret_cast<const Nepomuk::Resource *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Nepomuk_Resource(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Resource(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipNepomuk_Resource *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Resource(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Nepomuk_Resource(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Resource(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipNepomuk_Resource *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Nepomuk::ResourceManager * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_Nepomuk_ResourceManager, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QUrl& a1def = QUrl();
        const QUrl * a1 = &a1def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J9", sipType_QString,&a0, &a0State, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J9J8", sipType_QString,&a0, &a0State, sipType_QUrl, &a1, sipType_Nepomuk_ResourceManager, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;
        const QUrl& a1def = QUrl();
        const QUrl * a1 = &a1def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|J9", sipType_QUrl, &a0, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9J8", sipType_QUrl, &a0, sipType_QUrl, &a1, sipType_Nepomuk_ResourceManager, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Resource[] = {
    {(void *)slot_Nepomuk_Resource___ne__, ne_slot},
    {(void *)slot_Nepomuk_Resource___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Resource[] = {
    {SIP_MLNAME_CAST(sipName_addAltLabel), meth_Nepomuk_Resource_addAltLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addAnnotation), meth_Nepomuk_Resource_addAnnotation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIdentifier), meth_Nepomuk_Resource_addIdentifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIsRelated), meth_Nepomuk_Resource_addIsRelated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIsTopicOf), meth_Nepomuk_Resource_addIsTopicOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addProperty), meth_Nepomuk_Resource_addProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addSymbol), meth_Nepomuk_Resource_addSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTag), meth_Nepomuk_Resource_addTag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTopic), meth_Nepomuk_Resource_addTopic, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addType), meth_Nepomuk_Resource_addType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allProperties), meth_Nepomuk_Resource_allProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allResources), meth_Nepomuk_Resource_allResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_altLabelUri), meth_Nepomuk_Resource_altLabelUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_altLabels), meth_Nepomuk_Resource_altLabels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationOf), meth_Nepomuk_Resource_annotationOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationUri), meth_Nepomuk_Resource_annotationUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotations), meth_Nepomuk_Resource_annotations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_className), meth_Nepomuk_Resource_className, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_Nepomuk_Resource_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_descriptionUri), meth_Nepomuk_Resource_descriptionUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exists), meth_Nepomuk_Resource_exists, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromResourceUri), meth_Nepomuk_Resource_fromResourceUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericDescription), meth_Nepomuk_Resource_genericDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericIcon), meth_Nepomuk_Resource_genericIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericLabel), meth_Nepomuk_Resource_genericLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasProperty), meth_Nepomuk_Resource_hasProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasType), meth_Nepomuk_Resource_hasType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifierUri), meth_Nepomuk_Resource_identifierUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifiers), meth_Nepomuk_Resource_identifiers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_increaseUsageCount), meth_Nepomuk_Resource_increaseUsageCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFile), meth_Nepomuk_Resource_isFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelatedOf), meth_Nepomuk_Resource_isRelatedOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelatedUri), meth_Nepomuk_Resource_isRelatedUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelateds), meth_Nepomuk_Resource_isRelateds, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTopicOfUri), meth_Nepomuk_Resource_isTopicOfUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTopicOfs), meth_Nepomuk_Resource_isTopicOfs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Resource_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_label), meth_Nepomuk_Resource_label, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_labelUri), meth_Nepomuk_Resource_labelUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_manager), meth_Nepomuk_Resource_manager, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pimoThing), meth_Nepomuk_Resource_pimoThing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_properties), meth_Nepomuk_Resource_properties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Nepomuk_Resource_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rating), meth_Nepomuk_Resource_rating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ratingUri), meth_Nepomuk_Resource_ratingUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_Nepomuk_Resource_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeProperty), meth_Nepomuk_Resource_removeProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceType), meth_Nepomuk_Resource_resourceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceUri), meth_Nepomuk_Resource_resourceUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAltLabels), meth_Nepomuk_Resource_setAltLabels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAnnotations), meth_Nepomuk_Resource_setAnnotations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDescription), meth_Nepomuk_Resource_setDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIdentifiers), meth_Nepomuk_Resource_setIdentifiers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsRelateds), meth_Nepomuk_Resource_setIsRelateds, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsTopicOfs), meth_Nepomuk_Resource_setIsTopicOfs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLabel), meth_Nepomuk_Resource_setLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_Nepomuk_Resource_setProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRating), meth_Nepomuk_Resource_setRating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSymbols), meth_Nepomuk_Resource_setSymbols, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTags), meth_Nepomuk_Resource_setTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTopics), meth_Nepomuk_Resource_setTopics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTypes), meth_Nepomuk_Resource_setTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symbolUri), meth_Nepomuk_Resource_symbolUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symbols), meth_Nepomuk_Resource_symbols, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagUri), meth_Nepomuk_Resource_tagUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tags), meth_Nepomuk_Resource_tags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toFile), meth_Nepomuk_Resource_toFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_topicUri), meth_Nepomuk_Resource_topicUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_topics), meth_Nepomuk_Resource_topics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Nepomuk_Resource_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_types), meth_Nepomuk_Resource_types, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uri), meth_Nepomuk_Resource_uri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usageCount), meth_Nepomuk_Resource_usageCount, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Resource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Resource,
        {0}
    },
    {
        sipNameNr_Resource,
        {2, 255, 0},
        73, methods_Nepomuk_Resource,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Resource,
    init_Nepomuk_Resource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Resource,
    assign_Nepomuk_Resource,
    array_Nepomuk_Resource,
    copy_Nepomuk_Resource,
    release_Nepomuk_Resource,
    cast_Nepomuk_Resource,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 12211 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 12215 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 12218 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12221 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 12227 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 12230 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 12233 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 12236 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 12239 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 12242 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 12245 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 12248 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart6.cpp"


class sipNepomuk_Query_ComparisonTerm : public Nepomuk::Query::ComparisonTerm
{
public:
    sipNepomuk_Query_ComparisonTerm();
    sipNepomuk_Query_ComparisonTerm(const Nepomuk::Query::ComparisonTerm&);
    sipNepomuk_Query_ComparisonTerm(const Nepomuk::Types::Property&,const Nepomuk::Query::Term&,Nepomuk::Query::ComparisonTerm::Comparator);
    ~sipNepomuk_Query_ComparisonTerm();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_Query_ComparisonTerm(const sipNepomuk_Query_ComparisonTerm &);
    sipNepomuk_Query_ComparisonTerm &operator = (const sipNepomuk_Query_ComparisonTerm &);
};

sipNepomuk_Query_ComparisonTerm::sipNepomuk_Query_ComparisonTerm(): Nepomuk::Query::ComparisonTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_ComparisonTerm::sipNepomuk_Query_ComparisonTerm(const Nepomuk::Query::ComparisonTerm& a0): Nepomuk::Query::ComparisonTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_ComparisonTerm::sipNepomuk_Query_ComparisonTerm(const Nepomuk::Types::Property& a0,const Nepomuk::Query::Term& a1,Nepomuk::Query::ComparisonTerm::Comparator a2): Nepomuk::Query::ComparisonTerm(a0,a1,a2), sipPySelf(0)
{
}

sipNepomuk_Query_ComparisonTerm::~sipNepomuk_Query_ComparisonTerm()
{
    sipCommonDtor(sipPySelf);
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_comparator(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_comparator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Nepomuk::Query::ComparisonTerm::Comparator sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->comparator();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Nepomuk_Query_ComparisonTerm_Comparator);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ComparisonTerm, sipName_comparator, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_property(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_property(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Nepomuk::Types::Property *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->property());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Types_Property,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ComparisonTerm, sipName_property, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_setComparator(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_setComparator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm::Comparator a0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, sipType_Nepomuk_Query_ComparisonTerm_Comparator, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setComparator(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_ComparisonTerm, sipName_setComparator, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_setProperty(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_setProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Types::Property * a0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, sipType_Nepomuk_Types_Property, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*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_ComparisonTerm, sipName_setProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_setVariableName(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_setVariableName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVariableName(*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_ComparisonTerm, sipName_setVariableName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_variableName(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_variableName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->variableName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ComparisonTerm, sipName_variableName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_setAggregateFunction(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_setAggregateFunction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm::AggregateFunction a0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, sipType_Nepomuk_Query_ComparisonTerm_AggregateFunction, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAggregateFunction(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_ComparisonTerm, sipName_setAggregateFunction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_aggregateFunction(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_aggregateFunction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Nepomuk::Query::ComparisonTerm::AggregateFunction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->aggregateFunction();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Nepomuk_Query_ComparisonTerm_AggregateFunction);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ComparisonTerm, sipName_aggregateFunction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_setSortWeight(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_setSortWeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        Qt::SortOrder a1 = Qt::AscendingOrder;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi|E", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, &a0, sipType_Qt_SortOrder, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSortWeight(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_ComparisonTerm, sipName_setSortWeight, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_sortWeight(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_sortWeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sortWeight();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ComparisonTerm, sipName_sortWeight, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_sortOrder(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_sortOrder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Qt::SortOrder sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sortOrder();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Qt_SortOrder);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ComparisonTerm, sipName_sortOrder, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_isInverted(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_isInverted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInverted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ComparisonTerm, sipName_isInverted, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_setInverted(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_setInverted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInverted(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_ComparisonTerm, sipName_setInverted, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Query_ComparisonTerm_inverted(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Query_ComparisonTerm_inverted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Nepomuk::Query::ComparisonTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(sipCpp->inverted());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_ComparisonTerm,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ComparisonTerm, sipName_inverted, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Nepomuk_Query_ComparisonTerm(void *, const sipTypeDef *);}
static void *cast_Nepomuk_Query_ComparisonTerm(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Nepomuk_Query_ComparisonTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_SimpleTerm)->ctd_cast((Nepomuk::Query::SimpleTerm *)(Nepomuk::Query::ComparisonTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Nepomuk_Query_ComparisonTerm(void *, int);}
static void release_Nepomuk_Query_ComparisonTerm(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Query_ComparisonTerm *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Query::ComparisonTerm *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_ComparisonTerm(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_ComparisonTerm(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::ComparisonTerm *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::ComparisonTerm *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_ComparisonTerm(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_ComparisonTerm(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::ComparisonTerm[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_ComparisonTerm(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_ComparisonTerm(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::ComparisonTerm(reinterpret_cast<const Nepomuk::Query::ComparisonTerm *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Nepomuk_Query_ComparisonTerm(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Query_ComparisonTerm(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipNepomuk_Query_ComparisonTerm *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_ComparisonTerm(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Nepomuk_Query_ComparisonTerm(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_ComparisonTerm(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipNepomuk_Query_ComparisonTerm *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_ComparisonTerm();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::ComparisonTerm * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_ComparisonTerm, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_ComparisonTerm(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Types::Property * a0;
        const Nepomuk::Query::Term * a1;
        Nepomuk::Query::ComparisonTerm::Comparator a2 = Nepomuk::Query::ComparisonTerm::Contains;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9|E", sipType_Nepomuk_Types_Property, &a0, sipType_Nepomuk_Query_Term, &a1, sipType_Nepomuk_Query_ComparisonTerm_Comparator, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_ComparisonTerm(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Nepomuk_Query_ComparisonTerm[] = {{34, 255, 1}};


static PyMethodDef methods_Nepomuk_Query_ComparisonTerm[] = {
    {SIP_MLNAME_CAST(sipName_aggregateFunction), meth_Nepomuk_Query_ComparisonTerm_aggregateFunction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comparator), meth_Nepomuk_Query_ComparisonTerm_comparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inverted), meth_Nepomuk_Query_ComparisonTerm_inverted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInverted), meth_Nepomuk_Query_ComparisonTerm_isInverted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Nepomuk_Query_ComparisonTerm_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAggregateFunction), meth_Nepomuk_Query_ComparisonTerm_setAggregateFunction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComparator), meth_Nepomuk_Query_ComparisonTerm_setComparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInverted), meth_Nepomuk_Query_ComparisonTerm_setInverted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_Nepomuk_Query_ComparisonTerm_setProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSortWeight), meth_Nepomuk_Query_ComparisonTerm_setSortWeight, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVariableName), meth_Nepomuk_Query_ComparisonTerm_setVariableName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sortOrder), meth_Nepomuk_Query_ComparisonTerm_sortOrder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sortWeight), meth_Nepomuk_Query_ComparisonTerm_sortWeight, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variableName), meth_Nepomuk_Query_ComparisonTerm_variableName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_ComparisonTerm[] = {
    {sipName_Average, Nepomuk::Query::ComparisonTerm::Average, 9},
    {sipName_Contains, Nepomuk::Query::ComparisonTerm::Contains, 10},
    {sipName_Count, Nepomuk::Query::ComparisonTerm::Count, 9},
    {sipName_DistinctAverage, Nepomuk::Query::ComparisonTerm::DistinctAverage, 9},
    {sipName_DistinctCount, Nepomuk::Query::ComparisonTerm::DistinctCount, 9},
    {sipName_DistinctSum, Nepomuk::Query::ComparisonTerm::DistinctSum, 9},
    {sipName_Equal, Nepomuk::Query::ComparisonTerm::Equal, 10},
    {sipName_Greater, Nepomuk::Query::ComparisonTerm::Greater, 10},
    {sipName_GreaterOrEqual, Nepomuk::Query::ComparisonTerm::GreaterOrEqual, 10},
    {sipName_Max, Nepomuk::Query::ComparisonTerm::Max, 9},
    {sipName_Min, Nepomuk::Query::ComparisonTerm::Min, 9},
    {sipName_NoAggregateFunction, Nepomuk::Query::ComparisonTerm::NoAggregateFunction, 9},
    {sipName_Regexp, Nepomuk::Query::ComparisonTerm::Regexp, 10},
    {sipName_Smaller, Nepomuk::Query::ComparisonTerm::Smaller, 10},
    {sipName_SmallerOrEqual, Nepomuk::Query::ComparisonTerm::SmallerOrEqual, 10},
    {sipName_Sum, Nepomuk::Query::ComparisonTerm::Sum, 9},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_ComparisonTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__ComparisonTerm,
        {0}
    },
    {
        sipNameNr_ComparisonTerm,
        {6, 255, 0},
        14, methods_Nepomuk_Query_ComparisonTerm,
        16, enummembers_Nepomuk_Query_ComparisonTerm,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_ComparisonTerm,
    0,
    init_Nepomuk_Query_ComparisonTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_ComparisonTerm,
    assign_Nepomuk_Query_ComparisonTerm,
    array_Nepomuk_Query_ComparisonTerm,
    copy_Nepomuk_Query_ComparisonTerm,
    release_Nepomuk_Query_ComparisonTerm,
    cast_Nepomuk_Query_ComparisonTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};
